Interface ClusterAutoPatchConfig.Builder

  • Method Details

    • patchingStrategy

      ClusterAutoPatchConfig.Builder patchingStrategy(String 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.

      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • patchingStrategy

      ClusterAutoPatchConfig.Builder patchingStrategy(ClusterPatchingStrategy 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.

      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.

      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

      The schedule for automatic patching, including the next patch date.

      This is a convenience method that creates an instance of the ClusterPatchSchedule.Builder avoiding the need to create one manually via ClusterPatchSchedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to patchSchedule(ClusterPatchSchedule).

      Parameters:
      patchSchedule - a consumer that will call methods on ClusterPatchSchedule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deploymentConfig

      ClusterAutoPatchConfig.Builder deploymentConfig(DeploymentConfiguration 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 the DeploymentConfiguration.Builder avoiding the need to create one manually via DeploymentConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deploymentConfig(DeploymentConfiguration).

      Parameters:
      deploymentConfig - a consumer that will call methods on DeploymentConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: