MongoDbSettingsProperty Struct
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
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" .
The default is "admin" .
When set to "no" , user name and password parameters are not used and can be empty.
docsToInvestigatestringdocs_to_investigatestrdocsToInvestigateStringDocsToInvestigatestringDocsToInvestigate*string#Use this setting when NestingLevel is set to "one" .
Must be a positive value greater than 0 . Default value is 1000 .
Default value is "false" .
Default value is "none" . Specify "none" to use document mode. Specify "one" to use table mode.
secretsManagerAccessRoleArnstringsecrets_manager_access_role_arnstrsecretsManagerAccessRoleArnStringSecretsManagerAccessRoleArnstringSecretsManagerAccessRoleArn*string#notes
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 forUserName,Password,ServerName, andPort. You can't specify both.For more information on creating this
SecretsManagerSecret, the correspondingSecretsManagerAccessRoleArn, and theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
secretsManagerSecretIdstringsecrets_manager_secret_idstrsecretsManagerSecretIdStringSecretsManagerSecretIdstringSecretsManagerSecretId*string#