Documentation ¶
Overview ¶
Package awsapi contains interface with all functions which use AWS CloudFormation API.
Index ¶
- type AWSCloudFormationAPI
- func (cf *AWSCloudFormationAPI) CreateChangeSet(input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
- func (cf *AWSCloudFormationAPI) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
- func (cf *AWSCloudFormationAPI) DeleteChangeSet(input *cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error)
- func (cf *AWSCloudFormationAPI) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (cf *AWSCloudFormationAPI) DescribeChangeSet(input *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)
- func (cf *AWSCloudFormationAPI) EstimateTemplateCost(input *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error)
- func (cf *AWSCloudFormationAPI) SetStackPolicy(input *cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error)
- func (cf *AWSCloudFormationAPI) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
- func (cf *AWSCloudFormationAPI) UpdateTerminationProtection(input *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)
- func (cf *AWSCloudFormationAPI) ValidateTemplate(input *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error)
- func (cf *AWSCloudFormationAPI) WaitUntilChangeSetCreateComplete(input *cloudformation.DescribeChangeSetInput) error
- type CloudFormationAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSCloudFormationAPI ¶
type AWSCloudFormationAPI struct {
// contains filtered or unexported fields
}
AWSCloudFormationAPI implements CLoudFormationAPI.
func (*AWSCloudFormationAPI) CreateChangeSet ¶
func (cf *AWSCloudFormationAPI) CreateChangeSet(input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
CreateChangeSet creates ChangeSet.
func (*AWSCloudFormationAPI) CreateStack ¶
func (cf *AWSCloudFormationAPI) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
CreateStack creates stack based on user template.
func (*AWSCloudFormationAPI) DeleteChangeSet ¶
func (cf *AWSCloudFormationAPI) DeleteChangeSet(input *cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error)
DeleteChangeSet removes ChangeSet.
func (*AWSCloudFormationAPI) DeleteStack ¶
func (cf *AWSCloudFormationAPI) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
DeleteStack destroys template based on stack name.
func (*AWSCloudFormationAPI) DescribeChangeSet ¶
func (cf *AWSCloudFormationAPI) DescribeChangeSet(input *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)
DescribeChangeSet returns the inputs and a list of changes.
func (*AWSCloudFormationAPI) EstimateTemplateCost ¶
func (cf *AWSCloudFormationAPI) EstimateTemplateCost(input *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error)
EstimateTemplateCost shows stack cost.
func (*AWSCloudFormationAPI) SetStackPolicy ¶
func (cf *AWSCloudFormationAPI) SetStackPolicy(input *cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error)
SetStackPolicy sets policy based on template or flag.
func (*AWSCloudFormationAPI) UpdateStack ¶
func (cf *AWSCloudFormationAPI) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
UpdateStack updates stack template.
func (*AWSCloudFormationAPI) UpdateTerminationProtection ¶
func (cf *AWSCloudFormationAPI) UpdateTerminationProtection(input *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)
UpdateTerminationProtection allows to change stack protection from termination.
func (*AWSCloudFormationAPI) ValidateTemplate ¶
func (cf *AWSCloudFormationAPI) ValidateTemplate(input *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error)
ValidateTemplate checks template correctness.
func (*AWSCloudFormationAPI) WaitUntilChangeSetCreateComplete ¶
func (cf *AWSCloudFormationAPI) WaitUntilChangeSetCreateComplete(input *cloudformation.DescribeChangeSetInput) error
WaitUntilChangeSetCreateComplete uses the AWS CloudFormation API operation DescribeChangeSet to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
type CloudFormationAPI ¶
type CloudFormationAPI interface { CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) SetStackPolicy(input *cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error) UpdateTerminationProtection(input *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error) EstimateTemplateCost(input *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) ValidateTemplate(input *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error) CreateChangeSet(input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error) DescribeChangeSet(input *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error) WaitUntilChangeSetCreateComplete(input *cloudformation.DescribeChangeSetInput) error DeleteChangeSet(input *cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error) }
CloudFormationAPI collects all functions which using Cloudformation, e.g creating stack.
func NewAWSCloudFormation ¶
func NewAWSCloudFormation(api *cloudformation.CloudFormation) CloudFormationAPI
NewAWSCloudFormation creates CloudFormationAPI.