Class CfnWaitCondition
- All Implemented Interfaces:
 IInspectable,IWaitConditionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::CloudFormation::WaitCondition resource provides a way to coordinate stack resource creation with configuration actions that are external to the stack creation or to track the status of a configuration process.
 
 In these situations, we recommend that you associate a CreationPolicy attribute with the wait condition instead of using a wait condition handle. For more information and an example, see CreationPolicy attribute in the AWS CloudFormation User Guide . If you use a CreationPolicy with a wait condition, don't specify any of the wait condition's properties.
 
If you use AWS PrivateLink , resources in the VPC that respond to wait conditions must have access to CloudFormation , specific Amazon S3 buckets. Resources must send wait condition responses to a presigned Amazon S3 URL. If they can't send responses to Amazon S3 , CloudFormation won't receive a response and the stack operation fails. For more information, see Access CloudFormation using an interface endpoint ( AWS PrivateLink ) in the AWS CloudFormation User Guide . > For Amazon EC2 and Auto Scaling resources, we recommend that you use a
CreationPolicyattribute instead of wait conditions. Add aCreationPolicyattribute to those resources, and use thecfn-signalhelper script to signal when an instance creation process has completed successfully.
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 CfnWaitCondition cfnWaitCondition = CfnWaitCondition.Builder.create(this, "MyCfnWaitCondition")
         .count(123)
         .handle("handle")
         .timeout("timeout")
         .build();
 
 - See Also:
 
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IWaitConditionRef
IWaitConditionRef.Jsii$Default, IWaitConditionRef.Jsii$Proxy - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWaitCondition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWaitCondition(software.amazon.jsii.JsiiObjectRef objRef) CfnWaitCondition(software.constructs.Construct scope, String id) CfnWaitCondition(software.constructs.Construct scope, String id, CfnWaitConditionProps props)  - 
Method Summary
Modifier and TypeMethodDescriptionReturns a unique identifier for the resource.getCount()The number of success signals that CloudFormation must receive before it continues the stack creation process.A reference to the wait condition handle used to signal this wait condition.The length of time (in seconds) to wait for the number of signals that theCountproperty specifies.A reference to a WaitCondition resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe number of success signals that CloudFormation must receive before it continues the stack creation process.voidA reference to the wait condition handle used to signal this wait condition.voidsetTimeout(String value) The length of time (in seconds) to wait for the number of signals that theCountproperty specifies.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Field Details
- 
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class. 
 - 
 - 
Constructor Details
- 
CfnWaitCondition
protected CfnWaitCondition(software.amazon.jsii.JsiiObjectRef objRef)  - 
CfnWaitCondition
protected CfnWaitCondition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  - 
CfnWaitCondition
@Stability(Stable) public CfnWaitCondition(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnWaitConditionProps props) - Parameters:
 scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
 - 
CfnWaitCondition
@Stability(Stable) public CfnWaitCondition(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
 scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
 
 - 
 - 
Method Details
- 
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
 inspectin interfaceIInspectable- Parameters:
 inspector- tree inspector to collect and process attributes. This parameter is required.
 - 
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
 renderPropertiesin classCfnResource- Parameters:
 props- This parameter is required.
 - 
getAttrData
 - 
getAttrId
Returns a unique identifier for the resource. - 
getCfnProperties
- Overrides:
 getCfnPropertiesin classCfnResource
 - 
getWaitConditionRef
A reference to a WaitCondition resource.- Specified by:
 getWaitConditionRefin interfaceIWaitConditionRef
 - 
getCount
The number of success signals that CloudFormation must receive before it continues the stack creation process. - 
setCount
The number of success signals that CloudFormation must receive before it continues the stack creation process. - 
getHandle
A reference to the wait condition handle used to signal this wait condition. - 
setHandle
A reference to the wait condition handle used to signal this wait condition. - 
getTimeout
The length of time (in seconds) to wait for the number of signals that theCountproperty specifies. - 
setTimeout
The length of time (in seconds) to wait for the number of signals that theCountproperty specifies. 
 -