@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:46.612Z") public class KeyGroup extends Resource implements IKeyGroup
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 | Class and Description |
---|---|
static class |
KeyGroup.Builder
A fluent builder for
KeyGroup . |
IKeyGroup.Jsii$Default, IKeyGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
KeyGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KeyGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
KeyGroup(software.constructs.Construct scope,
java.lang.String id,
KeyGroupProps props) |
Modifier and Type | Method and Description |
---|---|
static IKeyGroup |
fromKeyGroupId(software.constructs.Construct scope,
java.lang.String id,
java.lang.String keyGroupId)
Imports a Key Group from its id.
|
java.lang.String |
getKeyGroupId()
The ID of the key group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected KeyGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected KeyGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public KeyGroup(software.constructs.Construct scope, java.lang.String id, KeyGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IKeyGroup fromKeyGroupId(software.constructs.Construct scope, java.lang.String id, java.lang.String keyGroupId)
scope
- This parameter is required.id
- This parameter is required.keyGroupId
- This parameter is required.public java.lang.String getKeyGroupId()
getKeyGroupId
in interface IKeyGroup