Skip to content
v2.274.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),
  }),
});

Properties ​

deploymentStrategyNamestringdeployment_strategy_namestrdeploymentStrategyNameStringDeploymentStrategyNamestringDeploymentStrategyName*string= A name is generated.#
A name for the deployment strategy.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string= No description.#
A description of the deployment strategy.
rolloutStrategyRolloutStrategyrollout_strategyRolloutStrategyrolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategyRolloutStrategyrequired#
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.