# DocDbSettingsProperty

Provides information that defines a DocumentDB endpoint.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const docDbSettingsProperty: dms.CfnDataProvider.DocDbSettingsProperty = {
  databaseName: 'databaseName',
  port: 123,
  serverName: 'serverName',

  // the properties below are optional
  certificateArn: 'certificateArn',
  sslMode: 'sslMode',
};
```

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_dms as dms

doc_db_settings_property = dms.CfnDataProvider.DocDbSettingsProperty(
    database_name="databaseName",
    port=123,
    server_name="serverName",

    # the properties below are optional
    certificate_arn="certificateArn",
    ssl_mode="sslMode"
)
```

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.dms.*;

DocDbSettingsProperty docDbSettingsProperty = DocDbSettingsProperty.builder()
        .databaseName("databaseName")
        .port(123)
        .serverName("serverName")

        // the properties below are optional
        .certificateArn("certificateArn")
        .sslMode("sslMode")
        .build();
```

C# / .NET:

```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.DMS;

var docDbSettingsProperty = new DocDbSettingsProperty {
    DatabaseName = "databaseName",
    Port = 123,
    ServerName = "serverName",

    // the properties below are optional
    CertificateArn = "certificateArn",
    SslMode = "sslMode"
};
```

Golang:

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

docDbSettingsProperty := &DocDbSettingsProperty{
	DatabaseName: jsii.String("databaseName"),
	Port: jsii.Number(123),
	ServerName: jsii.String("serverName"),

	// the properties below are optional
	CertificateArn: jsii.String("certificateArn"),
	SslMode: jsii.String("sslMode"),
}
```

## Properties

- `certificateArn`: string

- `databaseName`: string (required) — The database name on the DocumentDB source endpoint.

- `port`: number (required) — The port value for the DocumentDB source endpoint.

- `serverName`: string (required) — The name of the server on the DocumentDB source endpoint.

- `sslMode`: string
