Skip to main content

Module template

Module template 

Source

Structs§

ParsedTemplate
A parsed CloudFormation template.
ResourceDefinition
A single resource from the template.
TemplateOutput
Resolved Outputs entry from the template’s top-level Outputs block. value is the post-resolution string; export_name is set when the output declares Export.Name.

Functions§

collect_import_value_names
Walk every Fn::ImportValue site in the parsed template (Resources + Outputs) and collect the static export names it references. Names that can only be resolved at runtime (e.g. { "Fn::Sub": "${Env}-arn" }) resolve against parameters first; if they still aren’t strings, they’re skipped — the runtime resolver will surface the gap then.
parse_outputs
Parse the template’s Outputs block into resolved entries. Each Value is fully resolved (Ref / GetAtt / Sub / Join / Fn::ImportValue) to a string. Imports use imports for cross-stack lookups.
parse_template
Parse a CloudFormation template from a string (JSON or YAML).
parse_template_with_physical_ids
Parse a CloudFormation template, resolving Refs using known physical resource IDs.
parse_template_with_resolution
Parse a CloudFormation template, resolving Ref via resource_physical_ids and Fn::GetAtt via resource_attributes (keyed by logical id, then attribute name).
resolve_resource_properties
Re-resolve a single resource definition’s properties with updated physical IDs.
resolve_resource_properties_with_attrs
Re-resolve a single resource definition’s properties with updated physical IDs and attribute values for Fn::GetAtt.