Class CfnStackSetPropsMixin.OperationPreferencesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackSetPropsMixin.OperationPreferencesProperty>
- Enclosing interface:
CfnStackSetPropsMixin.OperationPreferencesProperty
CfnStackSetPropsMixin.OperationPreferencesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.concurrencyMode(String concurrencyMode) Sets the value ofCfnStackSetPropsMixin.OperationPreferencesProperty.getConcurrencyMode()failureToleranceCount(Number failureToleranceCount) failureTolerancePercentage(Number failureTolerancePercentage) maxConcurrentCount(Number maxConcurrentCount) maxConcurrentPercentage(Number maxConcurrentPercentage) regionConcurrencyType(String regionConcurrencyType) regionOrder(List<String> regionOrder) Sets the value ofCfnStackSetPropsMixin.OperationPreferencesProperty.getRegionOrder()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
concurrencyMode
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder concurrencyMode(String concurrencyMode) Sets the value ofCfnStackSetPropsMixin.OperationPreferencesProperty.getConcurrencyMode()- Parameters:
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 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 decouplesFailureToleranceCountfrom the actual concurrency. This allows StackSet operations to run at the concurrency level set by theMaxConcurrentCountvalue, orMaxConcurrentPercentage, regardless of the number of failures.
- Returns:
this
-
failureToleranceCount
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder failureToleranceCount(Number failureToleranceCount) - Parameters:
failureToleranceCount- The number of accounts per Region this operation can fail in 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
FailureToleranceCountorFailureTolerancePercentage(but not both).- Returns:
this
-
failureTolerancePercentage
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder failureTolerancePercentage(Number failureTolerancePercentage) Sets the value ofCfnStackSetPropsMixin.OperationPreferencesProperty.getFailureTolerancePercentage()- Parameters:
failureTolerancePercentage- The percentage of accounts per Region this stack operation can fail in 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
FailureToleranceCountorFailureTolerancePercentage, but not both.- Returns:
this
-
maxConcurrentCount
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder maxConcurrentCount(Number maxConcurrentCount) - Parameters:
maxConcurrentCount- The maximum number of accounts in which to perform this operation at one time. This is dependent on the value ofFailureToleranceCount.MaxConcurrentCountis 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
MaxConcurrentCountorMaxConcurrentPercentage, but not both.- Returns:
this
-
maxConcurrentPercentage
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder maxConcurrentPercentage(Number maxConcurrentPercentage) - Parameters:
maxConcurrentPercentage- 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
MaxConcurrentCountorMaxConcurrentPercentage, but not both.- Returns:
this
-
regionConcurrencyType
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder regionConcurrencyType(String regionConcurrencyType) - Parameters:
regionConcurrencyType- The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.- Returns:
this
-
regionOrder
@Stability(Stable) public CfnStackSetPropsMixin.OperationPreferencesProperty.Builder regionOrder(List<String> regionOrder) Sets the value ofCfnStackSetPropsMixin.OperationPreferencesProperty.getRegionOrder()- Parameters:
regionOrder- The order of the Regions where you want to perform the stack operation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStackSetPropsMixin.OperationPreferencesProperty>- Returns:
- a new instance of
CfnStackSetPropsMixin.OperationPreferencesProperty - Throws:
NullPointerException- if any required attribute was not provided
-