{-# 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.LookoutMetrics.Types.RDSSourceConfig
-- 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.LookoutMetrics.Types.RDSSourceConfig where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LookoutMetrics.Types.VpcConfiguration
import qualified Amazonka.Prelude as Prelude

-- | Contains information about the Amazon Relational Database Service (RDS)
-- configuration.
--
-- /See:/ 'newRDSSourceConfig' smart constructor.
data RDSSourceConfig = RDSSourceConfig'
  { -- | A string identifying the database instance.
    RDSSourceConfig -> Maybe Text
dbInstanceIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The host name of the database.
    RDSSourceConfig -> Maybe Text
databaseHost :: Prelude.Maybe Prelude.Text,
    -- | The name of the RDS database.
    RDSSourceConfig -> Maybe Text
databaseName :: Prelude.Maybe Prelude.Text,
    -- | The port number where the database can be accessed.
    RDSSourceConfig -> Maybe Natural
databasePort :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the role.
    RDSSourceConfig -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
    RDSSourceConfig -> Maybe Text
secretManagerArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the table in the database.
    RDSSourceConfig -> Maybe Text
tableName :: Prelude.Maybe Prelude.Text,
    -- | An object containing information about the Amazon Virtual Private Cloud
    -- (VPC) configuration.
    RDSSourceConfig -> Maybe VpcConfiguration
vpcConfiguration :: Prelude.Maybe VpcConfiguration
  }
  deriving (RDSSourceConfig -> RDSSourceConfig -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RDSSourceConfig -> RDSSourceConfig -> Bool
$c/= :: RDSSourceConfig -> RDSSourceConfig -> Bool
== :: RDSSourceConfig -> RDSSourceConfig -> Bool
$c== :: RDSSourceConfig -> RDSSourceConfig -> Bool
Prelude.Eq, ReadPrec [RDSSourceConfig]
ReadPrec RDSSourceConfig
Int -> ReadS RDSSourceConfig
ReadS [RDSSourceConfig]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RDSSourceConfig]
$creadListPrec :: ReadPrec [RDSSourceConfig]
readPrec :: ReadPrec RDSSourceConfig
$creadPrec :: ReadPrec RDSSourceConfig
readList :: ReadS [RDSSourceConfig]
$creadList :: ReadS [RDSSourceConfig]
readsPrec :: Int -> ReadS RDSSourceConfig
$creadsPrec :: Int -> ReadS RDSSourceConfig
Prelude.Read, Int -> RDSSourceConfig -> ShowS
[RDSSourceConfig] -> ShowS
RDSSourceConfig -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RDSSourceConfig] -> ShowS
$cshowList :: [RDSSourceConfig] -> ShowS
show :: RDSSourceConfig -> String
$cshow :: RDSSourceConfig -> String
showsPrec :: Int -> RDSSourceConfig -> ShowS
$cshowsPrec :: Int -> RDSSourceConfig -> ShowS
Prelude.Show, forall x. Rep RDSSourceConfig x -> RDSSourceConfig
forall x. RDSSourceConfig -> Rep RDSSourceConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RDSSourceConfig x -> RDSSourceConfig
$cfrom :: forall x. RDSSourceConfig -> Rep RDSSourceConfig x
Prelude.Generic)

-- |
-- Create a value of 'RDSSourceConfig' 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:
--
-- 'dbInstanceIdentifier', 'rDSSourceConfig_dbInstanceIdentifier' - A string identifying the database instance.
--
-- 'databaseHost', 'rDSSourceConfig_databaseHost' - The host name of the database.
--
-- 'databaseName', 'rDSSourceConfig_databaseName' - The name of the RDS database.
--
-- 'databasePort', 'rDSSourceConfig_databasePort' - The port number where the database can be accessed.
--
-- 'roleArn', 'rDSSourceConfig_roleArn' - The Amazon Resource Name (ARN) of the role.
--
-- 'secretManagerArn', 'rDSSourceConfig_secretManagerArn' - The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
--
-- 'tableName', 'rDSSourceConfig_tableName' - The name of the table in the database.
--
-- 'vpcConfiguration', 'rDSSourceConfig_vpcConfiguration' - An object containing information about the Amazon Virtual Private Cloud
-- (VPC) configuration.
newRDSSourceConfig ::
  RDSSourceConfig
newRDSSourceConfig :: RDSSourceConfig
newRDSSourceConfig =
  RDSSourceConfig'
    { $sel:dbInstanceIdentifier:RDSSourceConfig' :: Maybe Text
dbInstanceIdentifier =
        forall a. Maybe a
Prelude.Nothing,
      $sel:databaseHost:RDSSourceConfig' :: Maybe Text
databaseHost = forall a. Maybe a
Prelude.Nothing,
      $sel:databaseName:RDSSourceConfig' :: Maybe Text
databaseName = forall a. Maybe a
Prelude.Nothing,
      $sel:databasePort:RDSSourceConfig' :: Maybe Natural
databasePort = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:RDSSourceConfig' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:secretManagerArn:RDSSourceConfig' :: Maybe Text
secretManagerArn = forall a. Maybe a
Prelude.Nothing,
      $sel:tableName:RDSSourceConfig' :: Maybe Text
tableName = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfiguration:RDSSourceConfig' :: Maybe VpcConfiguration
vpcConfiguration = forall a. Maybe a
Prelude.Nothing
    }

-- | A string identifying the database instance.
rDSSourceConfig_dbInstanceIdentifier :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_dbInstanceIdentifier :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_dbInstanceIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:dbInstanceIdentifier:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
dbInstanceIdentifier} -> Maybe Text
dbInstanceIdentifier) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:dbInstanceIdentifier:RDSSourceConfig' :: Maybe Text
dbInstanceIdentifier = Maybe Text
a} :: RDSSourceConfig)

-- | The host name of the database.
rDSSourceConfig_databaseHost :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_databaseHost :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_databaseHost = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
databaseHost :: Maybe Text
$sel:databaseHost:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
databaseHost} -> Maybe Text
databaseHost) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:databaseHost:RDSSourceConfig' :: Maybe Text
databaseHost = Maybe Text
a} :: RDSSourceConfig)

-- | The name of the RDS database.
rDSSourceConfig_databaseName :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_databaseName :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_databaseName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
databaseName :: Maybe Text
$sel:databaseName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
databaseName} -> Maybe Text
databaseName) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:databaseName:RDSSourceConfig' :: Maybe Text
databaseName = Maybe Text
a} :: RDSSourceConfig)

-- | The port number where the database can be accessed.
rDSSourceConfig_databasePort :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Natural)
rDSSourceConfig_databasePort :: Lens' RDSSourceConfig (Maybe Natural)
rDSSourceConfig_databasePort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Natural
databasePort :: Maybe Natural
$sel:databasePort:RDSSourceConfig' :: RDSSourceConfig -> Maybe Natural
databasePort} -> Maybe Natural
databasePort) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Natural
a -> RDSSourceConfig
s {$sel:databasePort:RDSSourceConfig' :: Maybe Natural
databasePort = Maybe Natural
a} :: RDSSourceConfig)

-- | The Amazon Resource Name (ARN) of the role.
rDSSourceConfig_roleArn :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_roleArn :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:roleArn:RDSSourceConfig' :: Maybe Text
roleArn = Maybe Text
a} :: RDSSourceConfig)

-- | The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
rDSSourceConfig_secretManagerArn :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_secretManagerArn :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_secretManagerArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
secretManagerArn :: Maybe Text
$sel:secretManagerArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
secretManagerArn} -> Maybe Text
secretManagerArn) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:secretManagerArn:RDSSourceConfig' :: Maybe Text
secretManagerArn = Maybe Text
a} :: RDSSourceConfig)

-- | The name of the table in the database.
rDSSourceConfig_tableName :: Lens.Lens' RDSSourceConfig (Prelude.Maybe Prelude.Text)
rDSSourceConfig_tableName :: Lens' RDSSourceConfig (Maybe Text)
rDSSourceConfig_tableName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe Text
tableName :: Maybe Text
$sel:tableName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
tableName} -> Maybe Text
tableName) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe Text
a -> RDSSourceConfig
s {$sel:tableName:RDSSourceConfig' :: Maybe Text
tableName = Maybe Text
a} :: RDSSourceConfig)

-- | An object containing information about the Amazon Virtual Private Cloud
-- (VPC) configuration.
rDSSourceConfig_vpcConfiguration :: Lens.Lens' RDSSourceConfig (Prelude.Maybe VpcConfiguration)
rDSSourceConfig_vpcConfiguration :: Lens' RDSSourceConfig (Maybe VpcConfiguration)
rDSSourceConfig_vpcConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RDSSourceConfig' {Maybe VpcConfiguration
vpcConfiguration :: Maybe VpcConfiguration
$sel:vpcConfiguration:RDSSourceConfig' :: RDSSourceConfig -> Maybe VpcConfiguration
vpcConfiguration} -> Maybe VpcConfiguration
vpcConfiguration) (\s :: RDSSourceConfig
s@RDSSourceConfig' {} Maybe VpcConfiguration
a -> RDSSourceConfig
s {$sel:vpcConfiguration:RDSSourceConfig' :: Maybe VpcConfiguration
vpcConfiguration = Maybe VpcConfiguration
a} :: RDSSourceConfig)

instance Data.FromJSON RDSSourceConfig where
  parseJSON :: Value -> Parser RDSSourceConfig
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RDSSourceConfig"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe VpcConfiguration
-> RDSSourceConfig
RDSSourceConfig'
            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
"DBInstanceIdentifier")
            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
"DatabaseHost")
            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
"DatabasePort")
            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
"RoleArn")
            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
"SecretManagerArn")
            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
"TableName")
            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
"VpcConfiguration")
      )

instance Prelude.Hashable RDSSourceConfig where
  hashWithSalt :: Int -> RDSSourceConfig -> Int
hashWithSalt Int
_salt RDSSourceConfig' {Maybe Natural
Maybe Text
Maybe VpcConfiguration
vpcConfiguration :: Maybe VpcConfiguration
tableName :: Maybe Text
secretManagerArn :: Maybe Text
roleArn :: Maybe Text
databasePort :: Maybe Natural
databaseName :: Maybe Text
databaseHost :: Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:vpcConfiguration:RDSSourceConfig' :: RDSSourceConfig -> Maybe VpcConfiguration
$sel:tableName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:secretManagerArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:roleArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databasePort:RDSSourceConfig' :: RDSSourceConfig -> Maybe Natural
$sel:databaseName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databaseHost:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:dbInstanceIdentifier:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbInstanceIdentifier
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
databaseHost
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
databaseName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
databasePort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
secretManagerArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tableName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpcConfiguration
vpcConfiguration

instance Prelude.NFData RDSSourceConfig where
  rnf :: RDSSourceConfig -> ()
rnf RDSSourceConfig' {Maybe Natural
Maybe Text
Maybe VpcConfiguration
vpcConfiguration :: Maybe VpcConfiguration
tableName :: Maybe Text
secretManagerArn :: Maybe Text
roleArn :: Maybe Text
databasePort :: Maybe Natural
databaseName :: Maybe Text
databaseHost :: Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:vpcConfiguration:RDSSourceConfig' :: RDSSourceConfig -> Maybe VpcConfiguration
$sel:tableName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:secretManagerArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:roleArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databasePort:RDSSourceConfig' :: RDSSourceConfig -> Maybe Natural
$sel:databaseName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databaseHost:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:dbInstanceIdentifier:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbInstanceIdentifier
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
databaseHost
      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 Natural
databasePort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
secretManagerArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tableName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcConfiguration
vpcConfiguration

instance Data.ToJSON RDSSourceConfig where
  toJSON :: RDSSourceConfig -> Value
toJSON RDSSourceConfig' {Maybe Natural
Maybe Text
Maybe VpcConfiguration
vpcConfiguration :: Maybe VpcConfiguration
tableName :: Maybe Text
secretManagerArn :: Maybe Text
roleArn :: Maybe Text
databasePort :: Maybe Natural
databaseName :: Maybe Text
databaseHost :: Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:vpcConfiguration:RDSSourceConfig' :: RDSSourceConfig -> Maybe VpcConfiguration
$sel:tableName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:secretManagerArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:roleArn:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databasePort:RDSSourceConfig' :: RDSSourceConfig -> Maybe Natural
$sel:databaseName:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:databaseHost:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
$sel:dbInstanceIdentifier:RDSSourceConfig' :: RDSSourceConfig -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"DBInstanceIdentifier" 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
dbInstanceIdentifier,
            (Key
"DatabaseHost" 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
databaseHost,
            (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
"DatabasePort" 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 Natural
databasePort,
            (Key
"RoleArn" 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
roleArn,
            (Key
"SecretManagerArn" 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
secretManagerArn,
            (Key
"TableName" 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
tableName,
            (Key
"VpcConfiguration" 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 VpcConfiguration
vpcConfiguration
          ]
      )