Documentation ¶
Index ¶
- func CreateChangeSet(api CFAPI, stackName *string, templateBody *string, ...) (changeSetId string, err error)
- func DeleteChangeset(api CFAPI, changeSetArn *string) error
- func Diff(prefix string, cmd string, b1, b2 []byte) ([]byte, error)
- func GetStackParameters(api CFAPI, stackName *string) ([]cfTypes.Parameter, error)
- func OverrideParameters(stackParameters []cfTypes.Parameter, inputParameters []cfTypes.Parameter) ([]cfTypes.Parameter, error)
- func ParameterListFromString(parametersString string) []cfTypes.Parameter
- func PrettyJson(i interface{}) string
- func TagListFromString(tagsString string) []cfTypes.Tag
- func WaitForChangeSet(api CFAPI, changeSetArn string, print func(string, ...interface{})) (out *cf.DescribeChangeSetOutput, err error)
- type API
- type APIClient
- type CFAPI
- type CFClient
- func (client CFClient) CreateChangeSet(params *cf.CreateChangeSetInput) (*cf.CreateChangeSetOutput, error)
- func (client CFClient) DeleteChangeSet(params *cf.DeleteChangeSetInput) (*cf.DeleteChangeSetOutput, error)
- func (client CFClient) DescribeChangeSet(params *cf.DescribeChangeSetInput) (*cf.DescribeChangeSetOutput, error)
- func (client CFClient) DescribeStacks(params *cf.DescribeStacksInput) (*cf.DescribeStacksOutput, error)
- func (client CFClient) GetTemplate(params *cf.GetTemplateInput) (*cf.GetTemplateOutput, error)
- type GiffChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChangeSet ¶
func DeleteChangeset ¶
func GetStackParameters ¶
func OverrideParameters ¶
func ParameterListFromString ¶
func PrettyJson ¶
func PrettyJson(i interface{}) string
func TagListFromString ¶
func WaitForChangeSet ¶
func WaitForChangeSet(api CFAPI, changeSetArn string, print func(string, ...interface{})) (out *cf.DescribeChangeSetOutput, err error)
no waiters in the aws-sdk-go-v2 for cloudformation yet https://github.com/aws/aws-sdk-go-v2/issues/1111
Types ¶
type CFAPI ¶
type CFAPI interface { CreateChangeSet(params *cf.CreateChangeSetInput) (*cf.CreateChangeSetOutput, error) DescribeChangeSet(params *cf.DescribeChangeSetInput) (*cf.DescribeChangeSetOutput, error) DescribeStacks(params *cf.DescribeStacksInput) (*cf.DescribeStacksOutput, error) DeleteChangeSet(params *cf.DeleteChangeSetInput) (*cf.DeleteChangeSetOutput, error) GetTemplate(params *cf.GetTemplateInput) (*cf.GetTemplateOutput, error) }
type CFClient ¶
func NewCFClient ¶
func (CFClient) CreateChangeSet ¶
func (client CFClient) CreateChangeSet(params *cf.CreateChangeSetInput) (*cf.CreateChangeSetOutput, error)
func (CFClient) DeleteChangeSet ¶
func (client CFClient) DeleteChangeSet(params *cf.DeleteChangeSetInput) (*cf.DeleteChangeSetOutput, error)
func (CFClient) DescribeChangeSet ¶
func (client CFClient) DescribeChangeSet(params *cf.DescribeChangeSetInput) (*cf.DescribeChangeSetOutput, error)
func (CFClient) DescribeStacks ¶
func (client CFClient) DescribeStacks(params *cf.DescribeStacksInput) (*cf.DescribeStacksOutput, error)
func (CFClient) GetTemplate ¶
func (client CFClient) GetTemplate(params *cf.GetTemplateInput) (*cf.GetTemplateOutput, error)
type GiffChange ¶
type GiffChange struct { Action cfTypes.ChangeAction LogicalResourceId *string PhysicalResourceId *string Replacement cfTypes.Replacement ResourceType *string Scope []cfTypes.ResourceAttribute }
func ExtractChanges ¶
func ExtractChanges(describeChangeSetOutput *cf.DescribeChangeSetOutput) ([]GiffChange, error)
Click to show internal directories.
Click to hide internal directories.