Interface CfnDataProvider.MongoDbSettingsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataProvider.MongoDbSettingsProperty.Jsii$Proxy
- Enclosing class:
CfnDataProvider
@Stability(Stable)
public static interface CfnDataProvider.MongoDbSettingsProperty
extends software.amazon.jsii.JsiiSerializable
Provides information that defines a MongoDB endpoint.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dms.*;
MongoDbSettingsProperty mongoDbSettingsProperty = MongoDbSettingsProperty.builder()
.port(123)
.serverName("serverName")
// the properties below are optional
.authMechanism("authMechanism")
.authSource("authSource")
.authType("authType")
.certificateArn("certificateArn")
.databaseName("databaseName")
.sslMode("sslMode")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataProvider.MongoDbSettingsPropertystatic final classAn implementation forCfnDataProvider.MongoDbSettingsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe authentication mechanism you use to access the MongoDB source endpoint.default StringThe MongoDB database name.default StringThe authentication type you use to access the MongoDB source endpoint.default Stringdefault StringThe database name on the MongoDB source endpoint.getPort()The port value for the MongoDB source endpoint.The name of the server on the MongoDB source endpoint.default StringMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPort
The port value for the MongoDB source endpoint.- See Also:
-
getServerName
The name of the server on the MongoDB source endpoint.For MongoDB Atlas, provide the server name for any of the servers in the replication set.
- See Also:
-
getAuthMechanism
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".- See Also:
-
getAuthSource
The MongoDB database name. This setting isn't used whenAuthTypeis set to"no".The default is
"admin".- See Also:
-
getAuthType
The authentication type you use to access the MongoDB source endpoint.When when set to
"no", user name and password parameters are not used and can be empty.- See Also:
-
getCertificateArn
- See Also:
-
getDatabaseName
The database name on the MongoDB source endpoint.- See Also:
-
getSslMode
- See Also:
-
builder
-