A descriptor for accessing the metadata of a resource while ensuring the most up-to-date data is always obtained from the database.
Bases: object
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/ intrinsic-function-reference-base64.html
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/ intrinsic-function-reference-getatt.html
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/ intrinsic-function-reference-ref.html
Create the resource. Subclasses should provide a handle_create() method to customise creation.
Delete the resource. Subclasses should provide a handle_delete() method to customise deletion.
Delete the resource and remove it from the database.
Check to see if this resource is either mapped to resource_type or is a “resource_type”.
Return an identifier for this resource.
No-op for resources which don’t explicitly override this method
Return the parsed template data for the resource. May be limited to only one section of the data, in which case a default value may also be supplied.
Returns a list of names of resources which directly require this resource as a dependency.
Parameters: |
|
---|---|
Returns: | A template where the resource’s properties_schema is mapped as parameters, and the resource’s attributes_schema is mapped as outputs |
Resume the resource. Subclasses should provide a handle_resume() method to implement resume
signal the resource. Subclasses should provide a handle_signal() method to implement the signal, the base-class raise an exception if no handler is implemented.
Returns state, tuple of action, status.
Reset state to (INIT, COMPLETE)
Suspend the resource. Subclasses should provide a handle_suspend() method to implement suspend
update the resource. Subclasses should provide a handle_update() method to customise update, the base-class handle_update will fail by default.
Returns the difference between the before and after json snippets. If something has been removed in after which exists in before we set it to None. If any keys have changed which are not in update_allowed_keys, raises UpdateReplace if the differing keys are not in update_allowed_keys
Returns the changed Properties between the before and after json snippets. If a property has been removed in after which exists in before we set it to None. If any properties have changed which are not in update_allowed_properties, raises UpdateReplace if the modified properties are not in the update_allowed_properties
Bases: exceptions.Exception
Raised when resource update requires replacement
Return the Resource class for a given resource type.
Return an iterator over the list of valid resource types.