heat.engine.resources.wait_condition module¶
- class heat.engine.resources.wait_condition.BaseCfnWaitConditionHandle(name, definition, stack)[source]¶
Bases:
BaseWaitConditionHandleWaitConditionHandle with the CFN signal metadata format.
Handles receive signals in the CloudFormation WaitConditionHandle format:
{ "Status" : "Status (must be SUCCESS or FAILURE)", "UniqueId" : "Some ID, should be unique for Count>1", "Data" : "Arbitrary Data", "Reason" : "Reason String" }
and expose an EC2-signed URL as the physical reference, which is the URL posted-to by cfn-signal.
- DATA = 'Data'¶
- METADATA_KEYS = ('Data', 'Reason', 'Status', 'UniqueId')¶
- REASON = 'Reason'¶
- STATUS = 'Status'¶
- UNIQUE_ID = 'UniqueId'¶
- class heat.engine.resources.wait_condition.BaseWaitConditionHandle(name, definition, stack)[source]¶
Bases:
SignalResponderBase WaitConditionHandle resource.
The main point of this class is to : - have no dependencies (so the instance can reference it) - create credentials to allow for signalling from the instance. - handle signals from the instance, validate and store result
- STATUS_FAILURE = 'FAILURE'¶
- STATUS_SUCCESS = 'SUCCESS'¶
- WAIT_STATUSES = ('FAILURE', 'SUCCESS')¶
- properties_schema = {}¶