CfnKeyValueStorePropsMixin
- class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnKeyValueStorePropsMixin(props, *, strategy=None)
Bases:
MixinThe key value store.
Use this to separate data from function code, allowing you to update data without having to publish a new version of a function. The key value store holds keys and their corresponding values.
- See:
- CloudformationResource:
AWS::CloudFront::KeyValueStore
- 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_key_value_store_props_mixin = cloudfront_mixins.CfnKeyValueStorePropsMixin(cloudfront_mixins.CfnKeyValueStoreMixinProps( comment="comment", import_source=cloudfront_mixins.CfnKeyValueStorePropsMixin.ImportSourceProperty( source_arn="sourceArn", source_type="sourceType" ), name="name" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CloudFront::KeyValueStore.- Parameters:
props (
Union[CfnKeyValueStoreMixinProps,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 = ['comment', 'importSource', 'name']
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
ImportSourceProperty
- class CfnKeyValueStorePropsMixin.ImportSourceProperty(*, source_arn=None, source_type=None)
Bases:
objectThe import source for the key value store.
- Parameters:
source_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the import source for the key value store.source_type (
Optional[str]) – The source type of the import source for the key value store.
- 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 import_source_property = cloudfront_mixins.CfnKeyValueStorePropsMixin.ImportSourceProperty( source_arn="sourceArn", source_type="sourceType" )
Attributes
- source_arn
The Amazon Resource Name (ARN) of the import source for the key value store.
- source_type
The source type of the import source for the key value store.