Class CfnWaitConditionHandle
For Amazon EC2 and Auto Scaling resources, we recommend that you use a
CreationPolicy
attribute instead of wait conditions.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFormation
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWaitConditionHandle : CfnResource, IInspectable
Syntax (vb)
Public Class CfnWaitConditionHandle
Inherits CfnResource
Implements IInspectable
Remarks
Add a CreationPolicy
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 WaitCondition
resource during a stack update or update a resource with a wait condition, you must associate the wait condition with a new WaitConditionHandle
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
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFormation;
var cfnWaitConditionHandle = new CfnWaitConditionHandle(this, "MyCfnWaitConditionHandle", new CfnWaitConditionHandleProps { });
Synopsis
Constructors
CfnWaitConditionHandle(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnWaitConditionHandle(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnWaitConditionHandle(Construct, String, ICfnWaitConditionHandleProps) |
Properties
AttrId | A unique identifier for the resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnWaitConditionHandle(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnWaitConditionHandle(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnWaitConditionHandle(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnWaitConditionHandle(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnWaitConditionHandle(Construct, String, ICfnWaitConditionHandleProps)
public CfnWaitConditionHandle(Construct scope, string id, ICfnWaitConditionHandleProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnWaitConditionHandleProps
Resource properties.
Properties
AttrId
A unique identifier for the resource.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>