Class CfnEndpointConfig.ScaleInPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ScaleInPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.ScaleInPolicyProperty>
- Enclosing interface:
CfnEndpointConfig.ScaleInPolicyProperty
@Stability(Stable)
public static final class CfnEndpointConfig.ScaleInPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.ScaleInPolicyProperty>
A builder for
CfnEndpointConfig.ScaleInPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cooldownInMinutes(Number cooldownInMinutes) Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getCooldownInMinutes()maximumStepSize(Number maximumStepSize) Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getMaximumStepSize()Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
strategy
Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getStrategy()- Parameters:
strategy- The strategy for scaling in instances. This parameter is required. IDLE_RELEASE releases instances that have no hosted inference component copies. CONSOLIDATION consolidates inference component copies onto fewer instances to release more instances.- Returns:
this
-
cooldownInMinutes
@Stability(Stable) public CfnEndpointConfig.ScaleInPolicyProperty.Builder cooldownInMinutes(Number cooldownInMinutes) Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getCooldownInMinutes()- Parameters:
cooldownInMinutes- The cooldown period, in minutes, after the last endpoint operation before the endpoint evaluates consolidation scale-in opportunities. Valid values are 5 to 1440. The default is 20.- Returns:
this
-
maximumStepSize
@Stability(Stable) public CfnEndpointConfig.ScaleInPolicyProperty.Builder maximumStepSize(Number maximumStepSize) Sets the value ofCfnEndpointConfig.ScaleInPolicyProperty.getMaximumStepSize()- Parameters:
maximumStepSize- The maximum number of instances that the endpoint can terminate at a time during a consolidation scale-in operation. Valid values are 1 to 100. The default is 1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.ScaleInPolicyProperty>- Returns:
- a new instance of
CfnEndpointConfig.ScaleInPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-