aws-cdk-lib.aws_dms.CfnEndpoint.MongoDbSettingsProperty

interface MongoDbSettingsProperty

LanguageType name
.NETAmazon.CDK.AWS.DMS.CfnEndpoint.MongoDbSettingsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdms#CfnEndpoint_MongoDbSettingsProperty
Javasoftware.amazon.awscdk.services.dms.CfnEndpoint.MongoDbSettingsProperty
Pythonaws_cdk.aws_dms.CfnEndpoint.MongoDbSettingsProperty
TypeScript aws-cdk-lib » aws_dms » CfnEndpoint » MongoDbSettingsProperty

Provides information that defines a MongoDB endpoint.

This information includes the output format of records applied to the endpoint and details of transaction and control table data information. For more information about other available settings, see Endpoint configuration settings when using MongoDB as a source for AWS DMS in the AWS Database Migration Service User Guide .

Example

// 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 mongoDbSettingsProperty: dms.CfnEndpoint.MongoDbSettingsProperty = {
  authMechanism: 'authMechanism',
  authSource: 'authSource',
  authType: 'authType',
  databaseName: 'databaseName',
  docsToInvestigate: 'docsToInvestigate',
  extractDocId: 'extractDocId',
  nestingLevel: 'nestingLevel',
  password: 'password',
  port: 123,
  secretsManagerAccessRoleArn: 'secretsManagerAccessRoleArn',
  secretsManagerSecretId: 'secretsManagerSecretId',
  serverName: 'serverName',
  username: 'username',
};

Properties

NameTypeDescription
authMechanism?stringThe authentication mechanism you use to access the MongoDB source endpoint.
authSource?stringThe MongoDB database name. This setting isn't used when AuthType is set to "no" .
authType?stringThe authentication type you use to access the MongoDB source endpoint.
databaseName?stringThe database name on the MongoDB source endpoint.
docsToInvestigate?stringIndicates the number of documents to preview to determine the document organization.
extractDocId?stringSpecifies the document ID. Use this setting when NestingLevel is set to "none" .
nestingLevel?stringSpecifies either document or table mode.
password?stringThe password for the user account you use to access the MongoDB source endpoint.
port?numberThe port value for the MongoDB source endpoint.
secretsManagerAccessRoleArn?stringThe full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret .
secretsManagerSecretId?stringThe full ARN, partial ARN, or display name of the SecretsManagerSecret that contains the MongoDB endpoint connection details.
serverName?stringThe name of the server on the MongoDB source endpoint.
username?stringThe user name you use to access the MongoDB source endpoint.

authMechanism?

Type: string (optional)

The authentication mechanism you use to access the MongoDB source endpoint.

For the default value, in MongoDB version 2.x, "default" is "mongodb_cr" . For MongoDB version 3.x or later, "default" is "scram_sha_1" . This setting isn't used when AuthType is set to "no" .


authSource?

Type: string (optional)

The MongoDB database name. This setting isn't used when AuthType is set to "no" .

The default is "admin" .


authType?

Type: string (optional)

The authentication type you use to access the MongoDB source endpoint.

When set to "no" , user name and password parameters are not used and can be empty.


databaseName?

Type: string (optional)

The database name on the MongoDB source endpoint.


docsToInvestigate?

Type: string (optional)

Indicates the number of documents to preview to determine the document organization.

Use this setting when NestingLevel is set to "one" .

Must be a positive value greater than 0 . Default value is 1000 .


extractDocId?

Type: string (optional)

Specifies the document ID. Use this setting when NestingLevel is set to "none" .

Default value is "false" .


nestingLevel?

Type: string (optional)

Specifies either document or table mode.

Default value is "none" . Specify "none" to use document mode. Specify "one" to use table mode.


password?

Type: string (optional)

The password for the user account you use to access the MongoDB source endpoint.


port?

Type: number (optional)

The port value for the MongoDB source endpoint.


secretsManagerAccessRoleArn?

Type: string (optional)

The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in SecretsManagerSecret .

The role must allow the iam:PassRole action. SecretsManagerSecret has the value of the AWS Secrets Manager secret that allows access to the MongoDB endpoint.

You can specify one of two sets of values for these permissions. You can specify the values for this setting and SecretsManagerSecretId . Or you can specify clear-text values for UserName , Password , ServerName , and Port . You can't specify both.

For more information on creating this SecretsManagerSecret , the corresponding SecretsManagerAccessRoleArn , and the SecretsManagerSecretId that is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .


secretsManagerSecretId?

Type: string (optional)

The full ARN, partial ARN, or display name of the SecretsManagerSecret that contains the MongoDB endpoint connection details.


serverName?

Type: string (optional)

The name of the server on the MongoDB source endpoint.


username?

Type: string (optional)

The user name you use to access the MongoDB source endpoint.