Class CfnNodegroupPropsMixin.UpdateConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnNodegroupPropsMixin.UpdateConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroupPropsMixin.UpdateConfigProperty>
- Enclosing interface:
CfnNodegroupPropsMixin.UpdateConfigProperty
@Stability(Stable)
public static final class CfnNodegroupPropsMixin.UpdateConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroupPropsMixin.UpdateConfigProperty>
A builder for
CfnNodegroupPropsMixin.UpdateConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxUnavailable(Number maxUnavailable) Sets the value ofCfnNodegroupPropsMixin.UpdateConfigProperty.getMaxUnavailable()maxUnavailablePercentage(Number maxUnavailablePercentage) updateStrategy(String updateStrategy) Sets the value ofCfnNodegroupPropsMixin.UpdateConfigProperty.getUpdateStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
updateStrategy
@Stability(Stable) public CfnNodegroupPropsMixin.UpdateConfigProperty.Builder updateStrategy(String updateStrategy) Sets the value ofCfnNodegroupPropsMixin.UpdateConfigProperty.getUpdateStrategy()- Parameters:
updateStrategy- The configuration for the behavior to follow during a node group version update of this managed node group. You choose between two possible strategies for replacing nodes during anUpdateNodegroupVersionaction.An Amazon EKS managed node group updates by replacing nodes with new nodes of newer AMI versions in parallel. The update strategy changes the managed node update behavior of the managed node group for each quantity. The default strategy has guardrails to protect you from misconfiguration and launches the new instances first, before terminating the old instances. The minimal strategy removes the guardrails and terminates the old instances before launching the new instances. This minimal strategy is useful in scenarios where you are constrained to resources or costs (for example, with hardware accelerators such as GPUs).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroupPropsMixin.UpdateConfigProperty>- Returns:
- a new instance of
CfnNodegroupPropsMixin.UpdateConfigProperty - Throws:
NullPointerException- if any required attribute was not provided