{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DMS.Types.GcpMySQLSettings
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DMS.Types.GcpMySQLSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.DMS.Types.TargetDbType
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Settings in JSON format for the source GCP MySQL endpoint.
--
-- /See:/ 'newGcpMySQLSettings' smart constructor.
data GcpMySQLSettings = GcpMySQLSettings'
  { -- | Specifies a script to run immediately after DMS connects to the
    -- endpoint. The migration task continues running regardless if the SQL
    -- statement succeeds or fails.
    --
    -- For this parameter, provide the code of the script itself, not the name
    -- of a file containing the script.
    GcpMySQLSettings -> Maybe Text
afterConnectScript :: Prelude.Maybe Prelude.Text,
    -- | Adjusts the behavior of DMS when migrating from an SQL Server source
    -- database that is hosted as part of an Always On availability group
    -- cluster. If you need DMS to poll all the nodes in the Always On cluster
    -- for transaction backups, set this attribute to @false@.
    GcpMySQLSettings -> Maybe Bool
cleanSourceMetadataOnMismatch :: Prelude.Maybe Prelude.Bool,
    -- | Database name for the endpoint. For a MySQL source or target endpoint,
    -- don\'t explicitly specify the database using the @DatabaseName@ request
    -- parameter on either the @CreateEndpoint@ or @ModifyEndpoint@ API call.
    -- Specifying @DatabaseName@ when you create or modify a MySQL endpoint
    -- replicates all the task tables to this single database. For MySQL
    -- endpoints, you specify the database only when you specify the schema in
    -- the table-mapping rules of the DMS task.
    GcpMySQLSettings -> Maybe Text
databaseName :: Prelude.Maybe Prelude.Text,
    -- | Specifies how often to check the binary log for new changes\/events when
    -- the database is idle. The default is five seconds.
    --
    -- Example: @eventsPollInterval=5;@
    --
    -- In the example, DMS checks for changes in the binary logs every five
    -- seconds.
    GcpMySQLSettings -> Maybe Int
eventsPollInterval :: Prelude.Maybe Prelude.Int,
    -- | Specifies the maximum size (in KB) of any .csv file used to transfer
    -- data to a MySQL-compatible database.
    --
    -- Example: @maxFileSize=512@
    GcpMySQLSettings -> Maybe Int
maxFileSize :: Prelude.Maybe Prelude.Int,
    -- | Improves performance when loading data into the MySQL-compatible target
    -- database. Specifies how many threads to use to load the data into the
    -- MySQL-compatible target database. Setting a large number of threads can
    -- have an adverse effect on database performance, because a separate
    -- connection is required for each thread. The default is one.
    --
    -- Example: @parallelLoadThreads=1@
    GcpMySQLSettings -> Maybe Int
parallelLoadThreads :: Prelude.Maybe Prelude.Int,
    -- | Endpoint connection password.
    GcpMySQLSettings -> Maybe (Sensitive Text)
password :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    GcpMySQLSettings -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
    -- | 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 MySQL 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
    -- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager Using secrets to access Database Migration Service resources>
    -- in the Database Migration Service User Guide.
    GcpMySQLSettings -> Maybe Text
secretsManagerAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The full ARN, partial ARN, or friendly name of the
    -- @SecretsManagerSecret@ that contains the MySQL endpoint connection
    -- details.
    GcpMySQLSettings -> Maybe Text
secretsManagerSecretId :: Prelude.Maybe Prelude.Text,
    -- | Endpoint TCP port.
    GcpMySQLSettings -> Maybe Text
serverName :: Prelude.Maybe Prelude.Text,
    -- | Specifies the time zone for the source MySQL database.
    --
    -- Example: @serverTimezone=US\/Pacific;@
    --
    -- Note: Do not enclose time zones in single quotes.
    GcpMySQLSettings -> Maybe Text
serverTimezone :: Prelude.Maybe Prelude.Text,
    -- | Specifies where to migrate source tables on the target, either to a
    -- single database or multiple databases.
    --
    -- Example: @targetDbType=MULTIPLE_DATABASES@
    GcpMySQLSettings -> Maybe TargetDbType
targetDbType :: Prelude.Maybe TargetDbType,
    -- | Endpoint connection user name.
    GcpMySQLSettings -> Maybe Text
username :: Prelude.Maybe Prelude.Text
  }
  deriving (GcpMySQLSettings -> GcpMySQLSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GcpMySQLSettings -> GcpMySQLSettings -> Bool
$c/= :: GcpMySQLSettings -> GcpMySQLSettings -> Bool
== :: GcpMySQLSettings -> GcpMySQLSettings -> Bool
$c== :: GcpMySQLSettings -> GcpMySQLSettings -> Bool
Prelude.Eq, Int -> GcpMySQLSettings -> ShowS
[GcpMySQLSettings] -> ShowS
GcpMySQLSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GcpMySQLSettings] -> ShowS
$cshowList :: [GcpMySQLSettings] -> ShowS
show :: GcpMySQLSettings -> String
$cshow :: GcpMySQLSettings -> String
showsPrec :: Int -> GcpMySQLSettings -> ShowS
$cshowsPrec :: Int -> GcpMySQLSettings -> ShowS
Prelude.Show, forall x. Rep GcpMySQLSettings x -> GcpMySQLSettings
forall x. GcpMySQLSettings -> Rep GcpMySQLSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GcpMySQLSettings x -> GcpMySQLSettings
$cfrom :: forall x. GcpMySQLSettings -> Rep GcpMySQLSettings x
Prelude.Generic)

