@Stability(value=Stable) public static final class CfnEndpoint.MongoDbSettingsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnEndpoint.MongoDbSettingsProperty>
CfnEndpoint.MongoDbSettingsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder authMechanism(String authMechanism)
CfnEndpoint.MongoDbSettingsProperty.getAuthMechanism()authMechanism - 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" .this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder authSource(String authSource)
CfnEndpoint.MongoDbSettingsProperty.getAuthSource()authSource - The MongoDB database name. This setting isn't used when `AuthType` is set to `"no"` .
The default is "admin" .this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder authType(String authType)
CfnEndpoint.MongoDbSettingsProperty.getAuthType()authType - 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.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder databaseName(String databaseName)
CfnEndpoint.MongoDbSettingsProperty.getDatabaseName()databaseName - The database name on the MongoDB source endpoint.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder docsToInvestigate(String docsToInvestigate)
CfnEndpoint.MongoDbSettingsProperty.getDocsToInvestigate()docsToInvestigate - 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 .
this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder extractDocId(String extractDocId)
CfnEndpoint.MongoDbSettingsProperty.getExtractDocId()extractDocId - Specifies the document ID. Use this setting when `NestingLevel` is set to `"none"` .
Default value is "false" .this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder nestingLevel(String nestingLevel)
CfnEndpoint.MongoDbSettingsProperty.getNestingLevel()nestingLevel - Specifies either document or table mode.
Default value is "none" . Specify "none" to use document mode. Specify "one" to use table mode.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder password(String password)
CfnEndpoint.MongoDbSettingsProperty.getPassword()password - The password for the user account you use to access the MongoDB source endpoint.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder port(Number port)
CfnEndpoint.MongoDbSettingsProperty.getPort()port - The port value for the MongoDB source endpoint.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn)
CfnEndpoint.MongoDbSettingsProperty.getSecretsManagerAccessRoleArn()secretsManagerAccessRoleArn - 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 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 .
this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder secretsManagerSecretId(String secretsManagerSecretId)
CfnEndpoint.MongoDbSettingsProperty.getSecretsManagerSecretId()secretsManagerSecretId - The full ARN, partial ARN, or display name of the `SecretsManagerSecret` that contains the MongoDB endpoint connection details.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder serverName(String serverName)
CfnEndpoint.MongoDbSettingsProperty.getServerName()serverName - The name of the server on the MongoDB source endpoint.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty.Builder username(String username)
CfnEndpoint.MongoDbSettingsProperty.getUsername()username - The user name you use to access the MongoDB source endpoint.this@Stability(value=Stable) public CfnEndpoint.MongoDbSettingsProperty build()
build in interface software.amazon.jsii.Builder<CfnEndpoint.MongoDbSettingsProperty>CfnEndpoint.MongoDbSettingsPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.