Table of Contents

Class CfnWaitConditionHandle

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

A CloudFormation AWS::CloudFormation::WaitConditionHandle.

public class CfnWaitConditionHandle : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Inheritance
CfnWaitConditionHandle
Implements
IConstruct
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK;
             var cfnWaitConditionHandle = new CfnWaitConditionHandle(this, "MyCfnWaitConditionHandle");

Remarks

For Amazon EC2 and Auto Scaling resources, we recommend that you use a <code>CreationPolicy</code> attribute instead of wait conditions. Add a <code>CreationPolicy</code> attribute to those resources, and use the cfn-signal helper script to signal when an instance creation process has completed successfully.

For more information, see Deploying applications on Amazon EC2 with AWS CloudFormation .

The AWS::CloudFormation::WaitConditionHandle type has no properties. When you reference the WaitConditionHandle resource by using the Ref function, AWS CloudFormation returns a presigned URL. You pass this URL to applications or scripts that are running on your Amazon EC2 instances to send signals to that URL. An associated AWS::CloudFormation::WaitCondition resource checks the URL for the required number of success signals or for a failure signal.

Anytime you add a <code>WaitCondition</code> resource during a stack update or update a resource with a wait condition, you must associate the wait condition with a new <code>WaitConditionHandle</code> 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 for this resource.

CloudformationResource: AWS::CloudFormation::WaitConditionHandle

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitconditionhandle.html

ExampleMetadata: fixture=_generated

Constructors

CfnWaitConditionHandle(Construct, string)

Create a new AWS::CloudFormation::WaitConditionHandle.

public CfnWaitConditionHandle(Construct scope, string id)

Parameters

scope Construct
  • scope in which this resource is defined.
id string
  • scoped id of the resource.

Properties

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }

Property Value

string

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)

Parameters

inspector TreeInspector
  • tree inspector to collect and process attributes.