# RollingUpdateOptions

Options for customizing the rolling update.

- Source: [`aws-autoscaling/lib/auto-scaling-group.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L1092)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const rollingUpdateOptions: autoscaling.RollingUpdateOptions = {
  maxBatchSize: 123,
  minInstancesInService: 123,
  minSuccessPercentage: 123,
  pauseTime: cdk.Duration.minutes(30),
  suspendProcesses: [autoscaling.ScalingProcess.LAUNCH],
  waitOnResourceSignals: false,
};
```

## Properties

- `maxBatchSize`: number = 1 — The maximum number of instances that AWS CloudFormation updates at once.

  This number affects the speed of the replacement.

- `minInstancesInService`: number = 0 — The minimum number of instances that must be in service before more instances are replaced.

  This number affects the speed of the replacement.

- `minSuccessPercentage`: number — The percentage of instances that must signal success for the update to succeed.

  **Default:** The `minSuccessPercentage` configured for `signals` on the AutoScalingGroup

- `pauseTime`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — The pause time after making a change to a batch of instances.

  **Default:** The `timeout` configured for `signals` on the AutoScalingGroup

- `suspendProcesses`: [ScalingProcess](/cdk/api/v2/docs/aws-cdk-lib.aws_autoscaling.ScalingProcess.html)[] — Specifies the Auto Scaling processes to suspend during a stack update.

  **Default:** HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions.

  Suspending processes prevents Auto Scaling from interfering with a stack
  update.

- `waitOnResourceSignals`: boolean — 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
