Class CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.MongoDbSettingsProperty>
- Enclosing interface:
CfnEndpointPropsMixin.MongoDbSettingsProperty
CfnEndpointPropsMixin.MongoDbSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthMechanism(String authMechanism) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthMechanism()authSource(String authSource) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthSource()Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthType()build()Builds the configured instance.databaseName(String databaseName) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getDatabaseName()docsToInvestigate(String docsToInvestigate) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getDocsToInvestigate()extractDocId(String extractDocId) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getExtractDocId()nestingLevel(String nestingLevel) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getNestingLevel()Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getPassword()Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getPort()secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) secretsManagerSecretId(String secretsManagerSecretId) serverName(String serverName) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getServerName()Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authMechanism
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder authMechanism(String authMechanism) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthMechanism()- Parameters:
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 whenAuthTypeis set to"no".- Returns:
this
-
authSource
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder authSource(String authSource) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthSource()- Parameters:
authSource- The MongoDB database name. This setting isn't used whenAuthTypeis set to"no". The default is"admin".- Returns:
this
-
authType
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder authType(String authType) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getAuthType()- Parameters:
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.- Returns:
this
-
databaseName
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder databaseName(String databaseName) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getDatabaseName()- Parameters:
databaseName- The database name on the MongoDB source endpoint.- Returns:
this
-
docsToInvestigate
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder docsToInvestigate(String docsToInvestigate) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getDocsToInvestigate()- Parameters:
docsToInvestigate- Indicates the number of documents to preview to determine the document organization. Use this setting whenNestingLevelis set to"one".Must be a positive value greater than
0. Default value is1000.- Returns:
this
-
extractDocId
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder extractDocId(String extractDocId) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getExtractDocId()- Parameters:
extractDocId- Specifies the document ID. Use this setting whenNestingLevelis set to"none". Default value is"false".- Returns:
this
-
nestingLevel
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder nestingLevel(String nestingLevel) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getNestingLevel()- Parameters:
nestingLevel- Specifies either document or table mode. Default value is"none". Specify"none"to use document mode. Specify"one"to use table mode.- Returns:
this
-
password
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder password(String password) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getPassword()- Parameters:
password- The password for the user account you use to access the MongoDB source endpoint.- Returns:
this
-
port
Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getPort()- Parameters:
port- The port value for the MongoDB source endpoint.- Returns:
this
-
secretsManagerAccessRoleArn
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) - Parameters:
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 inSecretsManagerSecret. The role must allow theiam:PassRoleaction.SecretsManagerSecrethas 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 .- Returns:
this
-
secretsManagerSecretId
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder secretsManagerSecretId(String secretsManagerSecretId) - Parameters:
secretsManagerSecretId- The full ARN, partial ARN, or display name of theSecretsManagerSecretthat contains the MongoDB endpoint connection details.- Returns:
this
-
serverName
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder serverName(String serverName) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getServerName()- Parameters:
serverName- The name of the server on the MongoDB source endpoint.- Returns:
this
-
username
@Stability(Stable) public CfnEndpointPropsMixin.MongoDbSettingsProperty.Builder username(String username) Sets the value ofCfnEndpointPropsMixin.MongoDbSettingsProperty.getUsername()- Parameters:
username- The user name you use to access the MongoDB source endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.MongoDbSettingsProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.MongoDbSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-