CfnConnectionFunctionPropsMixin

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

# merge_strategy: cdk.IMergeStrategy

cfn_connection_function_props_mixin = cloudfront.CfnConnectionFunctionPropsMixin(cloudfront.CfnConnectionFunctionMixinProps(
    auto_publish=False,
    connection_function_code="connectionFunctionCode",
    connection_function_config=cloudfront.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(
        comment="comment",
        key_value_store_associations=[cloudfront.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(
            key_value_store_arn="keyValueStoreArn"
        )],
        runtime="runtime"
    ),
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

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:

None

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)

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.

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

connection_function_config_property = cloudfront.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(
    comment="comment",
    key_value_store_associations=[cloudfront.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.cfn_property_mixins import aws_cloudfront as cloudfront

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