Interface RollingUpdatePolicy.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<RollingUpdatePolicy.Builder,RollingUpdatePolicy>
,SdkBuilder<RollingUpdatePolicy.Builder,RollingUpdatePolicy>
,SdkPojo
- Enclosing class:
- RollingUpdatePolicy
public static interface RollingUpdatePolicy.Builder extends SdkPojo, CopyableBuilder<RollingUpdatePolicy.Builder,RollingUpdatePolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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.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.RollingUpdatePolicy.Builder
maximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
The time limit for the total deployment.default RollingUpdatePolicy.Builder
rollbackMaximumBatchSize(Consumer<CapacitySize.Builder> rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet.RollingUpdatePolicy.Builder
rollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet.RollingUpdatePolicy.Builder
waitIntervalInSeconds(Integer waitIntervalInSeconds)
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 theCapacitySize.Builder
avoiding the need to create one manually viaCapacitySize.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaximumBatchSize(CapacitySize)
.- Parameters:
maximumBatchSize
- a consumer that will call methods onCapacitySize.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
maximumBatchSize(CapacitySize)
-
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 theCapacitySize.Builder
avoiding the need to create one manually viaCapacitySize.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torollbackMaximumBatchSize(CapacitySize)
.- Parameters:
rollbackMaximumBatchSize
- a consumer that will call methods onCapacitySize.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rollbackMaximumBatchSize(CapacitySize)
-
-