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.

StackResource.check_check_complete(check_task)[source]
StackResource.check_create_complete(stack_creator)[source]
StackResource.check_delete_complete(delete_task)[source]
StackResource.check_resume_complete(resume_task)[source]
StackResource.check_suspend_complete(suspend_task)[source]
StackResource.check_update_complete(updater)[source]
StackResource.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.

StackResource.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.

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

Create the nested stack with the given template.

StackResource.delete_nested()[source]

Delete the nested stack.

StackResource.get_output(op)[source]

Return the specified Output value from the nested stack.

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

StackResource.handle_check()[source]
StackResource.handle_resume()[source]
StackResource.handle_suspend()[source]
StackResource.implementation_signature()[source]
StackResource.nested()[source]

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

StackResource.prepare_abandon()[source]
StackResource.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.

StackResource.requires_deferred_auth = True
StackResource.update_with_template(child_template, user_params, timeout_mins=None)[source]

Update the nested stack with the new template.

Previous topic

The heat.engine.properties Module

Next topic

The heat.engine.stack_user Module

This Page