-- |
-- Create a value of 'GcpMySQLSettings' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'afterConnectScript', 'gcpMySQLSettings_afterConnectScript' - Specifies a script to run immediately after DMS connects to the
-- endpoint. The migration task continues running regardless if the SQL
-- statement succeeds or fails.
--
-- For this parameter, provide the code of the script itself, not the name
-- of a file containing the script.
--
-- 'cleanSourceMetadataOnMismatch', 'gcpMySQLSettings_cleanSourceMetadataOnMismatch' - Adjusts the behavior of DMS when migrating from an SQL Server source
-- database that is hosted as part of an Always On availability group
-- cluster. If you need DMS to poll all the nodes in the Always On cluster
-- for transaction backups, set this attribute to @false@.
--
-- 'databaseName', 'gcpMySQLSettings_databaseName' - Database name for the endpoint. For a MySQL source or target endpoint,
-- don\'t explicitly specify the database using the @DatabaseName@ request
-- parameter on either the @CreateEndpoint@ or @ModifyEndpoint@ API call.
-- Specifying @DatabaseName@ when you create or modify a MySQL endpoint
-- replicates all the task tables to this single database. For MySQL
-- endpoints, you specify the database only when you specify the schema in
-- the table-mapping rules of the DMS task.
--
-- 'eventsPollInterval', 'gcpMySQLSettings_eventsPollInterval' - Specifies how often to check the binary log for new changes\/events when
-- the database is idle. The default is five seconds.
--
-- Example: @eventsPollInterval=5;@
--
-- In the example, DMS checks for changes in the binary logs every five
-- seconds.
--
-- 'maxFileSize', 'gcpMySQLSettings_maxFileSize' - Specifies the maximum size (in KB) of any .csv file used to transfer
-- data to a MySQL-compatible database.
--
-- Example: @maxFileSize=512@
--
-- 'parallelLoadThreads', 'gcpMySQLSettings_parallelLoadThreads' - Improves performance when loading data into the MySQL-compatible target
-- database. Specifies how many threads to use to load the data into the
-- MySQL-compatible target database. Setting a large number of threads can
-- have an adverse effect on database performance, because a separate
-- connection is required for each thread. The default is one.
--
-- Example: @parallelLoadThreads=1@
--
-- 'password', 'gcpMySQLSettings_password' - Endpoint connection password.
--
-- 'port', 'gcpMySQLSettings_port' -
--
-- 'secretsManagerAccessRoleArn', 'gcpMySQLSettings_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 MySQL 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
-- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager Using secrets to access Database Migration Service resources>
-- in the Database Migration Service User Guide.
--
-- 'secretsManagerSecretId', 'gcpMySQLSettings_secretsManagerSecretId' - The full ARN, partial ARN, or friendly name of the
-- @SecretsManagerSecret@ that contains the MySQL endpoint connection
-- details.
--
-- 'serverName', 'gcpMySQLSettings_serverName' - Endpoint TCP port.
--
-- 'serverTimezone', 'gcpMySQLSettings_serverTimezone' - Specifies the time zone for the source MySQL database.
--
-- Example: @serverTimezone=US\/Pacific;@
--
-- Note: Do not enclose time zones in single quotes.
--
-- 'targetDbType', 'gcpMySQLSettings_targetDbType' - Specifies where to migrate source tables on the target, either to a
-- single database or multiple databases.
--
-- Example: @targetDbType=MULTIPLE_DATABASES@
--
-- 'username', 'gcpMySQLSettings_username' - Endpoint connection user name.
newGcpMySQLSettings ::
  GcpMySQLSettings
