RolloutStrategyProps
- class aws_cdk.aws_appconfig.RolloutStrategyProps(*, deployment_duration, growth_factor, final_bake_time=None)
Bases:
object
Properties for the 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)
- ExampleMetadata:
infused
Example:
# application: appconfig.Application appconfig.HostedConfiguration(self, "MyHostedConfiguration", application=application, content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."), deployment_strategy=appconfig.DeploymentStrategy(self, "MyDeploymentStrategy", rollout_strategy=appconfig.RolloutStrategy.linear( growth_factor=15, deployment_duration=Duration.minutes(30), final_bake_time=Duration.minutes(15) ) ) )
Attributes
- deployment_duration
The deployment duration of the deployment strategy.
This defines the total amount of time for a deployment to last.
- final_bake_time
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)
- growth_factor
The growth factor of the deployment strategy.
This defines the percentage of targets to receive a deployed configuration during each interval.