# SlurmConfigurationProperty

Additional options related to the Slurm scheduler.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 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_pcs as pcs } from 'aws-cdk-lib';
const slurmConfigurationProperty: pcs.CfnComputeNodeGroup.SlurmConfigurationProperty = {
  gresCustomSettings: [{
    gresCustomSettingsKey: 'gresCustomSettings',
  }],
  scaleDownIdleTimeInSeconds: 123,
  slurmCustomSettings: [{
    parameterName: 'parameterName',
    parameterValue: 'parameterValue',
  }],
};
```

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_pcs as pcs

slurm_configuration_property = pcs.CfnComputeNodeGroup.SlurmConfigurationProperty(
    gres_custom_settings=[{
        "gres_custom_settings_key": "gresCustomSettings"
    }],
    scale_down_idle_time_in_seconds=123,
    slurm_custom_settings=[pcs.CfnComputeNodeGroup.SlurmCustomSettingProperty(
        parameter_name="parameterName",
        parameter_value="parameterValue"
    )]
)
```

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

SlurmConfigurationProperty slurmConfigurationProperty = SlurmConfigurationProperty.builder()
        .gresCustomSettings(List.of(Map.of(
                "gresCustomSettingsKey", "gresCustomSettings")))
        .scaleDownIdleTimeInSeconds(123)
        .slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
                .parameterName("parameterName")
                .parameterValue("parameterValue")
                .build()))
        .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.PCS;

var slurmConfigurationProperty = new SlurmConfigurationProperty {
    GresCustomSettings = new [] { new Dictionary<string, string> {
        { "gresCustomSettingsKey", "gresCustomSettings" }
    } },
    ScaleDownIdleTimeInSeconds = 123,
    SlurmCustomSettings = new [] { new SlurmCustomSettingProperty {
        ParameterName = "parameterName",
        ParameterValue = "parameterValue"
    } }
};
```

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"

slurmConfigurationProperty := &SlurmConfigurationProperty{
	GresCustomSettings: []interface{}{
		map[string]*string{
			"gresCustomSettingsKey": jsii.String("gresCustomSettings"),
		},
	},
	ScaleDownIdleTimeInSeconds: jsii.Number(123),
	SlurmCustomSettings: []interface{}{
		&SlurmCustomSettingProperty{
			ParameterName: jsii.String("parameterName"),
			ParameterValue: jsii.String("parameterValue"),
		},
	},
}
```

## Properties

- `gresCustomSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string }[] — Additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf attribute names to values describing one gres.conf record (for example a GPU topology, MIG, MPS, or custom GRES entry). AWS PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance type.

- `scaleDownIdleTimeInSeconds`: number — The time before an idle node is scaled down.

- `slurmCustomSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComputeNodeGroup.SlurmCustomSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnComputeNodeGroup.SlurmCustomSettingProperty.html)[] — Additional Slurm-specific configuration that directly maps to Slurm settings.
