Package software.amazon.awscdk
Class CfnResourceSignal.Builder
java.lang.Object
software.amazon.awscdk.CfnResourceSignal.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceSignal>
- Enclosing interface:
CfnResourceSignal
@Stability(Stable)
public static final class CfnResourceSignal.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceSignal>
A builder for
CfnResourceSignal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResourceSignal.getCount()
Sets the value ofCfnResourceSignal.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Sets the value ofCfnResourceSignal.getCount()
- Parameters:
count
- The number of success signals AWS CloudFormation must receive before it sets the resource status as CREATE_COMPLETE. If the resource receives a failure signal or doesn't receive the specified number of signals before the timeout period expires, the resource creation fails and AWS CloudFormation rolls the stack back.- Returns:
this
-
timeout
Sets the value ofCfnResourceSignal.getTimeout()
- Parameters:
timeout
- The length of time that AWS CloudFormation waits for the number of signals that was specified in the Count property. The timeout period starts after AWS CloudFormation starts creating the resource, and the timeout expires no sooner than the time you specify but can occur shortly thereafter. The maximum time that you can specify is 12 hours.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceSignal>
- Returns:
- a new instance of
CfnResourceSignal
- Throws:
NullPointerException
- if any required attribute was not provided
-