class CfnContinuousDeploymentPolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnContinuousDeploymentPolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnContinuousDeploymentPolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnContinuousDeploymentPolicyPropsMixin |
Implements
IMixin
Extends
Mixin
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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const cfnContinuousDeploymentPolicyPropsMixin = new cloudfront_mixins.CfnContinuousDeploymentPolicyPropsMixin({
continuousDeploymentPolicyConfig: {
enabled: false,
singleHeaderPolicyConfig: {
header: 'header',
value: 'value',
},
singleWeightPolicyConfig: {
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
weight: 123,
},
stagingDistributionDnsNames: ['stagingDistributionDnsNames'],
trafficConfig: {
singleHeaderConfig: {
header: 'header',
value: 'value',
},
singleWeightConfig: {
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
weight: 123,
},
type: 'type',
},
type: 'type',
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnContinuousDeploymentPolicyPropsMixin(props: CfnContinuousDeploymentPolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Continuous Deployment Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::CloudFront::ContinuousDeploymentPolicy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript