Interface KeyGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:27.647Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forKeyGroupProps
static final class
An implementation forKeyGroupProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyGroupProps.Builder
builder()
default String
A comment to describe the key group.getItems()
A list of public keys to add to the key group.default String
A 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.Builder
ofKeyGroupProps
-