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