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 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The structure that contains information about a stack set operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackSetOperation {
/// <p>The unique ID of a stack set operation.</p>
pub operation_id: ::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>The type of stack set operation: <code>CREATE</code>, <code>UPDATE</code>, or <code>DELETE</code>. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to <i>all</i> associated stack set instances.</p>
pub action: ::std::option::Option<crate::types::StackSetOperationAction>,
/// <p>The status of the operation.</p>
/// <ul>
/// <li>
/// <p><code>FAILED</code>: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to <code>FAILED</code>. This in turn sets the status of the operation as a whole to <code>FAILED</code>, and CloudFormation cancels the operation in any remaining Regions.</p></li>
/// <li>
/// <p><code>QUEUED</code>: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes">stack set operation status codes</a> in the <i>CloudFormation User Guide</i>.</p></li>
/// <li>
/// <p><code>RUNNING</code>: The operation is currently being performed.</p></li>
/// <li>
/// <p><code>STOPPED</code>: The user has canceled the operation.</p></li>
/// <li>
/// <p><code>STOPPING</code>: The operation is in the process of stopping, at user request.</p></li>
/// <li>
/// <p><code>SUCCEEDED</code>: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::StackSetOperationStatus>,
/// <p>The preferences for how CloudFormation performs this stack set operation.</p>
pub operation_preferences: ::std::option::Option<crate::types::StackSetOperationPreferences>,
/// <p>For stack set operations of action type <code>DELETE</code>, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.</p>
pub retain_stacks: ::std::option::Option<bool>,
/// <p>The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.</p>
/// <p>Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Define Permissions for Multiple Administrators</a> in the <i>CloudFormation User Guide</i>.</p>
pub administration_role_arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the IAM execution role used to create or update the stack set.</p>
/// <p>Use customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
pub execution_role_name: ::std::option::Option<::std::string::String>,
/// <p>The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.</p>
pub creation_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.</p>
pub end_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>[Service-managed permissions] The Organizations accounts affected by the stack operation.</p>
pub deployment_targets: ::std::option::Option<crate::types::DeploymentTargets>,
/// <p>Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.</p>
/// <p>This information will only be present for stack set operations whose <code>Action</code> type is <code>DETECT_DRIFT</code>.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting Unmanaged Changes in Stack Sets</a> in the <i>CloudFormation User Guide</i>.</p>
pub stack_set_drift_detection_details: ::std::option::Option<crate::types::StackSetDriftDetectionDetails>,
/// <p>The status of the operation in details.</p>
pub status_reason: ::std::option::Option<::std::string::String>,
/// <p>Detailed information about the StackSet operation.</p>
pub status_details: ::std::option::Option<crate::types::StackSetOperationStatusDetails>,
}
impl StackSetOperation {
/// <p>The unique ID of a stack set operation.</p>
pub fn operation_id(&self) -> ::std::option::Option<&str> {
self.operation_id.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>The type of stack set operation: <code>CREATE</code>, <code>UPDATE</code>, or <code>DELETE</code>. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to <i>all</i> associated stack set instances.</p>
pub fn action(&self) -> ::std::option::Option<&crate::types::StackSetOperationAction> {
self.action.as_ref()
}
/// <p>The status of the operation.</p>
/// <ul>
/// <li>
/// <p><code>FAILED</code>: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to <code>FAILED</code>. This in turn sets the status of the operation as a whole to <code>FAILED</code>, and CloudFormation cancels the operation in any remaining Regions.</p></li>
/// <li>
/// <p><code>QUEUED</code>: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes">stack set operation status codes</a> in the <i>CloudFormation User Guide</i>.</p></li>
/// <li>
/// <p><code>RUNNING</code>: The operation is currently being performed.</p></li>
/// <li>
/// <p><code>STOPPED</code>: The user has canceled the operation.</p></li>
/// <li>
/// <p><code>STOPPING</code>: The operation is in the process of stopping, at user request.</p></li>
/// <li>
/// <p><code>SUCCEEDED</code>: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::StackSetOperationStatus> {
self.status.as_ref()
}
/// <p>The preferences for how CloudFormation performs this stack set operation.</p>
pub fn operation_preferences(&self) -> ::std::option::Option<&crate::types::StackSetOperationPreferences> {
self.operation_preferences.as_ref()
}
/// <p>For stack set operations of action type <code>DELETE</code>, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.</p>
pub fn retain_stacks(&self) -> ::std::option::Option<bool> {
self.retain_stacks
}
/// <p>The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.</p>
/// <p>Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Define Permissions for Multiple Administrators</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn administration_role_arn(&self) -> ::std::option::Option<&str> {
self.administration_role_arn.as_deref()
}
/// <p>The name of the IAM execution role used to create or update the stack set.</p>
/// <p>Use customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
pub fn execution_role_name(&self) -> ::std::option::Option<&str> {
self.execution_role_name.as_deref()
}
/// <p>The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.</p>
pub fn creation_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_timestamp.as_ref()
}
/// <p>The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.</p>
pub fn end_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.end_timestamp.as_ref()
}
/// <p>[Service-managed permissions] The Organizations accounts affected by the stack operation.</p>
pub fn deployment_targets(&self) -> ::std::option::Option<&crate::types::DeploymentTargets> {
self.deployment_targets.as_ref()
}
/// <p>Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.</p>
/// <p>This information will only be present for stack set operations whose <code>Action</code> type is <code>DETECT_DRIFT</code>.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting Unmanaged Changes in Stack Sets</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn stack_set_drift_detection_details(&self) -> ::std::option::Option<&crate::types::StackSetDriftDetectionDetails> {
self.stack_set_drift_detection_details.as_ref()
}
/// <p>The status of the operation in details.</p>
pub fn status_reason(&self) -> ::std::option::Option<&str> {
self.status_reason.as_deref()
}
/// <p>Detailed information about the StackSet operation.</p>
pub fn status_details(&self) -> ::std::option::Option<&crate::types::StackSetOperationStatusDetails> {
self.status_details.as_ref()
}
}
impl StackSetOperation {
/// Creates a new builder-style object to manufacture [`StackSetOperation`](crate::types::StackSetOperation).
pub fn builder() -> crate::types::builders::StackSetOperationBuilder {
crate::types::builders::StackSetOperationBuilder::default()
}
}
/// A builder for [`StackSetOperation`](crate::types::StackSetOperation).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackSetOperationBuilder {
pub(crate) operation_id: ::std::option::Option<::std::string::String>,
pub(crate) stack_set_id: ::std::option::Option<::std::string::String>,
pub(crate) action: ::std::option::Option<crate::types::StackSetOperationAction>,
pub(crate) status: ::std::option::Option<crate::types::StackSetOperationStatus>,
pub(crate) operation_preferences: ::std::option::Option<crate::types::StackSetOperationPreferences>,
pub(crate) retain_stacks: ::std::option::Option<bool>,
pub(crate) administration_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) execution_role_name: ::std::option::Option<::std::string::String>,
pub(crate) creation_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) end_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) deployment_targets: ::std::option::Option<crate::types::DeploymentTargets>,
pub(crate) stack_set_drift_detection_details: ::std::option::Option<crate::types::StackSetDriftDetectionDetails>,
pub(crate) status_reason: ::std::option::Option<::std::string::String>,
pub(crate) status_details: ::std::option::Option<crate::types::StackSetOperationStatusDetails>,
}
impl StackSetOperationBuilder {
/// <p>The unique ID of a stack set operation.</p>
pub fn operation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.operation_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique ID of a stack set operation.</p>
pub fn set_operation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.operation_id = input;
self
}
/// <p>The unique ID of a stack set operation.</p>
pub fn get_operation_id(&self) -> &::std::option::Option<::std::string::String> {
&self.operation_id
}
/// <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>The type of stack set operation: <code>CREATE</code>, <code>UPDATE</code>, or <code>DELETE</code>. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to <i>all</i> associated stack set instances.</p>
pub fn action(mut self, input: crate::types::StackSetOperationAction) -> Self {
self.action = ::std::option::Option::Some(input);
self
}
/// <p>The type of stack set operation: <code>CREATE</code>, <code>UPDATE</code>, or <code>DELETE</code>. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to <i>all</i> associated stack set instances.</p>
pub fn set_action(mut self, input: ::std::option::Option<crate::types::StackSetOperationAction>) -> Self {
self.action = input;
self
}
/// <p>The type of stack set operation: <code>CREATE</code>, <code>UPDATE</code>, or <code>DELETE</code>. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to <i>all</i> associated stack set instances.</p>
pub fn get_action(&self) -> &::std::option::Option<crate::types::StackSetOperationAction> {
&self.action
}
/// <p>The status of the operation.</p>
/// <ul>
/// <li>
/// <p><code>FAILED</code>: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to <code>FAILED</code>. This in turn sets the status of the operation as a whole to <code>FAILED</code>, and CloudFormation cancels the operation in any remaining Regions.</p></li>
/// <li>
/// <p><code>QUEUED</code>: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes">stack set operation status codes</a> in the <i>CloudFormation User Guide</i>.</p></li>
/// <li>
/// <p><code>RUNNING</code>: The operation is currently being performed.</p></li>
/// <li>
/// <p><code>STOPPED</code>: The user has canceled the operation.</p></li>
/// <li>
/// <p><code>STOPPING</code>: The operation is in the process of stopping, at user request.</p></li>
/// <li>
/// <p><code>SUCCEEDED</code>: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::StackSetOperationStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the operation.</p>
/// <ul>
/// <li>
/// <p><code>FAILED</code>: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to <code>FAILED</code>. This in turn sets the status of the operation as a whole to <code>FAILED</code>, and CloudFormation cancels the operation in any remaining Regions.</p></li>
/// <li>
/// <p><code>QUEUED</code>: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes">stack set operation status codes</a> in the <i>CloudFormation User Guide</i>.</p></li>
/// <li>
/// <p><code>RUNNING</code>: The operation is currently being performed.</p></li>
/// <li>
/// <p><code>STOPPED</code>: The user has canceled the operation.</p></li>
/// <li>
/// <p><code>STOPPING</code>: The operation is in the process of stopping, at user request.</p></li>
/// <li>
/// <p><code>SUCCEEDED</code>: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::StackSetOperationStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the operation.</p>
/// <ul>
/// <li>
/// <p><code>FAILED</code>: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to <code>FAILED</code>. This in turn sets the status of the operation as a whole to <code>FAILED</code>, and CloudFormation cancels the operation in any remaining Regions.</p></li>
/// <li>
/// <p><code>QUEUED</code>: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes">stack set operation status codes</a> in the <i>CloudFormation User Guide</i>.</p></li>
/// <li>
/// <p><code>RUNNING</code>: The operation is currently being performed.</p></li>
/// <li>
/// <p><code>STOPPED</code>: The user has canceled the operation.</p></li>
/// <li>
/// <p><code>STOPPING</code>: The operation is in the process of stopping, at user request.</p></li>
/// <li>
/// <p><code>SUCCEEDED</code>: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::StackSetOperationStatus> {
&self.status
}
/// <p>The preferences for how CloudFormation performs this stack set operation.</p>
pub fn operation_preferences(mut self, input: crate::types::StackSetOperationPreferences) -> Self {
self.operation_preferences = ::std::option::Option::Some(input);
self
}
/// <p>The preferences for how CloudFormation performs this stack set operation.</p>
pub fn set_operation_preferences(mut self, input: ::std::option::Option<crate::types::StackSetOperationPreferences>) -> Self {
self.operation_preferences = input;
self
}
/// <p>The preferences for how CloudFormation performs this stack set operation.</p>
pub fn get_operation_preferences(&self) -> &::std::option::Option<crate::types::StackSetOperationPreferences> {
&self.operation_preferences
}
/// <p>For stack set operations of action type <code>DELETE</code>, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.</p>
pub fn retain_stacks(mut self, input: bool) -> Self {
self.retain_stacks = ::std::option::Option::Some(input);
self
}
/// <p>For stack set operations of action type <code>DELETE</code>, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.</p>
pub fn set_retain_stacks(mut self, input: ::std::option::Option<bool>) -> Self {
self.retain_stacks = input;
self
}
/// <p>For stack set operations of action type <code>DELETE</code>, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.</p>
pub fn get_retain_stacks(&self) -> &::std::option::Option<bool> {
&self.retain_stacks
}
/// <p>The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.</p>
/// <p>Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Define Permissions for Multiple Administrators</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn administration_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.administration_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.</p>
/// <p>Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Define Permissions for Multiple Administrators</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn set_administration_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.administration_role_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.</p>
/// <p>Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Define Permissions for Multiple Administrators</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn get_administration_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.administration_role_arn
}
/// <p>The name of the IAM execution role used to create or update the stack set.</p>
/// <p>Use customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
pub fn execution_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the IAM execution role used to create or update the stack set.</p>
/// <p>Use customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
pub fn set_execution_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role_name = input;
self
}
/// <p>The name of the IAM execution role used to create or update the stack set.</p>
/// <p>Use customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
pub fn get_execution_role_name(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role_name
}
/// <p>The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.</p>
pub fn creation_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_timestamp = ::std::option::Option::Some(input);
self
}
/// <p>The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.</p>
pub fn set_creation_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_timestamp = input;
self
}
/// <p>The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.</p>
pub fn get_creation_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_timestamp
}
/// <p>The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.</p>
pub fn end_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_timestamp = ::std::option::Option::Some(input);
self
}
/// <p>The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.</p>
pub fn set_end_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.end_timestamp = input;
self
}
/// <p>The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.</p>
pub fn get_end_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_timestamp
}
/// <p>[Service-managed permissions] The Organizations accounts affected by the stack operation.</p>
pub fn deployment_targets(mut self, input: crate::types::DeploymentTargets) -> Self {
self.deployment_targets = ::std::option::Option::Some(input);
self
}
/// <p>[Service-managed permissions] The Organizations accounts affected by the stack operation.</p>
pub fn set_deployment_targets(mut self, input: ::std::option::Option<crate::types::DeploymentTargets>) -> Self {
self.deployment_targets = input;
self
}
/// <p>[Service-managed permissions] The Organizations accounts affected by the stack operation.</p>
pub fn get_deployment_targets(&self) -> &::std::option::Option<crate::types::DeploymentTargets> {
&self.deployment_targets
}
/// <p>Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.</p>
/// <p>This information will only be present for stack set operations whose <code>Action</code> type is <code>DETECT_DRIFT</code>.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting Unmanaged Changes in Stack Sets</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn stack_set_drift_detection_details(mut self, input: crate::types::StackSetDriftDetectionDetails) -> Self {
self.stack_set_drift_detection_details = ::std::option::Option::Some(input);
self
}
/// <p>Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.</p>
/// <p>This information will only be present for stack set operations whose <code>Action</code> type is <code>DETECT_DRIFT</code>.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting Unmanaged Changes in Stack Sets</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn set_stack_set_drift_detection_details(mut self, input: ::std::option::Option<crate::types::StackSetDriftDetectionDetails>) -> Self {
self.stack_set_drift_detection_details = input;
self
}
/// <p>Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.</p>
/// <p>This information will only be present for stack set operations whose <code>Action</code> type is <code>DETECT_DRIFT</code>.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting Unmanaged Changes in Stack Sets</a> in the <i>CloudFormation User Guide</i>.</p>
pub fn get_stack_set_drift_detection_details(&self) -> &::std::option::Option<crate::types::StackSetDriftDetectionDetails> {
&self.stack_set_drift_detection_details
}
/// <p>The status of the operation in details.</p>
pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_reason = ::std::option::Option::Some(input.into());
self
}
/// <p>The status of the operation in details.</p>
pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_reason = input;
self
}
/// <p>The status of the operation in details.</p>
pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.status_reason
}
/// <p>Detailed information about the StackSet operation.</p>
pub fn status_details(mut self, input: crate::types::StackSetOperationStatusDetails) -> Self {
self.status_details = ::std::option::Option::Some(input);
self
}
/// <p>Detailed information about the StackSet operation.</p>
pub fn set_status_details(mut self, input: ::std::option::Option<crate::types::StackSetOperationStatusDetails>) -> Self {
self.status_details = input;
self
}
/// <p>Detailed information about the StackSet operation.</p>
pub fn get_status_details(&self) -> &::std::option::Option<crate::types::StackSetOperationStatusDetails> {
&self.status_details
}
/// Consumes the builder and constructs a [`StackSetOperation`](crate::types::StackSetOperation).
pub fn build(self) -> crate::types::StackSetOperation {
crate::types::StackSetOperation {
operation_id: self.operation_id,
stack_set_id: self.stack_set_id,
action: self.action,
status: self.status,
operation_preferences: self.operation_preferences,
retain_stacks: self.retain_stacks,
administration_role_arn: self.administration_role_arn,
execution_role_name: self.execution_role_name,
creation_timestamp: self.creation_timestamp,
end_timestamp: self.end_timestamp,
deployment_targets: self.deployment_targets,
stack_set_drift_detection_details: self.stack_set_drift_detection_details,
status_reason: self.status_reason,
status_details: self.status_details,
}
}
}