Interface ClusterAutoPatchConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ClusterAutoPatchConfig.Builder,,ClusterAutoPatchConfig> SdkBuilder<ClusterAutoPatchConfig.Builder,,ClusterAutoPatchConfig> SdkPojo
- Enclosing class:
ClusterAutoPatchConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClusterAutoPatchConfig.BuilderdeploymentConfig(Consumer<DeploymentConfiguration.Builder> deploymentConfig) The deployment configuration for rolling patch updates, including rollback settings and batch sizes.deploymentConfig(DeploymentConfiguration deploymentConfig) The deployment configuration for rolling patch updates, including rollback settings and batch sizes.default ClusterAutoPatchConfig.BuilderdrainPolicy(Consumer<ClusterDrainPolicy.Builder> drainPolicy) The policy that controls how pods are evicted from an instance before it is patched.drainPolicy(ClusterDrainPolicy drainPolicy) The policy that controls how pods are evicted from an instance before it is patched.idleWaitWindowInSeconds(Integer idleWaitWindowInSeconds) The maximum time, in seconds, that automatic patching waits for instances to become idle after a scheduled patch starts.patchingStrategy(String patchingStrategy) The strategy for applying patches to instances in the group.patchingStrategy(ClusterPatchingStrategy patchingStrategy) The strategy for applying patches to instances in the group.default ClusterAutoPatchConfig.BuilderpatchSchedule(Consumer<ClusterPatchSchedule.Builder> patchSchedule) The schedule for automatic patching, including the next patch date.patchSchedule(ClusterPatchSchedule patchSchedule) The schedule for automatic patching, including the next patch date.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
patchingStrategy
The strategy for applying patches to instances in the group.
-
WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instances become idle, no patching occurs and all instances remain on the previous AMI version. -
DrainFirst: Designed for workloads that never become idle, such as inference. Cordons instances, evicts the running pods, and then patches each instance in batches. Each instance is uncordoned after patching. UseDrainPolicyto control how long to wait for pods to drain and what happens if the drain times out. RequiresMaximumBatchSizeinDeploymentConfig. Available only for clusters that use Amazon EKS as the orchestrator.
- Parameters:
patchingStrategy- The strategy for applying patches to instances in the group.-
WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instances become idle, no patching occurs and all instances remain on the previous AMI version. -
DrainFirst: Designed for workloads that never become idle, such as inference. Cordons instances, evicts the running pods, and then patches each instance in batches. Each instance is uncordoned after patching. UseDrainPolicyto control how long to wait for pods to drain and what happens if the drain times out. RequiresMaximumBatchSizeinDeploymentConfig. Available only for clusters that use Amazon EKS as the orchestrator.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
patchingStrategy
The strategy for applying patches to instances in the group.
-
WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instances become idle, no patching occurs and all instances remain on the previous AMI version. -
DrainFirst: Designed for workloads that never become idle, such as inference. Cordons instances, evicts the running pods, and then patches each instance in batches. Each instance is uncordoned after patching. UseDrainPolicyto control how long to wait for pods to drain and what happens if the drain times out. RequiresMaximumBatchSizeinDeploymentConfig. Available only for clusters that use Amazon EKS as the orchestrator.
- Parameters:
patchingStrategy- The strategy for applying patches to instances in the group.-
WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instances become idle, no patching occurs and all instances remain on the previous AMI version. -
DrainFirst: Designed for workloads that never become idle, such as inference. Cordons instances, evicts the running pods, and then patches each instance in batches. Each instance is uncordoned after patching. UseDrainPolicyto control how long to wait for pods to drain and what happens if the drain times out. RequiresMaximumBatchSizeinDeploymentConfig. Available only for clusters that use Amazon EKS as the orchestrator.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
patchSchedule
The schedule for automatic patching, including the next patch date.
- Parameters:
patchSchedule- The schedule for automatic patching, including the next patch date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patchSchedule
default ClusterAutoPatchConfig.Builder patchSchedule(Consumer<ClusterPatchSchedule.Builder> patchSchedule) The schedule for automatic patching, including the next patch date.
This is a convenience method that creates an instance of theClusterPatchSchedule.Builderavoiding the need to create one manually viaClusterPatchSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topatchSchedule(ClusterPatchSchedule).- Parameters:
patchSchedule- a consumer that will call methods onClusterPatchSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentConfig
The deployment configuration for rolling patch updates, including rollback settings and batch sizes. Only applicable when using a rolling patching strategy.
- Parameters:
deploymentConfig- The deployment configuration for rolling patch updates, including rollback settings and batch sizes. Only applicable when using a rolling patching strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfig
default ClusterAutoPatchConfig.Builder deploymentConfig(Consumer<DeploymentConfiguration.Builder> deploymentConfig) The deployment configuration for rolling patch updates, including rollback settings and batch sizes. Only applicable when using a rolling patching strategy.
This is a convenience method that creates an instance of theDeploymentConfiguration.Builderavoiding the need to create one manually viaDeploymentConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeploymentConfig(DeploymentConfiguration).- Parameters:
deploymentConfig- a consumer that will call methods onDeploymentConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
idleWaitWindowInSeconds
The maximum time, in seconds, that automatic patching waits for instances to become idle after a scheduled patch starts. Automatic patching uncordons instances that don't become idle within this window, and they remain on the previous AMI version. Valid values are from 3600 (1 hour) to 2160000 (25 days). The default is 86400 (24 hours). This setting applies only to the
WhenIdleandWhenAllIdlestrategies.- Parameters:
idleWaitWindowInSeconds- The maximum time, in seconds, that automatic patching waits for instances to become idle after a scheduled patch starts. Automatic patching uncordons instances that don't become idle within this window, and they remain on the previous AMI version. Valid values are from 3600 (1 hour) to 2160000 (25 days). The default is 86400 (24 hours). This setting applies only to theWhenIdleandWhenAllIdlestrategies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drainPolicy
The policy that controls how pods are evicted from an instance before it is patched. Valid only when
PatchingStrategyisDrainFirst.- Parameters:
drainPolicy- The policy that controls how pods are evicted from an instance before it is patched. Valid only whenPatchingStrategyisDrainFirst.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drainPolicy
default ClusterAutoPatchConfig.Builder drainPolicy(Consumer<ClusterDrainPolicy.Builder> drainPolicy) The policy that controls how pods are evicted from an instance before it is patched. Valid only when
This is a convenience method that creates an instance of thePatchingStrategyisDrainFirst.ClusterDrainPolicy.Builderavoiding the need to create one manually viaClusterDrainPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todrainPolicy(ClusterDrainPolicy).- Parameters:
drainPolicy- a consumer that will call methods onClusterDrainPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-