RolloutStrategy

class aws_cdk.aws_appconfig.RolloutStrategy

Bases: object

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

See:

https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html

ExampleMetadata:

infused

Example:

appconfig.DeploymentStrategy(self, "MyDeploymentStrategy",
    rollout_strategy=appconfig.RolloutStrategy.linear(
        growth_factor=20,
        deployment_duration=Duration.minutes(30),
        final_bake_time=Duration.minutes(30)
    )
)

Attributes

ALL_AT_ONCE = <aws_cdk.aws_appconfig._RolloutStrategyProxy object>
CANARY_10_PERCENT_20_MINUTES = <aws_cdk.aws_appconfig._RolloutStrategyProxy object>
LINEAR_20_PERCENT_EVERY_6_MINUTES = <aws_cdk.aws_appconfig._RolloutStrategyProxy object>
LINEAR_50_PERCENT_EVERY_30_SECONDS = <aws_cdk.aws_appconfig._RolloutStrategyProxy object>
deployment_duration

The deployment duration of the rollout strategy.

final_bake_time

The final bake time of the deployment strategy.

growth_factor

The growth factor of the rollout strategy.

growth_type

The growth type of the rollout strategy.

Static Methods

classmethod exponential(*, deployment_duration, growth_factor, final_bake_time=None)

Build your own exponential rollout strategy.

Parameters:
  • deployment_duration (Duration) – The deployment duration of the deployment strategy. This defines the total amount of time for a deployment to last.

  • growth_factor (Union[int, float]) – The growth factor of the deployment strategy. This defines the percentage of targets to receive a deployed configuration during each interval.

  • final_bake_time (Optional[Duration]) – The final bake time of the deployment strategy. This setting specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. Default: Duration.minutes(0)

Return type:

RolloutStrategy

classmethod linear(*, deployment_duration, growth_factor, final_bake_time=None)

Build your own linear rollout strategy.

Parameters:
  • deployment_duration (Duration) – The deployment duration of the deployment strategy. This defines the total amount of time for a deployment to last.

  • growth_factor (Union[int, float]) – The growth factor of the deployment strategy. This defines the percentage of targets to receive a deployed configuration during each interval.

  • final_bake_time (Optional[Duration]) – The final bake time of the deployment strategy. This setting specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. Default: Duration.minutes(0)

Return type:

RolloutStrategy