@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.140Z") @Stability(value=Stable) public interface KeyGroupProps extends software.amazon.jsii.JsiiSerializable
Example:
// Validating signed URLs or signed cookies with Trusted Key Groups
// public key in PEM format
String publicKey;
PublicKey pubKey = PublicKey.Builder.create(this, "MyPubKey")
.encodedKey(publicKey)
.build();
KeyGroup keyGroup = KeyGroup.Builder.create(this, "MyKeyGroup")
.items(List.of(pubKey))
.build();
Distribution.Builder.create(this, "Dist")
.defaultBehavior(BehaviorOptions.builder()
.origin(new HttpOrigin("www.example.com"))
.trustedKeyGroups(List.of(keyGroup))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
KeyGroupProps.Builder
A builder for
KeyGroupProps |
static class |
KeyGroupProps.Jsii$Proxy
An implementation for
KeyGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static KeyGroupProps.Builder |
builder() |
default String |
getComment()
A comment to describe the key group.
|
List<IPublicKey> |
getItems()
A list of public keys to add to the key group.
|
default String |
getKeyGroupName()
A name to identify the key group.
|
@Stability(value=Stable) @NotNull List<IPublicKey> getItems()
@Stability(value=Stable) @Nullable default String getComment()
Default: - no comment
@Stability(value=Stable) @Nullable default String getKeyGroupName()
Default: - generated from the `id`
@Stability(value=Stable) static KeyGroupProps.Builder builder()
KeyGroupProps.Builder of KeyGroupPropsCopyright © 2022. All rights reserved.