@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.139Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIKeyGroup.Jsii$Default, IKeyGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
KeyGroup(software.constructs.Construct scope,
String id,
KeyGroupProps props) |
protected |
KeyGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KeyGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IKeyGroup |
fromKeyGroupId(software.constructs.Construct scope,
String id,
String keyGroupId)
Imports a Key Group from its id.
|
String |
getKeyGroupId()
The ID of the key group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected KeyGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected KeyGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public KeyGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
KeyGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IKeyGroup fromKeyGroupId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String keyGroupId)
scope - This parameter is required.id - This parameter is required.keyGroupId - This parameter is required.@Stability(value=Stable) @NotNull public String getKeyGroupId()
getKeyGroupId in interface IKeyGroupCopyright © 2022. All rights reserved.