Documentation ¶
Overview ¶
Package cfngen generates CloudFormation from Go objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeResourceName ¶ added in v0.3.0
Types ¶
type Parameter ¶
type Parameter struct { Type string Default interface{} `json:",omitempty"` Description string `json:",omitempty"` AllowedValues []interface{} `json:",omitempty"` MinValue interface{} `json:",omitempty"` MaxValue interface{} `json:",omitempty"` }
Represents CF Parameter
type Sub ¶
type Sub struct {
Sub string `json:"Fn::Sub"`
}
Represents a simple CF Fn::Sub using template params
type Template ¶
type Template struct { AWSTemplateFormatVersion string Description string `json:",omitempty"` Parameters map[string]interface{} `json:",omitempty"` Resources map[string]interface{} `json:",omitempty"` Outputs map[string]interface{} `json:",omitempty"` }
Represents a CF template
func NewTemplate ¶
func NewTemplate(description string, parameters map[string]interface{}, resources map[string]interface{}, outputs map[string]interface{}) (t *Template)
Create a CF template , use WriteCloudFormation() to emit.
func (*Template) CloudFormation ¶ added in v1.0.0
Emit CF as JSON return []bytes
Directories ¶
Path | Synopsis |
---|---|
Package gluecf generates CloudFormation from Go objects to create AWS GlueTableMetadata objects.
|
Package gluecf generates CloudFormation from Go objects to create AWS GlueTableMetadata objects. |
Click to show internal directories.
Click to hide internal directories.