Versions in this module Expand all Collapse all v0 v0.15.1 Jan 24, 2026 Changes in this version + func NewMockClientFactoryForRegion(region string) (*MockClientFactory, *MockCloudFormationOperations) + type ChangeSetInfo struct + ChangeSetID string + Changes []ResourceChange + Status string + type ClientFactory interface + GetBaseConfig func() aws.Config + GetCloudFormationOperations func(ctx context.Context, region string) (CloudFormationOperations, error) + ValidateRegion func(region string) error + func NewClientFactory(ctx context.Context) (ClientFactory, error) + type CloudFormationClient interface + CreateChangeSet func(ctx context.Context, params *cloudformation.CreateChangeSetInput, ...) (*cloudformation.CreateChangeSetOutput, error) + CreateStack func(ctx context.Context, params *cloudformation.CreateStackInput, ...) (*cloudformation.CreateStackOutput, error) + DeleteChangeSet func(ctx context.Context, params *cloudformation.DeleteChangeSetInput, ...) (*cloudformation.DeleteChangeSetOutput, error) + DeleteStack func(ctx context.Context, params *cloudformation.DeleteStackInput, ...) (*cloudformation.DeleteStackOutput, error) + DescribeChangeSet func(ctx context.Context, params *cloudformation.DescribeChangeSetInput, ...) (*cloudformation.DescribeChangeSetOutput, error) + DescribeStackEvents func(ctx context.Context, params *cloudformation.DescribeStackEventsInput, ...) (*cloudformation.DescribeStackEventsOutput, error) + DescribeStacks func(ctx context.Context, params *cloudformation.DescribeStacksInput, ...) (*cloudformation.DescribeStacksOutput, error) + ExecuteChangeSet func(ctx context.Context, params *cloudformation.ExecuteChangeSetInput, ...) (*cloudformation.ExecuteChangeSetOutput, error) + GetTemplate func(ctx context.Context, params *cloudformation.GetTemplateInput, ...) (*cloudformation.GetTemplateOutput, error) + ListStacks func(ctx context.Context, params *cloudformation.ListStacksInput, ...) (*cloudformation.ListStacksOutput, error) + UpdateStack func(ctx context.Context, params *cloudformation.UpdateStackInput, ...) (*cloudformation.UpdateStackOutput, error) + ValidateTemplate func(ctx context.Context, params *cloudformation.ValidateTemplateInput, ...) (*cloudformation.ValidateTemplateOutput, error) + type CloudFormationOperations interface + CreateChangeSetForDeployment func(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + CreateChangeSetPreview func(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + DeleteChangeSet func(ctx context.Context, changeSetID string) error + DeleteStack func(ctx context.Context, input DeleteStackInput) error + DeployStack func(ctx context.Context, input DeployStackInput) error + DeployStackWithCallback func(ctx context.Context, input DeployStackInput, eventCallback func(StackEvent)) error + DescribeStack func(ctx context.Context, stackName string) (*StackInfo, error) + DescribeStackEvents func(ctx context.Context, stackName string) ([]StackEvent, error) + ExecuteChangeSet func(ctx context.Context, changeSetID string) error + GetStack func(ctx context.Context, stackName string) (*Stack, error) + GetTemplate func(ctx context.Context, stackName string) (string, error) + ListStacks func(ctx context.Context) ([]*Stack, error) + StackExists func(ctx context.Context, stackName string) (bool, error) + UpdateStack func(ctx context.Context, input UpdateStackInput) error + ValidateTemplate func(ctx context.Context, templateBody string) error + WaitForStackOperation func(ctx context.Context, stackName string, startTime time.Time, ...) error + type DefaultClientFactory struct + func (f *DefaultClientFactory) GetBaseConfig() aws.Config + func (f *DefaultClientFactory) GetCloudFormationOperations(ctx context.Context, region string) (CloudFormationOperations, error) + func (f *DefaultClientFactory) ValidateRegion(region string) error + type DefaultCloudFormationOperations struct + func NewCloudFormationOperationsWithClient(client CloudFormationClient) *DefaultCloudFormationOperations + func (cf *DefaultCloudFormationOperations) CreateChangeSetForDeployment(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + func (cf *DefaultCloudFormationOperations) CreateChangeSetPreview(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + func (cf *DefaultCloudFormationOperations) DeleteChangeSet(ctx context.Context, changeSetID string) error + func (cf *DefaultCloudFormationOperations) DeleteStack(ctx context.Context, input DeleteStackInput) error + func (cf *DefaultCloudFormationOperations) DeployStack(ctx context.Context, input DeployStackInput) error + func (cf *DefaultCloudFormationOperations) DeployStackWithCallback(ctx context.Context, input DeployStackInput, eventCallback func(StackEvent)) error + func (cf *DefaultCloudFormationOperations) DescribeStack(ctx context.Context, stackName string) (*StackInfo, error) + func (cf *DefaultCloudFormationOperations) DescribeStackEvents(ctx context.Context, stackName string) ([]StackEvent, error) + func (cf *DefaultCloudFormationOperations) ExecuteChangeSet(ctx context.Context, changeSetID string) error + func (cf *DefaultCloudFormationOperations) GetStack(ctx context.Context, stackName string) (*Stack, error) + func (cf *DefaultCloudFormationOperations) GetTemplate(ctx context.Context, stackName string) (string, error) + func (cf *DefaultCloudFormationOperations) ListStacks(ctx context.Context) ([]*Stack, error) + func (cf *DefaultCloudFormationOperations) StackExists(ctx context.Context, stackName string) (bool, error) + func (cf *DefaultCloudFormationOperations) UpdateStack(ctx context.Context, input UpdateStackInput) error + func (cf *DefaultCloudFormationOperations) ValidateTemplate(ctx context.Context, templateBody string) error + func (cf *DefaultCloudFormationOperations) WaitForStackOperation(ctx context.Context, stackName string, startTime time.Time, ...) error + type DeleteStackInput struct + StackName string + type DeployStackInput struct + Capabilities []string + Parameters []Parameter + StackName string + Tags map[string]string + TemplateBody string + type MockClientFactory struct + func NewMockClientFactory() *MockClientFactory + func NewMockClientFactoryWithOperations(region string, ops CloudFormationOperations) *MockClientFactory + func SetupMockFactoryForMultiRegion(regions map[string]CloudFormationOperations) *MockClientFactory + func (m *MockClientFactory) GetBaseConfig() aws.Config + func (m *MockClientFactory) GetCloudFormationOperations(ctx context.Context, region string) (CloudFormationOperations, error) + func (m *MockClientFactory) SetOperations(region string, ops CloudFormationOperations) + func (m *MockClientFactory) ValidateRegion(region string) error + type MockCloudFormationClient struct + func (m *MockCloudFormationClient) CreateChangeSet(ctx context.Context, params *cloudformation.CreateChangeSetInput, ...) (*cloudformation.CreateChangeSetOutput, error) + func (m *MockCloudFormationClient) CreateStack(ctx context.Context, params *cloudformation.CreateStackInput, ...) (*cloudformation.CreateStackOutput, error) + func (m *MockCloudFormationClient) DeleteChangeSet(ctx context.Context, params *cloudformation.DeleteChangeSetInput, ...) (*cloudformation.DeleteChangeSetOutput, error) + func (m *MockCloudFormationClient) DeleteStack(ctx context.Context, params *cloudformation.DeleteStackInput, ...) (*cloudformation.DeleteStackOutput, error) + func (m *MockCloudFormationClient) DescribeChangeSet(ctx context.Context, params *cloudformation.DescribeChangeSetInput, ...) (*cloudformation.DescribeChangeSetOutput, error) + func (m *MockCloudFormationClient) DescribeStackEvents(ctx context.Context, params *cloudformation.DescribeStackEventsInput, ...) (*cloudformation.DescribeStackEventsOutput, error) + func (m *MockCloudFormationClient) DescribeStacks(ctx context.Context, params *cloudformation.DescribeStacksInput, ...) (*cloudformation.DescribeStacksOutput, error) + func (m *MockCloudFormationClient) ExecuteChangeSet(ctx context.Context, params *cloudformation.ExecuteChangeSetInput, ...) (*cloudformation.ExecuteChangeSetOutput, error) + func (m *MockCloudFormationClient) GetTemplate(ctx context.Context, params *cloudformation.GetTemplateInput, ...) (*cloudformation.GetTemplateOutput, error) + func (m *MockCloudFormationClient) ListStacks(ctx context.Context, params *cloudformation.ListStacksInput, ...) (*cloudformation.ListStacksOutput, error) + func (m *MockCloudFormationClient) UpdateStack(ctx context.Context, params *cloudformation.UpdateStackInput, ...) (*cloudformation.UpdateStackOutput, error) + func (m *MockCloudFormationClient) ValidateTemplate(ctx context.Context, params *cloudformation.ValidateTemplateInput, ...) (*cloudformation.ValidateTemplateOutput, error) + type MockCloudFormationOperations struct + func (m *MockCloudFormationOperations) CreateChangeSetForDeployment(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + func (m *MockCloudFormationOperations) CreateChangeSetPreview(ctx context.Context, stackName string, template string, ...) (*ChangeSetInfo, error) + func (m *MockCloudFormationOperations) DeleteChangeSet(ctx context.Context, changeSetID string) error + func (m *MockCloudFormationOperations) DeleteStack(ctx context.Context, input DeleteStackInput) error + func (m *MockCloudFormationOperations) DeployStack(ctx context.Context, input DeployStackInput) error + func (m *MockCloudFormationOperations) DeployStackWithCallback(ctx context.Context, input DeployStackInput, eventCallback func(StackEvent)) error + func (m *MockCloudFormationOperations) DescribeStack(ctx context.Context, stackName string) (*StackInfo, error) + func (m *MockCloudFormationOperations) DescribeStackEvents(ctx context.Context, stackName string) ([]StackEvent, error) + func (m *MockCloudFormationOperations) ExecuteChangeSet(ctx context.Context, changeSetID string) error + func (m *MockCloudFormationOperations) GetStack(ctx context.Context, stackName string) (*Stack, error) + func (m *MockCloudFormationOperations) GetTemplate(ctx context.Context, stackName string) (string, error) + func (m *MockCloudFormationOperations) ListStacks(ctx context.Context) ([]*Stack, error) + func (m *MockCloudFormationOperations) StackExists(ctx context.Context, stackName string) (bool, error) + func (m *MockCloudFormationOperations) UpdateStack(ctx context.Context, input UpdateStackInput) error + func (m *MockCloudFormationOperations) ValidateTemplate(ctx context.Context, templateBody string) error + func (m *MockCloudFormationOperations) WaitForStackOperation(ctx context.Context, stackName string, startTime time.Time, ...) error + type NoChangesError struct + StackName string + func (e NoChangesError) Error() string + type Parameter struct + Key string + Value string + type ResourceChange struct + Action string + Details []string + LogicalID string + PhysicalID string + Replacement string + ResourceType string + type Stack struct + CreatedTime *time.Time + Description string + Name string + Outputs map[string]string + Parameters map[string]string + Status StackStatus + Tags map[string]string + UpdatedTime *time.Time + type StackEvent struct + EventId string + LogicalResourceId string + PhysicalResourceId string + ResourceStatus string + ResourceStatusReason string + ResourceType string + StackName string + Timestamp time.Time + type StackInfo struct + CreatedTime *time.Time + Description string + Name string + Outputs map[string]string + Parameters map[string]string + Status StackStatus + Tags map[string]string + Template string + UpdatedTime *time.Time + type StackStatus string + const StackStatusCreateComplete + const StackStatusCreateFailed + const StackStatusCreateInProgress + const StackStatusDeleteComplete + const StackStatusDeleteFailed + const StackStatusDeleteInProgress + const StackStatusImportComplete + const StackStatusImportInProgress + const StackStatusImportRollbackComplete + const StackStatusImportRollbackFailed + const StackStatusImportRollbackInProgress + const StackStatusReviewInProgress + const StackStatusRollbackComplete + const StackStatusRollbackFailed + const StackStatusRollbackInProgress + const StackStatusUpdateComplete + const StackStatusUpdateFailed + const StackStatusUpdateInProgress + const StackStatusUpdateRollbackComplete + const StackStatusUpdateRollbackFailed + const StackStatusUpdateRollbackInProgress + type UpdateStackInput struct + Capabilities []string + Parameters []Parameter + StackName string + Tags map[string]string + TemplateBody string