Skip to content
v2.278.0

DeploymentStrategyProps Struct ​

Properties for DeploymentStrategy.

Example ​

ts
new appconfig.DeploymentStrategy(this, 'MyDeploymentStrategy', {
  rolloutStrategy: appconfig.RolloutStrategy.linear({
    growthFactor: 20,
    deploymentDuration: Duration.minutes(30),
    finalBakeTime: Duration.minutes(30),
  }),
});
python
appconfig.DeploymentStrategy(self, "MyDeploymentStrategy",
    rollout_strategy=appconfig.RolloutStrategy.linear(
        growth_factor=20,
        deployment_duration=Duration.minutes(30),
        final_bake_time=Duration.minutes(30)
    )
)
java
DeploymentStrategy.Builder.create(this, "MyDeploymentStrategy")
        .rolloutStrategy(RolloutStrategy.linear(RolloutStrategyProps.builder()
                .growthFactor(20)
                .deploymentDuration(Duration.minutes(30))
                .finalBakeTime(Duration.minutes(30))
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new DeploymentStrategy(this, "MyDeploymentStrategy", new DeploymentStrategyProps {
    RolloutStrategy = RolloutStrategy.Linear(new RolloutStrategyProps {
        GrowthFactor = 20,
        DeploymentDuration = Duration.Minutes(30),
        FinalBakeTime = Duration.Minutes(30)
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
appconfig.NewDeploymentStrategy(this, jsii.String("MyDeploymentStrategy"), &DeploymentStrategyProps{
	RolloutStrategy: appconfig.RolloutStrategy_Linear(&RolloutStrategyProps{
		GrowthFactor: jsii.Number(20),
		DeploymentDuration: awscdk.Duration_Minutes(jsii.Number(30)),
		FinalBakeTime: awscdk.Duration_*Minutes(jsii.Number(30)),
	}),
})

Properties ​

deploymentStrategyNameoptionalstringdeployment_strategy_nameoptionalstrdeploymentStrategyNameoptionalStringDeploymentStrategyNameoptionalstringDeploymentStrategyNameoptional*string #
A name for the deployment strategy.

Default: A name is generated.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the deployment strategy.

Default: No description.

rolloutStrategyRolloutStrategyrollout_strategyRolloutStrategyrolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategy required #
The rollout strategy for the deployment strategy.

You can use predefined deployment strategies, such as RolloutStrategy.ALL_AT_ONCE, RolloutStrategy.LINEAR_50_PERCENT_EVERY_30_SECONDS, or RolloutStrategy.CANARY_10_PERCENT_20_MINUTES.