Class CfnWaitConditionProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnWaitConditionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWaitConditionProps>
- Enclosing interface:
CfnWaitConditionProps
@Stability(Stable)
public static final class CfnWaitConditionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWaitConditionProps>
A builder for
CfnWaitConditionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWaitConditionProps.getCount()Sets the value ofCfnWaitConditionProps.getHandle()Sets the value ofCfnWaitConditionProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Sets the value ofCfnWaitConditionProps.getCount()- Parameters:
count- The number of success signals that CloudFormation must receive before it continues the stack creation process. When the wait condition receives the requisite number of success signals, CloudFormation resumes the creation of the stack. If the wait condition doesn't receive the specified number of success signals before the Timeout period expires, CloudFormation assumes that the wait condition has failed and rolls the stack back.Updates aren't supported.
- Returns:
this
-
handle
Sets the value ofCfnWaitConditionProps.getHandle()- Parameters:
handle- A reference to the wait condition handle used to signal this wait condition. Use theRefintrinsic function to specify an AWS::CloudFormation::WaitConditionHandle resource.Anytime you add a
WaitConditionresource during a stack update, you must associate the wait condition with a new WaitConditionHandle resource. Don't reuse an old wait condition handle that has already been defined in the template. If you reuse a wait condition handle, the wait condition might evaluate old signals from a previous create or update stack command.Updates aren't supported.
- Returns:
this
-
timeout
Sets the value ofCfnWaitConditionProps.getTimeout()- Parameters:
timeout- The length of time (in seconds) to wait for the number of signals that theCountproperty specifies.Timeoutis a minimum-bound property, meaning the timeout occurs no sooner than the time you specify, but can occur shortly thereafter. The maximum time that can be specified for this property is 12 hours (43200 seconds).Updates aren't supported.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWaitConditionProps>- Returns:
- a new instance of
CfnWaitConditionProps - Throws:
NullPointerException- if any required attribute was not provided
-