ClusterSlurmConfigProperty Struct
Slurm configuration for the instance group.
| 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 clusterSlurmConfigProperty: sagemaker.CfnCluster.ClusterSlurmConfigProperty = {
nodeType: 'nodeType',
// the properties below are optional
partitionNames: ['partitionNames'],
};
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_slurm_config_property = sagemaker.CfnCluster.ClusterSlurmConfigProperty(
node_type="nodeType",
# the properties below are optional
partition_names=["partitionNames"]
)
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.*;
ClusterSlurmConfigProperty clusterSlurmConfigProperty = ClusterSlurmConfigProperty.builder()
.nodeType("nodeType")
// the properties below are optional
.partitionNames(List.of("partitionNames"))
.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 clusterSlurmConfigProperty = new ClusterSlurmConfigProperty {
NodeType = "nodeType",
// the properties below are optional
PartitionNames = new [] { "partitionNames" }
};
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"
clusterSlurmConfigProperty := &ClusterSlurmConfigProperty{
NodeType: jsii.String("nodeType"),
// the properties below are optional
PartitionNames: []*string{
jsii.String("partitionNames"),
},
}
Properties
The type of Slurm node for this instance group.
partitionNamesoptionalstring[]partition_namesoptionaltyping.List[str]partitionNamesoptionalList<String>PartitionNamesoptionalstring[]PartitionNamesoptional*[]*string #The Slurm partitions that this instance group belongs to.
Maximum of 1 partition.