Class CfnEndpoint.RollingUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpoint.RollingUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.RollingUpdatePolicyProperty>
- Enclosing interface:
CfnEndpoint.RollingUpdatePolicyProperty
@Stability(Stable)
public static final class CfnEndpoint.RollingUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.RollingUpdatePolicyProperty>
A builder for
CfnEndpoint.RollingUpdatePolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumBatchSize
(IResolvable maximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getMaximumBatchSize()
maximumBatchSize
(CfnEndpoint.CapacitySizeProperty maximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getMaximumBatchSize()
maximumExecutionTimeoutInSeconds
(Number maximumExecutionTimeoutInSeconds) rollbackMaximumBatchSize
(IResolvable rollbackMaximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
rollbackMaximumBatchSize
(CfnEndpoint.CapacitySizeProperty rollbackMaximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
waitIntervalInSeconds
(Number waitIntervalInSeconds) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getWaitIntervalInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumBatchSize
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder maximumBatchSize(IResolvable maximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getMaximumBatchSize()
- 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. This parameter is required. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
maximumBatchSize
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder maximumBatchSize(CfnEndpoint.CapacitySizeProperty maximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getMaximumBatchSize()
- 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. This parameter is required. Value must be between 5% to 50% of the variant's total instance count.- Returns:
this
-
waitIntervalInSeconds
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder waitIntervalInSeconds(Number waitIntervalInSeconds) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getWaitIntervalInSeconds()
- Parameters:
waitIntervalInSeconds
- The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet. This parameter is required.- Returns:
this
-
maximumExecutionTimeoutInSeconds
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) - Parameters:
maximumExecutionTimeoutInSeconds
- The time limit for the total deployment. Exceeding this limit causes a timeout.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
- 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:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnEndpoint.RollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(CfnEndpoint.CapacitySizeProperty rollbackMaximumBatchSize) Sets the value ofCfnEndpoint.RollingUpdatePolicyProperty.getRollbackMaximumBatchSize()
- 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint.RollingUpdatePolicyProperty>
- Returns:
- a new instance of
CfnEndpoint.RollingUpdatePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-