newGcpMySQLSettings :: GcpMySQLSettings
newGcpMySQLSettings =
  GcpMySQLSettings'
    { $sel:afterConnectScript:GcpMySQLSettings' :: Maybe Text
afterConnectScript =
        forall a. Maybe a
Prelude.Nothing,
      $sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: Maybe Bool
cleanSourceMetadataOnMismatch = forall a. Maybe a
Prelude.Nothing,
      $sel:databaseName:GcpMySQLSettings' :: Maybe Text
databaseName = forall a. Maybe a
Prelude.Nothing,
      $sel:eventsPollInterval:GcpMySQLSettings' :: Maybe Int
eventsPollInterval = forall a. Maybe a
Prelude.Nothing,
      $sel:maxFileSize:GcpMySQLSettings' :: Maybe Int
maxFileSize = forall a. Maybe a
Prelude.Nothing,
      $sel:parallelLoadThreads:GcpMySQLSettings' :: Maybe Int
parallelLoadThreads = forall a. Maybe a
Prelude.Nothing,
      $sel:password:GcpMySQLSettings' :: Maybe (Sensitive Text)
password = forall a. Maybe a
Prelude.Nothing,
      $sel:port:GcpMySQLSettings' :: Maybe Int
port = forall a. Maybe a
Prelude.Nothing,
      $sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: Maybe Text
secretsManagerAccessRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:secretsManagerSecretId:GcpMySQLSettings' :: Maybe Text
secretsManagerSecretId = forall a. Maybe a
Prelude.Nothing,
      $sel:serverName:GcpMySQLSettings' :: Maybe Text
serverName = forall a. Maybe a
Prelude.Nothing,
      $sel:serverTimezone:GcpMySQLSettings' :: Maybe Text
serverTimezone = forall a. Maybe a
Prelude.Nothing,
      $sel:targetDbType:GcpMySQLSettings' :: Maybe TargetDbType
targetDbType = forall a. Maybe a
Prelude.Nothing,
      $sel:username:GcpMySQLSettings' :: Maybe Text
username = forall a. Maybe a
Prelude.Nothing
    }

-- | Specifies a script to run immediately after DMS connects to the
-- endpoint. The migration task continues running regardless if the SQL
-- statement succeeds or fails.
--
-- For this parameter, provide the code of the script itself, not the name
-- of a file containing the script.
gcpMySQLSettings_afterConnectScript :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_afterConnectScript :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_afterConnectScript = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
afterConnectScript :: Maybe Text
$sel:afterConnectScript:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
afterConnectScript} -> Maybe Text
afterConnectScript) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:afterConnectScript:GcpMySQLSettings' :: Maybe Text
afterConnectScript = Maybe Text
a} :: GcpMySQLSettings)

-- | Adjusts the behavior of DMS when migrating from an SQL Server source
-- database that is hosted as part of an Always On availability group
-- cluster. If you need DMS to poll all the nodes in the Always On cluster
-- for transaction backups, set this attribute to @false@.
gcpMySQLSettings_cleanSourceMetadataOnMismatch :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Bool)
gcpMySQLSettings_cleanSourceMetadataOnMismatch :: Lens' GcpMySQLSettings (Maybe Bool)
gcpMySQLSettings_cleanSourceMetadataOnMismatch = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Bool
cleanSourceMetadataOnMismatch :: Maybe Bool
$sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Bool
cleanSourceMetadataOnMismatch} -> Maybe Bool
cleanSourceMetadataOnMismatch) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Bool
a -> GcpMySQLSettings
s {$sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: Maybe Bool
cleanSourceMetadataOnMismatch = Maybe Bool
a} :: GcpMySQLSettings)

