troposphere

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2017 License: BSD-2-Clause Imports: 1 Imported by: 6

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.

func Join

func Join(delimiter string, things ...interface{}) interface{}

Join is a helper for the Fn::Join function.

func Ref

func Ref(ref interface{}) interface{}

Ref provides a helper for the Ref function.

Types

type NamedResource

type NamedResource struct {
	Name     string
	Resource Resource
}

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 NewTemplate

func NewTemplate() *Template

NewTemplate returns an initialized Template.

func (*Template) AddResource

func (t *Template) AddResource(resource NamedResource)

AddResource adds a named resource to the template.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL