Interface IKeyGroupProps
Properties for creating a Public Key.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IKeyGroupProps
Syntax (vb)
Public Interface IKeyGroupProps
Remarks
ExampleMetadata: infused
Examples
// Validating signed URLs or signed cookies with Trusted Key Groups
// public key in PEM format
string publicKey;
var pubKey = new PublicKey(this, "MyPubKey", new PublicKeyProps {
EncodedKey = publicKey
});
var keyGroup = new KeyGroup(this, "MyKeyGroup", new KeyGroupProps {
Items = new [] { pubKey }
});
new Distribution(this, "Dist", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = new HttpOrigin("www.example.com"),
TrustedKeyGroups = new [] { keyGroup }
}
});
Synopsis
Properties
Comment | A comment to describe the key group. |
Items | A list of public keys to add to the key group. |
KeyGroupName | A name to identify the key group. |
Properties
Comment
A comment to describe the key group.
virtual string Comment { get; }
Property Value
System.String
Remarks
Default: - no comment
Items
A list of public keys to add to the key group.
IPublicKey[] Items { get; }
Property Value
KeyGroupName
A name to identify the key group.
virtual string KeyGroupName { get; }
Property Value
System.String
Remarks
Default: - generated from the id