@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNodegroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateNodegroupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNodegroupRequest |
addLabelsEntry(String key,
String value) |
CreateNodegroupRequest |
addTagsEntry(String key,
String value) |
CreateNodegroupRequest |
clearLabelsEntries()
Removes all the entries added into Labels.
|
CreateNodegroupRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateNodegroupRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAmiType()
The AMI type for your node group.
|
String |
getClientRequestToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getClusterName()
The name of the cluster to create the node group in.
|
Integer |
getDiskSize()
The root device disk size (in GiB) for your node group instances.
|
List<String> |
getInstanceTypes()
The instance type to use for your node group.
|
Map<String,String> |
getLabels()
The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
String |
getNodegroupName()
The unique name to give your node group.
|
String |
getNodeRole()
The IAM role associated with your node group.
|
String |
getReleaseVersion()
The AMI version of the Amazon EKS-optimized AMI to use with your node group.
|
RemoteAccessConfig |
getRemoteAccess()
The remote access (SSH) configuration to use with your node group.
|
NodegroupScalingConfig |
getScalingConfig()
The scaling configuration details for the Auto Scaling group that is created for your node group.
|
List<String> |
getSubnets()
The subnets to use for the Auto Scaling group that is created for your node group.
|
Map<String,String> |
getTags()
The metadata to apply to the node group to assist with categorization and organization.
|
String |
getVersion()
The Kubernetes version to use for your managed nodes.
|
int |
hashCode() |
void |
setAmiType(String amiType)
The AMI type for your node group.
|
void |
setClientRequestToken(String clientRequestToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setClusterName(String clusterName)
The name of the cluster to create the node group in.
|
void |
setDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
The instance type to use for your node group.
|
void |
setLabels(Map<String,String> labels)
The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
void |
setNodegroupName(String nodegroupName)
The unique name to give your node group.
|
void |
setNodeRole(String nodeRole)
The IAM role associated with your node group.
|
void |
setReleaseVersion(String releaseVersion)
The AMI version of the Amazon EKS-optimized AMI to use with your node group.
|
void |
setRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration to use with your node group.
|
void |
setScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is created for your node group.
|
void |
setSubnets(Collection<String> subnets)
The subnets to use for the Auto Scaling group that is created for your node group.
|
void |
setTags(Map<String,String> tags)
The metadata to apply to the node group to assist with categorization and organization.
|
void |
setVersion(String version)
The Kubernetes version to use for your managed nodes.
|
String |
toString()
Returns a string representation of this object.
|
CreateNodegroupRequest |
withAmiType(AMITypes amiType)
The AMI type for your node group.
|
CreateNodegroupRequest |
withAmiType(String amiType)
The AMI type for your node group.
|
CreateNodegroupRequest |
withClientRequestToken(String clientRequestToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateNodegroupRequest |
withClusterName(String clusterName)
The name of the cluster to create the node group in.
|
CreateNodegroupRequest |
withDiskSize(Integer diskSize)
The root device disk size (in GiB) for your node group instances.
|
CreateNodegroupRequest |
withInstanceTypes(Collection<String> instanceTypes)
The instance type to use for your node group.
|
CreateNodegroupRequest |
withInstanceTypes(String... instanceTypes)
The instance type to use for your node group.
|
CreateNodegroupRequest |
withLabels(Map<String,String> labels)
The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
CreateNodegroupRequest |
withNodegroupName(String nodegroupName)
The unique name to give your node group.
|
CreateNodegroupRequest |
withNodeRole(String nodeRole)
The IAM role associated with your node group.
|
CreateNodegroupRequest |
withReleaseVersion(String releaseVersion)
The AMI version of the Amazon EKS-optimized AMI to use with your node group.
|
CreateNodegroupRequest |
withRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration to use with your node group.
|
CreateNodegroupRequest |
withScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is created for your node group.
|
CreateNodegroupRequest |
withSubnets(Collection<String> subnets)
The subnets to use for the Auto Scaling group that is created for your node group.
|
CreateNodegroupRequest |
withSubnets(String... subnets)
The subnets to use for the Auto Scaling group that is created for your node group.
|
CreateNodegroupRequest |
withTags(Map<String,String> tags)
The metadata to apply to the node group to assist with categorization and organization.
|
CreateNodegroupRequest |
withVersion(String version)
The Kubernetes version to use for your managed nodes.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClusterName(String clusterName)
The name of the cluster to create the node group in.
clusterName
- The name of the cluster to create the node group in.public String getClusterName()
The name of the cluster to create the node group in.
public CreateNodegroupRequest withClusterName(String clusterName)
The name of the cluster to create the node group in.
clusterName
- The name of the cluster to create the node group in.public void setNodegroupName(String nodegroupName)
The unique name to give your node group.
nodegroupName
- The unique name to give your node group.public String getNodegroupName()
The unique name to give your node group.
public CreateNodegroupRequest withNodegroupName(String nodegroupName)
The unique name to give your node group.
nodegroupName
- The unique name to give your node group.public void setScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is created for your node group.
scalingConfig
- The scaling configuration details for the Auto Scaling group that is created for your node group.public NodegroupScalingConfig getScalingConfig()
The scaling configuration details for the Auto Scaling group that is created for your node group.
public CreateNodegroupRequest withScalingConfig(NodegroupScalingConfig scalingConfig)
The scaling configuration details for the Auto Scaling group that is created for your node group.
scalingConfig
- The scaling configuration details for the Auto Scaling group that is created for your node group.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 CreateNodegroupRequest 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 List<String> getSubnets()
The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have the
tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.
kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
,
where CLUSTER_NAME
is replaced with the name of your cluster.public void setSubnets(Collection<String> subnets)
The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have the
tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.
subnets
- The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have
the tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.public CreateNodegroupRequest withSubnets(String... subnets)
The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have the
tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, 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 to use for the Auto Scaling group that is created for your node group. These subnets must have
the tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.public CreateNodegroupRequest withSubnets(Collection<String> subnets)
The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have the
tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.
subnets
- The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have
the tag key kubernetes.io/cluster/CLUSTER_NAME
with a value of shared
, where
CLUSTER_NAME
is replaced with the name of your cluster.public List<String> getInstanceTypes()
The instance type to use for your node group. Currently, you can specify a single instance type for a node group.
The default value for this parameter is t3.medium
. If you choose a GPU instance type, be sure to
specify the AL2_x86_64_GPU
with the amiType
parameter.
t3.medium
. If you choose a GPU instance
type, be sure to specify the AL2_x86_64_GPU
with the amiType
parameter.public void setInstanceTypes(Collection<String> instanceTypes)
The instance type to use for your node group. Currently, you can specify a single instance type for a node group.
The default value for this parameter is t3.medium
. If you choose a GPU instance type, be sure to
specify the AL2_x86_64_GPU
with the amiType
parameter.
instanceTypes
- The instance type to use for your node group. Currently, you can specify a single instance type for a node
group. The default value for this parameter is t3.medium
. If you choose a GPU instance type,
be sure to specify the AL2_x86_64_GPU
with the amiType
parameter.public CreateNodegroupRequest withInstanceTypes(String... instanceTypes)
The instance type to use for your node group. Currently, you can specify a single instance type for a node group.
The default value for this parameter is t3.medium
. If you choose a GPU instance type, be sure to
specify the AL2_x86_64_GPU
with the amiType
parameter.
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 type to use for your node group. Currently, you can specify a single instance type for a node
group. The default value for this parameter is t3.medium
. If you choose a GPU instance type,
be sure to specify the AL2_x86_64_GPU
with the amiType
parameter.public CreateNodegroupRequest withInstanceTypes(Collection<String> instanceTypes)
The instance type to use for your node group. Currently, you can specify a single instance type for a node group.
The default value for this parameter is t3.medium
. If you choose a GPU instance type, be sure to
specify the AL2_x86_64_GPU
with the amiType
parameter.
instanceTypes
- The instance type to use for your node group. Currently, you can specify a single instance type for a node
group. The default value for this parameter is t3.medium
. If you choose a GPU instance type,
be sure to specify the AL2_x86_64_GPU
with the amiType
parameter.public void setAmiType(String amiType)
The AMI type for 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 for 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 for 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 CreateNodegroupRequest withAmiType(String amiType)
The AMI type for 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 for 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 CreateNodegroupRequest withAmiType(AMITypes amiType)
The AMI type for 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 for 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 setRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration to use with your node group.
remoteAccess
- The remote access (SSH) configuration to use with your node group.public RemoteAccessConfig getRemoteAccess()
The remote access (SSH) configuration to use with your node group.
public CreateNodegroupRequest withRemoteAccess(RemoteAccessConfig remoteAccess)
The remote access (SSH) configuration to use with your node group.
remoteAccess
- The remote access (SSH) configuration to use with your node group.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 CreateNodegroupRequest 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 to be applied to the nodes in the node group when they are created.
public void setLabels(Map<String,String> labels)
The Kubernetes labels to be applied to the nodes in the node group when they are created.
labels
- The Kubernetes labels to be applied to the nodes in the node group when they are created.public CreateNodegroupRequest withLabels(Map<String,String> labels)
The Kubernetes labels to be applied to the nodes in the node group when they are created.
labels
- The Kubernetes labels to be applied to the nodes in the node group when they are created.public CreateNodegroupRequest addLabelsEntry(String key, String value)
public CreateNodegroupRequest clearLabelsEntries()
public Map<String,String> getTags()
The metadata to apply 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 to apply 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 to apply 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 CreateNodegroupRequest withTags(Map<String,String> tags)
The metadata to apply 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 to apply 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 CreateNodegroupRequest addTagsEntry(String key, String value)
public CreateNodegroupRequest clearTagsEntries()
public void setClientRequestToken(String clientRequestToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public String getClientRequestToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public CreateNodegroupRequest withClientRequestToken(String clientRequestToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public void setVersion(String version)
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value.
version
- The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is
used, and this is the only accepted specified value.public String getVersion()
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value.
public CreateNodegroupRequest withVersion(String version)
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value.
version
- The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is
used, and this is the only accepted specified value.public void setReleaseVersion(String releaseVersion)
The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
releaseVersion
- The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest
available AMI version for the node group's current Kubernetes version is used. For more information, see
Amazon
EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.public String getReleaseVersion()
The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
public CreateNodegroupRequest withReleaseVersion(String releaseVersion)
The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.
releaseVersion
- The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest
available AMI version for the node group's current Kubernetes version is used. For more information, see
Amazon
EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide.public String toString()
toString
in class Object
Object.toString()
public CreateNodegroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.