Class CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumBatchSize(CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty maximumBatchSize) maximumBatchSize(IResolvable maximumBatchSize) maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) rollbackMaximumBatchSize(CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty rollbackMaximumBatchSize) rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize) waitIntervalInSeconds(Number waitIntervalInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumBatchSize
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder maximumBatchSize(IResolvable maximumBatchSize) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getMaximumBatchSize()- Parameters:
maximumBatchSize- The batch size for each rolling step in the deployment process. For each step, SageMaker AI provisions capacity on the new endpoint fleet, routes traffic to that fleet, and terminates capacity on the old endpoint fleet. The value must be between 5% to 50% of the copy count of the inference component.- Returns:
this
-
maximumBatchSize
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder maximumBatchSize(CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty maximumBatchSize) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getMaximumBatchSize()- Parameters:
maximumBatchSize- The batch size for each rolling step in the deployment process. For each step, SageMaker AI provisions capacity on the new endpoint fleet, routes traffic to that fleet, and terminates capacity on the old endpoint fleet. The value must be between 5% to 50% of the copy count of the inference component.- Returns:
this
-
maximumExecutionTimeoutInSeconds
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getMaximumExecutionTimeoutInSeconds()- Parameters:
maximumExecutionTimeoutInSeconds- The time limit for the total deployment. Exceeding this limit causes a timeout.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(IResolvable rollbackMaximumBatchSize) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getRollbackMaximumBatchSize()- Parameters:
rollbackMaximumBatchSize- The batch size for a rollback to the old endpoint fleet. If this field is absent, the value is set to the default, which is 100% of the total capacity. When the default is used, SageMaker AI provisions the entire capacity of the old fleet at once during rollback.- Returns:
this
-
rollbackMaximumBatchSize
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder rollbackMaximumBatchSize(CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty rollbackMaximumBatchSize) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getRollbackMaximumBatchSize()- Parameters:
rollbackMaximumBatchSize- The batch size for a rollback to the old endpoint fleet. If this field is absent, the value is set to the default, which is 100% of the total capacity. When the default is used, SageMaker AI provisions the entire capacity of the old fleet at once during rollback.- Returns:
this
-
waitIntervalInSeconds
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.Builder waitIntervalInSeconds(Number waitIntervalInSeconds) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty.getWaitIntervalInSeconds()- Parameters:
waitIntervalInSeconds- The length of the baking period, during which SageMaker AI monitors alarms for each batch on the new fleet.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.InferenceComponentRollingUpdatePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-