RollingUpdateConfiguration
- class aws_cdk.aws_autoscaling.RollingUpdateConfiguration(*, max_batch_size=None, min_instances_in_service=None, min_successful_instances_percent=None, pause_time=None, suspend_processes=None, wait_on_resource_signals=None)
Bases:
object
(deprecated) Additional settings when a rolling update is selected.
- Parameters:
max_batch_size (
Union
[int
,float
,None
]) – (deprecated) The maximum number of instances that AWS CloudFormation updates at once. Default: 1min_instances_in_service (
Union
[int
,float
,None
]) – (deprecated) 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_successful_instances_percent (
Union
[int
,float
,None
]) – (deprecated) The percentage of instances that must signal success for an update to succeed. If an instance doesn’t send a signal within the time specified in the pauseTime property, AWS CloudFormation assumes that the instance wasn’t updated. This number affects the success of the replacement. If you specify this property, you must also enable the waitOnResourceSignals and pauseTime properties. Default: 100pause_time (
Optional
[Duration
]) – (deprecated) The pause time after making a change to a batch of instances. This is intended to give those instances time to start software applications. Specify PauseTime in the ISO8601 duration format (in the format PT#H#M#S, where each # is the number of hours, minutes, and seconds, respectively). The maximum PauseTime is one hour (PT1H). Default: Duration.minutes(5) if the waitOnResourceSignals property is true, otherwise 0suspend_processes (
Optional
[Sequence
[ScalingProcess
]]) – (deprecated) 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
]) – (deprecated) Specifies whether the Auto Scaling group waits on signals from new instances during an update. AWS CloudFormation must receive a signal from each new instance within the specified PauseTime before continuing the update. To have instances wait for an Elastic Load Balancing health check before they signal success, add a health-check verification by using the cfn-init helper script. For an example, see the verify_instance_health command in the Auto Scaling rolling updates sample template. Default: true if you specified the minSuccessfulInstancesPercent property, false otherwise
- Deprecated:
use
UpdatePolicy.rollingUpdate()
- Stability:
deprecated
- 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.aws_autoscaling as autoscaling import aws_cdk.core as cdk rolling_update_configuration = autoscaling.RollingUpdateConfiguration( max_batch_size=123, min_instances_in_service=123, min_successful_instances_percent=123, pause_time=cdk.Duration.minutes(30), suspend_processes=[autoscaling.ScalingProcess.LAUNCH], wait_on_resource_signals=False )
Attributes
- max_batch_size
(deprecated) The maximum number of instances that AWS CloudFormation updates at once.
- Default:
1
- Stability:
deprecated
- min_instances_in_service
(deprecated) 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
- Stability:
deprecated
- min_successful_instances_percent
(deprecated) The percentage of instances that must signal success for an update to succeed.
If an instance doesn’t send a signal within the time specified in the pauseTime property, AWS CloudFormation assumes that the instance wasn’t updated.
This number affects the success of the replacement.
If you specify this property, you must also enable the waitOnResourceSignals and pauseTime properties.
- Default:
100
- Stability:
deprecated
- pause_time
(deprecated) The pause time after making a change to a batch of instances.
This is intended to give those instances time to start software applications.
Specify PauseTime in the ISO8601 duration format (in the format PT#H#M#S, where each # is the number of hours, minutes, and seconds, respectively). The maximum PauseTime is one hour (PT1H).
- Default:
Duration.minutes(5) if the waitOnResourceSignals property is true, otherwise 0
- Stability:
deprecated
- suspend_processes
(deprecated) 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.
- Stability:
deprecated
- wait_on_resource_signals
(deprecated) Specifies whether the Auto Scaling group waits on signals from new instances during an update.
AWS CloudFormation must receive a signal from each new instance within the specified PauseTime before continuing the update.
To have instances wait for an Elastic Load Balancing health check before they signal success, add a health-check verification by using the cfn-init helper script. For an example, see the verify_instance_health command in the Auto Scaling rolling updates sample template.
- Default:
true if you specified the minSuccessfulInstancesPercent property, false otherwise
- Stability:
deprecated