#[non_exhaustive]pub struct StackSetOperationPreferencesBuilder { /* private fields */ }
Expand description
A builder for StackSetOperationPreferences
.
Implementations§
source§impl StackSetOperationPreferencesBuilder
impl StackSetOperationPreferencesBuilder
sourcepub fn region_concurrency_type(self, input: RegionConcurrencyType) -> Self
pub fn region_concurrency_type(self, input: RegionConcurrencyType) -> Self
The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
sourcepub fn set_region_concurrency_type(
self,
input: Option<RegionConcurrencyType>
) -> Self
pub fn set_region_concurrency_type( self, input: Option<RegionConcurrencyType> ) -> Self
The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
sourcepub fn get_region_concurrency_type(&self) -> &Option<RegionConcurrencyType>
pub fn get_region_concurrency_type(&self) -> &Option<RegionConcurrencyType>
The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
sourcepub fn region_order(self, input: impl Into<String>) -> Self
pub fn region_order(self, input: impl Into<String>) -> Self
Appends an item to region_order
.
To override the contents of this collection use set_region_order
.
The order of the Regions where you want to perform the stack operation.
RegionOrder
isn't followed if AutoDeployment
is enabled.
sourcepub fn set_region_order(self, input: Option<Vec<String>>) -> Self
pub fn set_region_order(self, input: Option<Vec<String>>) -> Self
The order of the Regions where you want to perform the stack operation.
RegionOrder
isn't followed if AutoDeployment
is enabled.
sourcepub fn get_region_order(&self) -> &Option<Vec<String>>
pub fn get_region_order(&self) -> &Option<Vec<String>>
The order of the Regions where you want to perform the stack operation.
RegionOrder
isn't followed if AutoDeployment
is enabled.
sourcepub fn failure_tolerance_count(self, input: i32) -> Self
pub fn failure_tolerance_count(self, input: i32) -> Self
The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
(but not both).
By default, 0
is specified.
sourcepub fn set_failure_tolerance_count(self, input: Option<i32>) -> Self
pub fn set_failure_tolerance_count(self, input: Option<i32>) -> Self
The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
(but not both).
By default, 0
is specified.
sourcepub fn get_failure_tolerance_count(&self) -> &Option<i32>
pub fn get_failure_tolerance_count(&self) -> &Option<i32>
The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
(but not both).
By default, 0
is specified.
sourcepub fn failure_tolerance_percentage(self, input: i32) -> Self
pub fn failure_tolerance_percentage(self, input: i32) -> Self
The percentage of accounts, per Region, for which this stack operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
, but not both.
By default, 0
is specified.
sourcepub fn set_failure_tolerance_percentage(self, input: Option<i32>) -> Self
pub fn set_failure_tolerance_percentage(self, input: Option<i32>) -> Self
The percentage of accounts, per Region, for which this stack operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
, but not both.
By default, 0
is specified.
sourcepub fn get_failure_tolerance_percentage(&self) -> &Option<i32>
pub fn get_failure_tolerance_percentage(&self) -> &Option<i32>
The percentage of accounts, per Region, for which this stack operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.
Conditional: You must specify either FailureToleranceCount
or FailureTolerancePercentage
, but not both.
By default, 0
is specified.
sourcepub fn max_concurrent_count(self, input: i32) -> Self
pub fn max_concurrent_count(self, input: i32) -> Self
The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount
depending on your ConcurrencyMode
. MaxConcurrentCount
is at most one more than the FailureToleranceCount
if you're using STRICT_FAILURE_TOLERANCE
.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn set_max_concurrent_count(self, input: Option<i32>) -> Self
pub fn set_max_concurrent_count(self, input: Option<i32>) -> Self
The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount
depending on your ConcurrencyMode
. MaxConcurrentCount
is at most one more than the FailureToleranceCount
if you're using STRICT_FAILURE_TOLERANCE
.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn get_max_concurrent_count(&self) -> &Option<i32>
pub fn get_max_concurrent_count(&self) -> &Option<i32>
The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount
depending on your ConcurrencyMode
. MaxConcurrentCount
is at most one more than the FailureToleranceCount
if you're using STRICT_FAILURE_TOLERANCE
.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn max_concurrent_percentage(self, input: i32) -> Self
pub fn max_concurrent_percentage(self, input: i32) -> Self
The maximum percentage of accounts in which to perform this operation at one time.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn set_max_concurrent_percentage(self, input: Option<i32>) -> Self
pub fn set_max_concurrent_percentage(self, input: Option<i32>) -> Self
The maximum percentage of accounts in which to perform this operation at one time.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn get_max_concurrent_percentage(&self) -> &Option<i32>
pub fn get_max_concurrent_percentage(&self) -> &Option<i32>
The maximum percentage of accounts in which to perform this operation at one time.
When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
sourcepub fn concurrency_mode(self, input: ConcurrencyMode) -> Self
pub fn concurrency_mode(self, input: ConcurrencyMode) -> Self
Specifies how the concurrency level behaves during the operation execution.
-
STRICT_FAILURE_TOLERANCE
: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value ofFailureToleranceCount
+1. The initial actual concurrency is set to the lower of either the value of theMaxConcurrentCount
, or the value ofMaxConcurrentCount
+1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.
-
SOFT_FAILURE_TOLERANCE
: This option decouplesFailureToleranceCount
from the actual concurrency. This allows stack set operations to run at the concurrency level set by theMaxConcurrentCount
value, orMaxConcurrentPercentage
, regardless of the number of failures.
sourcepub fn set_concurrency_mode(self, input: Option<ConcurrencyMode>) -> Self
pub fn set_concurrency_mode(self, input: Option<ConcurrencyMode>) -> Self
Specifies how the concurrency level behaves during the operation execution.
-
STRICT_FAILURE_TOLERANCE
: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value ofFailureToleranceCount
+1. The initial actual concurrency is set to the lower of either the value of theMaxConcurrentCount
, or the value ofMaxConcurrentCount
+1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.
-
SOFT_FAILURE_TOLERANCE
: This option decouplesFailureToleranceCount
from the actual concurrency. This allows stack set operations to run at the concurrency level set by theMaxConcurrentCount
value, orMaxConcurrentPercentage
, regardless of the number of failures.
sourcepub fn get_concurrency_mode(&self) -> &Option<ConcurrencyMode>
pub fn get_concurrency_mode(&self) -> &Option<ConcurrencyMode>
Specifies how the concurrency level behaves during the operation execution.
-
STRICT_FAILURE_TOLERANCE
: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value ofFailureToleranceCount
+1. The initial actual concurrency is set to the lower of either the value of theMaxConcurrentCount
, or the value ofMaxConcurrentCount
+1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.
-
SOFT_FAILURE_TOLERANCE
: This option decouplesFailureToleranceCount
from the actual concurrency. This allows stack set operations to run at the concurrency level set by theMaxConcurrentCount
value, orMaxConcurrentPercentage
, regardless of the number of failures.
sourcepub fn build(self) -> StackSetOperationPreferences
pub fn build(self) -> StackSetOperationPreferences
Consumes the builder and constructs a StackSetOperationPreferences
.
Trait Implementations§
source§impl Clone for StackSetOperationPreferencesBuilder
impl Clone for StackSetOperationPreferencesBuilder
source§fn clone(&self) -> StackSetOperationPreferencesBuilder
fn clone(&self) -> StackSetOperationPreferencesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StackSetOperationPreferencesBuilder
impl Default for StackSetOperationPreferencesBuilder
source§fn default() -> StackSetOperationPreferencesBuilder
fn default() -> StackSetOperationPreferencesBuilder
source§impl PartialEq for StackSetOperationPreferencesBuilder
impl PartialEq for StackSetOperationPreferencesBuilder
source§fn eq(&self, other: &StackSetOperationPreferencesBuilder) -> bool
fn eq(&self, other: &StackSetOperationPreferencesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StackSetOperationPreferencesBuilder
Auto Trait Implementations§
impl Freeze for StackSetOperationPreferencesBuilder
impl RefUnwindSafe for StackSetOperationPreferencesBuilder
impl Send for StackSetOperationPreferencesBuilder
impl Sync for StackSetOperationPreferencesBuilder
impl Unpin for StackSetOperationPreferencesBuilder
impl UnwindSafe for StackSetOperationPreferencesBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more