Skip to content
v2.278.0

ClusterOrchestratorSlurmConfigProperty ​

Struct External

Specifies parameter(s) related to Slurm as orchestrator.

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 clusterOrchestratorSlurmConfigProperty: sagemaker.CfnCluster.ClusterOrchestratorSlurmConfigProperty = {
  accountingDatabase: {
    endpoint: 'endpoint',
    secretArn: 'secretArn',

    // the properties below are optional
    name: 'name',
    port: 123,
  },
  slurmConfigStrategy: 'slurmConfigStrategy',
};
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_orchestrator_slurm_config_property = sagemaker.CfnCluster.ClusterOrchestratorSlurmConfigProperty(
    accounting_database=sagemaker.CfnCluster.ClusterAccountingDatabaseProperty(
        endpoint="endpoint",
        secret_arn="secretArn",

        # the properties below are optional
        name="name",
        port=123
    ),
    slurm_config_strategy="slurmConfigStrategy"
)
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.*;

ClusterOrchestratorSlurmConfigProperty clusterOrchestratorSlurmConfigProperty = ClusterOrchestratorSlurmConfigProperty.builder()
        .accountingDatabase(ClusterAccountingDatabaseProperty.builder()
                .endpoint("endpoint")
                .secretArn("secretArn")

                // the properties below are optional
                .name("name")
                .port(123)
                .build())
        .slurmConfigStrategy("slurmConfigStrategy")
        .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 clusterOrchestratorSlurmConfigProperty = new ClusterOrchestratorSlurmConfigProperty {
    AccountingDatabase = new ClusterAccountingDatabaseProperty {
        Endpoint = "endpoint",
        SecretArn = "secretArn",

        // the properties below are optional
        Name = "name",
        Port = 123
    },
    SlurmConfigStrategy = "slurmConfigStrategy"
};
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"

clusterOrchestratorSlurmConfigProperty := &ClusterOrchestratorSlurmConfigProperty{
	AccountingDatabase: &ClusterAccountingDatabaseProperty{
		Endpoint: jsii.String("endpoint"),
		SecretArn: jsii.String("secretArn"),

		// the properties below are optional
		Name: jsii.String("name"),
		Port: jsii.Number(123),
	},
	SlurmConfigStrategy: jsii.String("slurmConfigStrategy"),
}

Properties ​

accountingDatabaseoptionalIResolvable | CfnCluster.ClusterAccountingDatabasePropertyaccounting_databaseoptionaltyping.Union[IResolvable, ClusterAccountingDatabaseProperty]accountingDatabaseoptionalIResolvableAccountingDatabaseoptionalIResolvableAccountingDatabaseoptionalinterface{} #
External MySQL-compatible accounting database that a Slurm cluster's slurmdbd connects to.

Database credentials are supplied out-of-band through the referenced Secrets Manager secret. Supported only with Continuous node provisioning.

slurmConfigStrategyoptionalstringslurm_config_strategyoptionalstrslurmConfigStrategyoptionalStringSlurmConfigStrategyoptionalstringSlurmConfigStrategyoptional*string #
The strategy for managing Slurm configuration on the cluster.