1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The structures that contain summary information about the specified stack set.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackSetSummary {
    /// <p>The name of the stack set.</p>
    pub stack_set_name: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the stack set.</p>
    pub stack_set_id: ::std::option::Option<::std::string::String>,
    /// <p>A description of the stack set that you specify when the stack set is created or updated.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The status of the stack set.</p>
    pub status: ::std::option::Option<crate::types::StackSetStatus>,
    /// <p>[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).</p>
    pub auto_deployment: ::std::option::Option<crate::types::AutoDeployment>,
    /// <p>Describes how the IAM roles required for stack set operations are created.</p>
    /// <ul>
    /// <li>
    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant Self-Managed Stack Set Permissions</a>.</p></li>
    /// <li>
    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html">Grant Service-Managed Stack Set Permissions</a>.</p></li>
    /// </ul>
    pub permission_model: ::std::option::Option<crate::types::PermissionModels>,
    /// <p>Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.</p>
    /// <ul>
    /// <li>
    /// <p><code>DRIFTED</code>: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked the stack set for drift.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.</p></li>
    /// <li>
    /// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
    /// </ul>
    pub drift_status: ::std::option::Option<crate::types::StackDriftStatus>,
    /// <p>Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be <code>NULL</code> for any stack set on which drift detection hasn't yet been performed.</p>
    pub last_drift_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
    pub managed_execution: ::std::option::Option<crate::types::ManagedExecution>,
}
impl StackSetSummary {
    /// <p>The name of the stack set.</p>
    pub fn stack_set_name(&self) -> ::std::option::Option<&str> {
        self.stack_set_name.as_deref()
    }
    /// <p>The ID of the stack set.</p>
    pub fn stack_set_id(&self) -> ::std::option::Option<&str> {
        self.stack_set_id.as_deref()
    }
    /// <p>A description of the stack set that you specify when the stack set is created or updated.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The status of the stack set.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::StackSetStatus> {
        self.status.as_ref()
    }
    /// <p>[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).</p>
    pub fn auto_deployment(&self) -> ::std::option::Option<&crate::types::AutoDeployment> {
        self.auto_deployment.as_ref()
    }
    /// <p>Describes how the IAM roles required for stack set operations are created.</p>
    /// <ul>
    /// <li>
    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant Self-Managed Stack Set Permissions</a>.</p></li>
    /// <li>
    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html">Grant Service-Managed Stack Set Permissions</a>.</p></li>
    /// </ul>
    pub fn permission_model(&self) -> ::std::option::Option<&crate::types::PermissionModels> {
        self.permission_model.as_ref()
    }
    /// <p>Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.</p>
    /// <ul>
    /// <li>
    /// <p><code>DRIFTED</code>: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked the stack set for drift.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.</p></li>
    /// <li>
    /// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
    /// </ul>
    pub fn drift_status(&self) -> ::std::option::Option<&crate::types::StackDriftStatus> {
        self.drift_status.as_ref()
    }
    /// <p>Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be <code>NULL</code> for any stack set on which drift detection hasn't yet been performed.</p>
    pub fn last_drift_check_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_drift_check_timestamp.as_ref()
    }
    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
    pub fn managed_execution(&self) -> ::std::option::Option<&crate::types::ManagedExecution> {
        self.managed_execution.as_ref()
    }
}
impl StackSetSummary {
    /// Creates a new builder-style object to manufacture [`StackSetSummary`](crate::types::StackSetSummary).
    pub fn builder() -> crate::types::builders::StackSetSummaryBuilder {
        crate::types::builders::StackSetSummaryBuilder::default()
    }
}

/// A builder for [`StackSetSummary`](crate::types::StackSetSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackSetSummaryBuilder {
    pub(crate) stack_set_name: ::std::option::Option<::std::string::String>,
    pub(crate) stack_set_id: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::StackSetStatus>,
    pub(crate) auto_deployment: ::std::option::Option<crate::types::AutoDeployment>,
    pub(crate) permission_model: ::std::option::Option<crate::types::PermissionModels>,
    pub(crate) drift_status: ::std::option::Option<crate::types::StackDriftStatus>,
    pub(crate) last_drift_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) managed_execution: ::std::option::Option<crate::types::ManagedExecution>,
}
impl StackSetSummaryBuilder {
    /// <p>The name of the stack set.</p>
    pub fn stack_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_set_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the stack set.</p>
    pub fn set_stack_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_set_name = input;
        self
    }
    /// <p>The name of the stack set.</p>
    pub fn get_stack_set_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_set_name
    }
    /// <p>The ID of the stack set.</p>
    pub fn stack_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_set_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the stack set.</p>
    pub fn set_stack_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_set_id = input;
        self
    }
    /// <p>The ID of the stack set.</p>
    pub fn get_stack_set_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_set_id
    }
    /// <p>A description of the stack set that you specify when the stack set is created or updated.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description of the stack set that you specify when the stack set is created or updated.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description of the stack set that you specify when the stack set is created or updated.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The status of the stack set.</p>
    pub fn status(mut self, input: crate::types::StackSetStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the stack set.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::StackSetStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the stack set.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::StackSetStatus> {
        &self.status
    }
    /// <p>[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).</p>
    pub fn auto_deployment(mut self, input: crate::types::AutoDeployment) -> Self {
        self.auto_deployment = ::std::option::Option::Some(input);
        self
    }
    /// <p>[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).</p>
    pub fn set_auto_deployment(mut self, input: ::std::option::Option<crate::types::AutoDeployment>) -> Self {
        self.auto_deployment = input;
        self
    }
    /// <p>[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).</p>
    pub fn get_auto_deployment(&self) -> &::std::option::Option<crate::types::AutoDeployment> {
        &self.auto_deployment
    }
    /// <p>Describes how the IAM roles required for stack set operations are created.</p>
    /// <ul>
    /// <li>
    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant Self-Managed Stack Set Permissions</a>.</p></li>
    /// <li>
    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html">Grant Service-Managed Stack Set Permissions</a>.</p></li>
    /// </ul>
    pub fn permission_model(mut self, input: crate::types::PermissionModels) -> Self {
        self.permission_model = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes how the IAM roles required for stack set operations are created.</p>
    /// <ul>
    /// <li>
    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant Self-Managed Stack Set Permissions</a>.</p></li>
    /// <li>
    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html">Grant Service-Managed Stack Set Permissions</a>.</p></li>
    /// </ul>
    pub fn set_permission_model(mut self, input: ::std::option::Option<crate::types::PermissionModels>) -> Self {
        self.permission_model = input;
        self
    }
    /// <p>Describes how the IAM roles required for stack set operations are created.</p>
    /// <ul>
    /// <li>
    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant Self-Managed Stack Set Permissions</a>.</p></li>
    /// <li>
    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html">Grant Service-Managed Stack Set Permissions</a>.</p></li>
    /// </ul>
    pub fn get_permission_model(&self) -> &::std::option::Option<crate::types::PermissionModels> {
        &self.permission_model
    }
    /// <p>Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.</p>
    /// <ul>
    /// <li>
    /// <p><code>DRIFTED</code>: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked the stack set for drift.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.</p></li>
    /// <li>
    /// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
    /// </ul>
    pub fn drift_status(mut self, input: crate::types::StackDriftStatus) -> Self {
        self.drift_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.</p>
    /// <ul>
    /// <li>
    /// <p><code>DRIFTED</code>: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked the stack set for drift.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.</p></li>
    /// <li>
    /// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
    /// </ul>
    pub fn set_drift_status(mut self, input: ::std::option::Option<crate::types::StackDriftStatus>) -> Self {
        self.drift_status = input;
        self
    }
    /// <p>Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.</p>
    /// <ul>
    /// <li>
    /// <p><code>DRIFTED</code>: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked the stack set for drift.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.</p></li>
    /// <li>
    /// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
    /// </ul>
    pub fn get_drift_status(&self) -> &::std::option::Option<crate::types::StackDriftStatus> {
        &self.drift_status
    }
    /// <p>Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be <code>NULL</code> for any stack set on which drift detection hasn't yet been performed.</p>
    pub fn last_drift_check_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_drift_check_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be <code>NULL</code> for any stack set on which drift detection hasn't yet been performed.</p>
    pub fn set_last_drift_check_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_drift_check_timestamp = input;
        self
    }
    /// <p>Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be <code>NULL</code> for any stack set on which drift detection hasn't yet been performed.</p>
    pub fn get_last_drift_check_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_drift_check_timestamp
    }
    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
    pub fn managed_execution(mut self, input: crate::types::ManagedExecution) -> Self {
        self.managed_execution = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
    pub fn set_managed_execution(mut self, input: ::std::option::Option<crate::types::ManagedExecution>) -> Self {
        self.managed_execution = input;
        self
    }
    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
    pub fn get_managed_execution(&self) -> &::std::option::Option<crate::types::ManagedExecution> {
        &self.managed_execution
    }
    /// Consumes the builder and constructs a [`StackSetSummary`](crate::types::StackSetSummary).
    pub fn build(self) -> crate::types::StackSetSummary {
        crate::types::StackSetSummary {
            stack_set_name: self.stack_set_name,
            stack_set_id: self.stack_set_id,
            description: self.description,
            status: self.status,
            auto_deployment: self.auto_deployment,
            permission_model: self.permission_model,
            drift_status: self.drift_status,
            last_drift_check_timestamp: self.last_drift_check_timestamp,
            managed_execution: self.managed_execution,
        }
    }
}