CfnContinuousDeploymentPolicyProps

class aws_cdk.aws_cloudfront.CfnContinuousDeploymentPolicyProps(*, continuous_deployment_policy_config)

Bases: object

Properties for defining a CfnContinuousDeploymentPolicy.

Parameters:

continuous_deployment_policy_config (Union[IResolvable, ContinuousDeploymentPolicyConfigProperty, Dict[str, Any]]) – Contains the configuration for a continuous deployment policy.

Link:

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

ExampleMetadata:

fixture=_generated

Example:

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

cfn_continuous_deployment_policy_props = cloudfront.CfnContinuousDeploymentPolicyProps(
    continuous_deployment_policy_config=cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty(
        enabled=False,
        staging_distribution_dns_names=["stagingDistributionDnsNames"],

        # the properties below are optional
        traffic_config=cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty(
            type="type",

            # the properties below are optional
            single_header_config=cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty(
                header="header",
                value="value"
            ),
            single_weight_config=cloudfront.CfnContinuousDeploymentPolicy.SingleWeightConfigProperty(
                weight=123,

                # the properties below are optional
                session_stickiness_config=cloudfront.CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty(
                    idle_ttl=123,
                    maximum_ttl=123
                )
            )
        )
    )
)

Attributes

continuous_deployment_policy_config

Contains the configuration for a continuous deployment policy.

Link:

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