Interface KeyGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.719Z")
@Stability(Stable)
public interface KeyGroupProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating a Public Key.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKeyGroupPropsstatic final classAn implementation forKeyGroupProps -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyGroupProps.Builderbuilder()default StringA comment to describe the key group.getItems()A list of public keys to add to the key group.default StringA name to identify the key group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getItems
A list of public keys to add to the key group. -
getComment
A comment to describe the key group.Default: - no comment
-
getKeyGroupName
A name to identify the key group.Default: - generated from the `id`
-
builder
- Returns:
- a
KeyGroupProps.BuilderofKeyGroupProps
-