Interface Nodegroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Nodegroup.Builder,
,Nodegroup> SdkBuilder<Nodegroup.Builder,
,Nodegroup> SdkPojo
- Enclosing class:
Nodegroup
-
Method Summary
Modifier and TypeMethodDescriptionIf the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
.If the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
.capacityType
(String capacityType) The capacity type of your managed node group.capacityType
(CapacityTypes capacityType) The capacity type of your managed node group.clusterName
(String clusterName) The name of the cluster that the managed node group resides in.The Unix epoch timestamp in seconds for when the managed node group was created.If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration.default Nodegroup.Builder
health
(Consumer<NodegroupHealth.Builder> health) The health status of the node group.health
(NodegroupHealth health) The health status of the node group.instanceTypes
(String... instanceTypes) If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group.instanceTypes
(Collection<String> instanceTypes) If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group.The Kubernetes labels applied to the nodes in the node group.default Nodegroup.Builder
launchTemplate
(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) If a launch template was used to create the node group, then this is the launch template that was used.launchTemplate
(LaunchTemplateSpecification launchTemplate) If a launch template was used to create the node group, then this is the launch template that was used.modifiedAt
(Instant modifiedAt) The Unix epoch timestamp in seconds for when the managed node group was last modified.nodegroupArn
(String nodegroupArn) The Amazon Resource Name (ARN) associated with the managed node group.nodegroupName
(String nodegroupName) The name associated with an Amazon EKS managed node group.The IAM role associated with your node group.releaseVersion
(String releaseVersion) If the node group was deployed using a launch template with a custom AMI, then this is the AMI ID that was specified in the launch template.default Nodegroup.Builder
remoteAccess
(Consumer<RemoteAccessConfig.Builder> remoteAccess) If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group.remoteAccess
(RemoteAccessConfig remoteAccess) If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group.default Nodegroup.Builder
resources
(Consumer<NodegroupResources.Builder> resources) The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.resources
(NodegroupResources resources) The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.default Nodegroup.Builder
scalingConfig
(Consumer<NodegroupScalingConfig.Builder> scalingConfig) The scaling configuration details for the Auto Scaling group that is associated with your node group.scalingConfig
(NodegroupScalingConfig scalingConfig) The scaling configuration details for the Auto Scaling group that is associated with your node group.The current status of the managed node group.status
(NodegroupStatus status) The current status of the managed node group.The subnets that were specified for the Auto Scaling group that is associated with your node group.subnets
(Collection<String> subnets) The subnets that were specified for the Auto Scaling group that is associated with your node group.The metadata applied 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 when they are created.taints
(Consumer<Taint.Builder>... taints) The Kubernetes taints to be applied to the nodes in the node group when they are created.The Kubernetes taints to be applied to the nodes in the node group when they are created.default Nodegroup.Builder
updateConfig
(Consumer<NodegroupUpdateConfig.Builder> updateConfig) The node group update configuration.updateConfig
(NodegroupUpdateConfig updateConfig) The node group update configuration.The Kubernetes version of the managed node group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
nodegroupName
The name associated with an Amazon EKS managed node group.
- Parameters:
nodegroupName
- The name associated with an Amazon EKS managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodegroupArn
The Amazon Resource Name (ARN) associated with the managed node group.
- Parameters:
nodegroupArn
- The Amazon Resource Name (ARN) associated with the managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterName
The name of the cluster that the managed node group resides in.
- Parameters:
clusterName
- The name of the cluster that the managed node group resides in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The Kubernetes version of the managed node group.
- Parameters:
version
- The Kubernetes version of the managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseVersion
If the node group was deployed using a launch template with a custom AMI, then this is the AMI ID that was specified in the launch template. For node groups that weren't deployed using a launch template, this is the version of the Amazon EKS optimized AMI that the node group was deployed with.
- Parameters:
releaseVersion
- If the node group was deployed using a launch template with a custom AMI, then this is the AMI ID that was specified in the launch template. For node groups that weren't deployed using a launch template, this is the version of the Amazon EKS optimized AMI that the node group was deployed with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The Unix epoch timestamp in seconds for when the managed node group was created.
- Parameters:
createdAt
- The Unix epoch timestamp in seconds for when the managed node group was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
The Unix epoch timestamp in seconds for when the managed node group was last modified.
- Parameters:
modifiedAt
- The Unix epoch timestamp in seconds for when the managed node group was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the managed node group.
- Parameters:
status
- The current status of the managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the managed node group.
- Parameters:
status
- The current status of the managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityType
The capacity type of your managed node group.
- Parameters:
capacityType
- The capacity type of your managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityType
The capacity type of your managed node group.
- Parameters:
capacityType
- The capacity type of your managed node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scalingConfig
The scaling configuration details for the Auto Scaling group that is associated with your node group.
- Parameters:
scalingConfig
- The scaling configuration details for the Auto Scaling group that is associated with 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 associated with 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:
-
instanceTypes
If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then this is
null
.- Parameters:
instanceTypes
- If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then this isnull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then this is
null
.- Parameters:
instanceTypes
- If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then this isnull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The subnets that were specified for the Auto Scaling group that is associated with your node group.
- Parameters:
subnets
- The subnets that were specified for the Auto Scaling group that is associated with your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The subnets that were specified for the Auto Scaling group that is associated with your node group.
- Parameters:
subnets
- The subnets that were specified for the Auto Scaling group that is associated with your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteAccess
If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group. If the node group was deployed with a launch template, then this is
null
.- Parameters:
remoteAccess
- If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group. If the node group was deployed with a launch template, then this isnull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteAccess
If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group. If the node group was deployed with a launch template, then this is
This is a convenience method that creates an instance of thenull
.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:
-
amiType
If the node group was deployed using a launch template with a custom AMI, then this is
CUSTOM
. For node groups that weren't deployed using a launch template, this is the AMI type that was specified in the node group configuration.- Parameters:
amiType
- If the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
. For node groups that weren't deployed using a launch template, this is the AMI type that was specified in the node group configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amiType
If the node group was deployed using a launch template with a custom AMI, then this is
CUSTOM
. For node groups that weren't deployed using a launch template, this is the AMI type that was specified in the node group configuration.- Parameters:
amiType
- If the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
. For node groups that weren't deployed using a launch template, this is the AMI type that was specified in the node group configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeRole
The IAM role associated with your node group. The Amazon EKS 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.- Parameters:
nodeRole
- The IAM role associated with your node group. The Amazon EKS 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
The Kubernetes labels applied to the nodes in the node group.
Only labels that are applied with the Amazon EKS API are shown here. There may be other Kubernetes labels applied to the nodes in this group.
- Parameters:
labels
- The Kubernetes labels applied to the nodes in the node group.Only labels that are applied with the Amazon EKS API are shown here. There may be other Kubernetes labels applied to the nodes in this group.
- 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 when they are created. Effect is one of
No_Schedule
,Prefer_No_Schedule
, orNo_Execute
. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. 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 when they are created. Effect is one ofNo_Schedule
,Prefer_No_Schedule
, orNo_Execute
. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. 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 when they are created. Effect is one of
No_Schedule
,Prefer_No_Schedule
, orNo_Execute
. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. 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 when they are created. Effect is one ofNo_Schedule
,Prefer_No_Schedule
, orNo_Execute
. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. 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 when they are created. Effect is one of
This is a convenience method that creates an instance of theNo_Schedule
,Prefer_No_Schedule
, orNo_Execute
. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. For more information, see Node taints on managed node groups.Taint.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:
-
resources
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
- Parameters:
resources
- The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
This is a convenience method that creates an instance of theNodegroupResources.Builder
avoiding the need to create one manually viaNodegroupResources.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(NodegroupResources)
.- Parameters:
resources
- a consumer that will call methods onNodegroupResources.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
diskSize
If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration. If the node group was deployed with a launch template, then this is
null
.- Parameters:
diskSize
- If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration. If the node group was deployed with a launch template, then this isnull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
health
The health status of the node group. If there are issues with your node group's health, they are listed here.
- Parameters:
health
- The health status of the node group. If there are issues with your node group's health, they are listed here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
health
The health status of the node group. If there are issues with your node group's health, they are listed here.
This is a convenience method that creates an instance of theNodegroupHealth.Builder
avoiding the need to create one manually viaNodegroupHealth.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealth(NodegroupHealth)
.- Parameters:
health
- a consumer that will call methods onNodegroupHealth.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
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:
-
launchTemplate
If a launch template was used to create the node group, then this is the launch template that was used.
- Parameters:
launchTemplate
- If a launch template was used to create the node group, then this is the launch template that was used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default Nodegroup.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) If a launch template was used to create the node group, then this is the launch template that was used.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.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:
-
tags
The metadata applied 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 applied 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.
-