Interface IPublicKeyProps
Properties for creating a Public Key.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IPublicKeyProps
Syntax (vb)
Public Interface IPublicKeyProps
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 public key. |
EncodedKey | The public key that you can use with signed URLs and signed cookies, or with field-level encryption. |
PublicKeyName | A name to identify the public key. |
Properties
Comment
A comment to describe the public key.
virtual string Comment { get; }
Property Value
System.String
Remarks
Default: - no comment
EncodedKey
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
string EncodedKey { get; }
Property Value
System.String
Remarks
The encodedKey
parameter must include -----BEGIN PUBLIC KEY-----
and -----END PUBLIC KEY-----
lines.
See: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html
PublicKeyName
A name to identify the public key.
virtual string PublicKeyName { get; }
Property Value
System.String
Remarks
Default: - generated from the id