Interface RollingUpdateOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RollingUpdateOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-01-25T00:20:51.223Z")
@Stability(Stable)
public interface RollingUpdateOptions
extends software.amazon.jsii.JsiiSerializable
Options for customizing the rolling update.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.autoscaling.*; RollingUpdateOptions rollingUpdateOptions = RollingUpdateOptions.builder() .maxBatchSize(123) .minInstancesInService(123) .minSuccessPercentage(123) .pauseTime(Duration.minutes(30)) .suspendProcesses(List.of(ScalingProcess.LAUNCH)) .waitOnResourceSignals(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRollingUpdateOptions
static final class
An implementation forRollingUpdateOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic RollingUpdateOptions.Builder
builder()
default Number
The maximum number of instances that AWS CloudFormation updates at once.default Number
The minimum number of instances that must be in service before more instances are replaced.default Number
The percentage of instances that must signal success for the update to succeed.default Duration
The pause time after making a change to a batch of instances.default List<ScalingProcess>
Specifies the Auto Scaling processes to suspend during a stack update.default Boolean
Specifies whether the Auto Scaling group waits on signals from new instances during an update.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxBatchSize
The maximum number of instances that AWS CloudFormation updates at once.This number affects the speed of the replacement.
Default: 1
-
getMinInstancesInService
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
-
getMinSuccessPercentage
The percentage of instances that must signal success for the update to succeed.Default: - The `minSuccessPercentage` configured for `signals` on the AutoScalingGroup
-
getPauseTime
The pause time after making a change to a batch of instances.Default: - The `timeout` configured for `signals` on the AutoScalingGroup
-
getSuspendProcesses
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.
-
getWaitOnResourceSignals
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
-
builder
- Returns:
- a
RollingUpdateOptions.Builder
ofRollingUpdateOptions
-