interface ContinuousDeploymentPolicyConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty |
![]() | aws_cdk.aws_cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty |
![]() | @aws-cdk/aws-cloudfront » CfnContinuousDeploymentPolicy » ContinuousDeploymentPolicyConfigProperty |
Contains the configuration for a continuous deployment policy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudfront from '@aws-cdk/aws-cloudfront';
const continuousDeploymentPolicyConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty = {
enabled: false,
stagingDistributionDnsNames: ['stagingDistributionDnsNames'],
// the properties below are optional
trafficConfig: {
type: 'type',
// the properties below are optional
singleHeaderConfig: {
header: 'header',
value: 'value',
},
singleWeightConfig: {
weight: 123,
// the properties below are optional
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
enabled | boolean | IResolvable | A Boolean that indicates whether this continuous deployment policy is enabled (in effect). |
staging | string[] | The CloudFront domain name of the staging distribution. |
traffic | IResolvable | Traffic | Contains the parameters for routing production traffic from your primary to staging distributions. |
enabled
Type:
boolean |
IResolvable
A Boolean that indicates whether this continuous deployment policy is enabled (in effect).
When this value is true
, this policy is enabled and in effect. When this value is false
, this policy is not enabled and has no effect.
stagingDistributionDnsNames
Type:
string[]
The CloudFront domain name of the staging distribution.
For example: d111111abcdef8.cloudfront.net
.
trafficConfig?
Type:
IResolvable
|
Traffic
(optional)
Contains the parameters for routing production traffic from your primary to staging distributions.