-- | Database name for the endpoint. For a MySQL source or target endpoint,
-- don\'t explicitly specify the database using the @DatabaseName@ request
-- parameter on either the @CreateEndpoint@ or @ModifyEndpoint@ API call.
-- Specifying @DatabaseName@ when you create or modify a MySQL endpoint
-- replicates all the task tables to this single database. For MySQL
-- endpoints, you specify the database only when you specify the schema in
-- the table-mapping rules of the DMS task.
gcpMySQLSettings_databaseName :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_databaseName :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_databaseName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
databaseName :: Maybe Text
$sel:databaseName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
databaseName} -> Maybe Text
databaseName) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:databaseName:GcpMySQLSettings' :: Maybe Text
databaseName = Maybe Text
a} :: GcpMySQLSettings)

-- | Specifies how often to check the binary log for new changes\/events when
-- the database is idle. The default is five seconds.
--
-- Example: @eventsPollInterval=5;@
--
-- In the example, DMS checks for changes in the binary logs every five
-- seconds.
gcpMySQLSettings_eventsPollInterval :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Int)
gcpMySQLSettings_eventsPollInterval :: Lens' GcpMySQLSettings (Maybe Int)
gcpMySQLSettings_eventsPollInterval = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Int
eventsPollInterval :: Maybe Int
$sel:eventsPollInterval:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
eventsPollInterval} -> Maybe Int
eventsPollInterval) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Int
a -> GcpMySQLSettings
s {$sel:eventsPollInterval:GcpMySQLSettings' :: Maybe Int
eventsPollInterval = Maybe Int
a} :: GcpMySQLSettings)

-- | Specifies the maximum size (in KB) of any .csv file used to transfer
-- data to a MySQL-compatible database.
--
-- Example: @maxFileSize=512@
gcpMySQLSettings_maxFileSize :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Int)
gcpMySQLSettings_maxFileSize :: Lens' GcpMySQLSettings (Maybe Int)
gcpMySQLSettings_maxFileSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Int
maxFileSize :: Maybe Int
$sel:maxFileSize:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
maxFileSize} -> Maybe Int
maxFileSize) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Int
a -> GcpMySQLSettings
s {$sel:maxFileSize:GcpMySQLSettings' :: Maybe Int
maxFileSize = Maybe Int
a} :: GcpMySQLSettings)

-- | Improves performance when loading data into the MySQL-compatible target
-- database. Specifies how many threads to use to load the data into the
-- MySQL-compatible target database. Setting a large number of threads can
-- have an adverse effect on database performance, because a separate
-- connection is required for each thread. The default is one.
--
-- Example: @parallelLoadThreads=1@
gcpMySQLSettings_parallelLoadThreads :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Int)
gcpMySQLSettings_parallelLoadThreads :: Lens' GcpMySQLSettings (Maybe Int)
gcpMySQLSettings_parallelLoadThreads = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Int
parallelLoadThreads :: Maybe Int
$sel:parallelLoadThreads:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
parallelLoadThreads} -> Maybe Int
parallelLoadThreads) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Int
a -> GcpMySQLSettings
s {$sel:parallelLoadThreads:GcpMySQLSettings' :: Maybe Int
parallelLoadThreads = Maybe Int
a} :: GcpMySQLSettings)

-- | Endpoint connection password.
gcpMySQLSettings_password :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_password :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_password = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe (Sensitive Text)
password :: Maybe (Sensitive Text)
$sel:password:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe (Sensitive Text)
password} -> Maybe (Sensitive Text)
password) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe (Sensitive Text)
a -> GcpMySQLSettings
s {$sel:password:GcpMySQLSettings' :: Maybe (Sensitive Text)
password = Maybe (Sensitive Text)
a} :: GcpMySQLSettings) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

gcpMySQLSettings_port :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Int)
gcpMySQLSettings_port :: Lens' GcpMySQLSettings (Maybe Int)
gcpMySQLSettings_port = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Int
port :: Maybe Int
$sel:port:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
port} -> Maybe Int
port) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Int
a -> GcpMySQLSettings
s {$sel:port:GcpMySQLSettings' :: Maybe Int
port = Maybe Int
a} :: GcpMySQLSettings)

-- | 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 MySQL 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
-- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager Using secrets to access Database Migration Service resources>
-- in the Database Migration Service User Guide.
gcpMySQLSettings_secretsManagerAccessRoleArn :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_secretsManagerAccessRoleArn :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_secretsManagerAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
$sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
secretsManagerAccessRoleArn} -> Maybe Text
secretsManagerAccessRoleArn) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: Maybe Text
secretsManagerAccessRoleArn = Maybe Text
a} :: GcpMySQLSettings)

