public static final class CfnEndpoint.MongoDbSettingsProperty.Builder
extends java.lang.Object
CfnEndpoint.MongoDbSettingsProperty
Constructor and Description |
---|
Builder() |
public CfnEndpoint.MongoDbSettingsProperty.Builder authMechanism(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder authSource(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder authType(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder databaseName(java.lang.String databaseName)
CfnEndpoint.MongoDbSettingsProperty.getDatabaseName()
databaseName
- The database name on the MongoDB source endpoint.this
public CfnEndpoint.MongoDbSettingsProperty.Builder docsToInvestigate(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder extractDocId(java.lang.String extractDocId)
CfnEndpoint.MongoDbSettingsProperty.getExtractDocId()
extractDocId
- Specifies the document ID. Use this setting when `NestingLevel` is set to `"none"` .
Default value is "false"
.this
public CfnEndpoint.MongoDbSettingsProperty.Builder nestingLevel(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder password(java.lang.String password)
CfnEndpoint.MongoDbSettingsProperty.getPassword()
password
- The password for the user account you use to access the MongoDB source endpoint.this
public CfnEndpoint.MongoDbSettingsProperty.Builder port(java.lang.Number port)
CfnEndpoint.MongoDbSettingsProperty.getPort()
port
- The port value for the MongoDB source endpoint.this
public CfnEndpoint.MongoDbSettingsProperty.Builder secretsManagerAccessRoleArn(java.lang.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 theSecretsManagerSecretId
that is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
this
public CfnEndpoint.MongoDbSettingsProperty.Builder secretsManagerSecretId(java.lang.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
public CfnEndpoint.MongoDbSettingsProperty.Builder serverName(java.lang.String serverName)
CfnEndpoint.MongoDbSettingsProperty.getServerName()
serverName
- The name of the server on the MongoDB source endpoint.this
public CfnEndpoint.MongoDbSettingsProperty.Builder username(java.lang.String username)
CfnEndpoint.MongoDbSettingsProperty.getUsername()
username
- The user name you use to access the MongoDB source endpoint.this
public CfnEndpoint.MongoDbSettingsProperty build()
CfnEndpoint.MongoDbSettingsProperty
java.lang.NullPointerException
- if any required attribute was not provided