amazonka-dms-2.0: Amazon Database Migration Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DMS.Types.DocDbSettings

Description

 
Synopsis

Documentation

data DocDbSettings Source #

Provides information that defines a DocumentDB endpoint.

See: newDocDbSettings smart constructor.

Constructors

DocDbSettings' 

Fields

  • databaseName :: Maybe Text

    The database name on the DocumentDB source endpoint.

  • docsToInvestigate :: Maybe Int

    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.

  • extractDocId :: Maybe Bool

    Specifies the document ID. Use this setting when NestingLevel is set to "none".

    Default value is "false".

  • kmsKeyId :: Maybe Text

    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.

  • nestingLevel :: Maybe NestingLevelValue

    Specifies either document or table mode.

    Default value is "none". Specify "none" to use document mode. Specify "one" to use table mode.

  • password :: Maybe (Sensitive Text)

    The password for the user account you use to access the DocumentDB source endpoint.

  • port :: Maybe Int

    The port value for the DocumentDB source endpoint.

  • secretsManagerAccessRoleArn :: Maybe Text

    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 DocumentDB 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.

  • secretsManagerSecretId :: Maybe Text

    The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the DocumentDB endpoint connection details.

  • serverName :: Maybe Text

    The name of the server on the DocumentDB source endpoint.

  • username :: Maybe Text

    The user name you use to access the DocumentDB source endpoint.

Instances

Instances details
FromJSON DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

ToJSON DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

Generic DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

Associated Types

type Rep DocDbSettings :: Type -> Type #

Show DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

NFData DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

Methods

rnf :: DocDbSettings -> () #

Eq DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

Hashable DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

type Rep DocDbSettings Source # 
Instance details

Defined in Amazonka.DMS.Types.DocDbSettings

type Rep DocDbSettings = D1 ('MetaData "DocDbSettings" "Amazonka.DMS.Types.DocDbSettings" "amazonka-dms-2.0-LVCLJv4CY4nJuf0WXCDs3O" 'False) (C1 ('MetaCons "DocDbSettings'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "docsToInvestigate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "extractDocId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nestingLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NestingLevelValue))))) :*: ((S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "secretsManagerAccessRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "secretsManagerSecretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "serverName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newDocDbSettings :: DocDbSettings Source #

Create a value of DocDbSettings 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:databaseName:DocDbSettings', docDbSettings_databaseName - The database name on the DocumentDB source endpoint.

$sel:docsToInvestigate:DocDbSettings', docDbSettings_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:DocDbSettings', docDbSettings_extractDocId - Specifies the document ID. Use this setting when NestingLevel is set to "none".

Default value is "false".

$sel:kmsKeyId:DocDbSettings', docDbSettings_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:DocDbSettings', docDbSettings_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:DocDbSettings', docDbSettings_password - The password for the user account you use to access the DocumentDB source endpoint.

$sel:port:DocDbSettings', docDbSettings_port - The port value for the DocumentDB source endpoint.

$sel:secretsManagerAccessRoleArn:DocDbSettings', docDbSettings_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 DocumentDB 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:DocDbSettings', docDbSettings_secretsManagerSecretId - The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the DocumentDB endpoint connection details.

$sel:serverName:DocDbSettings', docDbSettings_serverName - The name of the server on the DocumentDB source endpoint.

$sel:username:DocDbSettings', docDbSettings_username - The user name you use to access the DocumentDB source endpoint.

docDbSettings_databaseName :: Lens' DocDbSettings (Maybe Text) Source #

The database name on the DocumentDB source endpoint.

docDbSettings_docsToInvestigate :: Lens' DocDbSettings (Maybe Int) 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.

docDbSettings_extractDocId :: Lens' DocDbSettings (Maybe Bool) Source #

Specifies the document ID. Use this setting when NestingLevel is set to "none".

Default value is "false".

docDbSettings_kmsKeyId :: Lens' DocDbSettings (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.

docDbSettings_nestingLevel :: Lens' DocDbSettings (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.

docDbSettings_password :: Lens' DocDbSettings (Maybe Text) Source #

The password for the user account you use to access the DocumentDB source endpoint.

docDbSettings_port :: Lens' DocDbSettings (Maybe Int) Source #

The port value for the DocumentDB source endpoint.

docDbSettings_secretsManagerAccessRoleArn :: Lens' DocDbSettings (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 DocumentDB 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.

docDbSettings_secretsManagerSecretId :: Lens' DocDbSettings (Maybe Text) Source #

The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the DocumentDB endpoint connection details.

docDbSettings_serverName :: Lens' DocDbSettings (Maybe Text) Source #

The name of the server on the DocumentDB source endpoint.

docDbSettings_username :: Lens' DocDbSettings (Maybe Text) Source #

The user name you use to access the DocumentDB source endpoint.