Class RollingUpdateConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RollingUpdateConfiguration>
- Enclosing interface:
RollingUpdateConfiguration
RollingUpdateConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.maxBatchSize
(Number maxBatchSize) Deprecated.minInstancesInService
(Number minInstancesInService) Deprecated.minSuccessfulInstancesPercent
(Number minSuccessfulInstancesPercent) Deprecated.Deprecated.suspendProcesses
(List<? extends ScalingProcess> suspendProcesses) Deprecated.waitOnResourceSignals
(Boolean waitOnResourceSignals) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
maxBatchSize
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder maxBatchSize(Number maxBatchSize) Deprecated.Sets the value ofRollingUpdateConfiguration.getMaxBatchSize()
- Parameters:
maxBatchSize
- The maximum number of instances that AWS CloudFormation updates at once.- Returns:
this
-
minInstancesInService
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder minInstancesInService(Number minInstancesInService) Deprecated.Sets the value ofRollingUpdateConfiguration.getMinInstancesInService()
- Parameters:
minInstancesInService
- The minimum number of instances that must be in service before more instances are replaced. This number affects the speed of the replacement.- Returns:
this
-
minSuccessfulInstancesPercent
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder minSuccessfulInstancesPercent(Number minSuccessfulInstancesPercent) Deprecated.Sets the value ofRollingUpdateConfiguration.getMinSuccessfulInstancesPercent()
- Parameters:
minSuccessfulInstancesPercent
- 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.
- Returns:
this
-
pauseTime
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder pauseTime(Duration pauseTime) Deprecated.Sets the value ofRollingUpdateConfiguration.getPauseTime()
- Parameters:
pauseTime
- 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).
- Returns:
this
-
suspendProcesses
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder suspendProcesses(List<? extends ScalingProcess> suspendProcesses) Deprecated.Sets the value ofRollingUpdateConfiguration.getSuspendProcesses()
- Parameters:
suspendProcesses
- Specifies the Auto Scaling processes to suspend during a stack update. Suspending processes prevents Auto Scaling from interfering with a stack update.- Returns:
this
-
waitOnResourceSignals
@Stability(Deprecated) @Deprecated public RollingUpdateConfiguration.Builder waitOnResourceSignals(Boolean waitOnResourceSignals) Deprecated.Sets the value ofRollingUpdateConfiguration.getWaitOnResourceSignals()
- Parameters:
waitOnResourceSignals
- 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.
- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RollingUpdateConfiguration>
- Returns:
- a new instance of
RollingUpdateConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-