# ClusterAutoScalingConfigProperty

Specifies the autoscaling configuration for a HyperPod cluster.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## 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 clusterAutoScalingConfigProperty: sagemaker.CfnCluster.ClusterAutoScalingConfigProperty = {
  mode: 'mode',

  // the properties below are optional
  autoScalerType: 'autoScalerType',
};
```

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

cluster_auto_scaling_config_property = sagemaker.CfnCluster.ClusterAutoScalingConfigProperty(
    mode="mode",

    # the properties below are optional
    auto_scaler_type="autoScalerType"
)
```

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

ClusterAutoScalingConfigProperty clusterAutoScalingConfigProperty = ClusterAutoScalingConfigProperty.builder()
        .mode("mode")

        // the properties below are optional
        .autoScalerType("autoScalerType")
        .build();
```

C# / .NET:

```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 clusterAutoScalingConfigProperty = new ClusterAutoScalingConfigProperty {
    Mode = "mode",

    // the properties below are optional
    AutoScalerType = "autoScalerType"
};
```

Golang:

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

clusterAutoScalingConfigProperty := &ClusterAutoScalingConfigProperty{
	Mode: jsii.String("mode"),

	// the properties below are optional
	AutoScalerType: jsii.String("autoScalerType"),
}
```

## Properties

- `autoScalerType`: string = "Karpenter" — The type of autoscaler to use.

  Currently supported value is `Karpenter` .

- `mode`: string (required) — Describes whether autoscaling is enabled or disabled for the cluster.

  Valid values are `Enable` and `Disable` .
