CfnContinuousDeploymentPolicyProps Struct
Properties for defining a CfnContinuousDeploymentPolicy.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnContinuousDeploymentPolicyProps: cloudfront.CfnContinuousDeploymentPolicyProps = {
continuousDeploymentPolicyConfig: {
enabled: false,
stagingDistributionDnsNames: ['stagingDistributionDnsNames'],
// the properties below are optional
singleHeaderPolicyConfig: {
header: 'header',
value: 'value',
},
singleWeightPolicyConfig: {
weight: 123,
// the properties below are optional
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
},
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,
},
},
},
type: 'type',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import 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
single_header_policy_config=cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty(
header="header",
value="value"
),
single_weight_policy_config=cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty(
weight=123,
# the properties below are optional
session_stickiness_config=cloudfront.CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty(
idle_ttl=123,
maximum_ttl=123
)
),
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
)
)
),
type="type"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
CfnContinuousDeploymentPolicyProps cfnContinuousDeploymentPolicyProps = CfnContinuousDeploymentPolicyProps.builder()
.continuousDeploymentPolicyConfig(ContinuousDeploymentPolicyConfigProperty.builder()
.enabled(false)
.stagingDistributionDnsNames(List.of("stagingDistributionDnsNames"))
// the properties below are optional
.singleHeaderPolicyConfig(SingleHeaderPolicyConfigProperty.builder()
.header("header")
.value("value")
.build())
.singleWeightPolicyConfig(SingleWeightPolicyConfigProperty.builder()
.weight(123)
// the properties below are optional
.sessionStickinessConfig(SessionStickinessConfigProperty.builder()
.idleTtl(123)
.maximumTtl(123)
.build())
.build())
.trafficConfig(TrafficConfigProperty.builder()
.type("type")
// the properties below are optional
.singleHeaderConfig(SingleHeaderConfigProperty.builder()
.header("header")
.value("value")
.build())
.singleWeightConfig(SingleWeightConfigProperty.builder()
.weight(123)
// the properties below are optional
.sessionStickinessConfig(SessionStickinessConfigProperty.builder()
.idleTtl(123)
.maximumTtl(123)
.build())
.build())
.build())
.type("type")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var cfnContinuousDeploymentPolicyProps = new CfnContinuousDeploymentPolicyProps {
ContinuousDeploymentPolicyConfig = new ContinuousDeploymentPolicyConfigProperty {
Enabled = false,
StagingDistributionDnsNames = new [] { "stagingDistributionDnsNames" },
// the properties below are optional
SingleHeaderPolicyConfig = new SingleHeaderPolicyConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightPolicyConfig = new SingleWeightPolicyConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
},
TrafficConfig = new TrafficConfigProperty {
Type = "type",
// the properties below are optional
SingleHeaderConfig = new SingleHeaderConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightConfig = new SingleWeightConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
}
},
Type = "type"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnContinuousDeploymentPolicyProps := &CfnContinuousDeploymentPolicyProps{
ContinuousDeploymentPolicyConfig: &ContinuousDeploymentPolicyConfigProperty{
Enabled: jsii.Boolean(false),
StagingDistributionDnsNames: []*string{
jsii.String("stagingDistributionDnsNames"),
},
// the properties below are optional
SingleHeaderPolicyConfig: &SingleHeaderPolicyConfigProperty{
Header: jsii.String("header"),
Value: jsii.String("value"),
},
SingleWeightPolicyConfig: &SingleWeightPolicyConfigProperty{
Weight: jsii.Number(123),
// the properties below are optional
SessionStickinessConfig: &SessionStickinessConfigProperty{
IdleTtl: jsii.Number(123),
MaximumTtl: jsii.Number(123),
},
},
TrafficConfig: &TrafficConfigProperty{
Type: jsii.String("type"),
// the properties below are optional
SingleHeaderConfig: &SingleHeaderConfigProperty{
Header: jsii.String("header"),
Value: jsii.String("value"),
},
SingleWeightConfig: &SingleWeightConfigProperty{
Weight: jsii.Number(123),
// the properties below are optional
SessionStickinessConfig: &SessionStickinessConfigProperty{
IdleTtl: jsii.Number(123),
MaximumTtl: jsii.Number(123),
},
},
},
Type: jsii.String("type"),
},
}
Properties
continuousDeploymentPolicyConfigIResolvable | CfnContinuousDeploymentPolicy.continuous_deployment_policy_configtyping.Union[IResolvable, ContinuousDeploymentPolicyConfigProperty]continuousDeploymentPolicyConfigIResolvableContinuousDeploymentPolicyConfigIResolvableContinuousDeploymentPolicyConfiginterface{} required #Contains the configuration for a continuous deployment policy.