interface PublicKeyProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.PublicKeyProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#PublicKeyProps |
![]() | software.amazon.awscdk.services.cloudfront.PublicKeyProps |
![]() | aws_cdk.aws_cloudfront.PublicKeyProps |
![]() | aws-cdk-lib » aws_cloudfront » PublicKeyProps |
Properties for creating a Public Key.
Example
// Create a key group to use with CloudFront signed URLs and signed cookies.
new cloudfront.KeyGroup(this, 'MyKeyGroup', {
items: [
new cloudfront.PublicKey(this, 'MyPublicKey', {
encodedKey: '...', // contents of public_key.pem file
// comment: 'Key is expiring on ...',
}),
],
// comment: 'Key group containing public keys ...',
});
Properties
Name | Type | Description |
---|---|---|
encoded | string | The public key that you can use with signed URLs and signed cookies, or with field-level encryption. |
comment? | string | A comment to describe the public key. |
public | string | A name to identify the public key. |
encodedKey
Type:
string
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
The encodedKey
parameter must include -----BEGIN PUBLIC KEY-----
and -----END PUBLIC KEY-----
lines.
comment?
Type:
string
(optional, default: no comment)
A comment to describe the public key.
publicKeyName?
Type:
string
(optional, default: generated from the id
)
A name to identify the public key.