aws_sdk_cloudformation/types/_managed_execution.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ManagedExecution {
7 /// <p>When <code>true</code>, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.</p><note>
8 /// <p>If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting.</p>
9 /// <p>You can't modify your stack set's execution configuration while there are running or queued operations for that stack set.</p>
10 /// </note>
11 /// <p>When <code>false</code> (default), StackSets performs one operation at a time in request order.</p>
12 pub active: ::std::option::Option<bool>,
13}
14impl ManagedExecution {
15 /// <p>When <code>true</code>, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.</p><note>
16 /// <p>If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting.</p>
17 /// <p>You can't modify your stack set's execution configuration while there are running or queued operations for that stack set.</p>
18 /// </note>
19 /// <p>When <code>false</code> (default), StackSets performs one operation at a time in request order.</p>
20 pub fn active(&self) -> ::std::option::Option<bool> {
21 self.active
22 }
23}
24impl ManagedExecution {
25 /// Creates a new builder-style object to manufacture [`ManagedExecution`](crate::types::ManagedExecution).
26 pub fn builder() -> crate::types::builders::ManagedExecutionBuilder {
27 crate::types::builders::ManagedExecutionBuilder::default()
28 }
29}
30
31/// A builder for [`ManagedExecution`](crate::types::ManagedExecution).
32#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
33#[non_exhaustive]
34pub struct ManagedExecutionBuilder {
35 pub(crate) active: ::std::option::Option<bool>,
36}
37impl ManagedExecutionBuilder {
38 /// <p>When <code>true</code>, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.</p><note>
39 /// <p>If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting.</p>
40 /// <p>You can't modify your stack set's execution configuration while there are running or queued operations for that stack set.</p>
41 /// </note>
42 /// <p>When <code>false</code> (default), StackSets performs one operation at a time in request order.</p>
43 pub fn active(mut self, input: bool) -> Self {
44 self.active = ::std::option::Option::Some(input);
45 self
46 }
47 /// <p>When <code>true</code>, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.</p><note>
48 /// <p>If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting.</p>
49 /// <p>You can't modify your stack set's execution configuration while there are running or queued operations for that stack set.</p>
50 /// </note>
51 /// <p>When <code>false</code> (default), StackSets performs one operation at a time in request order.</p>
52 pub fn set_active(mut self, input: ::std::option::Option<bool>) -> Self {
53 self.active = input;
54 self
55 }
56 /// <p>When <code>true</code>, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.</p><note>
57 /// <p>If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting.</p>
58 /// <p>You can't modify your stack set's execution configuration while there are running or queued operations for that stack set.</p>
59 /// </note>
60 /// <p>When <code>false</code> (default), StackSets performs one operation at a time in request order.</p>
61 pub fn get_active(&self) -> &::std::option::Option<bool> {
62 &self.active
63 }
64 /// Consumes the builder and constructs a [`ManagedExecution`](crate::types::ManagedExecution).
65 pub fn build(self) -> crate::types::ManagedExecution {
66 crate::types::ManagedExecution { active: self.active }
67 }
68}