Class CfnClusterPropsMixin.ComputeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnClusterPropsMixin.ComputeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeConfigProperty>
- Enclosing interface:
CfnClusterPropsMixin.ComputeConfigProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ComputeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeConfigProperty>
A builder for
CfnClusterPropsMixin.ComputeConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getEnabled()Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getNodePools()nodeRoleArn(String nodeRoleArn) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getNodeRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnClusterPropsMixin.ComputeConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getEnabled()- Parameters:
enabled- Request to enable or disable the compute capability on your EKS Auto Mode cluster. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account.- Returns:
this
-
enabled
@Stability(Stable) public CfnClusterPropsMixin.ComputeConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getEnabled()- Parameters:
enabled- Request to enable or disable the compute capability on your EKS Auto Mode cluster. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account.- Returns:
this
-
nodePools
@Stability(Stable) public CfnClusterPropsMixin.ComputeConfigProperty.Builder nodePools(List<String> nodePools) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getNodePools()- Parameters:
nodePools- Configuration for node pools that defines the compute resources for your EKS Auto Mode cluster. For more information, see EKS Auto Mode Node Pools in the Amazon EKS User Guide .- Returns:
this
-
nodeRoleArn
@Stability(Stable) public CfnClusterPropsMixin.ComputeConfigProperty.Builder nodeRoleArn(String nodeRoleArn) Sets the value ofCfnClusterPropsMixin.ComputeConfigProperty.getNodeRoleArn()- Parameters:
nodeRoleArn- The ARN of the IAM Role EKS will assign to EC2 Managed Instances in your EKS Auto Mode cluster. This value cannot be changed after the compute capability of EKS Auto Mode is enabled. For more information, see the IAM Reference in the Amazon EKS User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeConfigProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ComputeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-