Package software.amazon.awscdk.core
Class CfnCreationPolicy.Builder
java.lang.Object
software.amazon.awscdk.core.CfnCreationPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCreationPolicy>
- Enclosing interface:
CfnCreationPolicy
@Stability(Stable)
public static final class CfnCreationPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCreationPolicy>
A builder for
CfnCreationPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingCreationPolicy
(CfnResourceAutoScalingCreationPolicy autoScalingCreationPolicy) Sets the value ofCfnCreationPolicy.getAutoScalingCreationPolicy()
build()
Builds the configured instance.resourceSignal
(CfnResourceSignal resourceSignal) Sets the value ofCfnCreationPolicy.getResourceSignal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingCreationPolicy
@Stability(Stable) public CfnCreationPolicy.Builder autoScalingCreationPolicy(CfnResourceAutoScalingCreationPolicy autoScalingCreationPolicy) Sets the value ofCfnCreationPolicy.getAutoScalingCreationPolicy()
- Parameters:
autoScalingCreationPolicy
- For an Auto Scaling group replacement update, specifies how many instances must signal success for the update to succeed.- Returns:
this
-
resourceSignal
@Stability(Stable) public CfnCreationPolicy.Builder resourceSignal(CfnResourceSignal resourceSignal) Sets the value ofCfnCreationPolicy.getResourceSignal()
- Parameters:
resourceSignal
- When AWS CloudFormation creates the associated resource, configures the number of required success signals and the length of time that AWS CloudFormation waits for those signals.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCreationPolicy>
- Returns:
- a new instance of
CfnCreationPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-