Class Nodegroup
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Nodegroup.Builder,
Nodegroup>
An object representing an Amazon EKS managed node group.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AMITypes
amiType()
If the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
.final String
If the node group was deployed using a launch template with a custom AMI, then this isCUSTOM
.static Nodegroup.Builder
builder()
final CapacityTypes
The capacity type of your managed node group.final String
The capacity type of your managed node group.final String
The name of your cluster.final Instant
The Unix epoch timestamp at object creation.final Integer
diskSize()
If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InstanceTypes property.final boolean
For responses, this returns true if the service returned a value for the Labels property.final boolean
For responses, this returns true if the service returned a value for the Subnets property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final boolean
For responses, this returns true if the service returned a value for the Taints property.final NodegroupHealth
health()
The health status of the node group.If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group.labels()
The Kuberneteslabels
applied to the nodes in the node group.If a launch template was used to create the node group, then this is the launch template that was used.final Instant
The Unix epoch timestamp for the last modification to the object.final String
The Amazon Resource Name (ARN) associated with the managed node group.final String
The name associated with an Amazon EKS managed node group.final String
nodeRole()
The IAM role associated with your node group.final String
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.final RemoteAccessConfig
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.final NodegroupResources
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.final NodegroupScalingConfig
The scaling configuration details for the Auto Scaling group that is associated with your node group.static Class
<? extends Nodegroup.Builder> final NodegroupStatus
status()
The current status of the managed node group.final String
The current status of the managed node group.subnets()
The subnets that were specified for the Auto Scaling group that is associated with your node group.tags()
Metadata that assists with categorization and organization.taints()
The Kubernetes taints to be applied to the nodes in the node group when they are created.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final NodegroupUpdateConfig
The node group update configuration.final String
version()
The Kubernetes version of the managed node group.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
nodegroupName
The name associated with an Amazon EKS managed node group.
- Returns:
- The name associated with an Amazon EKS managed node group.
-
nodegroupArn
The Amazon Resource Name (ARN) associated with the managed node group.
- Returns:
- The Amazon Resource Name (ARN) associated with the managed node group.
-
clusterName
-
version
The Kubernetes version of the managed node group.
- Returns:
- The Kubernetes version of the managed node group.
-
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:
- 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.
-
createdAt
The Unix epoch timestamp at object creation.
- Returns:
- The Unix epoch timestamp at object creation.
-
modifiedAt
The Unix epoch timestamp for the last modification to the object.
- Returns:
- The Unix epoch timestamp for the last modification to the object.
-
status
The current status of the managed node group.
If the service returns an enum value that is not available in the current SDK version,
status
will returnNodegroupStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current status of the managed node group.
- See Also:
-
statusAsString
The current status of the managed node group.
If the service returns an enum value that is not available in the current SDK version,
status
will returnNodegroupStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current status of the managed node group.
- See Also:
-
capacityType
The capacity type of your managed node group.
If the service returns an enum value that is not available in the current SDK version,
capacityType
will returnCapacityTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcapacityTypeAsString()
.- Returns:
- The capacity type of your managed node group.
- See Also:
-
capacityTypeAsString
The capacity type of your managed node group.
If the service returns an enum value that is not available in the current SDK version,
capacityType
will returnCapacityTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcapacityTypeAsString()
.- Returns:
- The capacity type of your managed node group.
- See Also:
-
scalingConfig
The scaling configuration details for the Auto Scaling group that is associated with your node group.
- Returns:
- The scaling configuration details for the Auto Scaling group that is associated with your node group.
-
hasInstanceTypes
public final boolean hasInstanceTypes()For responses, this returns true if the service returned a value for the InstanceTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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
.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInstanceTypes()
method.- Returns:
- 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
.
-
hasSubnets
public final boolean hasSubnets()For responses, this returns true if the service returned a value for the Subnets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
subnets
The subnets that were specified for the Auto Scaling group that is associated with your node group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSubnets()
method.- Returns:
- The subnets that were specified for the Auto Scaling group that is associated with your node group.
-
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
.- Returns:
- 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
.
-
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.If the service returns an enum value that is not available in the current SDK version,
amiType
will returnAMITypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromamiTypeAsString()
.- Returns:
- 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. - See Also:
-
amiTypeAsString
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.If the service returns an enum value that is not available in the current SDK version,
amiType
will returnAMITypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromamiTypeAsString()
.- Returns:
- 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. - 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.- Returns:
- 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.
-
hasLabels
public final boolean hasLabels()For responses, this returns true if the service returned a value for the Labels property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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 Kuberneteslabels
applied to the nodes in this group.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLabels()
method.- Returns:
- 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 Kuberneteslabels
applied to the nodes in this group.
-
hasTaints
public final boolean hasTaints()For responses, this returns true if the service returned a value for the Taints property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTaints()
method.- Returns:
- 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.
-
resources
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
- Returns:
- The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
-
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
.- Returns:
- 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
.
-
health
The health status of the node group. If there are issues with your node group's health, they are listed here.
- Returns:
- The health status of the node group. If there are issues with your node group's health, they are listed here.
-
updateConfig
The node group update configuration.
- Returns:
- The node group update configuration.
-
launchTemplate
If a launch template was used to create the node group, then this is the launch template that was used.
- Returns:
- If a launch template was used to create the node group, then this is the launch template that was used.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()
method.- Returns:
- Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Nodegroup.Builder,
Nodegroup> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-