Class CreateNodegroupRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateNodegroupRequest.Builder,CreateNodegroupRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier 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 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.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
clusterName
-
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 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.
-
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 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.
-
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
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.
-
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-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:
-
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-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:
-
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 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.
-
nodeRole
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.- 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.
-
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
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.
-
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
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.
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.
-
clientRequestToken
A 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.
-
launchTemplate
An object representing a node group's launch template specification. When using this object, don't directly specify
instanceTypes,diskSize, orremoteAccess. Make sure that the launch template meets the requirements inlaunchTemplateSpecification. 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. Make sure that the launch template meets the requirements inlaunchTemplateSpecification. Also refer to Customizing managed nodes with launch templates in the Amazon EKS User Guide.
-
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,
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:
-
capacityTypeAsString
The 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:
-
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 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.
-
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 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateNodegroupRequest.Builder,CreateNodegroupRequest> - Specified by:
toBuilderin classEksRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description 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 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
-
getValueForField
Description 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 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
-