CfnPublicKeyPropsMixin
- class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnPublicKeyPropsMixin(props, *, strategy=None)
Bases:
MixinA public key that you can use with signed URLs and signed cookies , or with field-level encryption .
CloudFront supports signed URLs and signed cookies with RSA 2048 or ECDSA 256 key signatures. Field-level encryption is only compatible with RSA 2048 key signatures.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
- CloudformationResource:
AWS::CloudFront::PublicKey
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins cfn_public_key_props_mixin = cloudfront_mixins.CfnPublicKeyPropsMixin(cloudfront_mixins.CfnPublicKeyMixinProps( public_key_config=cloudfront_mixins.CfnPublicKeyPropsMixin.PublicKeyConfigProperty( caller_reference="callerReference", comment="comment", encoded_key="encodedKey", name="name" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CloudFront::PublicKey.- Parameters:
props (
Union[CfnPublicKeyMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['publicKeyConfig']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
PublicKeyConfigProperty
- class CfnPublicKeyPropsMixin.PublicKeyConfigProperty(*, caller_reference=None, comment=None, encoded_key=None, name=None)
Bases:
objectConfiguration information about a public key that you can use with signed URLs and signed cookies , or with field-level encryption .
CloudFront supports signed URLs and signed cookies with RSA 2048 or ECDSA 256 key signatures. Field-level encryption is only compatible with RSA 2048 key signatures.
- Parameters:
caller_reference (
Optional[str]) – A string included in the request to help make sure that the request can’t be replayed.comment (
Optional[str]) – A comment to describe the public key. The comment cannot be longer than 128 characters.encoded_key (
Optional[str]) –The public key that you can use with signed URLs and signed cookies , or with field-level encryption .
name (
Optional[str]) – A name to help identify the public key.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins public_key_config_property = cloudfront_mixins.CfnPublicKeyPropsMixin.PublicKeyConfigProperty( caller_reference="callerReference", comment="comment", encoded_key="encodedKey", name="name" )
Attributes
- caller_reference
A string included in the request to help make sure that the request can’t be replayed.
- comment
A comment to describe the public key.
The comment cannot be longer than 128 characters.
- encoded_key
The public key that you can use with signed URLs and signed cookies , or with field-level encryption .
- name
A name to help identify the public key.