Class KeyGroupProps
Properties for creating a Public Key.
Inheritance
System.Object
KeyGroupProps
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KeyGroupProps : Object, IKeyGroupProps
Syntax (vb)
Public Class KeyGroupProps
Inherits Object
Implements 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
Constructors
KeyGroupProps() |
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. |
Constructors
KeyGroupProps()
public KeyGroupProps()
Properties
Comment
A comment to describe the key group.
public string Comment { get; set; }
Property Value
System.String
Remarks
Default: - no comment
Items
A list of public keys to add to the key group.
public IPublicKey[] Items { get; set; }
Property Value
KeyGroupName
A name to identify the key group.
public string KeyGroupName { get; set; }
Property Value
System.String
Remarks
Default: - generated from the id