The heat.engine.stack_resource ModuleΒΆ

class heat.engine.stack_resource.StackResource(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource

An abstract Resource subclass that allows the management of an entire Stack as a resource in a parent stack.

check_create_complete(stack_creator)[source]
check_delete_complete(delete_task)[source]
check_resume_complete(resume_task)[source]
check_suspend_complete(suspend_task)[source]
check_update_complete(updater)[source]
child_params()[source]

Default implementation to get the child params.

Resources that inherit from StackResource should override this method with specific details about the parameters used by them.

child_template()[source]

Default implementation to get the child template.

Resources that inherit from StackResource should override this method with specific details about the template used by them.

create_with_template(child_template, user_params, timeout_mins=None, adopt_data=None)[source]

Handle the creation of the nested stack from a given JSON template.

delete_nested()[source]

Delete the nested stack.

get_abandon_data()[source]
get_output(op)[source]

Return the specified Output value from the nested stack.

If the output key does not exist, raise an InvalidTemplateAttribute exception.

handle_resume()[source]
handle_suspend()[source]
nested()[source]

Return a Stack object representing the nested (child) stack.

preview()[source]

Preview a StackResource as resources within a Stack.

This method overrides the original Resource.preview to return a preview of all the resources contained in this Stack. For this to be possible, the specific resources need to override both child_template and child_params with specific information to allow the stack to be parsed correctly. If any of these methods is missing, the entire StackResource will be returned as if it were a regular Resource.

requires_deferred_auth = True
set_deletion_policy(policy)[source]
update_with_template(child_template, user_params, timeout_mins=None)[source]

Update the nested stack with the new template.

Previous topic

The heat.engine.parameters Module

Next topic

The heat.engine.template Module

This Page