#[non_exhaustive]pub struct MongoDbDataProviderSettings {
pub server_name: Option<String>,
pub port: Option<i32>,
pub database_name: Option<String>,
pub ssl_mode: Option<DmsSslModeValue>,
pub certificate_arn: Option<String>,
pub auth_type: Option<AuthTypeValue>,
pub auth_source: Option<String>,
pub auth_mechanism: Option<AuthMechanismValue>,
}
Expand description
Provides information that defines a MongoDB data provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.server_name: Option<String>
The name of the MongoDB server.
port: Option<i32>
The port value for the MongoDB data provider.
database_name: Option<String>
The database name on the MongoDB data provider.
ssl_mode: Option<DmsSslModeValue>
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
certificate_arn: Option<String>
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
auth_type: Option<AuthTypeValue>
The authentication type for the database connection. Valid values are PASSWORD or NO.
auth_source: Option<String>
The MongoDB database name. This setting isn't used when AuthType
is set to "no"
.
The default is "admin"
.
auth_mechanism: Option<AuthMechanismValue>
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
Implementations§
source§impl MongoDbDataProviderSettings
impl MongoDbDataProviderSettings
sourcepub fn server_name(&self) -> Option<&str>
pub fn server_name(&self) -> Option<&str>
The name of the MongoDB server.
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The database name on the MongoDB data provider.
sourcepub fn ssl_mode(&self) -> Option<&DmsSslModeValue>
pub fn ssl_mode(&self) -> Option<&DmsSslModeValue>
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
sourcepub fn certificate_arn(&self) -> Option<&str>
pub fn certificate_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
sourcepub fn auth_type(&self) -> Option<&AuthTypeValue>
pub fn auth_type(&self) -> Option<&AuthTypeValue>
The authentication type for the database connection. Valid values are PASSWORD or NO.
sourcepub fn auth_source(&self) -> Option<&str>
pub fn auth_source(&self) -> Option<&str>
The MongoDB database name. This setting isn't used when AuthType
is set to "no"
.
The default is "admin"
.
sourcepub fn auth_mechanism(&self) -> Option<&AuthMechanismValue>
pub fn auth_mechanism(&self) -> Option<&AuthMechanismValue>
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
source§impl MongoDbDataProviderSettings
impl MongoDbDataProviderSettings
sourcepub fn builder() -> MongoDbDataProviderSettingsBuilder
pub fn builder() -> MongoDbDataProviderSettingsBuilder
Creates a new builder-style object to manufacture MongoDbDataProviderSettings
.
Trait Implementations§
source§impl Clone for MongoDbDataProviderSettings
impl Clone for MongoDbDataProviderSettings
source§fn clone(&self) -> MongoDbDataProviderSettings
fn clone(&self) -> MongoDbDataProviderSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MongoDbDataProviderSettings
impl Debug for MongoDbDataProviderSettings
source§impl PartialEq for MongoDbDataProviderSettings
impl PartialEq for MongoDbDataProviderSettings
source§fn eq(&self, other: &MongoDbDataProviderSettings) -> bool
fn eq(&self, other: &MongoDbDataProviderSettings) -> bool
self
and other
values to be equal, and is used
by ==
.