Class CreateNodegroupRequest
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<CreateNodegroupRequest.Builder,
CreateNodegroupRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AMITypes
amiType()
The AMI type for your node group.final String
The AMI type for your node group.builder()
final CapacityTypes
The capacity type for your node group.final String
The capacity type for your node group.final String
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.final String
The name of the cluster to create the node group in.final Integer
diskSize()
The root device disk size (in GiB) for your node group instances.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) Used to retrieve the value of a field from any class that extendsSdkRequest
.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.Specify the instance types for a node group.labels()
The Kubernetes labels to be applied to the nodes in the node group when they are created.An object representing a node group's launch template specification.final String
The unique name to give your node group.final String
nodeRole()
The Amazon Resource Name (ARN) of the IAM role to associate with your node group.final String
The AMI version of the Amazon EKS optimized AMI to use with your node group.final RemoteAccessConfig
The remote access configuration to use with your node group.final NodegroupScalingConfig
The scaling configuration details for the Auto Scaling group that is created for your node group.static Class
<? extends CreateNodegroupRequest.Builder> subnets()
The subnets to use for the Auto Scaling group that is created for your node group.tags()
The metadata to apply to the node group to assist with categorization and organization.taints()
The Kubernetes taints to be applied to the nodes in the node group.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 to use for your managed nodes.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
clusterName
The name of the cluster to create the node group in.
- Returns:
- The name of the cluster to create the node group in.
-
nodegroupName
The unique name to give your node group.
- Returns:
- The unique name to give your node group.
-
scalingConfig
The scaling configuration details for the Auto Scaling group that is created for your node group.
- Returns:
- The scaling configuration details for the Auto Scaling group that is created for your node group.
-
diskSize
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB for Linux and Bottlerocket. The default disk size is 50 GiB for Windows. If you specify
launchTemplate
, then don't specifydiskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB for
Linux and Bottlerocket. The default disk size is 50 GiB for Windows. If you specify
launchTemplate
, then don't specifydiskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
-
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 to use for the Auto Scaling group that is created for your node group. If you specify
launchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.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 to use for the Auto Scaling group that is created for your node group. If you specify
launchTemplate
, then don't specifySubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
-
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
Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with the
amiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.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:
- Specify the instance types for a node group. If you specify a GPU instance type, make sure to also
specify an applicable GPU AMI type with the
amiType
parameter. If you specifylaunchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types forinstanceTypes
. If however, you specify an instance type in your launch template and specify anyinstanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or forinstanceTypes
, thent3.medium
is used, by default. If you specifySpot
forcapacityType
, then we recommend specifying multiple values forinstanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.
-
amiType
The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.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:
- The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide. - See Also:
-
amiTypeAsString
The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.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:
- The AMI type for your node group. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyamiType
, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then addeks:kube-proxy-windows
to your Windows nodesrolearn
in theaws-auth
ConfigMap
. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide. - See Also:
-
remoteAccess
The remote access configuration to use with your node group. For Linux, the protocol is SSH. For Windows, the protocol is RDP. If you specify
launchTemplate
, then don't specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- The remote access configuration to use with your node group. For Linux, the protocol is SSH. For Windows,
the protocol is RDP. If you specify
launchTemplate
, then don't specifyremoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
-
nodeRole
The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker 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. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specifylaunchTemplate
, then don't specifyIamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker
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. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specifylaunchTemplate
, then don't specifyIamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
-
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 to be applied to the nodes in the node group when they are created.
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 to be applied to the nodes in the node group when they are created.
-
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. 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. For more information, see Node taints on managed node groups.
-
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
The metadata to apply 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.- Returns:
- The metadata to apply 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.
-
clientRequestToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Returns:
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
launchTemplate
An object representing a node group's launch template specification. If specified, then do not specify
instanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.- Returns:
- An object representing a node group's launch template specification. If specified, then do not specify
instanceTypes
,diskSize
, orremoteAccess
and make sure that the launch template meets the requirements inlaunchTemplateSpecification
.
-
updateConfig
The node group update configuration.
- Returns:
- The node group update configuration.
-
capacityType
The capacity type for your 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 for your node group.
- See Also:
-
capacityTypeAsString
The capacity type for your 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 for your node group.
- See Also:
-
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. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- 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. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support 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 information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.
If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyreleaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- 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 information about
Linux versions, see Amazon EKS optimized
Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support
the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS
optimized Windows AMI versions in the Amazon EKS User Guide.
If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyreleaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
-
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<CreateNodegroupRequest.Builder,
CreateNodegroupRequest> - Specified by:
toBuilder
in classEksRequest
- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAwsRequest
-
equals
- Overrides:
equals
in classAwsRequest
-
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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
Description copied from class:SdkRequest
Used to retrieve the value of a field from any class that extendsSdkRequest
. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)
method will again be available.- Overrides:
getValueForField
in classSdkRequest
- Parameters:
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-