Package software.amazon.awscdk
Class CfnResourceAutoScalingCreationPolicy.Builder
java.lang.Object
software.amazon.awscdk.CfnResourceAutoScalingCreationPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceAutoScalingCreationPolicy>
- Enclosing interface:
CfnResourceAutoScalingCreationPolicy
@Stability(Stable)
public static final class CfnResourceAutoScalingCreationPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceAutoScalingCreationPolicy>
A builder for
CfnResourceAutoScalingCreationPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.minSuccessfulInstancesPercent
(Number minSuccessfulInstancesPercent) Sets the value ofCfnResourceAutoScalingCreationPolicy.getMinSuccessfulInstancesPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minSuccessfulInstancesPercent
@Stability(Stable) public CfnResourceAutoScalingCreationPolicy.Builder minSuccessfulInstancesPercent(Number minSuccessfulInstancesPercent) Sets the value ofCfnResourceAutoScalingCreationPolicy.getMinSuccessfulInstancesPercent()
- Parameters:
minSuccessfulInstancesPercent
- Specifies the percentage of instances in an Auto Scaling replacement update that must signal success for the update to succeed. You can specify a value from 0 to 100. AWS CloudFormation rounds to the nearest tenth of a percent. For example, if you update five instances with a minimum successful percentage of 50, three instances must signal success. If an instance doesn't send a signal within the time specified by the Timeout property, AWS CloudFormation assumes that the instance wasn't created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceAutoScalingCreationPolicy>
- Returns:
- a new instance of
CfnResourceAutoScalingCreationPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-