KeyGroupProps Struct
Properties for creating a Public Key.
Example
ts
// 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
commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string#A comment to describe the key group.
Default: no comment
itemsIPublicKeyRef[]itemstyping.List[IPublicKeyRef]itemsList<IPublicKeyRef>ItemsIPublicKeyRef[]Items*[]IPublicKeyRefrequired#A list of public keys to add to the key group.
keyGroupNameoptionalstringkey_group_nameoptionalstrkeyGroupNameoptionalStringKeyGroupNameoptionalstringKeyGroupNameoptional*string#A name to identify the key group.
Default: generated from the id