PublicKeyProps
- class aws_cdk.aws_cloudfront.PublicKeyProps(*, encoded_key, comment=None, public_key_name=None)
Bases:
object
Properties for creating a Public Key.
- Parameters:
encoded_key (
str
) – The public key that you can use with signed URLs and signed cookies, or with field-level encryption. TheencodedKey
parameter must include-----BEGIN PUBLIC KEY-----
and-----END PUBLIC KEY-----
lines.comment (
Optional
[str
]) – A comment to describe the public key. Default: - no commentpublic_key_name (
Optional
[str
]) – A name to identify the public key. Default: - generated from theid
- ExampleMetadata:
infused
Example:
# Create a key group to use with CloudFront signed URLs and signed cookies. cloudfront.KeyGroup(self, "MyKeyGroup", items=[ cloudfront.PublicKey(self, "MyPublicKey", encoded_key="..." ) ] )
Attributes
- comment
A comment to describe the public key.
- Default:
no comment
- encoded_key
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.
- public_key_name
A name to identify the public key.
- Default:
generated from the
id