Class CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ScaleInPolicyProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ScaleInPolicyProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ScaleInPolicyProperty>
A builder for
CfnEndpointConfigPropsMixin.ScaleInPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cooldownInMinutes(Number cooldownInMinutes) Sets the value ofCfnEndpointConfigPropsMixin.ScaleInPolicyProperty.getCooldownInMinutes()maximumStepSize(Number maximumStepSize) Sets the value ofCfnEndpointConfigPropsMixin.ScaleInPolicyProperty.getMaximumStepSize()Sets the value ofCfnEndpointConfigPropsMixin.ScaleInPolicyProperty.getStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cooldownInMinutes
@Stability(Stable) public CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder cooldownInMinutes(Number cooldownInMinutes) Sets the value ofCfnEndpointConfigPropsMixin.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 CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder maximumStepSize(Number maximumStepSize) Sets the value ofCfnEndpointConfigPropsMixin.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
-
strategy
@Stability(Stable) public CfnEndpointConfigPropsMixin.ScaleInPolicyProperty.Builder strategy(String strategy) Sets the value ofCfnEndpointConfigPropsMixin.ScaleInPolicyProperty.getStrategy()- Parameters:
strategy- The strategy for scaling in instances. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ScaleInPolicyProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ScaleInPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-