Skip to content
v2.277.0

EcsDeploymentConfigProps Struct ​

Construction properties of EcsDeploymentConfig.

Example ​

ts
new codedeploy.EcsDeploymentConfig(this, 'CustomConfig', {
  trafficRouting: new codedeploy.TimeBasedCanaryTrafficRouting({
    interval: Duration.minutes(15),
    percentage: 5,
  }),
});
python
codedeploy.EcsDeploymentConfig(self, "CustomConfig",
    traffic_routing=codedeploy.TimeBasedCanaryTrafficRouting(
        interval=Duration.minutes(15),
        percentage=5
    )
)
java
EcsDeploymentConfig.Builder.create(this, "CustomConfig")
        .trafficRouting(TimeBasedCanaryTrafficRouting.Builder.create()
                .interval(Duration.minutes(15))
                .percentage(5)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new EcsDeploymentConfig(this, "CustomConfig", new EcsDeploymentConfigProps {
    TrafficRouting = new TimeBasedCanaryTrafficRouting(new TimeBasedCanaryTrafficRoutingProps {
        Interval = Duration.Minutes(15),
        Percentage = 5
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
codedeploy.NewEcsDeploymentConfig(this, jsii.String("CustomConfig"), &EcsDeploymentConfigProps{
	TrafficRouting: codedeploy.NewTimeBasedCanaryTrafficRouting(&TimeBasedCanaryTrafficRoutingProps{
		Interval: awscdk.Duration_Minutes(jsii.Number(15)),
		Percentage: jsii.Number(5),
	}),
})

Properties ​

deploymentConfigNameoptionalstringdeployment_config_nameoptionalstrdeploymentConfigNameoptionalStringDeploymentConfigNameoptionalstringDeploymentConfigNameoptional*string #
The physical, human-readable name of the Deployment Configuration.

Default: automatically generated name

trafficRoutingoptionalTrafficRoutingtraffic_routingoptionalTrafficRoutingtrafficRoutingoptionalTrafficRoutingTrafficRoutingoptionalTrafficRoutingTrafficRoutingoptionalTrafficRouting = AllAtOnce #
The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.