cfn

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStackNotExist = errors.New("stack does not exist")

Functions

This section is empty.

Types

type Cfn added in v0.2.0

type Cfn struct {
	// contains filtered or unexported fields
}

func New added in v0.2.0

func New(cfg aws.Config) *Cfn

func (*Cfn) CreateChangeSet added in v0.2.0

func (c *Cfn) CreateChangeSet(ctx context.Context, template string, params []types.Parameter, tags map[string]string, stackName string, roleArn string) (string, error)

CreateChangeSet creates a changeset template can be either a URL or a template body

func (*Cfn) DeleteStack added in v0.4.0

func (c *Cfn) DeleteStack(stackName string, roleArn string) (*cloudformation.DeleteStackOutput, error)

DeleteStack deletes a stack

func (*Cfn) ExecuteChangeSet added in v0.2.0

func (c *Cfn) ExecuteChangeSet(ctx context.Context, stackName, changeSetName string) error

ExecuteChangeSet executes the named changeset

func (*Cfn) GetChangeSet added in v0.2.0

func (c *Cfn) GetChangeSet(ctx context.Context, stackName, changeSetName string) (*cloudformation.DescribeChangeSetOutput, error)

GetChangeSet returns the named changeset

func (*Cfn) GetStack added in v0.2.0

func (c *Cfn) GetStack(ctx context.Context, stackName string) (types.Stack, error)

GetStack returns a cloudformation.Stack representing the named stack

func (*Cfn) GetStackResources added in v0.2.0

func (c *Cfn) GetStackResources(ctx context.Context, stackName string) ([]types.StackResource, error)

GetStackResources returns a list of the resources in the named stack

Jump to

Keyboard shortcuts

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