Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data MongoDbSettings = MongoDbSettings' {
- authMechanism :: Maybe AuthMechanismValue
- authSource :: Maybe Text
- authType :: Maybe AuthTypeValue
- databaseName :: Maybe Text
- docsToInvestigate :: Maybe Text
- extractDocId :: Maybe Text
- kmsKeyId :: Maybe Text
- nestingLevel :: Maybe NestingLevelValue
- password :: Maybe (Sensitive Text)
- port :: Maybe Int
- secretsManagerAccessRoleArn :: Maybe Text
- secretsManagerSecretId :: Maybe Text
- serverName :: Maybe Text
- username :: Maybe Text
- newMongoDbSettings :: MongoDbSettings
- mongoDbSettings_authMechanism :: Lens' MongoDbSettings (Maybe AuthMechanismValue)
- mongoDbSettings_authSource :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_authType :: Lens' MongoDbSettings (Maybe AuthTypeValue)
- mongoDbSettings_databaseName :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_docsToInvestigate :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_extractDocId :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_kmsKeyId :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_nestingLevel :: Lens' MongoDbSettings (Maybe NestingLevelValue)
- mongoDbSettings_password :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_port :: Lens' MongoDbSettings (Maybe Int)
- mongoDbSettings_secretsManagerAccessRoleArn :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_secretsManagerSecretId :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_serverName :: Lens' MongoDbSettings (Maybe Text)
- mongoDbSettings_username :: Lens' MongoDbSettings (Maybe Text)
Documentation
data MongoDbSettings Source #
Provides information that defines a MongoDB endpoint.
See: newMongoDbSettings
smart constructor.
MongoDbSettings' | |
|
Instances
newMongoDbSettings :: MongoDbSettings Source #
Create a value of MongoDbSettings
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:authMechanism:MongoDbSettings'
, mongoDbSettings_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"
.
$sel:authSource:MongoDbSettings'
, mongoDbSettings_authSource
- The MongoDB database name. This setting isn't used when AuthType
is
set to "no"
.
The default is "admin"
.
$sel:authType:MongoDbSettings'
, mongoDbSettings_authType
- 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.
$sel:databaseName:MongoDbSettings'
, mongoDbSettings_databaseName
- The database name on the MongoDB source endpoint.
$sel:docsToInvestigate:MongoDbSettings'
, mongoDbSettings_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
.
$sel:extractDocId:MongoDbSettings'
, mongoDbSettings_extractDocId
- Specifies the document ID. Use this setting when NestingLevel
is set
to "none"
.
Default value is "false"
.
$sel:kmsKeyId:MongoDbSettings'
, mongoDbSettings_kmsKeyId
- The KMS key identifier that is used to encrypt the content on the
replication instance. If you don't specify a value for the KmsKeyId
parameter, then DMS uses your default encryption key. KMS creates the
default encryption key for your Amazon Web Services account. Your Amazon
Web Services account has a different default encryption key for each
Amazon Web Services Region.
$sel:nestingLevel:MongoDbSettings'
, mongoDbSettings_nestingLevel
- Specifies either document or table mode.
Default value is "none"
. Specify "none"
to use document mode.
Specify "one"
to use table mode.
$sel:password:MongoDbSettings'
, mongoDbSettings_password
- The password for the user account you use to access the MongoDB source
endpoint.
$sel:port:MongoDbSettings'
, mongoDbSettings_port
- The port value for the MongoDB source endpoint.
$sel:secretsManagerAccessRoleArn:MongoDbSettings'
, mongoDbSettings_secretsManagerAccessRoleArn
- The full Amazon Resource Name (ARN) of the IAM role that specifies 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 Amazon Web Services
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 for UserName
, Password
, ServerName
,
and Port
. You can't specify both. For more information on creating
this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and
SecretsManagerSecretId
required to access it, see
Using secrets to access Database Migration Service resources
in the Database Migration Service User Guide.
$sel:secretsManagerSecretId:MongoDbSettings'
, mongoDbSettings_secretsManagerSecretId
- The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret
that contains the MongoDB endpoint connection
details.
$sel:serverName:MongoDbSettings'
, mongoDbSettings_serverName
- The name of the server on the MongoDB source endpoint.
$sel:username:MongoDbSettings'
, mongoDbSettings_username
- The user name you use to access the MongoDB source endpoint.
mongoDbSettings_authMechanism :: Lens' MongoDbSettings (Maybe AuthMechanismValue) Source #
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"
.
mongoDbSettings_authSource :: Lens' MongoDbSettings (Maybe Text) Source #
The MongoDB database name. This setting isn't used when AuthType
is
set to "no"
.
The default is "admin"
.
mongoDbSettings_authType :: Lens' MongoDbSettings (Maybe AuthTypeValue) Source #
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.
mongoDbSettings_databaseName :: Lens' MongoDbSettings (Maybe Text) Source #
The database name on the MongoDB source endpoint.
mongoDbSettings_docsToInvestigate :: Lens' MongoDbSettings (Maybe Text) Source #
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
.
mongoDbSettings_extractDocId :: Lens' MongoDbSettings (Maybe Text) Source #
Specifies the document ID. Use this setting when NestingLevel
is set
to "none"
.
Default value is "false"
.
mongoDbSettings_kmsKeyId :: Lens' MongoDbSettings (Maybe Text) Source #
The KMS key identifier that is used to encrypt the content on the
replication instance. If you don't specify a value for the KmsKeyId
parameter, then DMS uses your default encryption key. KMS creates the
default encryption key for your Amazon Web Services account. Your Amazon
Web Services account has a different default encryption key for each
Amazon Web Services Region.
mongoDbSettings_nestingLevel :: Lens' MongoDbSettings (Maybe NestingLevelValue) Source #
Specifies either document or table mode.
Default value is "none"
. Specify "none"
to use document mode.
Specify "one"
to use table mode.
mongoDbSettings_password :: Lens' MongoDbSettings (Maybe Text) Source #
The password for the user account you use to access the MongoDB source endpoint.
mongoDbSettings_port :: Lens' MongoDbSettings (Maybe Int) Source #
The port value for the MongoDB source endpoint.
mongoDbSettings_secretsManagerAccessRoleArn :: Lens' MongoDbSettings (Maybe Text) Source #
The full Amazon Resource Name (ARN) of the IAM role that specifies 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 Amazon Web Services
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 for UserName
, Password
, ServerName
,
and Port
. You can't specify both. For more information on creating
this SecretsManagerSecret
and the SecretsManagerAccessRoleArn
and
SecretsManagerSecretId
required to access it, see
Using secrets to access Database Migration Service resources
in the Database Migration Service User Guide.
mongoDbSettings_secretsManagerSecretId :: Lens' MongoDbSettings (Maybe Text) Source #
The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret
that contains the MongoDB endpoint connection
details.
mongoDbSettings_serverName :: Lens' MongoDbSettings (Maybe Text) Source #
The name of the server on the MongoDB source endpoint.
mongoDbSettings_username :: Lens' MongoDbSettings (Maybe Text) Source #
The user name you use to access the MongoDB source endpoint.