heat.engine.cfn.template
Module¶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
= {'depends_on': 'DependsOn', 'deletion_policy': 'DeletionPolicy', 'update_policy': 'UpdatePolicy', 'type': 'Type', 'properties': 'Properties', 'condition': 'Condition', 'metadata': 'Metadata'}¶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(['AWSTemplateFormatVersion', 'HeatTemplateFormatVersion', 'Conditions', 'Parameters'])¶condition_functions
= {'Fn::Or': <class 'heat.engine.cfn.functions.Or'>, 'Fn::Not': <class 'heat.engine.cfn.functions.Not'>, 'Fn::Equals': <class 'heat.engine.cfn.functions.Equals'>, 'Fn::And': <class 'heat.engine.cfn.functions.And'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Ref': <class 'heat.engine.cfn.functions.ParamRef'>}¶functions
= {'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::If': <class 'heat.engine.cfn.functions.If'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>, 'Fn::MemberListToMap': <class 'heat.engine.cfn.functions.MemberListToMap'>, 'Fn::Replace': <class 'heat.engine.cfn.functions.Replace'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>, 'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Ref': <function Ref>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Fn::ResourceFacade': <class 'heat.engine.cfn.functions.ResourceFacade'>, 'Fn::Split': <class 'heat.engine.cfn.functions.Split'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>}¶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_OUTPUT_ATTRS
= {'description': 'Description', 'value': 'Value'}¶HOT_TO_CFN_RES_ATTRS
= {'depends_on': 'DependsOn', 'deletion_policy': 'DeletionPolicy', 'update_policy': 'UpdatePolicy', 'type': 'Type', 'properties': 'Properties', 'condition': 'Condition', 'metadata': 'Metadata'}¶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(['AWSTemplateFormatVersion', 'HeatTemplateFormatVersion', 'Parameters'])¶VERSION
= 'AWSTemplateFormatVersion'¶deletion_policies
= {'Retain': 'Retain', 'Snapshot': 'Snapshot', 'Delete': 'Delete'}¶functions
= {'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>, 'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Ref': <function Ref>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>}¶heat.engine.cfn.template.
HeatTemplate
(template, template_id=None, files=None, env=None)[source]¶Bases: heat.engine.cfn.template.CfnTemplateBase
functions
= {'Fn::Select': <class 'heat.engine.cfn.functions.Select'>, 'Fn::Base64': <class 'heat.engine.cfn.functions.Base64'>, 'Fn::MemberListToMap': <class 'heat.engine.cfn.functions.MemberListToMap'>, 'Fn::Replace': <class 'heat.engine.cfn.functions.Replace'>, 'Fn::GetAtt': <class 'heat.engine.cfn.functions.GetAtt'>, 'Fn::Join': <class 'heat.engine.cfn.functions.Join'>, 'Ref': <function Ref>, 'Fn::GetAZs': <class 'heat.engine.cfn.functions.GetAZs'>, 'Fn::ResourceFacade': <class 'heat.engine.cfn.functions.ResourceFacade'>, 'Fn::Split': <class 'heat.engine.cfn.functions.Split'>, 'Fn::FindInMap': <class 'heat.engine.cfn.functions.FindInMap'>}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.