interface KeyGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.KeyGroupProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#KeyGroupProps |
Java | software.amazon.awscdk.services.cloudfront.KeyGroupProps |
Python | aws_cdk.aws_cloudfront.KeyGroupProps |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » KeyGroupProps |
Properties for creating a Public Key.
Example
// Validating signed URLs or signed cookies with Trusted Key Groups
// public key in PEM format
declare const publicKey: string;
const pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {
encodedKey: publicKey,
});
const keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {
items: [
pubKey,
],
});
new cloudfront.Distribution(this, 'Dist', {
defaultBehavior: {
origin: new origins.HttpOrigin('www.example.com'),
trustedKeyGroups: [
keyGroup,
],
},
});
Properties
Name | Type | Description |
---|---|---|
items | IPublic [] | A list of public keys to add to the key group. |
comment? | string | A comment to describe the key group. |
key | string | A name to identify the key group. |
items
Type:
IPublic
[]
A list of public keys to add to the key group.
comment?
Type:
string
(optional, default: no comment)
A comment to describe the key group.
keyGroupName?
Type:
string
(optional, default: generated from the id
)
A name to identify the key group.