Interface RollingUpdatePolicy.Builder

  • Method Details

    • maximumBatchSize

      RollingUpdatePolicy.Builder maximumBatchSize(CapacitySize maximumBatchSize)

      Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.

      Parameters:
      maximumBatchSize - Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maximumBatchSize

      default RollingUpdatePolicy.Builder maximumBatchSize(Consumer<CapacitySize.Builder> maximumBatchSize)

      Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.

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

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

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

      RollingUpdatePolicy.Builder waitIntervalInSeconds(Integer waitIntervalInSeconds)

      The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.

      Parameters:
      waitIntervalInSeconds - The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maximumExecutionTimeoutInSeconds

      RollingUpdatePolicy.Builder maximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)

      The time limit for the total deployment. Exceeding this limit causes a timeout.

      Parameters:
      maximumExecutionTimeoutInSeconds - The time limit for the total deployment. Exceeding this limit causes a timeout.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rollbackMaximumBatchSize

      RollingUpdatePolicy.Builder rollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)

      Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.

      Parameters:
      rollbackMaximumBatchSize - Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rollbackMaximumBatchSize

      default RollingUpdatePolicy.Builder rollbackMaximumBatchSize(Consumer<CapacitySize.Builder> rollbackMaximumBatchSize)

      Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.

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

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

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