Interface UpdateNodegroupVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateNodegroupVersionRequest.Builder,
,UpdateNodegroupVersionRequest> EksRequest.Builder
,SdkBuilder<UpdateNodegroupVersionRequest.Builder,
,UpdateNodegroupVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateNodegroupVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.clusterName
(String clusterName) The name of your cluster.Force the update if anyPod
on the existing node group can't be drained due to aPod
disruption budget issue.launchTemplate
(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) An object representing a node group's launch template specification.launchTemplate
(LaunchTemplateSpecification launchTemplate) An object representing a node group's launch template specification.nodegroupName
(String nodegroupName) The name of the managed node group to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.releaseVersion
(String releaseVersion) The AMI version of the Amazon EKS optimized AMI to use for the update.The Kubernetes version to update to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clusterName
The name of your cluster.
- Parameters:
clusterName
- The name of your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodegroupName
The name of the managed node group to update.
- Parameters:
nodegroupName
- The name of the managed node group to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The Kubernetes version to update to. If no version is specified, then the Kubernetes version of the node group does not change. You can specify the Kubernetes version of the cluster to update the node group to the latest AMI version of the cluster's Kubernetes version. If you specify
launchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
version
- The Kubernetes version to update to. If no version is specified, then the Kubernetes version of the node group does not change. You can specify the Kubernetes version of the cluster to update the node group to the latest AMI version of the cluster's Kubernetes version. If you specifylaunchTemplate
, and your launch template uses a custom AMI, then don't specifyversion
, or the node group update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseVersion
The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the latest available AMI version for the node group's 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 update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Parameters:
releaseVersion
- The AMI version of the Amazon EKS optimized AMI to use for the update. By default, the latest available AMI version for the node group's 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 update will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
An object representing a node group's launch template specification. You can only update a node group using a launch template if the node group was originally deployed with a launch template.
- Parameters:
launchTemplate
- An object representing a node group's launch template specification. You can only update a node group using a launch template if the node group was originally deployed with a launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default UpdateNodegroupVersionRequest.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) An object representing a node group's launch template specification. You can only update a node group using a launch template if the node group was originally deployed with a launch template.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.Builder
avoiding the need to create one manually viaLaunchTemplateSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(LaunchTemplateSpecification)
.- Parameters:
launchTemplate
- a consumer that will call methods onLaunchTemplateSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
force
Force the update if any
Pod
on the existing node group can't be drained due to aPod
disruption budget issue. If an update fails because all Pods can't be drained, you can force the update after it fails to terminate the old node whether or not anyPod
is running on the node.- Parameters:
force
- Force the update if anyPod
on the existing node group can't be drained due to aPod
disruption budget issue. If an update fails because all Pods can't be drained, you can force the update after it fails to terminate the old node whether or not anyPod
is running on the node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateNodegroupVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateNodegroupVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-