CfnKeyValueStorePropsMixin

class aws_cdk.cfn_property_mixins.aws_cloudfront.CfnKeyValueStorePropsMixin(props, *, strategy=None)

Bases: Mixin

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keyvaluestore.html

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.cfn_property_mixins import aws_cloudfront as cloudfront
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_key_value_store_props_mixin = cloudfront.CfnKeyValueStorePropsMixin(cloudfront.CfnKeyValueStoreMixinProps(
    comment="comment",
    import_source=cloudfront.CfnKeyValueStorePropsMixin.ImportSourceProperty(
        source_arn="sourceArn",
        source_type="sourceType"
    ),
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CloudFront::KeyValueStore.

Parameters:
  • props (Union[CfnKeyValueStoreMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['comment', 'importSource', 'name', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

ImportSourceProperty

class CfnKeyValueStorePropsMixin.ImportSourceProperty(*, source_arn=None, source_type=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keyvaluestore-importsource.html

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.cfn_property_mixins import aws_cloudfront as cloudfront

import_source_property = cloudfront.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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keyvaluestore-importsource.html#cfn-cloudfront-keyvaluestore-importsource-sourcearn

source_type

The source type of the import source for the key value store.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keyvaluestore-importsource.html#cfn-cloudfront-keyvaluestore-importsource-sourcetype