Documentation ¶
Index ¶
- Variables
- type Cfn
- func (c *Cfn) CreateChangeSet(ctx context.Context, template string, params []types.Parameter, ...) (string, error)
- func (c *Cfn) DeleteStack(stackName string, roleArn string) (*cloudformation.DeleteStackOutput, error)
- func (c *Cfn) ExecuteChangeSet(ctx context.Context, stackName, changeSetName string) error
- func (c *Cfn) GetChangeSet(ctx context.Context, stackName, changeSetName string) (*cloudformation.DescribeChangeSetOutput, error)
- func (c *Cfn) GetStack(ctx context.Context, stackName string) (types.Stack, error)
- func (c *Cfn) GetStackResources(ctx context.Context, stackName string) ([]types.StackResource, error)
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 (*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
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
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
Click to show internal directories.
Click to hide internal directories.