aws_sdk_cloudformation/types/
_stack_instance_comprehensive_status.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The detailed status of the stack instance.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct StackInstanceComprehensiveStatus {
7    /// <ul>
8    /// <li>
9    /// <p><code>CANCELLED</code>: The operation in the specified account and Region has been canceled. This is either because a user has stopped the stack set operation, or because the failure tolerance of the stack set operation has been exceeded.</p></li>
10    /// <li>
11    /// <p><code>FAILED</code>: The operation in the specified account and Region failed. If the stack set operation fails in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
12    /// <li>
13    /// <p><code>FAILED_IMPORT</code>: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough stack set operations fail in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
14    /// <li>
15    /// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually.</p></li>
16    /// <li>
17    /// <p><code>PENDING</code>: The operation in the specified account and Region has yet to start.</p></li>
18    /// <li>
19    /// <p><code>RUNNING</code>: The operation in the specified account and Region is currently in progress.</p></li>
20    /// <li>
21    /// <p><code>SKIPPED_SUSPENDED_ACCOUNT</code>: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.</p></li>
22    /// <li>
23    /// <p><code>SUCCEEDED</code>: The operation in the specified account and Region completed successfully.</p></li>
24    /// </ul>
25    pub detailed_status: ::std::option::Option<crate::types::StackInstanceDetailedStatus>,
26}
27impl StackInstanceComprehensiveStatus {
28    /// <ul>
29    /// <li>
30    /// <p><code>CANCELLED</code>: The operation in the specified account and Region has been canceled. This is either because a user has stopped the stack set operation, or because the failure tolerance of the stack set operation has been exceeded.</p></li>
31    /// <li>
32    /// <p><code>FAILED</code>: The operation in the specified account and Region failed. If the stack set operation fails in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
33    /// <li>
34    /// <p><code>FAILED_IMPORT</code>: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough stack set operations fail in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
35    /// <li>
36    /// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually.</p></li>
37    /// <li>
38    /// <p><code>PENDING</code>: The operation in the specified account and Region has yet to start.</p></li>
39    /// <li>
40    /// <p><code>RUNNING</code>: The operation in the specified account and Region is currently in progress.</p></li>
41    /// <li>
42    /// <p><code>SKIPPED_SUSPENDED_ACCOUNT</code>: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.</p></li>
43    /// <li>
44    /// <p><code>SUCCEEDED</code>: The operation in the specified account and Region completed successfully.</p></li>
45    /// </ul>
46    pub fn detailed_status(&self) -> ::std::option::Option<&crate::types::StackInstanceDetailedStatus> {
47        self.detailed_status.as_ref()
48    }
49}
50impl StackInstanceComprehensiveStatus {
51    /// Creates a new builder-style object to manufacture [`StackInstanceComprehensiveStatus`](crate::types::StackInstanceComprehensiveStatus).
52    pub fn builder() -> crate::types::builders::StackInstanceComprehensiveStatusBuilder {
53        crate::types::builders::StackInstanceComprehensiveStatusBuilder::default()
54    }
55}
56
57/// A builder for [`StackInstanceComprehensiveStatus`](crate::types::StackInstanceComprehensiveStatus).
58#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
59#[non_exhaustive]
60pub struct StackInstanceComprehensiveStatusBuilder {
61    pub(crate) detailed_status: ::std::option::Option<crate::types::StackInstanceDetailedStatus>,
62}
63impl StackInstanceComprehensiveStatusBuilder {
64    /// <ul>
65    /// <li>
66    /// <p><code>CANCELLED</code>: The operation in the specified account and Region has been canceled. This is either because a user has stopped the stack set operation, or because the failure tolerance of the stack set operation has been exceeded.</p></li>
67    /// <li>
68    /// <p><code>FAILED</code>: The operation in the specified account and Region failed. If the stack set operation fails in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
69    /// <li>
70    /// <p><code>FAILED_IMPORT</code>: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough stack set operations fail in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
71    /// <li>
72    /// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually.</p></li>
73    /// <li>
74    /// <p><code>PENDING</code>: The operation in the specified account and Region has yet to start.</p></li>
75    /// <li>
76    /// <p><code>RUNNING</code>: The operation in the specified account and Region is currently in progress.</p></li>
77    /// <li>
78    /// <p><code>SKIPPED_SUSPENDED_ACCOUNT</code>: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.</p></li>
79    /// <li>
80    /// <p><code>SUCCEEDED</code>: The operation in the specified account and Region completed successfully.</p></li>
81    /// </ul>
82    pub fn detailed_status(mut self, input: crate::types::StackInstanceDetailedStatus) -> Self {
83        self.detailed_status = ::std::option::Option::Some(input);
84        self
85    }
86    /// <ul>
87    /// <li>
88    /// <p><code>CANCELLED</code>: The operation in the specified account and Region has been canceled. This is either because a user has stopped the stack set operation, or because the failure tolerance of the stack set operation has been exceeded.</p></li>
89    /// <li>
90    /// <p><code>FAILED</code>: The operation in the specified account and Region failed. If the stack set operation fails in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
91    /// <li>
92    /// <p><code>FAILED_IMPORT</code>: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough stack set operations fail in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
93    /// <li>
94    /// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually.</p></li>
95    /// <li>
96    /// <p><code>PENDING</code>: The operation in the specified account and Region has yet to start.</p></li>
97    /// <li>
98    /// <p><code>RUNNING</code>: The operation in the specified account and Region is currently in progress.</p></li>
99    /// <li>
100    /// <p><code>SKIPPED_SUSPENDED_ACCOUNT</code>: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.</p></li>
101    /// <li>
102    /// <p><code>SUCCEEDED</code>: The operation in the specified account and Region completed successfully.</p></li>
103    /// </ul>
104    pub fn set_detailed_status(mut self, input: ::std::option::Option<crate::types::StackInstanceDetailedStatus>) -> Self {
105        self.detailed_status = input;
106        self
107    }
108    /// <ul>
109    /// <li>
110    /// <p><code>CANCELLED</code>: The operation in the specified account and Region has been canceled. This is either because a user has stopped the stack set operation, or because the failure tolerance of the stack set operation has been exceeded.</p></li>
111    /// <li>
112    /// <p><code>FAILED</code>: The operation in the specified account and Region failed. If the stack set operation fails in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
113    /// <li>
114    /// <p><code>FAILED_IMPORT</code>: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough stack set operations fail in enough accounts within a Region, the failure tolerance for the stack set operation as a whole might be exceeded.</p></li>
115    /// <li>
116    /// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually.</p></li>
117    /// <li>
118    /// <p><code>PENDING</code>: The operation in the specified account and Region has yet to start.</p></li>
119    /// <li>
120    /// <p><code>RUNNING</code>: The operation in the specified account and Region is currently in progress.</p></li>
121    /// <li>
122    /// <p><code>SKIPPED_SUSPENDED_ACCOUNT</code>: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.</p></li>
123    /// <li>
124    /// <p><code>SUCCEEDED</code>: The operation in the specified account and Region completed successfully.</p></li>
125    /// </ul>
126    pub fn get_detailed_status(&self) -> &::std::option::Option<crate::types::StackInstanceDetailedStatus> {
127        &self.detailed_status
128    }
129    /// Consumes the builder and constructs a [`StackInstanceComprehensiveStatus`](crate::types::StackInstanceComprehensiveStatus).
130    pub fn build(self) -> crate::types::StackInstanceComprehensiveStatus {
131        crate::types::StackInstanceComprehensiveStatus {
132            detailed_status: self.detailed_status,
133        }
134    }
135}