CfnConnectionFunctionPropsMixin

class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnConnectionFunctionPropsMixin(props, *, strategy=None)

Bases: Mixin

A connection function.

See:

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

CloudformationResource:

AWS::CloudFront::ConnectionFunction

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_connection_function_props_mixin = cloudfront_mixins.CfnConnectionFunctionPropsMixin(cloudfront_mixins.CfnConnectionFunctionMixinProps(
    auto_publish=False,
    connection_function_code="connectionFunctionCode",
    connection_function_config=cloudfront_mixins.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(
        comment="comment",
        key_value_store_associations=[cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(
            key_value_store_arn="keyValueStoreArn"
        )],
        runtime="runtime"
    ),
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

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

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 = ['autoPublish', 'connectionFunctionCode', 'connectionFunctionConfig', 'name', 'tags']

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

ConnectionFunctionConfigProperty

class CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(*, comment=None, key_value_store_associations=None, runtime=None)

Bases: object

Contains configuration information about a CloudFront function.

Parameters:
  • comment (Optional[str]) – A comment to describe the function.

  • key_value_store_associations (Union[IResolvable, Sequence[Union[IResolvable, KeyValueStoreAssociationProperty, Dict[str, Any]]], None]) – The configuration for the key value store associations.

  • runtime (Optional[str]) – The function’s runtime environment version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-connectionfunctionconfig.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

connection_function_config_property = cloudfront_mixins.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(
    comment="comment",
    key_value_store_associations=[cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(
        key_value_store_arn="keyValueStoreArn"
    )],
    runtime="runtime"
)

Attributes

comment

A comment to describe the function.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-connectionfunctionconfig.html#cfn-cloudfront-connectionfunction-connectionfunctionconfig-comment

key_value_store_associations

The configuration for the key value store associations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-connectionfunctionconfig.html#cfn-cloudfront-connectionfunction-connectionfunctionconfig-keyvaluestoreassociations

runtime

The function’s runtime environment version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-connectionfunctionconfig.html#cfn-cloudfront-connectionfunction-connectionfunctionconfig-runtime

KeyValueStoreAssociationProperty

class CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(*, key_value_store_arn=None)

Bases: object

The key value store association.

Parameters:

key_value_store_arn (Optional[str]) – The Amazon Resource Name (ARN) of the key value store association.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-keyvaluestoreassociation.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

key_value_store_association_property = cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(
    key_value_store_arn="keyValueStoreArn"
)

Attributes

key_value_store_arn

The Amazon Resource Name (ARN) of the key value store association.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-connectionfunction-keyvaluestoreassociation.html#cfn-cloudfront-connectionfunction-keyvaluestoreassociation-keyvaluestorearn