Documentation ¶
Overview ¶
Package troposphere is a Go version of the Python package and provides Go primitives for building CloudFormation templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equals ¶
func Equals(thing, value interface{}) interface{}
Equals is a helper for the Fn::Equals function.
func GetAtt ¶
func GetAtt(ref, attr interface{}) interface{}
GetAtt provides a helper for the GetAtt function.
Types ¶
type NamedResource ¶
NamedResource bundles a resource to a name.
type Output ¶
type Output struct {
Value interface{} `json:"Value,omitempty"`
}
Output represents an CloudFormation output.
type Parameter ¶
type Parameter struct { Type interface{} `json:"Type,omitempty"` Description interface{} `json:"Description,omitempty"` Default interface{} `json:"Default,omitempty"` }
Parameter represents a CloudFormation parameter.
type Resource ¶
type Resource struct { Condition interface{} `json:"Condition,omitempty"` DependsOn interface{} `json:"DependsOn,omitempty"` Properties interface{} `json:"Properties,omitempty"` Type interface{} `json:"Type,omitempty"` Version interface{} `json:"Version,omitempty"` }
Resource represents a CloudFormation Resource.
type Template ¶
type Template struct { Conditions map[string]interface{} Outputs map[string]Output Parameters map[string]Parameter Resources map[string]Resource }
Template represents a CloudFormation template that can be built.
func (*Template) AddResource ¶
func (t *Template) AddResource(resource NamedResource)
AddResource adds a named resource to the template.
Click to show internal directories.
Click to hide internal directories.