CfnConnectionFunctionProps

class aws_cdk.aws_cloudfront.CfnConnectionFunctionProps(*, connection_function_code, connection_function_config, name, auto_publish=None, tags=None)

Bases: object

Properties for defining a CfnConnectionFunction.

Parameters:
  • connection_function_code (str) – The code for the connection function.

  • connection_function_config (Union[IResolvable, ConnectionFunctionConfigProperty, Dict[str, Any]]) – Contains configuration information about a CloudFront function.

  • name (str) – The connection function name.

  • auto_publish (Union[bool, IResolvable, None]) – A flag that determines whether to automatically publish the function to the LIVE stage when it’s created. To automatically publish to the LIVE stage, set this property to true . Default: - false

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A complex type that contains zero or more Tag elements.

See:

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

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cfn_connection_function_props = cloudfront.CfnConnectionFunctionProps(
    connection_function_code="connectionFunctionCode",
    connection_function_config=cloudfront.CfnConnectionFunction.ConnectionFunctionConfigProperty(
        comment="comment",
        runtime="runtime",

        # the properties below are optional
        key_value_store_associations=[cloudfront.CfnConnectionFunction.KeyValueStoreAssociationProperty(
            key_value_store_arn="keyValueStoreArn"
        )]
    ),
    name="name",

    # the properties below are optional
    auto_publish=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

auto_publish

A flag that determines whether to automatically publish the function to the LIVE stage when it’s created.

To automatically publish to the LIVE stage, set this property to true .

Default:
  • false

See:

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

connection_function_code

The code for the connection function.

See:

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

connection_function_config

Contains configuration information about a CloudFront function.

See:

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

name

The connection function name.

See:

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

tags

A complex type that contains zero or more Tag elements.

See:

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