CfnKeyValueStorePropsMixin

class aws_cdk.mixins_preview.aws_cloudfront.mixins.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.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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 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.

Stability:

experimental

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.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.

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