# ClusterSlurmConfigProperty

Slurm configuration for the instance group.

- Source: Generated at build time
- Type last changed: v2.239.0 · 19 Feb 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 clusterSlurmConfigProperty: sagemaker.CfnCluster.ClusterSlurmConfigProperty = {
  nodeType: 'nodeType',

  // the properties below are optional
  partitionNames: ['partitionNames'],
};
```

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_slurm_config_property = sagemaker.CfnCluster.ClusterSlurmConfigProperty(
    node_type="nodeType",

    # the properties below are optional
    partition_names=["partitionNames"]
)
```

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

ClusterSlurmConfigProperty clusterSlurmConfigProperty = ClusterSlurmConfigProperty.builder()
        .nodeType("nodeType")

        // the properties below are optional
        .partitionNames(List.of("partitionNames"))
        .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 clusterSlurmConfigProperty = new ClusterSlurmConfigProperty {
    NodeType = "nodeType",

    // the properties below are optional
    PartitionNames = new [] { "partitionNames" }
};
```

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"

clusterSlurmConfigProperty := &ClusterSlurmConfigProperty{
	NodeType: jsii.String("nodeType"),

	// the properties below are optional
	PartitionNames: []*string{
		jsii.String("partitionNames"),
	},
}
```

## Properties

- `nodeType`: string (required) — The type of Slurm node for this instance group.

- `partitionNames`: string[] — The Slurm partitions that this instance group belongs to.

  Maximum of 1 partition.