-- | The full ARN, partial ARN, or friendly name of the
-- @SecretsManagerSecret@ that contains the MySQL endpoint connection
-- details.
gcpMySQLSettings_secretsManagerSecretId :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_secretsManagerSecretId :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_secretsManagerSecretId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
secretsManagerSecretId :: Maybe Text
$sel:secretsManagerSecretId:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
secretsManagerSecretId} -> Maybe Text
secretsManagerSecretId) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:secretsManagerSecretId:GcpMySQLSettings' :: Maybe Text
secretsManagerSecretId = Maybe Text
a} :: GcpMySQLSettings)

-- | Endpoint TCP port.
gcpMySQLSettings_serverName :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_serverName :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_serverName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
serverName :: Maybe Text
$sel:serverName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
serverName} -> Maybe Text
serverName) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:serverName:GcpMySQLSettings' :: Maybe Text
serverName = Maybe Text
a} :: GcpMySQLSettings)

-- | Specifies the time zone for the source MySQL database.
--
-- Example: @serverTimezone=US\/Pacific;@
--
-- Note: Do not enclose time zones in single quotes.
gcpMySQLSettings_serverTimezone :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_serverTimezone :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_serverTimezone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
serverTimezone :: Maybe Text
$sel:serverTimezone:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
serverTimezone} -> Maybe Text
serverTimezone) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:serverTimezone:GcpMySQLSettings' :: Maybe Text
serverTimezone = Maybe Text
a} :: GcpMySQLSettings)

-- | Specifies where to migrate source tables on the target, either to a
-- single database or multiple databases.
--
-- Example: @targetDbType=MULTIPLE_DATABASES@
gcpMySQLSettings_targetDbType :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe TargetDbType)
gcpMySQLSettings_targetDbType :: Lens' GcpMySQLSettings (Maybe TargetDbType)
gcpMySQLSettings_targetDbType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe TargetDbType
targetDbType :: Maybe TargetDbType
$sel:targetDbType:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe TargetDbType
targetDbType} -> Maybe TargetDbType
targetDbType) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe TargetDbType
a -> GcpMySQLSettings
s {$sel:targetDbType:GcpMySQLSettings' :: Maybe TargetDbType
targetDbType = Maybe TargetDbType
a} :: GcpMySQLSettings)

-- | Endpoint connection user name.
gcpMySQLSettings_username :: Lens.Lens' GcpMySQLSettings (Prelude.Maybe Prelude.Text)
gcpMySQLSettings_username :: Lens' GcpMySQLSettings (Maybe Text)
gcpMySQLSettings_username = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GcpMySQLSettings' {Maybe Text
username :: Maybe Text
$sel:username:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
username} -> Maybe Text
username) (\s :: GcpMySQLSettings
s@GcpMySQLSettings' {} Maybe Text
a -> GcpMySQLSettings
s {$sel:username:GcpMySQLSettings' :: Maybe Text
username = Maybe Text
a} :: GcpMySQLSettings)

instance Data.FromJSON GcpMySQLSettings where
  parseJSON :: Value -> Parser GcpMySQLSettings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"GcpMySQLSettings"
      ( \Object
x ->
          Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe TargetDbType
-> Maybe Text
-> GcpMySQLSettings
GcpMySQLSettings'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AfterConnectScript")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CleanSourceMetadataOnMismatch")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DatabaseName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EventsPollInterval")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxFileSize")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParallelLoadThreads")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Password")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Port")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SecretsManagerAccessRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SecretsManagerSecretId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ServerName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ServerTimezone")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TargetDbType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Username")
      )

instance Prelude.Hashable GcpMySQLSettings where
  hashWithSalt :: Int -> GcpMySQLSettings -> Int
