@@ -13,6 +13,103 @@ const (
13
13
// StackStatus is the status of a CloudFormation stack.
14
14
type StackStatus string
15
15
16
+ // String returns the string representation of StackStatus.
17
+ func (s StackStatus ) String () string {
18
+ return string (s )
19
+ }
20
+
21
+ // CloudFormation stack status constants
22
+ // Ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html
23
+ const (
24
+ // StackStatusCreateInProgress is ongoing creation of one or more stacks.
25
+ StackStatusCreateInProgress StackStatus = "CREATE_IN_PROGRESS"
26
+ // StackStatusCreateComplete is successful creation of one or more stacks.
27
+ StackStatusCreateComplete StackStatus = "CREATE_COMPLETE"
28
+ // StackStatusCreateFailed is unsuccessful creation of one or more stacks.
29
+ // View the stack events to see any associated error messages. Possible reasons
30
+ // for a failed creation include insufficient permissions to work with all
31
+ // resources in the stack, parameter values rejected by an AWS service, or a
32
+ // timeout during resource creation.
33
+ StackStatusCreateFailed StackStatus = "CREATE_FAILED"
34
+
35
+ // StackStatusRollbackInProgress is ongoing removal of one or more stacks after a failed
36
+ // stack creation or after an explicitly canceled stack creation.
37
+ StackStatusRollbackInProgress StackStatus = "ROLLBACK_IN_PROGRESS"
38
+ // StackStatusRollbackComplete is successful removal of one or more stacks after a failed
39
+ // stack creation or after an explicitly canceled stack creation. The stack returns to
40
+ // the previous working state. Any resources that were created during the create stack
41
+ // operation are deleted.
42
+ // This status exists only after a failed stack creation. It signifies that all operations
43
+ // from the partially created stack have been appropriately cleaned up. When in this state,
44
+ // only a delete operation can be performed.
45
+ StackStatusRollbackComplete StackStatus = "ROLLBACK_COMPLETE"
46
+ // StackStatusRollbackFailed is unsuccessful removal of one or more stacks after a failed
47
+ // stack creation or after an explicitly canceled stack creation. Delete the stack or view
48
+ // the stack events to see any associated error messages.
49
+ StackStatusRollbackFailed StackStatus = "ROLLBACK_FAILED"
50
+
51
+ // StackStatusDeleteInProgress is ongoing removal of one or more stacks.
52
+ StackStatusDeleteInProgress StackStatus = "DELETE_IN_PROGRESS"
53
+ // StackStatusDeleteComplete is successful deletion of one or more stacks.
54
+ // Deleted stacks are retained and viewable for 90 days.
55
+ StackStatusDeleteComplete StackStatus = "DELETE_COMPLETE"
56
+ // StackStatusDeleteFailed is unsuccessful deletion of one or more stacks.
57
+ // Because the delete failed, you might have some resources that are still
58
+ // running; however, you can't work with or update the stack. Delete the stack
59
+ // again or view the stack events to see any associated error messages.
60
+ StackStatusDeleteFailed StackStatus = "DELETE_FAILED"
61
+
62
+ // StackStatusUpdateInProgress is ongoing creation of one or more stacks with
63
+ // an expected StackId but without any templates or resources.
64
+ // A stack with this status code counts against the maximum possible number of stacks.
65
+ StackStatusReviewInProgress StackStatus = "REVIEW_IN_PROGRESS"
66
+ // StackStatusUpdateInProgress is ongoing update of one or more stacks.
67
+ StackStatusUpdateInProgress StackStatus = "UPDATE_IN_PROGRESS"
68
+ // StackStatusUpdateCompleteCleanupInProgress is ongoing removal of old resources for
69
+ // one or more stacks after a successful stack update. For stack updates that require
70
+ // resources to be replaced, CloudFormation creates the new resources first and then
71
+ // deletes the old resources to help reduce any interruptions with your stack. In this
72
+ // state, the stack has been updated and is usable, but CloudFormation is still deleting
73
+ // the old resources.
74
+ StackStatusUpdateCompleteCleanupInProgress StackStatus = "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"
75
+ // StackStatusUpdateComplete is successful update of one or more stacks.
76
+ StackStatusUpdateComplete StackStatus = "UPDATE_COMPLETE"
77
+ // StackStatusUpdateFailed is unsuccessful update of one or more stacks. View the stack events
78
+ // to see any associated error messages.
79
+ StackStatusUpdateFailed StackStatus = "UPDATE_FAILED"
80
+ // StackStatusUpdateRollbackComplete is successful return of one or more stacks to a previous
81
+ // working state after a failed stack update.
82
+ StackStatusUpdateRollbackComplete StackStatus = "UPDATE_ROLLBACK_COMPLETE"
83
+ // StackStatusUpdateRollbackCompleteCleanupInProgress is ongoing removal of new resources
84
+ // for one or more stacks after a failed stack update. In this state, the stack has been
85
+ // rolled back to its previous working state and is usable, but CloudFormation is still
86
+ // deleting any new resources it created during the stack update.
87
+ StackStatusUpdateRollbackCompleteCleanupInProgress StackStatus = "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"
88
+ // StackStatusUpdateRollbackFailed is unsuccessful return of one or more stacks to a
89
+ // previous working state after a failed stack update. When in this state, you can
90
+ // delete the stack or continue rollback. You might need to fix errors before your
91
+ // stack can return to a working state.
92
+ StackStatusUpdateRollbackFailed StackStatus = "UPDATE_ROLLBACK_FAILED"
93
+ // StackStatusUpdateRollbackInProgress is ongoing return of one or more stacks
94
+ // to the previous working state after failed stack update.
95
+ StackStatusUpdateRollbackInProgress StackStatus = "UPDATE_ROLLBACK_IN_PROGRESS"
96
+
97
+ // StackStatusImportInProgress is the import operation is currently in progress.
98
+ StackStatusImportInProgress StackStatus = "IMPORT_IN_PROGRESS"
99
+ // StackStatusImportComplete is the import operation successfully completed for
100
+ // all resources in the stack that support resource import.
101
+ StackStatusImportComplete StackStatus = "IMPORT_COMPLETE"
102
+ // StackStatusImportRollbackInProgress is import will roll back to the previous
103
+ // template configuration.
104
+ StackStatusImportRollbackInProgress StackStatus = "IMPORT_ROLLBACK_IN_PROGRESS"
105
+ // StackStatusImportRollbackComplete is import successfully rolled back to the previous template configuration.
106
+ StackStatusImportRollbackComplete StackStatus = "IMPORT_ROLLBACK_COMPLETE"
107
+ // StackStatusImportRollbackFailed is the import rollback operation failed for at
108
+ // least one resource in the stack. Results will be available for the resources
109
+ // CloudFormation successfully imported.
110
+ StackStatusImportRollbackFailed StackStatus = "IMPORT_ROLLBACK_FAILED"
111
+ )
112
+
16
113
// StackDriftInformationSummary contains information about whether the stack's
17
114
// actual configuration differs, or has drifted, from its expected configuration,
18
115
// as defined in the stack template and any values specified as template parameters.
0 commit comments