AWS::CloudFront::ContinuousDeploymentPolicy - AWS CloudFormation

AWS::CloudFront::ContinuousDeploymentPolicy

Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.

After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.

For more information, see Using CloudFront continuous deployment to safely test CDN configuration changes in the Amazon CloudFront Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::CloudFront::ContinuousDeploymentPolicy", "Properties" : { "ContinuousDeploymentPolicyConfig" : ContinuousDeploymentPolicyConfig } }

YAML

Type: AWS::CloudFront::ContinuousDeploymentPolicy Properties: ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfig

Properties

ContinuousDeploymentPolicyConfig

Contains the configuration for a continuous deployment policy.

Required: Yes

Type: ContinuousDeploymentPolicyConfig

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the unique identifier for the continuous deployment policy.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Id

The identifier of the cotinuous deployment policy.

LastModifiedTime

The date and time when the continuous deployment policy was last modified.