Skip to content
v2.278.0

ScaleInPolicyProperty Struct ​

Specifies how the endpoint releases instances when managed instance scaling scales in.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const scaleInPolicyProperty: sagemaker.CfnEndpointConfig.ScaleInPolicyProperty = {
  strategy: 'strategy',

  // the properties below are optional
  cooldownInMinutes: 123,
  maximumStepSize: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

scale_in_policy_property = sagemaker.CfnEndpointConfig.ScaleInPolicyProperty(
    strategy="strategy",

    # the properties below are optional
    cooldown_in_minutes=123,
    maximum_step_size=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

ScaleInPolicyProperty scaleInPolicyProperty = ScaleInPolicyProperty.builder()
        .strategy("strategy")

        // the properties below are optional
        .cooldownInMinutes(123)
        .maximumStepSize(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var scaleInPolicyProperty = new ScaleInPolicyProperty {
    Strategy = "strategy",

    // the properties below are optional
    CooldownInMinutes = 123,
    MaximumStepSize = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scaleInPolicyProperty := &ScaleInPolicyProperty{
	Strategy: jsii.String("strategy"),

	// the properties below are optional
	CooldownInMinutes: jsii.Number(123),
	MaximumStepSize: jsii.Number(123),
}

Properties ​

cooldownInMinutesoptionalnumbercooldown_in_minutesoptionalint | floatcooldownInMinutesoptionalNumberCooldownInMinutesoptionaldoubleCooldownInMinutesoptional*float64 #
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.

maximumStepSizeoptionalnumbermaximum_step_sizeoptionalint | floatmaximumStepSizeoptionalNumberMaximumStepSizeoptionaldoubleMaximumStepSizeoptional*float64 #
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.

strategystringstrategystrstrategyStringStrategystringStrategy*string required #
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.