# SlurmConfigurationProperty

Struct · External

Additional options related to the Slurm scheduler.

- Source: Generated at build time
- Type last changed: v2.247.0 · 2 Apr 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.CfnCluster.SlurmConfigurationProperty = {
  accounting: {
    mode: 'mode',

    // the properties below are optional
    defaultPurgeTimeInDays: 123,
  },
  authKey: {
    secretArn: 'secretArn',
    secretVersion: 'secretVersion',
  },
  cgroupCustomSettings: [{
    parameterName: 'parameterName',
    parameterValue: 'parameterValue',
  }],
  jwtAuth: {
    jwtKey: {
      secretArn: 'secretArn',
      secretVersion: 'secretVersion',
    },
  },
  scaleDownIdleTimeInSeconds: 123,
  slurmCustomSettings: [{
    parameterName: 'parameterName',
    parameterValue: 'parameterValue',
  }],
  slurmdbdCustomSettings: [{
    parameterName: 'parameterName',
    parameterValue: 'parameterValue',
  }],
  slurmRest: {
    mode: 'mode',
  },
};
```

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.CfnCluster.SlurmConfigurationProperty(
    accounting=pcs.CfnCluster.AccountingProperty(
        mode="mode",

        # the properties below are optional
        default_purge_time_in_days=123
    ),
    auth_key=pcs.CfnCluster.AuthKeyProperty(
        secret_arn="secretArn",
        secret_version="secretVersion"
    ),
    cgroup_custom_settings=[pcs.CfnCluster.CgroupCustomSettingProperty(
        parameter_name="parameterName",
        parameter_value="parameterValue"
    )],
    jwt_auth=pcs.CfnCluster.JwtAuthProperty(
        jwt_key=pcs.CfnCluster.JwtKeyProperty(
            secret_arn="secretArn",
            secret_version="secretVersion"
        )
    ),
    scale_down_idle_time_in_seconds=123,
    slurm_custom_settings=[pcs.CfnCluster.SlurmCustomSettingProperty(
        parameter_name="parameterName",
        parameter_value="parameterValue"
    )],
    slurmdbd_custom_settings=[pcs.CfnCluster.SlurmdbdCustomSettingProperty(
        parameter_name="parameterName",
        parameter_value="parameterValue"
    )],
    slurm_rest=pcs.CfnCluster.SlurmRestProperty(
        mode="mode"
    )
)
```

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()
        .accounting(AccountingProperty.builder()
                .mode("mode")

                // the properties below are optional
                .defaultPurgeTimeInDays(123)
                .build())
        .authKey(AuthKeyProperty.builder()
                .secretArn("secretArn")
                .secretVersion("secretVersion")
                .build())
        .cgroupCustomSettings(List.of(CgroupCustomSettingProperty.builder()
                .parameterName("parameterName")
                .parameterValue("parameterValue")
                .build()))
        .jwtAuth(JwtAuthProperty.builder()
                .jwtKey(JwtKeyProperty.builder()
                        .secretArn("secretArn")
                        .secretVersion("secretVersion")
                        .build())
                .build())
        .scaleDownIdleTimeInSeconds(123)
        .slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
                .parameterName("parameterName")
                .parameterValue("parameterValue")
                .build()))
        .slurmdbdCustomSettings(List.of(SlurmdbdCustomSettingProperty.builder()
                .parameterName("parameterName")
                .parameterValue("parameterValue")
                .build()))
        .slurmRest(SlurmRestProperty.builder()
                .mode("mode")
                .build())
        .build();
```

C#:

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

        // the properties below are optional
        DefaultPurgeTimeInDays = 123
    },
    AuthKey = new AuthKeyProperty {
        SecretArn = "secretArn",
        SecretVersion = "secretVersion"
    },
    CgroupCustomSettings = new [] { new CgroupCustomSettingProperty {
        ParameterName = "parameterName",
        ParameterValue = "parameterValue"
    } },
    JwtAuth = new JwtAuthProperty {
        JwtKey = new JwtKeyProperty {
            SecretArn = "secretArn",
            SecretVersion = "secretVersion"
        }
    },
    ScaleDownIdleTimeInSeconds = 123,
    SlurmCustomSettings = new [] { new SlurmCustomSettingProperty {
        ParameterName = "parameterName",
        ParameterValue = "parameterValue"
    } },
    SlurmdbdCustomSettings = new [] { new SlurmdbdCustomSettingProperty {
        ParameterName = "parameterName",
        ParameterValue = "parameterValue"
    } },
    SlurmRest = new SlurmRestProperty {
        Mode = "mode"
    }
};
```

Go:

```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{
	Accounting: &AccountingProperty{
		Mode: jsii.String("mode"),

		// the properties below are optional
		DefaultPurgeTimeInDays: jsii.Number(123),
	},
	AuthKey: &AuthKeyProperty{
		SecretArn: jsii.String("secretArn"),
		SecretVersion: jsii.String("secretVersion"),
	},
	CgroupCustomSettings: []interface{}{
		&CgroupCustomSettingProperty{
			ParameterName: jsii.String("parameterName"),
			ParameterValue: jsii.String("parameterValue"),
		},
	},
	JwtAuth: &JwtAuthProperty{
		JwtKey: &JwtKeyProperty{
			SecretArn: jsii.String("secretArn"),
			SecretVersion: jsii.String("secretVersion"),
		},
	},
	ScaleDownIdleTimeInSeconds: jsii.Number(123),
	SlurmCustomSettings: []interface{}{
		&SlurmCustomSettingProperty{
			ParameterName: jsii.String("parameterName"),
			ParameterValue: jsii.String("parameterValue"),
		},
	},
	SlurmdbdCustomSettings: []interface{}{
		&SlurmdbdCustomSettingProperty{
			ParameterName: jsii.String("parameterName"),
			ParameterValue: jsii.String("parameterValue"),
		},
	},
	SlurmRest: &SlurmRestProperty{
		Mode: jsii.String("mode"),
	},
}
```

## Properties

- `accounting`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.AccountingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.AccountingProperty.html) — The accounting configuration includes configurable settings for Slurm accounting.

- `authKey`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.AuthKeyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.AuthKeyProperty.html) — The shared Slurm key for authentication, also known as the *cluster secret* .

- `cgroupCustomSettings`: [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) | [CfnCluster.CgroupCustomSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.CgroupCustomSettingProperty.html)[] — Additional cgroup-specific configuration that directly maps to cgroup.conf settings.

- `jwtAuth`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.JwtAuthProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.JwtAuthProperty.html) — The JWT authentication configuration for Slurm REST API access.

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

  Default: `600`

- `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) | [CfnCluster.SlurmCustomSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.SlurmCustomSettingProperty.html)[] — Additional Slurm-specific configuration that directly maps to Slurm settings.

- `slurmdbdCustomSettings`: [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) | [CfnCluster.SlurmdbdCustomSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.SlurmdbdCustomSettingProperty.html)[] — Additional slurmdbd-specific configuration that directly maps to slurmdbd.conf settings.

- `slurmRest`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.SlurmRestProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnCluster.SlurmRestProperty.html) — The Slurm REST API configuration for the cluster.
