Show / Hide Table of Contents

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.

string? Comment { get; }
Property Value

string

Remarks

Default: - no comment

Items

A list of public keys to add to the key group.

IPublicKey[] Items { get; }
Property Value

IPublicKey[]

Remarks

ExampleMetadata: infused

KeyGroupName

A name to identify the key group.

string? KeyGroupName { get; }
Property Value

string

Remarks

Default: - generated from the id

Back to top Generated by DocFX