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 ​

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_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.