ClusterAutoScalingConfigProperty Struct
Specifies the autoscaling configuration for a HyperPod cluster.
| Source | |
|---|---|
| Type last changed |
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 clusterAutoScalingConfigProperty: sagemaker.CfnCluster.ClusterAutoScalingConfigProperty = {
mode: 'mode',
// the properties below are optional
autoScalerType: 'autoScalerType',
};
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
// 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();
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"
};
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
autoScalerTypeoptionalstringauto_scaler_typeoptionalstrautoScalerTypeoptionalStringAutoScalerTypeoptionalstringAutoScalerTypeoptional*string = "Karpenter" #The type of autoscaler to use.
Currently supported value is Karpenter .
Describes whether autoscaling is enabled or disabled for the cluster.
Valid values are Enable and Disable .