stack

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyChangeSet = "The submitted information didn't contain changes. Submit different information to create a change set."

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output map[string]string

type Stack

type Stack struct {
	Template
	CloudFormation *cloudformation.CloudFormation
	Outputs        Output
}

func NewStack

func NewStack(template Template) *Stack

func (*Stack) DryRun

func (st *Stack) DryRun() error

func (*Stack) GetOutputs

func (st *Stack) GetOutputs() error

func (*Stack) Run

func (st *Stack) Run() error

type Template

type Template interface {
	Build() *cfn.Template
	GetStackName() *string
	GetRegion() *string
	GetExportName(string) string
	GetParameters() []*cloudformation.Parameter
	GetDryRunOutputs() map[string]string
}

type TemplateComponent

type TemplateComponent struct {
	Params        []*cloudformation.Parameter
	Parameters    map[string]cfn.Parameter
	Resources     map[string]*cfn.Resource
	Outputs       map[string]cfn.Output
	DryRunOutputs map[string]string
}

func NewTemplate

func NewTemplate() TemplateComponent

func (*TemplateComponent) AddOutput

func (t *TemplateComponent) AddOutput(name string, output cfn.Output, dryRunValue string)

func (*TemplateComponent) AddParameter

func (t *TemplateComponent) AddParameter(name string, parameter cfn.Parameter, def string)

func (*TemplateComponent) AddResource

func (t *TemplateComponent) AddResource(name string, resource cfn.Resource)

func (*TemplateComponent) Build

func (t *TemplateComponent) Build() *cfn.Template

func (*TemplateComponent) GetDryRunOutputs added in v0.4.0

func (t *TemplateComponent) GetDryRunOutputs() map[string]string

func (*TemplateComponent) GetParameters

func (t *TemplateComponent) GetParameters() []*cloudformation.Parameter

Jump to

Keyboard shortcuts

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