hashWithSalt Int
_salt GcpMySQLSettings' {Maybe Bool
Maybe Int
Maybe Text
Maybe (Sensitive Text)
Maybe TargetDbType
username :: Maybe Text
targetDbType :: Maybe TargetDbType
serverTimezone :: Maybe Text
serverName :: Maybe Text
secretsManagerSecretId :: Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
port :: Maybe Int
password :: Maybe (Sensitive Text)
parallelLoadThreads :: Maybe Int
maxFileSize :: Maybe Int
eventsPollInterval :: Maybe Int
databaseName :: Maybe Text
cleanSourceMetadataOnMismatch :: Maybe Bool
afterConnectScript :: Maybe Text
$sel:username:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:targetDbType:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe TargetDbType
$sel:serverTimezone:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:serverName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerSecretId:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:port:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:password:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe (Sensitive Text)
$sel:parallelLoadThreads:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:maxFileSize:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:eventsPollInterval:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:databaseName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Bool
$sel:afterConnectScript:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
afterConnectScript
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
cleanSourceMetadataOnMismatch
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
databaseName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
eventsPollInterval
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxFileSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
parallelLoadThreads
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
password
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
port
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
secretsManagerAccessRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
secretsManagerSecretId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serverName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serverTimezone
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TargetDbType
targetDbType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
username

instance Prelude.NFData GcpMySQLSettings where
  rnf :: GcpMySQLSettings -> ()
rnf GcpMySQLSettings' {Maybe Bool
Maybe Int
Maybe Text
Maybe (Sensitive Text)
Maybe TargetDbType
username :: Maybe Text
targetDbType :: Maybe TargetDbType
serverTimezone :: Maybe Text
serverName :: Maybe Text
secretsManagerSecretId :: Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
port :: Maybe Int
password :: Maybe (Sensitive Text)
parallelLoadThreads :: Maybe Int
maxFileSize :: Maybe Int
eventsPollInterval :: Maybe Int
databaseName :: Maybe Text
cleanSourceMetadataOnMismatch :: Maybe Bool
afterConnectScript :: Maybe Text
$sel:username:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:targetDbType:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe TargetDbType
$sel:serverTimezone:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:serverName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerSecretId:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:port:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:password:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe (Sensitive Text)
$sel:parallelLoadThreads:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:maxFileSize:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:eventsPollInterval:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:databaseName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Bool
$sel:afterConnectScript:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
afterConnectScript
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
cleanSourceMetadataOnMismatch
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
databaseName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
eventsPollInterval
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxFileSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
parallelLoadThreads
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
password
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
port
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
secretsManagerAccessRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
secretsManagerSecretId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serverName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serverTimezone
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TargetDbType
targetDbType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
username

instance Data.ToJSON GcpMySQLSettings where
  toJSON :: GcpMySQLSettings -> Value
toJSON GcpMySQLSettings' {Maybe Bool
Maybe Int
Maybe Text
Maybe (Sensitive Text)
Maybe TargetDbType
username :: Maybe Text
targetDbType :: Maybe TargetDbType
serverTimezone :: Maybe Text
serverName :: Maybe Text
secretsManagerSecretId :: Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
port :: Maybe Int
password :: Maybe (Sensitive Text)
parallelLoadThreads :: Maybe Int
maxFileSize :: Maybe Int
eventsPollInterval :: Maybe Int
databaseName :: Maybe Text
cleanSourceMetadataOnMismatch :: Maybe Bool
afterConnectScript :: Maybe Text
$sel:username:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:targetDbType:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe TargetDbType
$sel:serverTimezone:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:serverName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerSecretId:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:secretsManagerAccessRoleArn:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:port:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:password:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe (Sensitive Text)
$sel:parallelLoadThreads:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:maxFileSize:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:eventsPollInterval:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Int
$sel:databaseName:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
$sel:cleanSourceMetadataOnMismatch:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Bool
$sel:afterConnectScript:GcpMySQLSettings' :: GcpMySQLSettings -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AfterConnectScript" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
afterConnectScript,
            (Key
"CleanSourceMetadataOnMismatch" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
cleanSourceMetadataOnMismatch,
            (Key
"DatabaseName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
databaseName,
            (Key
"EventsPollInterval" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
eventsPollInterval,
            (Key
"MaxFileSize" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxFileSize,
            (Key
"ParallelLoadThreads" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
parallelLoadThreads,
            (Key
"Password" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
password,
            (Key
"Port" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
port,
            (Key
"SecretsManagerAccessRoleArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
secretsManagerAccessRoleArn,
            (Key
"SecretsManagerSecretId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
secretsManagerSecretId,
            (Key
"ServerName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
serverName,
            (Key
"ServerTimezone" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
serverTimezone,
            (Key
"TargetDbType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TargetDbType
targetDbType,
            (Key
"Username" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
username
          ]
      )