Documentation
¶
Overview ¶
Package format provides functions for formatting CloudFormation templates using an opinionated, idiomatic format as used in AWS documentation.
For each function, CloudFormation templates should be represented using a map[string]interface{} as output by other libraries that parse JSON/YAML such as github.com/awslabs/goformation and encoding/json.
Comments can be passed along with the template data in the following format:
map[interface{}]interface{}{
"": "This is a top-level comment",
"Resources": map[interface{}]interface{}{
"": "This is a comment on the whole `Resources` property",
"MyBucket": map[interface{}]interface{}{
"Properties": map[interface{}]interface{}{
"BucketName": "This is a comment on BucketName",
},
},
},
}
Empty string keys are taken to represent a comment on the overall node that the comment is attached to. Numeric keys can be used to reference elements of arrays in the source data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.