Interface CreateNodegroupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateNodegroupRequest.Builder,
,CreateNodegroupRequest> EksRequest.Builder
,SdkBuilder<CreateNodegroupRequest.Builder,
,CreateNodegroupRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateNodegroupRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe AMI type for your node group.The AMI type for your node group.capacityType
(String capacityType) The capacity type for your node group.capacityType
(CapacityTypes capacityType) The capacity type for your node group.clientRequestToken
(String clientRequestToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.clusterName
(String clusterName) The name of the cluster to create the node group in.The root device disk size (in GiB) for your node group instances.instanceTypes
(String... instanceTypes) Specify the instance types for a node group.instanceTypes
(Collection<String> instanceTypes) Specify the instance types for a node group.The Kubernetes labels to be applied to the nodes in the node group when they are created.default CreateNodegroupRequest.Builder
launchTemplate
(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) An object representing a node group's launch template specification.launchTemplate
(LaunchTemplateSpecification launchTemplate) An object representing a node group's launch template specification.nodegroupName
(String nodegroupName) The unique name to give your node group.The Amazon Resource Name (ARN) of the IAM role to associate with your node group.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.releaseVersion
(String releaseVersion) The AMI version of the Amazon EKS optimized AMI to use with your node group.default CreateNodegroupRequest.Builder
remoteAccess
(Consumer<RemoteAccessConfig.Builder> remoteAccess) The remote access configuration to use with your node group.remoteAccess
(RemoteAccessConfig remoteAccess) The remote access configuration to use with your node group.default CreateNodegroupRequest.Builder
scalingConfig
(Consumer<NodegroupScalingConfig.Builder> scalingConfig) The scaling configuration details for the Auto Scaling group that is created for your node group.scalingConfig
(NodegroupScalingConfig scalingConfig) The scaling configuration details for the Auto Scaling group that is created for your node group.The subnets to use for the Auto Scaling group that is created for your node group.subnets
(Collection<String> subnets) The subnets to use for the Auto Scaling group that is created for your node group.The metadata to apply to the node group to assist with categorization and organization.taints
(Collection<Taint> taints) The Kubernetes taints to be applied to the nodes in the node group.taints
(Consumer<Taint.Builder>... taints) The Kubernetes taints to be applied to the nodes in the node group.The Kubernetes taints to be applied to the nodes in the node group.default CreateNodegroupRequest.Builder
updateConfig
(Consumer<NodegroupUpdateConfig.Builder> updateConfig) The node group update configuration.updateConfig
(NodegroupUpdateConfig updateConfig) The node group update configuration.The Kubernetes version to use for your managed nodes.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clusterName
The name of the cluster to create the node group in.
- Parameters:
clusterName
- The name of the cluster to create the node group in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodegroupName
The unique name to give your node group.
- Parameters:
nodegroupName
- The unique name to give your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingConfig
The scaling configuration details for the Auto Scaling group that is created for your node group.
- Parameters:
scalingConfig
- The scaling configuration details for the Auto Scaling group that is created for your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingConfig
default CreateNodegroupRequest.Builder scalingConfig(Consumer<NodegroupScalingConfig.Builder> scalingConfig) The scaling configuration details for the Auto Scaling group that is created for your node group.
This is a convenience method that creates an instance of theNodegroupScalingConfig.Builder
avoiding the need to create one manually viaNodegroupScalingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscalingConfig(NodegroupScalingConfig)
.- Parameters:
scalingConfig
- a consumer that will call methods onNodegroupScalingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
diskSize
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB for Linux and Bottlerocket. The default disk size is 50 GiB for Windows. If you specify
launchTemplate
, then don't specifydiskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
diskSize
- The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB for Linux and Bottlerocket. The default disk size is 50 GiB for Windows. If you specifylaunchTemplate
, then don't specifydiskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The subnets to use for the Auto Scaling group that is created for your node group. If you specify
launchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
subnets
- The subnets to use for the Auto Scaling group that is created for your node group. If you specifylaunchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The subnets to use for the Auto Scaling group that is created for your node group. If you specify
launchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
subnets
- The subnets to use for the Auto Scaling group that is created for your node group. If you specifylaunchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with the
amiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.- Parameters:
instanceTypes
- Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with theamiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with the
amiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.- Parameters:
instanceTypes
- Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with theamiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiType
The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
amiType
- The AMI type for your node group. If you specifylaunchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amiType
The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
amiType
- The AMI type for your node group. If you specifylaunchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
remoteAccess
The remote access configuration to use with your node group. For Linux, the protocol is SSH. For Windows, the protocol is RDP. If you specify
launchTemplate
, then don't specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
remoteAccess
- The remote access configuration to use with your node group. For Linux, the protocol is SSH. For Windows, the protocol is RDP. If you specifylaunchTemplate
, then don't specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteAccess
default CreateNodegroupRequest.Builder remoteAccess(Consumer<RemoteAccessConfig.Builder> remoteAccess) The remote access configuration to use with your node group. For Linux, the protocol is SSH. For Windows, the protocol is RDP. If you specify
This is a convenience method that creates an instance of thelaunchTemplate
, then don't specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.RemoteAccessConfig.Builder
avoiding the need to create one manually viaRemoteAccessConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremoteAccess(RemoteAccessConfig)
.- Parameters:
remoteAccess
- a consumer that will call methods onRemoteAccessConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeRole
The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node
kubelet
daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specifylaunchTemplate
, then don't specifyIamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
nodeRole
- The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker nodekubelet
daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specifylaunchTemplate
, then don't specifyIamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
The Kubernetes labels to be applied to the nodes in the node group when they are created.
- Parameters:
labels
- The Kubernetes labels to be applied to the nodes in the node group when they are created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taints
The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
- Parameters:
taints
- The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taints
The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
- Parameters:
taints
- The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taints
The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
This is a convenience method that creates an instance of theTaint.Builder
avoiding the need to create one manually viaTaint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totaints(List<Taint>)
.- Parameters:
taints
- a consumer that will call methods onTaint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
- Parameters:
tags
- The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
An object representing a node group's launch template specification. If specified, then do not specify
instanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.- Parameters:
launchTemplate
- An object representing a node group's launch template specification. If specified, then do not specifyinstanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default CreateNodegroupRequest.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) An object representing a node group's launch template specification. If specified, then do not specify
This is a convenience method that creates an instance of theinstanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.LaunchTemplateSpecification.Builder
avoiding the need to create one manually viaLaunchTemplateSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(LaunchTemplateSpecification)
.- Parameters:
launchTemplate
- a consumer that will call methods onLaunchTemplateSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updateConfig
The node group update configuration.
- Parameters:
updateConfig
- The node group update configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateConfig
default CreateNodegroupRequest.Builder updateConfig(Consumer<NodegroupUpdateConfig.Builder> updateConfig) The node group update configuration.
This is a convenience method that creates an instance of theNodegroupUpdateConfig.Builder
avoiding the need to create one manually viaNodegroupUpdateConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupdateConfig(NodegroupUpdateConfig)
.- Parameters:
updateConfig
- a consumer that will call methods onNodegroupUpdateConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityType
The capacity type for your node group.
- Parameters:
capacityType
- The capacity type for your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityType
The capacity type for your node group.
- Parameters:
capacityType
- The capacity type for your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
version
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
version
- The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specifylaunchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseVersion
The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.
If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyreleaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
releaseVersion
- The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyreleaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateNodegroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateNodegroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-