@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Nodegroup extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an Amazon EKS managed node group.
Constructor and Description |
---|
Nodegroup() |
Modifier and Type | Method and Description |
---|---|
Nodegroup |
addLabelsEntry(String key,
String value)
Add a single Labels entry
|
Nodegroup |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Nodegroup |
clearLabelsEntries()
Removes all the entries added into Labels.
|
Nodegroup |
clearTagsEntries()
Removes all the entries added into Tags.
|
Nodegroup |
clone() |
boolean |
equals(Object obj) |
String |
getAmiType()
The AMI type associated with your node group.
|
String |
getClusterName()
The name of the cluster that the managed node group resides in.
|
Date |
getCreatedAt()
The Unix epoch timestamp in seconds for when the managed node group was created.
|
Integer |
getDiskSize()
The root device disk size (in GiB) for your node group instances.
|
NodegroupHealth |
getHealth()
The health status of the node group.
|
List<String> |
getInstanceTypes()
The instance types associated with your node group.
|
Map<String,String> |
getLabels()
The Kubernetes labels applied to the nodes in the node group.
|
Date |
getModifiedAt()
The Unix epoch timestamp in seconds for when the managed node group was last modified.
|
String |
getNodegroupArn()
The Amazon Resource Name (ARN) associated with the managed node group.
|
String |
getNodegroupName()
The name associated with an Amazon EKS managed node group.
|
String |
getNodeRole()
The IAM role associated with your node group.
|
String |
getReleaseVersion()
The AMI version of the managed node group.
|
RemoteAccessConfig |
getRemoteAccess()
The remote access (SSH) configuration that is associated with the node group.
|
NodegroupResources |
getResources()
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
|
NodegroupScalingConfig |
getScalingConfig()
The scaling configuration details for the Auto Scaling group that is associated with your node group.
|
String |
getStatus()
The current status of the managed node group.
|
List<String> |
getSubnets()
The subnets allowed for the Auto Scaling group that is associated with your node group.
|
Map<String,String> |
getTags()
The metadata applied to the node group to assist with categorization and organization.
|
String |
getVersion()
The Kubernetes version of the managed node group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmiType(String amiType)
The AMI type associated with your node group.
|
void |
setClusterName(String clusterName)
The name of the cluster that the managed node group resides in.
|
void |
setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the managed node group was created.
|
void |
setDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances.
|
void |
setHealth(NodegroupHealth health)
The health status of the node group.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
The instance types associated with your node group.
|
void |
setLabels(Map<String,String> labels)
The Kubernetes labels applied to the nodes in the node group.
|
void |
setModifiedAt(Date modifiedAt)
The Unix epoch timestamp in seconds for when the managed node group was last modified.
|
void |
setNodegroupArn(String nodegroupArn)
The Amazon Resource Name (ARN) associated with the managed node group.
|
void |
setNodegroupName(String nodegroupName)
The name associated with an Amazon EKS managed node group.
|
void |
setNodeRole(String nodeRole)
The IAM role associated with your node group.
|
void |
setReleaseVersion(String releaseVersion)
The AMI version of the managed node group.
|
void |
setRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration that is associated with the node group.
|
void |
setResources(NodegroupResources resources)
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
|
void |
setScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is associated with your node group.
|
void |
setStatus(String status)
The current status of the managed node group.
|
void |
setSubnets(Collection<String> subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group.
|
void |
setTags(Map<String,String> tags)
The metadata applied to the node group to assist with categorization and organization.
|
void |
setVersion(String version)
The Kubernetes version of the managed node group.
|
String |
toString()
Returns a string representation of this object.
|
Nodegroup |
withAmiType(AMITypes amiType)
The AMI type associated with your node group.
|
Nodegroup |
withAmiType(String amiType)
The AMI type associated with your node group.
|
Nodegroup |
withClusterName(String clusterName)
The name of the cluster that the managed node group resides in.
|
Nodegroup |
withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the managed node group was created.
|
Nodegroup |
withDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances.
|
Nodegroup |
withHealth(NodegroupHealth health)
The health status of the node group.
|
Nodegroup |
withInstanceTypes(Collection<String> instanceTypes)
The instance types associated with your node group.
|
Nodegroup |
withInstanceTypes(String... instanceTypes)
The instance types associated with your node group.
|
Nodegroup |
withLabels(Map<String,String> labels)
The Kubernetes labels applied to the nodes in the node group.
|
Nodegroup |
withModifiedAt(Date modifiedAt)
The Unix epoch timestamp in seconds for when the managed node group was last modified.
|
Nodegroup |
withNodegroupArn(String nodegroupArn)
The Amazon Resource Name (ARN) associated with the managed node group.
|
Nodegroup |
withNodegroupName(String nodegroupName)
The name associated with an Amazon EKS managed node group.
|
Nodegroup |
withNodeRole(String nodeRole)
The IAM role associated with your node group.
|
Nodegroup |
withReleaseVersion(String releaseVersion)
The AMI version of the managed node group.
|
Nodegroup |
withRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration that is associated with the node group.
|
Nodegroup |
withResources(NodegroupResources resources)
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
|
Nodegroup |
withScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is associated with your node group.
|
Nodegroup |
withStatus(NodegroupStatus status)
The current status of the managed node group.
|
Nodegroup |
withStatus(String status)
The current status of the managed node group.
|
Nodegroup |
withSubnets(Collection<String> subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group.
|
Nodegroup |
withSubnets(String... subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group.
|
Nodegroup |
withTags(Map<String,String> tags)
The metadata applied to the node group to assist with categorization and organization.
|
Nodegroup |
withVersion(String version)
The Kubernetes version of the managed node group.
|
public void setNodegroupName(String nodegroupName)
The name associated with an Amazon EKS managed node group.
nodegroupName
- The name associated with an Amazon EKS managed node group.public String getNodegroupName()
The name associated with an Amazon EKS managed node group.
public Nodegroup withNodegroupName(String nodegroupName)
The name associated with an Amazon EKS managed node group.
nodegroupName
- The name associated with an Amazon EKS managed node group.public void setNodegroupArn(String nodegroupArn)
The Amazon Resource Name (ARN) associated with the managed node group.
nodegroupArn
- The Amazon Resource Name (ARN) associated with the managed node group.public String getNodegroupArn()
The Amazon Resource Name (ARN) associated with the managed node group.
public Nodegroup withNodegroupArn(String nodegroupArn)
The Amazon Resource Name (ARN) associated with the managed node group.
nodegroupArn
- The Amazon Resource Name (ARN) associated with the managed node group.public void setClusterName(String clusterName)
The name of the cluster that the managed node group resides in.
clusterName
- The name of the cluster that the managed node group resides in.public String getClusterName()
The name of the cluster that the managed node group resides in.
public Nodegroup withClusterName(String clusterName)
The name of the cluster that the managed node group resides in.
clusterName
- The name of the cluster that the managed node group resides in.public void setVersion(String version)
The Kubernetes version of the managed node group.
version
- The Kubernetes version of the managed node group.public String getVersion()
The Kubernetes version of the managed node group.
public Nodegroup withVersion(String version)
The Kubernetes version of the managed node group.
version
- The Kubernetes version of the managed node group.public void setReleaseVersion(String releaseVersion)
The AMI version of the managed node group. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
releaseVersion
- The AMI version of the managed node group. For more information, see Amazon EKS-Optimized
Linux AMI Versions in the Amazon EKS User Guide.public String getReleaseVersion()
The AMI version of the managed node group. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
public Nodegroup withReleaseVersion(String releaseVersion)
The AMI version of the managed node group. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
releaseVersion
- The AMI version of the managed node group. For more information, see Amazon EKS-Optimized
Linux AMI Versions in the Amazon EKS User Guide.public void setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the managed node group was created.
createdAt
- The Unix epoch timestamp in seconds for when the managed node group was created.public Date getCreatedAt()
The Unix epoch timestamp in seconds for when the managed node group was created.
public Nodegroup withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the managed node group was created.
createdAt
- The Unix epoch timestamp in seconds for when the managed node group was created.public void setModifiedAt(Date modifiedAt)
The Unix epoch timestamp in seconds for when the managed node group was last modified.
modifiedAt
- The Unix epoch timestamp in seconds for when the managed node group was last modified.public Date getModifiedAt()
The Unix epoch timestamp in seconds for when the managed node group was last modified.
public Nodegroup withModifiedAt(Date modifiedAt)
The Unix epoch timestamp in seconds for when the managed node group was last modified.
modifiedAt
- The Unix epoch timestamp in seconds for when the managed node group was last modified.public void setStatus(String status)
The current status of the managed node group.
status
- The current status of the managed node group.NodegroupStatus
public String getStatus()
The current status of the managed node group.
NodegroupStatus
public Nodegroup withStatus(String status)
The current status of the managed node group.
status
- The current status of the managed node group.NodegroupStatus
public Nodegroup withStatus(NodegroupStatus status)
The current status of the managed node group.
status
- The current status of the managed node group.NodegroupStatus
public void setScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is associated with your node group.
scalingConfig
- The scaling configuration details for the Auto Scaling group that is associated with your node group.public NodegroupScalingConfig getScalingConfig()
The scaling configuration details for the Auto Scaling group that is associated with your node group.
public Nodegroup withScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is associated with your node group.
scalingConfig
- The scaling configuration details for the Auto Scaling group that is associated with your node group.public List<String> getInstanceTypes()
The instance types associated with your node group.
public void setInstanceTypes(Collection<String> instanceTypes)
The instance types associated with your node group.
instanceTypes
- The instance types associated with your node group.public Nodegroup withInstanceTypes(String... instanceTypes)
The instance types associated with your node group.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypes(java.util.Collection)
or withInstanceTypes(java.util.Collection)
if you want
to override the existing values.
instanceTypes
- The instance types associated with your node group.public Nodegroup withInstanceTypes(Collection<String> instanceTypes)
The instance types associated with your node group.
instanceTypes
- The instance types associated with your node group.public List<String> getSubnets()
The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must have
the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced
with the name of your cluster.
kubernetes.io/cluster/CLUSTER_NAME
, where
CLUSTER_NAME
is replaced with the name of your cluster.public void setSubnets(Collection<String> subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must have
the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced
with the name of your cluster.
subnets
- The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must
have the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced with the name of your cluster.public Nodegroup withSubnets(String... subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must have
the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced
with the name of your cluster.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must
have the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced with the name of your cluster.public Nodegroup withSubnets(Collection<String> subnets)
The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must have
the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced
with the name of your cluster.
subnets
- The subnets allowed for the Auto Scaling group that is associated with your node group. These subnets must
have the following tag: kubernetes.io/cluster/CLUSTER_NAME
, where CLUSTER_NAME
is replaced with the name of your cluster.public void setRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration that is associated with the node group.
remoteAccess
- The remote access (SSH) configuration that is associated with the node group.public RemoteAccessConfig getRemoteAccess()
The remote access (SSH) configuration that is associated with the node group.
public Nodegroup withRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration that is associated with the node group.
remoteAccess
- The remote access (SSH) configuration that is associated with the node group.public void setAmiType(String amiType)
The AMI type associated with your node group. GPU instance types should use the AL2_x86_64_GPU
AMI
type, which uses the Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the
AL2_x86_64
AMI type, which uses the Amazon EKS-optimized Linux AMI.
amiType
- The AMI type associated with your node group. GPU instance types should use the
AL2_x86_64_GPU
AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support.
Non-GPU instances should use the AL2_x86_64
AMI type, which uses the Amazon EKS-optimized
Linux AMI.AMITypes
public String getAmiType()
The AMI type associated with your node group. GPU instance types should use the AL2_x86_64_GPU
AMI
type, which uses the Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the
AL2_x86_64
AMI type, which uses the Amazon EKS-optimized Linux AMI.
AL2_x86_64_GPU
AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support.
Non-GPU instances should use the AL2_x86_64
AMI type, which uses the Amazon EKS-optimized
Linux AMI.AMITypes
public Nodegroup withAmiType(String amiType)
The AMI type associated with your node group. GPU instance types should use the AL2_x86_64_GPU
AMI
type, which uses the Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the
AL2_x86_64
AMI type, which uses the Amazon EKS-optimized Linux AMI.
amiType
- The AMI type associated with your node group. GPU instance types should use the
AL2_x86_64_GPU
AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support.
Non-GPU instances should use the AL2_x86_64
AMI type, which uses the Amazon EKS-optimized
Linux AMI.AMITypes
public Nodegroup withAmiType(AMITypes amiType)
The AMI type associated with your node group. GPU instance types should use the AL2_x86_64_GPU
AMI
type, which uses the Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the
AL2_x86_64
AMI type, which uses the Amazon EKS-optimized Linux AMI.
amiType
- The AMI type associated with your node group. GPU instance types should use the
AL2_x86_64_GPU
AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support.
Non-GPU instances should use the AL2_x86_64
AMI type, which uses the Amazon EKS-optimized
Linux AMI.AMITypes
public void setNodeRole(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. Before you can launch worker nodes and register them into a cluster, you must create an
IAM role for those worker nodes to use when they are launched. For more information, see Amazon EKS Worker Node IAM
Role in the Amazon EKS User Guide .
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. Before you can launch worker nodes and register them into a
cluster, you must create an IAM role for those worker nodes to use when they are launched. For more
information, see Amazon EKS Worker Node
IAM Role in the Amazon EKS User Guide .public String getNodeRole()
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. Before you can launch worker nodes and register them into a cluster, you must create an
IAM role for those worker nodes to use when they are launched. For more information, see Amazon EKS Worker Node IAM
Role in the Amazon EKS User Guide .
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. Before you can launch worker nodes and register them into a
cluster, you must create an IAM role for those worker nodes to use when they are launched. For more
information, see Amazon EKS Worker Node
IAM Role in the Amazon EKS User Guide .public Nodegroup withNodeRole(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. Before you can launch worker nodes and register them into a cluster, you must create an
IAM role for those worker nodes to use when they are launched. For more information, see Amazon EKS Worker Node IAM
Role in the Amazon EKS User Guide .
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. Before you can launch worker nodes and register them into a
cluster, you must create an IAM role for those worker nodes to use when they are launched. For more
information, see Amazon EKS Worker Node
IAM Role in the Amazon EKS User Guide .public Map<String,String> getLabels()
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.
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 void setLabels(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.
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.
public Nodegroup withLabels(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.
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.
public Nodegroup clearLabelsEntries()
public void setResources(NodegroupResources resources)
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
resources
- The resources associated with the node group, such as Auto Scaling groups and security groups for remote
access.public NodegroupResources getResources()
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
public Nodegroup withResources(NodegroupResources resources)
The resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
resources
- The resources associated with the node group, such as Auto Scaling groups and security groups for remote
access.public void setDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.
diskSize
- The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.public Integer getDiskSize()
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.
public Nodegroup withDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.
diskSize
- The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.public void setHealth(NodegroupHealth health)
The health status of the node group. If there are issues with your node group's health, they are listed here.
health
- The health status of the node group. If there are issues with your node group's health, they are listed
here.public NodegroupHealth getHealth()
The health status of the node group. If there are issues with your node group's health, they are listed here.
public Nodegroup withHealth(NodegroupHealth health)
The health status of the node group. If there are issues with your node group's health, they are listed here.
health
- The health status of the node group. If there are issues with your node group's health, they are listed
here.public Map<String,String> getTags()
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.
public void setTags(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.
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.public Nodegroup withTags(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.
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.public Nodegroup clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.