Documentation ¶
Overview ¶
Package cft provides the Template type that models a CloudFormation template.
The sub-packages of cft contain various tools for working with templates
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Tags = map[string]string{
"!And": "Fn::And",
"!Base64": "Fn::Base64",
"!Cidr": "Fn::Cidr",
"!Equals": "Fn::Equals",
"!FindInMap": "Fn::FindInMap",
"!GetAZs": "Fn::GetAZs",
"!GetAtt": "Fn::GetAtt",
"!If": "Fn::If",
"!ImportValue": "Fn::ImportValue",
"!Join": "Fn::Join",
"!Not": "Fn::Not",
"!Or": "Fn::Or",
"!Select": "Fn::Select",
"!Split": "Fn::Split",
"!Sub": "Fn::Sub",
"!Transform": "Fn::Transform",
"!Ref": "Ref",
"!Condition": "Condition",
}
Tags is a mapping from YAML short tags to full instrincic function names
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Path []interface{} Value string }
Comment represents a path to a node and a comment string to attach to it
type Template ¶
type Template struct {
yaml.Node
}
Template represents a CloudFormation template. The Template type is minimal for now but will likely grow new features as needed by rain.
func (Template) AddComments ¶
AddComments applies a set of comments to the template
Directories ¶
Path | Synopsis |
---|---|
Package build contains functionality to generate a cft.Template from specification data in cft.spec
|
Package build contains functionality to generate a cft.Template from specification data in cft.spec |
Package diff provides the Diff class that can be used to compare CloudFormation templates
|
Package diff provides the Diff class that can be used to compare CloudFormation templates |
Package format contains functionality to render a cft.Template into YAML or JSON
|
Package format contains functionality to render a cft.Template into YAML or JSON |
Package graph provides functionality to build a graph of connected nodes with a cfn.Template
|
Package graph provides functionality to build a graph of connected nodes with a cfn.Template |
Package parse provides functions for parsing CloudFormation templates from JSON and YAML inputs.
|
Package parse provides functions for parsing CloudFormation templates from JSON and YAML inputs. |
Package spec contains generated models for CloudFormation and IAM
|
Package spec contains generated models for CloudFormation and IAM |
Click to show internal directories.
Click to hide internal directories.