Interface CfnStackSet.OperationPreferencesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnStackSet.OperationPreferencesProperty.Jsii$Proxy
- Enclosing class:
CfnStackSet
For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudformation.*; OperationPreferencesProperty operationPreferencesProperty = OperationPreferencesProperty.builder() .concurrencyMode("concurrencyMode") .failureToleranceCount(123) .failureTolerancePercentage(123) .maxConcurrentCount(123) .maxConcurrentPercentage(123) .regionConcurrencyType("regionConcurrencyType") .regionOrder(List.of("regionOrder")) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnStackSet.OperationPreferencesProperty
static final class
An implementation forCfnStackSet.OperationPreferencesProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
Specifies how the concurrency level behaves during the operation execution.default Number
The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region.default Number
The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region.default Number
The maximum number of accounts in which to perform this operation at one time.default Number
The maximum percentage of accounts in which to perform this operation at one time.default String
The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.The order of the Regions where you want to perform the stack operation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConcurrencyMode
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 ofFailureToleranceCount
+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.
- See Also:
-
getFailureToleranceCount
The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region.If the operation is stopped in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent Regions.
Conditional: You must specify either
FailureToleranceCount
orFailureTolerancePercentage
(but not both).- See Also:
-
getFailureTolerancePercentage
The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region.If the operation is stopped in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent Regions.
When calculating the number of accounts based on the specified percentage, AWS CloudFormation rounds down to the next whole number.
Conditional: You must specify either
FailureToleranceCount
orFailureTolerancePercentage
, but not both.- See Also:
-
getMaxConcurrentCount
The maximum number of accounts in which to perform this operation at one time.This is dependent on the value of
FailureToleranceCount
.MaxConcurrentCount
is at most one more than theFailureToleranceCount
.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
orMaxConcurrentPercentage
, but not both.- See Also:
-
getMaxConcurrentPercentage
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, AWS 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
orMaxConcurrentPercentage
, but not both.- See Also:
-
getRegionConcurrencyType
The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.- See Also:
-
getRegionOrder
The order of the Regions where you want to perform the stack operation.RegionOrder
isn't followed ifAutoDeployment
is enabled.- See Also:
-
builder
-