ClusterAccountingDatabaseProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
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 clusterAccountingDatabaseProperty: sagemaker.CfnCluster.ClusterAccountingDatabaseProperty = {
endpoint: 'endpoint',
secretArn: 'secretArn',
// the properties below are optional
name: 'name',
port: 123,
};
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_accounting_database_property = sagemaker.CfnCluster.ClusterAccountingDatabaseProperty(
endpoint="endpoint",
secret_arn="secretArn",
# the properties below are optional
name="name",
port=123
)
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.*;
ClusterAccountingDatabaseProperty clusterAccountingDatabaseProperty = ClusterAccountingDatabaseProperty.builder()
.endpoint("endpoint")
.secretArn("secretArn")
// the properties below are optional
.name("name")
.port(123)
.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 clusterAccountingDatabaseProperty = new ClusterAccountingDatabaseProperty {
Endpoint = "endpoint",
SecretArn = "secretArn",
// the properties below are optional
Name = "name",
Port = 123
};
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"
clusterAccountingDatabaseProperty := &ClusterAccountingDatabaseProperty{
Endpoint: jsii.String("endpoint"),
SecretArn: jsii.String("secretArn"),
// the properties below are optional
Name: jsii.String("name"),
Port: jsii.Number(123),
}
Properties
Hostname or endpoint of the accounting database, such as an RDS endpoint.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string = "slurm_acct_db" #Name of the accounting database schema.
Defaults to slurm_acct_db when omitted.
portoptionalnumberportoptionalint | floatportoptionalNumberPortoptionaldoublePortoptional*float64 = 3306 #TCP port of the accounting database.
Defaults to 3306 when omitted.
ARN of the Secrets Manager secret holding the database credentials.