AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::ContinuousDeploymentPolicy

CfnContinuousDeploymentPolicy

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](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/continuous-deployment.html) in the *Amazon CloudFront Developer Guide* .

Import

import { CfnContinuousDeploymentPolicy } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.CfnContinuousDeploymentPolicy

Properties

Configuration passed to the constructor as CfnContinuousDeploymentPolicyProps.

continuousDeploymentPolicyConfigRequired
IResolvable | ContinuousDeploymentPolicyConfigProperty

Contains the configuration for a continuous deployment policy.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic