cloudformation

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeResource

type ChangeResource struct {
	Name        string
	Type        string
	Action      string
	Replacement string
}

type Changes

type Changes struct {
	Status            string
	StatusReason      string
	Resources         []ChangeResource
	StackPolicyChange bool
	ForceStackUpdate  bool
}

type CloudFormation

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

func New

func NewWithoutValues

func NewWithoutValues(sess *session.Session) CloudFormation

func (CloudFormation) CreateNewStack

func (cf CloudFormation) CreateNewStack(opts *CreateStackOpts) error

func (CloudFormation) DeleteStack

func (cf CloudFormation) DeleteStack(opts *DeleteStackOpts) error

func (CloudFormation) GetStackChanges

func (cf CloudFormation) GetStackChanges(opts *GetStackChangesOpts) (*Changes, error)

func (CloudFormation) GetStackResourcePhysicalId

func (cf CloudFormation) GetStackResourcePhysicalId(stack string, resource string) (string, error)

func (*CloudFormation) ResolveParameterValue

func (cf *CloudFormation) ResolveParameterValue(stack string, parameter string) (string, error)

func (CloudFormation) SetStackPolicy

func (cf CloudFormation) SetStackPolicy(stackName string, stackPolicy string) error

func (CloudFormation) StackExists

func (cf CloudFormation) StackExists(stackName string) (bool, error)

func (CloudFormation) UpdateExistingStack

func (cf CloudFormation) UpdateExistingStack(opts *CreateStackOpts) error

func (CloudFormation) ValidateTemplate

func (cf CloudFormation) ValidateTemplate(templateUrl string) error

type CreateStackOpts

type CreateStackOpts struct {
	StackName    string
	TemplateUrl  string
	TemplateBody string
	Parameters   map[string]string
	Serverless   bool
	StackPolicy  string
	RoleArn      string
}

type DeleteStackOpts

type DeleteStackOpts struct {
	StackName string
	RoleArn   string
}

type GetStackChangesOpts

type GetStackChangesOpts struct {
	StackName     string
	TemplateUrl   string
	TemplateBody  string
	Parameters    map[string]string
	StackPolicy   string
	ChangeSetName string
	Type          string
	RoleArn       string
}

Jump to

Keyboard shortcuts

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