Skip to content
v2.278.0

RolloutStrategy Class ​

Defines the rollout strategy for a deployment strategy and includes the growth factor, deployment duration, growth type, and optionally final bake time.

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)),
	}),
})

Initializer ​

ts
new RolloutStrategy()
python
RolloutStrategy()
java
new RolloutStrategy()
csharp
new RolloutStrategy()
go
NewRolloutStrategy()

Properties ​

ALL_AT_ONCERolloutStrategyALL_AT_ONCERolloutStrategyALL_AT_ONCERolloutStrategyALL_AT_ONCERolloutStrategyALL_AT_ONCERolloutStrategy static #
**Quick**.

This strategy deploys the configuration to all targets immediately.

CANARY_10_PERCENT_20_MINUTESRolloutStrategyCANARY_10_PERCENT_20_MINUTESRolloutStrategyCANARY_10_PERCENT_20_MINUTESRolloutStrategyCANARY_10_PERCENT_20_MINUTESRolloutStrategyCANARY_10_PERCENT_20_MINUTESRolloutStrategy static #
**AWS Recommended**.

This strategy processes the deployment exponentially using a 10% growth factor over 20 minutes. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

deploymentDurationDurationdeployment_durationDurationdeploymentDurationDurationDeploymentDurationDurationDeploymentDurationDuration #
The deployment duration of the rollout strategy.
finalBakeTimemay be undefinedDurationfinal_bake_timemay be undefinedDurationfinalBakeTimemay be undefinedDurationFinalBakeTimemay be undefinedDurationFinalBakeTimemay be undefinedDuration #
The final bake time of the deployment strategy.
growthFactornumbergrowth_factorint | floatgrowthFactorNumberGrowthFactordoubleGrowthFactor*float64 #
The growth factor of the rollout strategy.
growthTypemay be undefinedGrowthTypegrowth_typemay be undefinedGrowthTypegrowthTypemay be undefinedGrowthTypeGrowthTypemay be undefinedGrowthTypeGrowthTypemay be undefinedGrowthType #
The growth type of the rollout strategy.
LINEAR_20_PERCENT_EVERY_6_MINUTESRolloutStrategyLINEAR_20_PERCENT_EVERY_6_MINUTESRolloutStrategyLINEAR_20_PERCENT_EVERY_6_MINUTESRolloutStrategyLINEAR_20_PERCENT_EVERY_6_MINUTESRolloutStrategyLINEAR_20_PERCENT_EVERY_6_MINUTESRolloutStrategy static #
**AWS Recommended**.
notes

This strategy deploys the configuration to 20% of all targets every six minutes for a 30 minute deployment. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

LINEAR_50_PERCENT_EVERY_30_SECONDSRolloutStrategyLINEAR_50_PERCENT_EVERY_30_SECONDSRolloutStrategyLINEAR_50_PERCENT_EVERY_30_SECONDSRolloutStrategyLINEAR_50_PERCENT_EVERY_30_SECONDSRolloutStrategyLINEAR_50_PERCENT_EVERY_30_SECONDSRolloutStrategy static #
**Testing/Demonstration**.
notes

This strategy deploys the configuration to half of all targets every 30 seconds for a one-minute deployment. AWS AppConfig recommends using this strategy only for testing or demonstration purposes because it has a short duration and bake time.

Methods ​

exponential(props: RolloutStrategyProps): RolloutStrategy // chainable@staticmethod def exponential(props: RolloutStrategyProps) -> RolloutStrategypublic static RolloutStrategy exponential(RolloutStrategyProps props)public static RolloutStrategy Exponential(RolloutStrategyProps props)func Exponential(Props RolloutStrategyProps) RolloutStrategy static #
Build your own exponential rollout strategy.
linear(props: RolloutStrategyProps): RolloutStrategy // chainable@staticmethod def linear(props: RolloutStrategyProps) -> RolloutStrategypublic static RolloutStrategy linear(RolloutStrategyProps props)public static RolloutStrategy Linear(RolloutStrategyProps props)func Linear(Props RolloutStrategyProps) RolloutStrategy static #
Build your own linear rollout strategy.