Class CreateNodegroupRequest
- All Implemented Interfaces:
- SdkPojo,- ToCopyableBuilder<CreateNodegroupRequest.Builder,- CreateNodegroupRequest> 
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal AMITypesamiType()The AMI type for your node group.final StringThe AMI type for your node group.builder()final CapacityTypesThe capacity type for your node group.final StringThe capacity type for your node group.final StringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.final StringThe name of your cluster.final IntegerdiskSize()The root device disk size (in GiB) for your node group instances.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final booleanFor responses, this returns true if the service returned a value for the InstanceTypes property.final booleanFor responses, this returns true if the service returned a value for the Labels property.final booleanFor responses, this returns true if the service returned a value for the Subnets property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the Taints property.Specify the instance types for a node group.labels()The Kuberneteslabelsto apply to the nodes in the node group when they are created.An object representing a node group's launch template specification.final StringThe unique name to give your node group.final NodeRepairConfigThe node auto repair configuration for the node group.final StringnodeRole()The Amazon Resource Name (ARN) of the IAM role to associate with your node group.final StringThe AMI version of the Amazon EKS optimized AMI to use with your node group.final RemoteAccessConfigThe remote access configuration to use with your node group.final NodegroupScalingConfigThe 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()Metadata that assists 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 StringtoString()Returns a string representation of this object.final NodegroupUpdateConfigThe node group update configuration.final Stringversion()The Kubernetes version to use for your managed nodes.Methods inherited from class software.amazon.awssdk.awscore.AwsRequestoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
clusterName
- 
nodegroupNameThe unique name to give your node group. - Returns:
- The unique name to give your node group.
 
- 
scalingConfigThe 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.
 
- 
diskSizeThe 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 Customizing managed nodes with launch templates 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
hasSubnetspublic 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.
- 
subnetsThe subnets to use for the Auto Scaling group that is created for your node group. If you specify launchTemplate, then don't specifySubnetIdin your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates 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 specifySubnetIdin your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
hasInstanceTypespublic 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.
- 
instanceTypesSpecify 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 amiTypeparameter. 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.mediumis used, by default. If you specifySpotforcapacityType, then we recommend specifying multiple values forinstanceTypes. For more information, see Managed node group capacity types and Customizing managed nodes with launch templates 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 amiTypeparameter. 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.mediumis used, by default. If you specifySpotforcapacityType, then we recommend specifying multiple values forinstanceTypes. For more information, see Managed node group capacity types and Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
amiTypeThe 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-windowsto your Windows nodesrolearnin theaws-authConfigMap. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.If the service returns an enum value that is not available in the current SDK version, amiTypewill 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-windowsto your Windows nodesrolearnin theaws-authConfigMap. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.
- See Also:
 
- 
amiTypeAsStringThe 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-windowsto your Windows nodesrolearnin theaws-authConfigMap. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.If the service returns an enum value that is not available in the current SDK version, amiTypewill 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-windowsto your Windows nodesrolearnin theaws-authConfigMap. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.
- See Also:
 
- 
remoteAccessThe 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 Customizing managed nodes with launch templates 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
nodeRoleThe Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node kubeletdaemon 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 specifyIamInstanceProfilein your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates 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 kubeletdaemon 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 specifyIamInstanceProfilein your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
hasLabelspublic 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.
- 
labelsThe Kubernetes labelsto apply 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 labelsto apply to the nodes in the node group when they are created.
 
- 
hasTaintspublic 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.
- 
taintsThe 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.
 
- 
hasTagspublic 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.
- 
tagsMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. 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:
- Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
 
- 
clientRequestTokenA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. - Returns:
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
 
- 
launchTemplateAn object representing a node group's launch template specification. When using this object, don't directly specify instanceTypes,diskSize, orremoteAccess. You cannot later specify a different launch template ID or name than what was used to create the node group.Make sure that the launch template meets the requirements in launchTemplateSpecification. Also refer to Customizing managed nodes with launch templates in the Amazon EKS User Guide.- Returns:
- An object representing a node group's launch template specification. When using this object, don't
         directly specify instanceTypes,diskSize, orremoteAccess. You cannot later specify a different launch template ID or name than what was used to create the node group.Make sure that the launch template meets the requirements in launchTemplateSpecification. Also refer to Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
updateConfigThe node group update configuration. - Returns:
- The node group update configuration.
 
- 
nodeRepairConfigThe node auto repair configuration for the node group. - Returns:
- The node auto repair configuration for the node group.
 
- 
capacityTypeThe capacity type for your node group. If the service returns an enum value that is not available in the current SDK version, capacityTypewill 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:
 
- 
capacityTypeAsStringThe capacity type for your node group. If the service returns an enum value that is not available in the current SDK version, capacityTypewill 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:
 
- 
versionThe 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 Customizing managed nodes with launch templates 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
releaseVersionThe 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 Customizing managed nodes with launch templates 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 Customizing managed nodes with launch templates in the Amazon EKS User Guide.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<CreateNodegroupRequest.Builder,- CreateNodegroupRequest> 
- Specified by:
- toBuilderin class- EksRequest
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCodepublic final int hashCode()- Overrides:
- hashCodein class- AwsRequest
 
- 
equals- Overrides:
- equalsin class- AwsRequest
 
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForFieldDescription copied from class:SdkRequestUsed 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:
- getValueForFieldin class- SdkRequest
- 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
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-