@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()
Returns true if the InstanceTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasLabels()
Returns true if the Labels property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasSubnets()
Returns true if the Subnets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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.
|
Nodegroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The Kubernetes version of the managed node group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String nodegroupName()
The name associated with an Amazon EKS managed node group.
public String nodegroupArn()
The Amazon Resource Name (ARN) associated with the managed node group.
public String clusterName()
The name of the cluster that the managed node group resides in.
public String version()
The Kubernetes version of the managed node group.
public 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 Instant createdAt()
The Unix epoch timestamp in seconds for when the managed node group was created.
public Instant modifiedAt()
The Unix epoch timestamp in seconds for when the managed node group was last modified.
public 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 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 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 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 NodegroupScalingConfig scalingConfig()
The scaling configuration details for the Auto Scaling group that is associated with your node group.
public boolean hasInstanceTypes()
public 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.
You can use hasInstanceTypes() to see if a value was sent in this field.
null.public boolean hasSubnets()
public 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.
You can use hasSubnets() to see if a value was sent in this field.
public 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 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 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 String nodeRole()
The IAM role associated with your node group. The Amazon EKS worker node kubelet daemon makes calls
to AWS APIs on your behalf. Worker nodes receive permissions for these API calls through an IAM instance profile
and associated policies.
kubelet daemon
makes calls to AWS APIs on your behalf. Worker nodes receive permissions for these API calls through an
IAM instance profile and associated policies.public boolean hasLabels()
public 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.
You can use hasLabels() to see if a value was sent in this field.
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 NodegroupResources resources()
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
public 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 NodegroupHealth health()
The health status of the node group. If there are issues with your node group's health, they are listed here.
public LaunchTemplateSpecification launchTemplate()
If a launch template was used to create the node group, then this is the launch template that was used.
public boolean hasTags()
public 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, both of which you define. 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.
You can use hasTags() to see if a value was sent in this field.
public Nodegroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Nodegroup.Builder,Nodegroup>public static Nodegroup.Builder builder()
public static Class<? extends Nodegroup.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.