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, IPublicKeyRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class PublicKey Inherits Resource Implements IPublicKey, IResource, IPublicKeyRef, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
Examples
// Create a key group to use with CloudFront signed URLs and signed cookies.
// Create a key group to use with CloudFront signed URLs and signed cookies.
new KeyGroup(this, "MyKeyGroup", new KeyGroupProps {
Items = new [] {
new PublicKey(this, "MyPublicKey", new PublicKeyProps {
EncodedKey = "..."
}) }
});
Synopsis
Constructors
| PublicKey(Construct, string, IPublicKeyProps) | A Public Key Configuration. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
| PublicKeyId | The ID of the key group. |
| PublicKeyRef | A reference to a PublicKey resource. |
Methods
| FromPublicKeyId(Construct, string, string) | Imports a Public Key from its id. |
Constructors
PublicKey(Construct, string, IPublicKeyProps)
A Public Key Configuration.
public PublicKey(Construct scope, string id, IPublicKeyProps props)
Parameters
- scope Construct
- id string
- props IPublicKeyProps
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
Examples
// Create a key group to use with CloudFront signed URLs and signed cookies.
// Create a key group to use with CloudFront signed URLs and signed cookies.
new KeyGroup(this, "MyKeyGroup", new KeyGroupProps {
Items = new [] {
new PublicKey(this, "MyPublicKey", new PublicKeyProps {
EncodedKey = "..."
}) }
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
PublicKeyId
The ID of the key group.
public virtual string PublicKeyId { get; }
Property Value
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
PublicKeyRef
A reference to a PublicKey resource.
public virtual IPublicKeyReference PublicKeyRef { get; }
Property Value
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
Methods
FromPublicKeyId(Construct, string, string)
Imports a Public Key from its id.
public static IPublicKey FromPublicKeyId(Construct scope, string id, string publicKeyId)
Parameters
Returns
Remarks
Resource: AWS::CloudFront::PublicKey
ExampleMetadata: infused
Implements
Constructs.IConstruct
Constructs.IDependable