Skip to content
v2.278.0

SlurmRestProperty ​

Struct External

The Slurm REST API configuration includes settings for enabling and configuring the Slurm REST API.

It's a property of the ClusterSlurmConfiguration object.

Example ​

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 slurmRestProperty: pcs.CfnCluster.SlurmRestProperty = {
  mode: 'mode',
};
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_rest_property = pcs.CfnCluster.SlurmRestProperty(
    mode="mode"
)
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.*;

SlurmRestProperty slurmRestProperty = SlurmRestProperty.builder()
        .mode("mode")
        .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.PCS;

var slurmRestProperty = new SlurmRestProperty {
    Mode = "mode"
};
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"

slurmRestProperty := &SlurmRestProperty{
	Mode: jsii.String("mode"),
}

Properties ​

modestringmodestrmodeStringModestringMode*string = "NONE" required #
The default value for `mode` is `NONE` .

A value of STANDARD means the Slurm REST API is enabled.