# ClusterAccountingDatabaseProperty

Struct · External

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: Generated at build time
- Type last changed: v2.269.0 · 10 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_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:

```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:

```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();
```

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.Sagemaker;

var clusterAccountingDatabaseProperty = new ClusterAccountingDatabaseProperty {
    Endpoint = "endpoint",
    SecretArn = "secretArn",

    // the properties below are optional
    Name = "name",
    Port = 123
};
```

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"

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

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

## Properties

- `endpoint`: string (required) — Hostname or endpoint of the accounting database, such as an RDS endpoint.

- `name`: string = "slurm_acct_db" — Name of the accounting database schema.

  Defaults to slurm_acct_db when omitted.

- `port`: number = 3306 — TCP port of the accounting database.

  Defaults to 3306 when omitted.

- `secretArn`: string (required) — ARN of the Secrets Manager secret holding the database credentials.
