CfnWaitConditionPropsMixin
- class aws_cdk.mixins_preview.aws_cloudformation.mixins.CfnWaitConditionPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::CloudFormation::WaitConditionresource 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
CreationPolicyattribute 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 aCreationPolicywith a wait condition, don’t specify any of the wait condition’s properties. .. epigraph: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 ) <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/vpc-interface-endpoints.html>`_ in the *CloudFormation User Guide* . > For Amazon EC2 and Amazon EC2 Auto Scaling resources, we recommend that you use a ``CreationPolicy`` attribute instead of wait conditions. Add a ``CreationPolicy`` attribute to those resources, and use the ``cfn-signal`` helper script to signal when an instance creation process has completed successfully.
- See:
- CloudformationResource:
AWS::CloudFormation::WaitCondition
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_cloudformation import mixins as cloudformation_mixins cfn_wait_condition_props_mixin = cloudformation_mixins.CfnWaitConditionPropsMixin(cloudformation_mixins.CfnWaitConditionMixinProps( count=123, handle="handle", timeout="timeout" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CloudFormation::WaitCondition.- Parameters:
props (
Union[CfnWaitConditionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['count', 'handle', 'timeout']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental