{-# 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 #-}
module Amazonka.DMS.Types.PostgreSQLSettings where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types.PluginNameValue
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PostgreSQLSettings = PostgreSQLSettings'
{
PostgreSQLSettings -> Maybe Int
executeTimeout :: Prelude.Maybe Prelude.Int,
PostgreSQLSettings -> Maybe Int
maxFileSize :: Prelude.Maybe Prelude.Int,
PostgreSQLSettings -> Maybe Bool
failTasksOnLobTruncation :: Prelude.Maybe Prelude.Bool,
PostgreSQLSettings -> Maybe Text
serverName :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
ddlArtifactsSchema :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
slotName :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
secretsManagerAccessRoleArn :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
username :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Int
heartbeatFrequency :: Prelude.Maybe Prelude.Int,
PostgreSQLSettings -> Maybe (Sensitive Text)
password :: Prelude.Maybe (Core.Sensitive Prelude.Text),
PostgreSQLSettings -> Maybe Text
databaseName :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
afterConnectScript :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Text
secretsManagerSecretId :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Bool
captureDdls :: Prelude.Maybe Prelude.Bool,
PostgreSQLSettings -> Maybe PluginNameValue
pluginName :: Prelude.Maybe PluginNameValue,
PostgreSQLSettings -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
PostgreSQLSettings -> Maybe Text
heartbeatSchema :: Prelude.Maybe Prelude.Text,
PostgreSQLSettings -> Maybe Bool
heartbeatEnable :: Prelude.Maybe Prelude.Bool
}
deriving (PostgreSQLSettings -> PostgreSQLSettings -> Bool
(PostgreSQLSettings -> PostgreSQLSettings -> Bool)
-> (PostgreSQLSettings -> PostgreSQLSettings -> Bool)
-> Eq PostgreSQLSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostgreSQLSettings -> PostgreSQLSettings -> Bool
$c/= :: PostgreSQLSettings -> PostgreSQLSettings -> Bool
== :: PostgreSQLSettings -> PostgreSQLSettings -> Bool
$c== :: PostgreSQLSettings -> PostgreSQLSettings -> Bool
Prelude.Eq, Int -> PostgreSQLSettings -> ShowS
[PostgreSQLSettings] -> ShowS
PostgreSQLSettings -> String
(Int -> PostgreSQLSettings -> ShowS)
-> (PostgreSQLSettings -> String)
-> ([PostgreSQLSettings] -> ShowS)
-> Show PostgreSQLSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PostgreSQLSettings] -> ShowS
$cshowList :: [PostgreSQLSettings] -> ShowS
show :: PostgreSQLSettings -> String
$cshow :: PostgreSQLSettings -> String
showsPrec :: Int -> PostgreSQLSettings -> ShowS
$cshowsPrec :: Int -> PostgreSQLSettings -> ShowS
Prelude.Show, (forall x. PostgreSQLSettings -> Rep PostgreSQLSettings x)
-> (forall x. Rep PostgreSQLSettings x -> PostgreSQLSettings)
-> Generic PostgreSQLSettings
forall x. Rep PostgreSQLSettings x -> PostgreSQLSettings
forall x. PostgreSQLSettings -> Rep PostgreSQLSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PostgreSQLSettings x -> PostgreSQLSettings
$cfrom :: forall x. PostgreSQLSettings -> Rep PostgreSQLSettings x
Prelude.Generic)
newPostgreSQLSettings ::
PostgreSQLSettings
newPostgreSQLSettings :: PostgreSQLSettings
newPostgreSQLSettings =
PostgreSQLSettings' :: Maybe Int
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings
PostgreSQLSettings'
{ $sel:executeTimeout:PostgreSQLSettings' :: Maybe Int
executeTimeout =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:maxFileSize:PostgreSQLSettings' :: Maybe Int
maxFileSize = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:failTasksOnLobTruncation:PostgreSQLSettings' :: Maybe Bool
failTasksOnLobTruncation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:serverName:PostgreSQLSettings' :: Maybe Text
serverName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ddlArtifactsSchema:PostgreSQLSettings' :: Maybe Text
ddlArtifactsSchema = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:slotName:PostgreSQLSettings' :: Maybe Text
slotName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:secretsManagerAccessRoleArn:PostgreSQLSettings' :: Maybe Text
secretsManagerAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:username:PostgreSQLSettings' :: Maybe Text
username = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:heartbeatFrequency:PostgreSQLSettings' :: Maybe Int
heartbeatFrequency = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:password:PostgreSQLSettings' :: Maybe (Sensitive Text)
password = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:databaseName:PostgreSQLSettings' :: Maybe Text
databaseName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:afterConnectScript:PostgreSQLSettings' :: Maybe Text
afterConnectScript = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:secretsManagerSecretId:PostgreSQLSettings' :: Maybe Text
secretsManagerSecretId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:captureDdls:PostgreSQLSettings' :: Maybe Bool
captureDdls = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:pluginName:PostgreSQLSettings' :: Maybe PluginNameValue
pluginName = Maybe PluginNameValue
forall a. Maybe a
Prelude.Nothing,
$sel:port:PostgreSQLSettings' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:heartbeatSchema:PostgreSQLSettings' :: Maybe Text
heartbeatSchema = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:heartbeatEnable:PostgreSQLSettings' :: Maybe Bool
heartbeatEnable = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
postgreSQLSettings_executeTimeout :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Int)
postgreSQLSettings_executeTimeout :: (Maybe Int -> f (Maybe Int))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_executeTimeout = (PostgreSQLSettings -> Maybe Int)
-> (PostgreSQLSettings -> Maybe Int -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Int
executeTimeout :: Maybe Int
$sel:executeTimeout:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
executeTimeout} -> Maybe Int
executeTimeout) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Int
a -> PostgreSQLSettings
s {$sel:executeTimeout:PostgreSQLSettings' :: Maybe Int
executeTimeout = Maybe Int
a} :: PostgreSQLSettings)
postgreSQLSettings_maxFileSize :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Int)
postgreSQLSettings_maxFileSize :: (Maybe Int -> f (Maybe Int))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_maxFileSize = (PostgreSQLSettings -> Maybe Int)
-> (PostgreSQLSettings -> Maybe Int -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Int
maxFileSize :: Maybe Int
$sel:maxFileSize:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
maxFileSize} -> Maybe Int
maxFileSize) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Int
a -> PostgreSQLSettings
s {$sel:maxFileSize:PostgreSQLSettings' :: Maybe Int
maxFileSize = Maybe Int
a} :: PostgreSQLSettings)
postgreSQLSettings_failTasksOnLobTruncation :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Bool)
postgreSQLSettings_failTasksOnLobTruncation :: (Maybe Bool -> f (Maybe Bool))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_failTasksOnLobTruncation = (PostgreSQLSettings -> Maybe Bool)
-> (PostgreSQLSettings -> Maybe Bool -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Bool
failTasksOnLobTruncation :: Maybe Bool
$sel:failTasksOnLobTruncation:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
failTasksOnLobTruncation} -> Maybe Bool
failTasksOnLobTruncation) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Bool
a -> PostgreSQLSettings
s {$sel:failTasksOnLobTruncation:PostgreSQLSettings' :: Maybe Bool
failTasksOnLobTruncation = Maybe Bool
a} :: PostgreSQLSettings)
postgreSQLSettings_serverName :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_serverName :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_serverName = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
serverName :: Maybe Text
$sel:serverName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
serverName} -> Maybe Text
serverName) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:serverName:PostgreSQLSettings' :: Maybe Text
serverName = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_ddlArtifactsSchema :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_ddlArtifactsSchema :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_ddlArtifactsSchema = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
ddlArtifactsSchema :: Maybe Text
$sel:ddlArtifactsSchema:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
ddlArtifactsSchema} -> Maybe Text
ddlArtifactsSchema) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:ddlArtifactsSchema:PostgreSQLSettings' :: Maybe Text
ddlArtifactsSchema = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_slotName :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_slotName :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_slotName = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
slotName :: Maybe Text
$sel:slotName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
slotName} -> Maybe Text
slotName) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:slotName:PostgreSQLSettings' :: Maybe Text
slotName = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_secretsManagerAccessRoleArn :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_secretsManagerAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_secretsManagerAccessRoleArn = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
$sel:secretsManagerAccessRoleArn:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
secretsManagerAccessRoleArn} -> Maybe Text
secretsManagerAccessRoleArn) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:secretsManagerAccessRoleArn:PostgreSQLSettings' :: Maybe Text
secretsManagerAccessRoleArn = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_username :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_username :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_username = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
username :: Maybe Text
$sel:username:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
username} -> Maybe Text
username) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:username:PostgreSQLSettings' :: Maybe Text
username = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_heartbeatFrequency :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Int)
postgreSQLSettings_heartbeatFrequency :: (Maybe Int -> f (Maybe Int))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_heartbeatFrequency = (PostgreSQLSettings -> Maybe Int)
-> (PostgreSQLSettings -> Maybe Int -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Int
heartbeatFrequency :: Maybe Int
$sel:heartbeatFrequency:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
heartbeatFrequency} -> Maybe Int
heartbeatFrequency) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Int
a -> PostgreSQLSettings
s {$sel:heartbeatFrequency:PostgreSQLSettings' :: Maybe Int
heartbeatFrequency = Maybe Int
a} :: PostgreSQLSettings)
postgreSQLSettings_password :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_password :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_password = (PostgreSQLSettings -> Maybe (Sensitive Text))
-> (PostgreSQLSettings
-> Maybe (Sensitive Text) -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings
PostgreSQLSettings
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe (Sensitive Text)
password :: Maybe (Sensitive Text)
$sel:password:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe (Sensitive Text)
password} -> Maybe (Sensitive Text)
password) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe (Sensitive Text)
a -> PostgreSQLSettings
s {$sel:password:PostgreSQLSettings' :: Maybe (Sensitive Text)
password = Maybe (Sensitive Text)
a} :: PostgreSQLSettings) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> PostgreSQLSettings -> f PostgreSQLSettings)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings
-> f PostgreSQLSettings
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
postgreSQLSettings_databaseName :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_databaseName :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_databaseName = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
databaseName :: Maybe Text
$sel:databaseName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
databaseName} -> Maybe Text
databaseName) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:databaseName:PostgreSQLSettings' :: Maybe Text
databaseName = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_afterConnectScript :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_afterConnectScript :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_afterConnectScript = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
afterConnectScript :: Maybe Text
$sel:afterConnectScript:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
afterConnectScript} -> Maybe Text
afterConnectScript) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:afterConnectScript:PostgreSQLSettings' :: Maybe Text
afterConnectScript = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_secretsManagerSecretId :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_secretsManagerSecretId :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_secretsManagerSecretId = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
secretsManagerSecretId :: Maybe Text
$sel:secretsManagerSecretId:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
secretsManagerSecretId} -> Maybe Text
secretsManagerSecretId) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:secretsManagerSecretId:PostgreSQLSettings' :: Maybe Text
secretsManagerSecretId = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_captureDdls :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Bool)
postgreSQLSettings_captureDdls :: (Maybe Bool -> f (Maybe Bool))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_captureDdls = (PostgreSQLSettings -> Maybe Bool)
-> (PostgreSQLSettings -> Maybe Bool -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Bool
captureDdls :: Maybe Bool
$sel:captureDdls:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
captureDdls} -> Maybe Bool
captureDdls) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Bool
a -> PostgreSQLSettings
s {$sel:captureDdls:PostgreSQLSettings' :: Maybe Bool
captureDdls = Maybe Bool
a} :: PostgreSQLSettings)
postgreSQLSettings_pluginName :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe PluginNameValue)
postgreSQLSettings_pluginName :: (Maybe PluginNameValue -> f (Maybe PluginNameValue))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_pluginName = (PostgreSQLSettings -> Maybe PluginNameValue)
-> (PostgreSQLSettings
-> Maybe PluginNameValue -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings
PostgreSQLSettings
(Maybe PluginNameValue)
(Maybe PluginNameValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe PluginNameValue
pluginName :: Maybe PluginNameValue
$sel:pluginName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe PluginNameValue
pluginName} -> Maybe PluginNameValue
pluginName) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe PluginNameValue
a -> PostgreSQLSettings
s {$sel:pluginName:PostgreSQLSettings' :: Maybe PluginNameValue
pluginName = Maybe PluginNameValue
a} :: PostgreSQLSettings)
postgreSQLSettings_port :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Int)
postgreSQLSettings_port :: (Maybe Int -> f (Maybe Int))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_port = (PostgreSQLSettings -> Maybe Int)
-> (PostgreSQLSettings -> Maybe Int -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Int
port :: Maybe Int
$sel:port:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
port} -> Maybe Int
port) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Int
a -> PostgreSQLSettings
s {$sel:port:PostgreSQLSettings' :: Maybe Int
port = Maybe Int
a} :: PostgreSQLSettings)
postgreSQLSettings_heartbeatSchema :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Text)
postgreSQLSettings_heartbeatSchema :: (Maybe Text -> f (Maybe Text))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_heartbeatSchema = (PostgreSQLSettings -> Maybe Text)
-> (PostgreSQLSettings -> Maybe Text -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Text
heartbeatSchema :: Maybe Text
$sel:heartbeatSchema:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
heartbeatSchema} -> Maybe Text
heartbeatSchema) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Text
a -> PostgreSQLSettings
s {$sel:heartbeatSchema:PostgreSQLSettings' :: Maybe Text
heartbeatSchema = Maybe Text
a} :: PostgreSQLSettings)
postgreSQLSettings_heartbeatEnable :: Lens.Lens' PostgreSQLSettings (Prelude.Maybe Prelude.Bool)
postgreSQLSettings_heartbeatEnable :: (Maybe Bool -> f (Maybe Bool))
-> PostgreSQLSettings -> f PostgreSQLSettings
postgreSQLSettings_heartbeatEnable = (PostgreSQLSettings -> Maybe Bool)
-> (PostgreSQLSettings -> Maybe Bool -> PostgreSQLSettings)
-> Lens
PostgreSQLSettings PostgreSQLSettings (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostgreSQLSettings' {Maybe Bool
heartbeatEnable :: Maybe Bool
$sel:heartbeatEnable:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
heartbeatEnable} -> Maybe Bool
heartbeatEnable) (\s :: PostgreSQLSettings
s@PostgreSQLSettings' {} Maybe Bool
a -> PostgreSQLSettings
s {$sel:heartbeatEnable:PostgreSQLSettings' :: Maybe Bool
heartbeatEnable = Maybe Bool
a} :: PostgreSQLSettings)
instance Core.FromJSON PostgreSQLSettings where
parseJSON :: Value -> Parser PostgreSQLSettings
parseJSON =
String
-> (Object -> Parser PostgreSQLSettings)
-> Value
-> Parser PostgreSQLSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PostgreSQLSettings"
( \Object
x ->
Maybe Int
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings
PostgreSQLSettings'
(Maybe Int
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExecuteTimeout")
Parser
(Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Int)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MaxFileSize")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailTasksOnLobTruncation")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServerName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DdlArtifactsSchema")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SlotName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SecretsManagerAccessRoleArn")
Parser
(Maybe Text
-> Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Username")
Parser
(Maybe Int
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Int)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HeartbeatFrequency")
Parser
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Password")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DatabaseName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AfterConnectScript")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SecretsManagerSecretId")
Parser
(Maybe Bool
-> Maybe PluginNameValue
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> PostgreSQLSettings)
-> Parser (Maybe Bool)
-> Parser
(Maybe PluginNameValue
-> Maybe Int -> Maybe Text -> Maybe Bool -> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CaptureDdls")
Parser
(Maybe PluginNameValue
-> Maybe Int -> Maybe Text -> Maybe Bool -> PostgreSQLSettings)
-> Parser (Maybe PluginNameValue)
-> Parser
(Maybe Int -> Maybe Text -> Maybe Bool -> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PluginNameValue)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PluginName")
Parser
(Maybe Int -> Maybe Text -> Maybe Bool -> PostgreSQLSettings)
-> Parser (Maybe Int)
-> Parser (Maybe Text -> Maybe Bool -> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Port")
Parser (Maybe Text -> Maybe Bool -> PostgreSQLSettings)
-> Parser (Maybe Text) -> Parser (Maybe Bool -> PostgreSQLSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HeartbeatSchema")
Parser (Maybe Bool -> PostgreSQLSettings)
-> Parser (Maybe Bool) -> Parser PostgreSQLSettings
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HeartbeatEnable")
)
instance Prelude.Hashable PostgreSQLSettings
instance Prelude.NFData PostgreSQLSettings
instance Core.ToJSON PostgreSQLSettings where
toJSON :: PostgreSQLSettings -> Value
toJSON PostgreSQLSettings' {Maybe Bool
Maybe Int
Maybe Text
Maybe (Sensitive Text)
Maybe PluginNameValue
heartbeatEnable :: Maybe Bool
heartbeatSchema :: Maybe Text
port :: Maybe Int
pluginName :: Maybe PluginNameValue
captureDdls :: Maybe Bool
secretsManagerSecretId :: Maybe Text
afterConnectScript :: Maybe Text
databaseName :: Maybe Text
password :: Maybe (Sensitive Text)
heartbeatFrequency :: Maybe Int
username :: Maybe Text
secretsManagerAccessRoleArn :: Maybe Text
slotName :: Maybe Text
ddlArtifactsSchema :: Maybe Text
serverName :: Maybe Text
failTasksOnLobTruncation :: Maybe Bool
maxFileSize :: Maybe Int
executeTimeout :: Maybe Int
$sel:heartbeatEnable:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
$sel:heartbeatSchema:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:port:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
$sel:pluginName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe PluginNameValue
$sel:captureDdls:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
$sel:secretsManagerSecretId:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:afterConnectScript:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:databaseName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:password:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe (Sensitive Text)
$sel:heartbeatFrequency:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
$sel:username:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:secretsManagerAccessRoleArn:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:slotName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:ddlArtifactsSchema:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:serverName:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Text
$sel:failTasksOnLobTruncation:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Bool
$sel:maxFileSize:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
$sel:executeTimeout:PostgreSQLSettings' :: PostgreSQLSettings -> Maybe Int
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ExecuteTimeout" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
executeTimeout,
(Text
"MaxFileSize" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxFileSize,
(Text
"FailTasksOnLobTruncation" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
failTasksOnLobTruncation,
(Text
"ServerName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
serverName,
(Text
"DdlArtifactsSchema" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ddlArtifactsSchema,
(Text
"SlotName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
slotName,
(Text
"SecretsManagerAccessRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
secretsManagerAccessRoleArn,
(Text
"Username" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
username,
(Text
"HeartbeatFrequency" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
heartbeatFrequency,
(Text
"Password" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
password,
(Text
"DatabaseName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
databaseName,
(Text
"AfterConnectScript" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
afterConnectScript,
(Text
"SecretsManagerSecretId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
secretsManagerSecretId,
(Text
"CaptureDdls" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
captureDdls,
(Text
"PluginName" Text -> PluginNameValue -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PluginNameValue -> Pair) -> Maybe PluginNameValue -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PluginNameValue
pluginName,
(Text
"Port" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
port,
(Text
"HeartbeatSchema" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
heartbeatSchema,
(Text
"HeartbeatEnable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
heartbeatEnable
]
)