@Generated(value="software.amazon.awssdk:codegen") public final class Nodegroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Nodegroup.Builder,Nodegroup>
An object representing an Amazon EKS managed node group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Nodegroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
AMITypes |
amiType()
If the node group was deployed using a launch template with a custom AMI, then this is
CUSTOM. |
String |
amiTypeAsString()
If the node group was deployed using a launch template with a custom AMI, then this is
CUSTOM. |
static Nodegroup.Builder |
builder() |
CapacityTypes |
capacityType()
The capacity type of your managed node group.
|
String |
capacityTypeAsString()
The capacity type of your managed node group.
|
String |
clusterName()
The name of the cluster that the managed node group resides in.
|
Instant |
createdAt()
The Unix epoch timestamp in seconds for when the managed node group was created.
|
Integer |
diskSize()
If the node group wasn't deployed with a launch template, then this is the disk size in the node group
configuration.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstanceTypes()
For responses, this returns true if the service returned a value for the InstanceTypes property.
|
boolean |
hasLabels()
For responses, this returns true if the service returned a value for the Labels property.
|
boolean |
hasSubnets()
For responses, this returns true if the service returned a value for the Subnets property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasTaints()
For responses, this returns true if the service returned a value for the Taints property.
|
NodegroupHealth |
health()
The health status of the node group.
|
List<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.
|
Map<String,String> |
labels()
The Kubernetes labels applied to the nodes in the node group.
|
LaunchTemplateSpecification |
launchTemplate()
If a launch template was used to create the node group, then this is the launch template that was used.
|
Instant |
modifiedAt()
The Unix epoch timestamp in seconds for when the managed node group was last modified.
|
String |
nodegroupArn()
The Amazon Resource Name (ARN) associated with the managed node group.
|
String |
nodegroupName()
The name associated with an Amazon EKS managed node group.
|
String |
nodeRole()
The IAM role associated with your node group.
|
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.
|
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.
|
NodegroupResources |
resources()
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
|
NodegroupScalingConfig |
scalingConfig()
The scaling configuration details for the Auto Scaling group that is associated with your node group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Nodegroup.Builder> |
serializableBuilderClass() |
NodegroupStatus |
status()
The current status of the managed node group.
|
String |
statusAsString()
The current status of the managed node group.
|
List<String> |
subnets()
The subnets that were specified for the Auto Scaling group that is associated with your node group.
|
Map<String,String> |
tags()
The metadata applied to the node group to assist with categorization and organization.
|
List<Taint> |
taints()
The Kubernetes taints to be applied to the nodes in the node group when they are created.
|
Nodegroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
NodegroupUpdateConfig |
updateConfig()
The node group update configuration.
|
String |
version()
The Kubernetes version of the managed node group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String nodegroupName()
The name associated with an Amazon EKS managed node group.
public final String nodegroupArn()
The Amazon Resource Name (ARN) associated with the managed node group.
public final String clusterName()
The name of the cluster that the managed node group resides in.
public final String version()
The Kubernetes version of the managed node group.
public final 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. 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.
public final Instant createdAt()
The Unix epoch timestamp in seconds for when the managed node group was created.
public final Instant modifiedAt()
The Unix epoch timestamp in seconds for when the managed node group was last modified.
public final NodegroupStatus 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
return NodegroupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
NodegroupStatuspublic final String 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
return NodegroupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
NodegroupStatuspublic final CapacityTypes 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
return CapacityTypes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
capacityTypeAsString().
CapacityTypespublic final String 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
return CapacityTypes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
capacityTypeAsString().
CapacityTypespublic final NodegroupScalingConfig scalingConfig()
The scaling configuration details for the Auto Scaling group that is associated with your node group.
public final boolean hasInstanceTypes()
isEmpty() 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.public final List<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. 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.
null.public final boolean hasSubnets()
isEmpty() 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.public final List<String> 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.
public final 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. If the node group was deployed with a launch template, then this is
null.
null.public final AMITypes 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
return AMITypes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
amiTypeAsString().
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.AMITypespublic final String 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
return AMITypes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
amiTypeAsString().
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.AMITypespublic final String 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.
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.public final boolean hasLabels()
isEmpty() 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.public final Map<String,String> 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.
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.
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.
public final boolean hasTaints()
isEmpty() 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.public final List<Taint> 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, or No_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.
No_Schedule, Prefer_No_Schedule, or No_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.public final NodegroupResources resources()
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
public 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. If the node group was deployed with a launch template, then this is null.
null.public final NodegroupHealth health()
The health status of the node group. If there are issues with your node group's health, they are listed here.
public final NodegroupUpdateConfig updateConfig()
The node group update configuration.
public final LaunchTemplateSpecification launchTemplate()
If a launch template was used to create the node group, then this is the launch template that was used.
public final boolean hasTags()
isEmpty() 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.public final Map<String,String> 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.
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.
public Nodegroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Nodegroup.Builder,Nodegroup>public static Nodegroup.Builder builder()
public static Class<? extends Nodegroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.