# ManagedInstanceScalingProperty

Struct · External

Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```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 managedInstanceScalingProperty: sagemaker.CfnEndpointConfig.ManagedInstanceScalingProperty = {
  maxInstanceCount: 123,
  minInstanceCount: 123,
  scaleInPolicy: {
    strategy: 'strategy',

    // the properties below are optional
    cooldownInMinutes: 123,
    maximumStepSize: 123,
  },
  status: 'status',
};
```

Python:

```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

managed_instance_scaling_property = sagemaker.CfnEndpointConfig.ManagedInstanceScalingProperty(
    max_instance_count=123,
    min_instance_count=123,
    scale_in_policy=sagemaker.CfnEndpointConfig.ScaleInPolicyProperty(
        strategy="strategy",

        # the properties below are optional
        cooldown_in_minutes=123,
        maximum_step_size=123
    ),
    status="status"
)
```

Java:

```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.*;

ManagedInstanceScalingProperty managedInstanceScalingProperty = ManagedInstanceScalingProperty.builder()
        .maxInstanceCount(123)
        .minInstanceCount(123)
        .scaleInPolicy(ScaleInPolicyProperty.builder()
                .strategy("strategy")

                // the properties below are optional
                .cooldownInMinutes(123)
                .maximumStepSize(123)
                .build())
        .status("status")
        .build();
```

C#:

```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 managedInstanceScalingProperty = new ManagedInstanceScalingProperty {
    MaxInstanceCount = 123,
    MinInstanceCount = 123,
    ScaleInPolicy = new ScaleInPolicyProperty {
        Strategy = "strategy",

        // the properties below are optional
        CooldownInMinutes = 123,
        MaximumStepSize = 123
    },
    Status = "status"
};
```

Go:

```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"

managedInstanceScalingProperty := &ManagedInstanceScalingProperty{
	MaxInstanceCount: jsii.Number(123),
	MinInstanceCount: jsii.Number(123),
	ScaleInPolicy: &ScaleInPolicyProperty{
		Strategy: jsii.String("strategy"),

		// the properties below are optional
		CooldownInMinutes: jsii.Number(123),
		MaximumStepSize: jsii.Number(123),
	},
	Status: jsii.String("status"),
}
```

## Properties

- `maxInstanceCount`: number — The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.

- `minInstanceCount`: number — The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.

- `scaleInPolicy`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ScaleInPolicyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ScaleInPolicyProperty.html) — Specifies how the endpoint releases instances when managed instance scaling scales in.

- `status`: string — Indicates whether managed instance scaling is enabled.
