The heat.engine.cfn.template Module

class heat.engine.cfn.template.CfnTemplate(tmpl, template_id=None, files=None, env=None)[source]

Bases: heat.engine.cfn.template.CfnTemplateBase

CONDITIONS = 'Conditions'
HOT_TO_CFN_RES_ATTRS = {'deletion_policy': 'DeletionPolicy', 'depends_on': 'DependsOn', 'metadata': 'Metadata', 'condition': 'Condition', 'update_policy': 'UpdatePolicy', 'properties': 'Properties', 'type': 'Type'}
OUTPUT_CONDITION = 'Condition'
OUTPUT_KEYS = ('Description', 'Value', 'Condition')
RES_CONDITION = 'Condition'
SECTIONS = ('AWSTemplateFormatVersion', 'HeatTemplateFormatVersion', 'Description', 'Mappings', 'Parameters', 'Resources', 'Outputs', 'Conditions')
SECTIONS_NO_DIRECT_ACCESS = set(['HeatTemplateFormatVersion', 'AWSTemplateFormatVersion', 'Parameters', 'Conditions'])
condition_functions = {'Fn::Equals': <class 'heat.engine.cfn.functions.Equals'>, 'Fn::And': <class 'heat.engine.cfn.functions.And'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Fn::Or': <class 'heat.engine.cfn.functions.Or'>, 'Ref': <class 'heat.engine.cfn.functions.ParamRef'>, 'Fn::Not': <class 'heat.engine.cfn.functions.Not'>}
functions = {'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Fn::Replace': <class 'heat.engine.cfn.functions.Replace'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Fn::If': <class 'heat.engine.cfn.functions.If'>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Ref': <function Ref at 0x7f41a4d20c08>, 'Fn::ResourceFacade': <class 'heat.engine.cfn.functions.ResourceFacade'>, 'Fn::MemberListToMap': <class 'heat.engine.cfn.functions.MemberListToMap'>, 'Fn::Split': <class 'heat.engine.cfn.functions.Split'>, 'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>}
class heat.engine.cfn.template.CfnTemplateBase(template, template_id=None, files=None, env=None)[source]

Bases: heat.engine.template_common.CommonTemplate

The base implementation of cfn template.

ALTERNATE_VERSION = 'HeatTemplateFormatVersion'
DESCRIPTION = 'Description'
HOT_TO_CFN_RES_ATTRS = {'deletion_policy': 'DeletionPolicy', 'depends_on': 'DependsOn', 'metadata': 'Metadata', 'condition': 'Condition', 'update_policy': 'UpdatePolicy', 'properties': 'Properties', 'type': 'Type'}
MAPPINGS = 'Mappings'
OUTPUTS = 'Outputs'
OUTPUT_DESCRIPTION = 'Description'
OUTPUT_KEYS = ('Description', 'Value')
OUTPUT_VALUE = 'Value'
PARAMETERS = 'Parameters'
RESOURCES = 'Resources'
RES_DELETION_POLICY = 'DeletionPolicy'
RES_DEPENDS_ON = 'DependsOn'
RES_DESCRIPTION = 'Description'
RES_METADATA = 'Metadata'
RES_PROPERTIES = 'Properties'
RES_TYPE = 'Type'
RES_UPDATE_POLICY = 'UpdatePolicy'
SECTIONS = ('AWSTemplateFormatVersion', 'HeatTemplateFormatVersion', 'Description', 'Mappings', 'Parameters', 'Resources', 'Outputs')
SECTIONS_NO_DIRECT_ACCESS = set(['HeatTemplateFormatVersion', 'AWSTemplateFormatVersion', 'Parameters'])
VERSION = 'AWSTemplateFormatVersion'
add_resource(definition, name=None)[source]
deletion_policies = {'Retain': 'Retain', 'Delete': 'Delete', 'Snapshot': 'Snapshot'}
functions = {'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Ref': <function Ref at 0x7f41a4d20c08>}
get_section_name(section)[source]
param_schemata(param_defaults=None)[source]
parameters(stack_identifier, user_params, param_defaults=None)[source]
resource_definitions(stack)[source]
class heat.engine.cfn.template.HeatTemplate(template, template_id=None, files=None, env=None)[source]

Bases: heat.engine.cfn.template.CfnTemplateBase

functions = {'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Fn::Replace': <class 'heat.engine.cfn.functions.Replace'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Ref': <function Ref at 0x7f41a4d20c08>, 'Fn::ResourceFacade': <class 'heat.engine.cfn.functions.ResourceFacade'>, 'Fn::MemberListToMap': <class 'heat.engine.cfn.functions.MemberListToMap'>, 'Fn::Split': <class 'heat.engine.cfn.functions.Split'>, 'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>}

Previous topic

The heat.engine.cfn.functions Module

Next topic

The heat.engine.check_resource Module

Project Source

This Page