awscf

package
v0.0.0-...-ba1e7d2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const StatusFailed = "failed"
View Source
const StatusInProgress = "in progress"
View Source
const StatusSucceeded = "succeeded"

Variables

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

Functions

func BuilCloudFormationParameters

func BuilCloudFormationParameters(tags map[string]string) []*cloudformation.Parameter

func BuilCloudFormationTags

func BuilCloudFormationTags(tags map[string]string) []*cloudformation.Tag

Types

type CloudFormationStack

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

func NewCloudFormationStack

func NewCloudFormationStack(
	cfsvc *cloudformation.CloudFormation,
	logger lager.Logger,
) *CloudFormationStack

func (*CloudFormationStack) Create

func (s *CloudFormationStack) Create(stackName string, stackDetails StackDetails) error

func (*CloudFormationStack) Delete

func (s *CloudFormationStack) Delete(stackName string) error

func (*CloudFormationStack) Describe

func (s *CloudFormationStack) Describe(stackName string) (StackDetails, error)

func (*CloudFormationStack) Modify

func (s *CloudFormationStack) Modify(stackName string, stackDetails StackDetails) error

type Stack

type Stack interface {
	Describe(stackName string) (StackDetails, error)
	Create(stackName string, stackDetails StackDetails) error
	Modify(stackName string, stackDetails StackDetails) error
	Delete(stackName string) error
}

type StackDetails

type StackDetails struct {
	StackName        string
	Capabilities     []string
	DisableRollback  bool
	Description      string
	NotificationARNs []string
	OnFailure        string
	Outputs          map[string]string
	Parameters       map[string]string
	ResourceTypes    []string
	StackID          string
	StackPolicyURL   string
	StackStatus      string
	Tags             map[string]string
	TemplateURL      string
	TimeoutInMinutes int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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