class CfnWaitConditionPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFormation.Mixins.CfnWaitConditionPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudformation/mixins#CfnWaitConditionPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.cloudformation.mixins.CfnWaitConditionPropsMixin |
Python | aws_cdk.mixins_preview.aws_cloudformation.mixins.CfnWaitConditionPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_cloudformation » mixins » CfnWaitConditionPropsMixin |
Implements
IMixin
Extends
Mixin
The 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 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 CloudFormation User Guide . > For Amazon EC2 and Amazon EC2 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as cloudformation_mixins } from '@aws-cdk/mixins-preview/aws-cloudformation';
const cfnWaitConditionPropsMixin = new cloudformation_mixins.CfnWaitConditionPropsMixin({
count: 123,
handle: 'handle',
timeout: 'timeout',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnWaitConditionPropsMixin(props: CfnWaitConditionMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Wait Condition Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::CloudFormation::WaitCondition.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript