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: object

Options 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: 1

  • min_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: 0

  • min_success_percentage (Union[int, float, None]) – The percentage of instances that must signal success for the update to succeed. Default: - The minSuccessPercentage configured for signals on the AutoScalingGroup

  • pause_time (Optional[Duration]) – The pause time after making a change to a batch of instances. Default: - The timeout configured for signals on the AutoScalingGroup

  • suspend_processes (Optional[List[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 configured signals on the AutoScalingGroup, false otherwise

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

Return type

Union[int, float, None]

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

Return type

Union[int, float, None]

min_success_percentage

The percentage of instances that must signal success for the update to succeed.

Default
  • The minSuccessPercentage configured for signals on the AutoScalingGroup

Return type

Union[int, float, None]

pause_time

The pause time after making a change to a batch of instances.

Default
  • The timeout configured for signals on the AutoScalingGroup

Return type

Optional[Duration]

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.

Return type

Optional[List[ScalingProcess]]

wait_on_resource_signals

Specifies whether the Auto Scaling group waits on signals from new instances during an update.

Default

true if you configured signals on the AutoScalingGroup, false otherwise

Return type

Optional[bool]