RollingUpdateOptions
- class aws_cdk.aws_autoscaling.RollingUpdateOptions(*, max_batch_size=None, min_instances_in_service=None, min_success_percentage=None, pause_time=None, suspend_processes=None, wait_on_resource_signals=None)
Bases:
objectOptions for customizing the rolling update.
- Parameters:
max_batch_size (
Union[int,float,None]) – The maximum number of instances that AWS CloudFormation updates at once. This number affects the speed of the replacement. Default: 1min_instances_in_service (
Union[int,float,None]) – The minimum number of instances that must be in service before more instances are replaced. This number affects the speed of the replacement. Default: 0min_success_percentage (
Union[int,float,None]) – The percentage of instances that must signal success for the update to succeed. Default: - TheminSuccessPercentageconfigured forsignalson the AutoScalingGrouppause_time (
Optional[Duration]) – The pause time after making a change to a batch of instances. Default: - Thetimeoutconfigured forsignalson the AutoScalingGroupsuspend_processes (
Optional[Sequence[ScalingProcess]]) – Specifies the Auto Scaling processes to suspend during a stack update. Suspending processes prevents Auto Scaling from interfering with a stack update. Default: HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions.wait_on_resource_signals (
Optional[bool]) – Specifies whether the Auto Scaling group waits on signals from new instances during an update. Default: true if you configuredsignalson the AutoScalingGroup, false otherwise
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk from aws_cdk import aws_autoscaling as autoscaling rolling_update_options = autoscaling.RollingUpdateOptions( max_batch_size=123, min_instances_in_service=123, min_success_percentage=123, pause_time=cdk.Duration.minutes(30), suspend_processes=[autoscaling.ScalingProcess.LAUNCH], wait_on_resource_signals=False )
Attributes
- max_batch_size
The maximum number of instances that AWS CloudFormation updates at once.
This number affects the speed of the replacement.
- Default:
1
- min_instances_in_service
The minimum number of instances that must be in service before more instances are replaced.
This number affects the speed of the replacement.
- Default:
0
- min_success_percentage
The percentage of instances that must signal success for the update to succeed.
- Default:
The
minSuccessPercentageconfigured forsignalson the AutoScalingGroup
- pause_time
The pause time after making a change to a batch of instances.
- Default:
The
timeoutconfigured forsignalson the AutoScalingGroup
- suspend_processes
Specifies the Auto Scaling processes to suspend during a stack update.
Suspending processes prevents Auto Scaling from interfering with a stack update.
- Default:
HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions.
- wait_on_resource_signals
Specifies whether the Auto Scaling group waits on signals from new instances during an update.
- Default:
true if you configured
signalson the AutoScalingGroup, false otherwise