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