Class KeyGroup
A Key Group configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KeyGroup : Resource, IKeyGroup, IResource
Syntax (vb)
Public Class KeyGroup
Inherits Resource
Implements IKeyGroup, IResource
Remarks
Resource: AWS::CloudFront::KeyGroup
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
KeyGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
KeyGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
KeyGroup(Construct, String, IKeyGroupProps) |
Properties
KeyGroupId | The ID of the key group. |
Methods
FromKeyGroupId(Construct, String, String) | Imports a Key Group from its id. |
Constructors
KeyGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected KeyGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
KeyGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected KeyGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
KeyGroup(Construct, String, IKeyGroupProps)
public KeyGroup(Construct scope, string id, IKeyGroupProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IKeyGroupProps
Properties
KeyGroupId
The ID of the key group.
public virtual string KeyGroupId { get; }
Property Value
System.String
Methods
FromKeyGroupId(Construct, String, String)
Imports a Key Group from its id.
public static IKeyGroup FromKeyGroupId(Construct scope, string id, string keyGroupId)
Parameters
- scope Constructs.Construct
- id System.String
- keyGroupId System.String
Returns
Implements
Constructs.IConstruct
Constructs.IDependable