Class CfnNodegroup.NodeRepairConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnNodegroup.NodeRepairConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigProperty>
- Enclosing interface:
CfnNodegroup.NodeRepairConfigProperty
@Stability(Stable)
public static final class CfnNodegroup.NodeRepairConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigProperty>
A builder for
CfnNodegroup.NodeRepairConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getEnabled()maxParallelNodesRepairedCount(Number maxParallelNodesRepairedCount) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getMaxParallelNodesRepairedCount()maxParallelNodesRepairedPercentage(Number maxParallelNodesRepairedPercentage) maxUnhealthyNodeThresholdCount(Number maxUnhealthyNodeThresholdCount) maxUnhealthyNodeThresholdPercentage(Number maxUnhealthyNodeThresholdPercentage) nodeRepairConfigOverrides(List<? extends Object> nodeRepairConfigOverrides) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getNodeRepairConfigOverrides()nodeRepairConfigOverrides(IResolvable nodeRepairConfigOverrides) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getNodeRepairConfigOverrides()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getEnabled()- Parameters:
enabled- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.- Returns:
this
-
enabled
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getEnabled()- Parameters:
enabled- Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.- Returns:
this
-
maxParallelNodesRepairedCount
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder maxParallelNodesRepairedCount(Number maxParallelNodesRepairedCount) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getMaxParallelNodesRepairedCount()- Parameters:
maxParallelNodesRepairedCount- Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also setmaxParallelNodesRepairedPercentageat the same time.- Returns:
this
-
maxParallelNodesRepairedPercentage
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder maxParallelNodesRepairedPercentage(Number maxParallelNodesRepairedPercentage) - Parameters:
maxParallelNodesRepairedPercentage- Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also setmaxParallelNodesRepairedCountat the same time.- Returns:
this
-
maxUnhealthyNodeThresholdCount
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder maxUnhealthyNodeThresholdCount(Number maxUnhealthyNodeThresholdCount) - Parameters:
maxUnhealthyNodeThresholdCount- Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also setmaxUnhealthyNodeThresholdPercentageat the same time.- Returns:
this
-
maxUnhealthyNodeThresholdPercentage
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder maxUnhealthyNodeThresholdPercentage(Number maxUnhealthyNodeThresholdPercentage) - Parameters:
maxUnhealthyNodeThresholdPercentage- Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also setmaxUnhealthyNodeThresholdCountat the same time.- Returns:
this
-
nodeRepairConfigOverrides
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder nodeRepairConfigOverrides(IResolvable nodeRepairConfigOverrides) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getNodeRepairConfigOverrides()- Parameters:
nodeRepairConfigOverrides- Specify granular overrides for specific repair actions. These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values.- Returns:
this
-
nodeRepairConfigOverrides
@Stability(Stable) public CfnNodegroup.NodeRepairConfigProperty.Builder nodeRepairConfigOverrides(List<? extends Object> nodeRepairConfigOverrides) Sets the value ofCfnNodegroup.NodeRepairConfigProperty.getNodeRepairConfigOverrides()- Parameters:
nodeRepairConfigOverrides- Specify granular overrides for specific repair actions. These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroup.NodeRepairConfigProperty>- Returns:
- a new instance of
CfnNodegroup.NodeRepairConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-