{-# 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.SecurityHub.Types.AwsRdsDbClusterSnapshotDetails
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SecurityHub.Types.AwsRdsDbClusterSnapshotDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about an Amazon RDS DB cluster snapshot.
--
-- /See:/ 'newAwsRdsDbClusterSnapshotDetails' smart constructor.
data AwsRdsDbClusterSnapshotDetails = AwsRdsDbClusterSnapshotDetails'
  { -- | The version of the database engine to use.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | The status of this DB cluster snapshot.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | Whether the DB cluster is encrypted.
    AwsRdsDbClusterSnapshotDetails -> Maybe Bool
storageEncrypted :: Prelude.Maybe Prelude.Bool,
    -- | The DB cluster identifier.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
dbClusterIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The name of the master user for the DB cluster.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
masterUsername :: Prelude.Maybe Prelude.Text,
    -- | Whether mapping of IAM accounts to database accounts is enabled.
    AwsRdsDbClusterSnapshotDetails -> Maybe Bool
iamDatabaseAuthenticationEnabled :: Prelude.Maybe Prelude.Bool,
    -- | The VPC ID that is associated with the DB cluster snapshot.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the DB cluster snapshot.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
dbClusterSnapshotIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The name of the database engine that you want to use for this DB
    -- instance.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
    -- | The license model information for this DB cluster snapshot.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | A list of Availability Zones where instances in the DB cluster can be
    -- created.
    AwsRdsDbClusterSnapshotDetails -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
    -- | The type of DB cluster snapshot.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
snapshotType :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the KMS master key that is used to encrypt the database
    -- instances in the DB cluster.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | Indicates when the snapshot was taken.
    --
    -- Uses the @date-time@ format specified in
    -- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
    -- The value cannot contain spaces. For example,
    -- @2020-03-22T13:22:13.933Z@.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
snapshotCreateTime :: Prelude.Maybe Prelude.Text,
    -- | Specifies the allocated storage size in gibibytes (GiB).
    AwsRdsDbClusterSnapshotDetails -> Maybe Int
allocatedStorage :: Prelude.Maybe Prelude.Int,
    -- | Indicates when the DB cluster was created, in Universal Coordinated Time
    -- (UTC).
    --
    -- Uses the @date-time@ format specified in
    -- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
    -- The value cannot contain spaces. For example,
    -- @2020-03-22T13:22:13.933Z@.
    AwsRdsDbClusterSnapshotDetails -> Maybe Text
clusterCreateTime :: Prelude.Maybe Prelude.Text,
    -- | Specifies the percentage of the estimated data that has been
    -- transferred.
    AwsRdsDbClusterSnapshotDetails -> Maybe Int
percentProgress :: Prelude.Maybe Prelude.Int,
    -- | The port number on which the DB instances in the DB cluster accept
    -- connections.
    AwsRdsDbClusterSnapshotDetails -> Maybe Int
port :: Prelude.Maybe Prelude.Int
  }
  deriving (AwsRdsDbClusterSnapshotDetails
-> AwsRdsDbClusterSnapshotDetails -> Bool
(AwsRdsDbClusterSnapshotDetails
 -> AwsRdsDbClusterSnapshotDetails -> Bool)
-> (AwsRdsDbClusterSnapshotDetails
    -> AwsRdsDbClusterSnapshotDetails -> Bool)
-> Eq AwsRdsDbClusterSnapshotDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsRdsDbClusterSnapshotDetails
-> AwsRdsDbClusterSnapshotDetails -> Bool
$c/= :: AwsRdsDbClusterSnapshotDetails
-> AwsRdsDbClusterSnapshotDetails -> Bool
== :: AwsRdsDbClusterSnapshotDetails
-> AwsRdsDbClusterSnapshotDetails -> Bool
$c== :: AwsRdsDbClusterSnapshotDetails
-> AwsRdsDbClusterSnapshotDetails -> Bool
Prelude.Eq, ReadPrec [AwsRdsDbClusterSnapshotDetails]
ReadPrec AwsRdsDbClusterSnapshotDetails
Int -> ReadS AwsRdsDbClusterSnapshotDetails
ReadS [AwsRdsDbClusterSnapshotDetails]
(Int -> ReadS AwsRdsDbClusterSnapshotDetails)
-> ReadS [AwsRdsDbClusterSnapshotDetails]
-> ReadPrec AwsRdsDbClusterSnapshotDetails
-> ReadPrec [AwsRdsDbClusterSnapshotDetails]
-> Read AwsRdsDbClusterSnapshotDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsRdsDbClusterSnapshotDetails]
$creadListPrec :: ReadPrec [AwsRdsDbClusterSnapshotDetails]
readPrec :: ReadPrec AwsRdsDbClusterSnapshotDetails
$creadPrec :: ReadPrec AwsRdsDbClusterSnapshotDetails
readList :: ReadS [AwsRdsDbClusterSnapshotDetails]
$creadList :: ReadS [AwsRdsDbClusterSnapshotDetails]
readsPrec :: Int -> ReadS AwsRdsDbClusterSnapshotDetails
$creadsPrec :: Int -> ReadS AwsRdsDbClusterSnapshotDetails
Prelude.Read, Int -> AwsRdsDbClusterSnapshotDetails -> ShowS
[AwsRdsDbClusterSnapshotDetails] -> ShowS
AwsRdsDbClusterSnapshotDetails -> String
(Int -> AwsRdsDbClusterSnapshotDetails -> ShowS)
-> (AwsRdsDbClusterSnapshotDetails -> String)
-> ([AwsRdsDbClusterSnapshotDetails] -> ShowS)
-> Show AwsRdsDbClusterSnapshotDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsRdsDbClusterSnapshotDetails] -> ShowS
$cshowList :: [AwsRdsDbClusterSnapshotDetails] -> ShowS
show :: AwsRdsDbClusterSnapshotDetails -> String
$cshow :: AwsRdsDbClusterSnapshotDetails -> String
showsPrec :: Int -> AwsRdsDbClusterSnapshotDetails -> ShowS
$cshowsPrec :: Int -> AwsRdsDbClusterSnapshotDetails -> ShowS
Prelude.Show, (forall x.
 AwsRdsDbClusterSnapshotDetails
 -> Rep AwsRdsDbClusterSnapshotDetails x)
-> (forall x.
    Rep AwsRdsDbClusterSnapshotDetails x
    -> AwsRdsDbClusterSnapshotDetails)
-> Generic AwsRdsDbClusterSnapshotDetails
forall x.
Rep AwsRdsDbClusterSnapshotDetails x
-> AwsRdsDbClusterSnapshotDetails
forall x.
AwsRdsDbClusterSnapshotDetails
-> Rep AwsRdsDbClusterSnapshotDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsRdsDbClusterSnapshotDetails x
-> AwsRdsDbClusterSnapshotDetails
$cfrom :: forall x.
AwsRdsDbClusterSnapshotDetails
-> Rep AwsRdsDbClusterSnapshotDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsRdsDbClusterSnapshotDetails' 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:
--
-- 'engineVersion', 'awsRdsDbClusterSnapshotDetails_engineVersion' - The version of the database engine to use.
--
-- 'status', 'awsRdsDbClusterSnapshotDetails_status' - The status of this DB cluster snapshot.
--
-- 'storageEncrypted', 'awsRdsDbClusterSnapshotDetails_storageEncrypted' - Whether the DB cluster is encrypted.
--
-- 'dbClusterIdentifier', 'awsRdsDbClusterSnapshotDetails_dbClusterIdentifier' - The DB cluster identifier.
--
-- 'masterUsername', 'awsRdsDbClusterSnapshotDetails_masterUsername' - The name of the master user for the DB cluster.
--
-- 'iamDatabaseAuthenticationEnabled', 'awsRdsDbClusterSnapshotDetails_iamDatabaseAuthenticationEnabled' - Whether mapping of IAM accounts to database accounts is enabled.
--
-- 'vpcId', 'awsRdsDbClusterSnapshotDetails_vpcId' - The VPC ID that is associated with the DB cluster snapshot.
--
-- 'dbClusterSnapshotIdentifier', 'awsRdsDbClusterSnapshotDetails_dbClusterSnapshotIdentifier' - The identifier of the DB cluster snapshot.
--
-- 'engine', 'awsRdsDbClusterSnapshotDetails_engine' - The name of the database engine that you want to use for this DB
-- instance.
--
-- 'licenseModel', 'awsRdsDbClusterSnapshotDetails_licenseModel' - The license model information for this DB cluster snapshot.
--
-- 'availabilityZones', 'awsRdsDbClusterSnapshotDetails_availabilityZones' - A list of Availability Zones where instances in the DB cluster can be
-- created.
--
-- 'snapshotType', 'awsRdsDbClusterSnapshotDetails_snapshotType' - The type of DB cluster snapshot.
--
-- 'kmsKeyId', 'awsRdsDbClusterSnapshotDetails_kmsKeyId' - The ARN of the KMS master key that is used to encrypt the database
-- instances in the DB cluster.
--
-- 'snapshotCreateTime', 'awsRdsDbClusterSnapshotDetails_snapshotCreateTime' - Indicates when the snapshot was taken.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
--
-- 'allocatedStorage', 'awsRdsDbClusterSnapshotDetails_allocatedStorage' - Specifies the allocated storage size in gibibytes (GiB).
--
-- 'clusterCreateTime', 'awsRdsDbClusterSnapshotDetails_clusterCreateTime' - Indicates when the DB cluster was created, in Universal Coordinated Time
-- (UTC).
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
--
-- 'percentProgress', 'awsRdsDbClusterSnapshotDetails_percentProgress' - Specifies the percentage of the estimated data that has been
-- transferred.
--
-- 'port', 'awsRdsDbClusterSnapshotDetails_port' - The port number on which the DB instances in the DB cluster accept
-- connections.
newAwsRdsDbClusterSnapshotDetails ::
  AwsRdsDbClusterSnapshotDetails
newAwsRdsDbClusterSnapshotDetails :: AwsRdsDbClusterSnapshotDetails
newAwsRdsDbClusterSnapshotDetails =
  AwsRdsDbClusterSnapshotDetails' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> AwsRdsDbClusterSnapshotDetails
AwsRdsDbClusterSnapshotDetails'
    { $sel:engineVersion:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:storageEncrypted:AwsRdsDbClusterSnapshotDetails' :: Maybe Bool
storageEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:dbClusterIdentifier:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
dbClusterIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:masterUsername:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
masterUsername = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:iamDatabaseAuthenticationEnabled:AwsRdsDbClusterSnapshotDetails' :: Maybe Bool
iamDatabaseAuthenticationEnabled =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbClusterSnapshotIdentifier:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
dbClusterSnapshotIdentifier =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:engine:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseModel:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZones:AwsRdsDbClusterSnapshotDetails' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotType:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
snapshotType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKeyId:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotCreateTime:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
snapshotCreateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:allocatedStorage:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
allocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterCreateTime:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
clusterCreateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:percentProgress:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
percentProgress = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:port:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | The version of the database engine to use.
awsRdsDbClusterSnapshotDetails_engineVersion :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_engineVersion :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_engineVersion = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:engineVersion:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
engineVersion = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The status of this DB cluster snapshot.
awsRdsDbClusterSnapshotDetails_status :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_status :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_status = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
status :: Maybe Text
$sel:status:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
status} -> Maybe Text
status) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:status:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
status = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Whether the DB cluster is encrypted.
awsRdsDbClusterSnapshotDetails_storageEncrypted :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Bool)
awsRdsDbClusterSnapshotDetails_storageEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_storageEncrypted = (AwsRdsDbClusterSnapshotDetails -> Maybe Bool)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Bool -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Bool
storageEncrypted :: Maybe Bool
$sel:storageEncrypted:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Bool
storageEncrypted} -> Maybe Bool
storageEncrypted) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Bool
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:storageEncrypted:AwsRdsDbClusterSnapshotDetails' :: Maybe Bool
storageEncrypted = Maybe Bool
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The DB cluster identifier.
awsRdsDbClusterSnapshotDetails_dbClusterIdentifier :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_dbClusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_dbClusterIdentifier = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
dbClusterIdentifier :: Maybe Text
$sel:dbClusterIdentifier:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
dbClusterIdentifier} -> Maybe Text
dbClusterIdentifier) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:dbClusterIdentifier:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
dbClusterIdentifier = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The name of the master user for the DB cluster.
awsRdsDbClusterSnapshotDetails_masterUsername :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_masterUsername :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_masterUsername = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
masterUsername :: Maybe Text
$sel:masterUsername:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
masterUsername} -> Maybe Text
masterUsername) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:masterUsername:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
masterUsername = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Whether mapping of IAM accounts to database accounts is enabled.
awsRdsDbClusterSnapshotDetails_iamDatabaseAuthenticationEnabled :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Bool)
awsRdsDbClusterSnapshotDetails_iamDatabaseAuthenticationEnabled :: (Maybe Bool -> f (Maybe Bool))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_iamDatabaseAuthenticationEnabled = (AwsRdsDbClusterSnapshotDetails -> Maybe Bool)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Bool -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Bool
iamDatabaseAuthenticationEnabled :: Maybe Bool
$sel:iamDatabaseAuthenticationEnabled:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Bool
iamDatabaseAuthenticationEnabled} -> Maybe Bool
iamDatabaseAuthenticationEnabled) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Bool
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:iamDatabaseAuthenticationEnabled:AwsRdsDbClusterSnapshotDetails' :: Maybe Bool
iamDatabaseAuthenticationEnabled = Maybe Bool
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The VPC ID that is associated with the DB cluster snapshot.
awsRdsDbClusterSnapshotDetails_vpcId :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_vpcId :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_vpcId = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:vpcId:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
vpcId = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The identifier of the DB cluster snapshot.
awsRdsDbClusterSnapshotDetails_dbClusterSnapshotIdentifier :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_dbClusterSnapshotIdentifier :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_dbClusterSnapshotIdentifier = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
$sel:dbClusterSnapshotIdentifier:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
dbClusterSnapshotIdentifier} -> Maybe Text
dbClusterSnapshotIdentifier) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:dbClusterSnapshotIdentifier:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
dbClusterSnapshotIdentifier = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The name of the database engine that you want to use for this DB
-- instance.
awsRdsDbClusterSnapshotDetails_engine :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_engine :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_engine = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
engine :: Maybe Text
$sel:engine:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
engine} -> Maybe Text
engine) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:engine:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
engine = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The license model information for this DB cluster snapshot.
awsRdsDbClusterSnapshotDetails_licenseModel :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_licenseModel :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_licenseModel = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:licenseModel:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
licenseModel = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | A list of Availability Zones where instances in the DB cluster can be
-- created.
awsRdsDbClusterSnapshotDetails_availabilityZones :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe [Prelude.Text])
awsRdsDbClusterSnapshotDetails_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_availabilityZones = (AwsRdsDbClusterSnapshotDetails -> Maybe [Text])
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe [Text] -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe [Text]
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:availabilityZones:AwsRdsDbClusterSnapshotDetails' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: AwsRdsDbClusterSnapshotDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> AwsRdsDbClusterSnapshotDetails
 -> f AwsRdsDbClusterSnapshotDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The type of DB cluster snapshot.
awsRdsDbClusterSnapshotDetails_snapshotType :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_snapshotType :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_snapshotType = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
snapshotType :: Maybe Text
$sel:snapshotType:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
snapshotType} -> Maybe Text
snapshotType) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:snapshotType:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
snapshotType = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The ARN of the KMS master key that is used to encrypt the database
-- instances in the DB cluster.
awsRdsDbClusterSnapshotDetails_kmsKeyId :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_kmsKeyId = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:kmsKeyId:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
kmsKeyId = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Indicates when the snapshot was taken.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
awsRdsDbClusterSnapshotDetails_snapshotCreateTime :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_snapshotCreateTime :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_snapshotCreateTime = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
snapshotCreateTime :: Maybe Text
$sel:snapshotCreateTime:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
snapshotCreateTime} -> Maybe Text
snapshotCreateTime) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:snapshotCreateTime:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
snapshotCreateTime = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Specifies the allocated storage size in gibibytes (GiB).
awsRdsDbClusterSnapshotDetails_allocatedStorage :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbClusterSnapshotDetails_allocatedStorage :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_allocatedStorage = (AwsRdsDbClusterSnapshotDetails -> Maybe Int)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Int
allocatedStorage :: Maybe Int
$sel:allocatedStorage:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
allocatedStorage} -> Maybe Int
allocatedStorage) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Int
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:allocatedStorage:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
allocatedStorage = Maybe Int
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Indicates when the DB cluster was created, in Universal Coordinated Time
-- (UTC).
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
awsRdsDbClusterSnapshotDetails_clusterCreateTime :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbClusterSnapshotDetails_clusterCreateTime :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_clusterCreateTime = (AwsRdsDbClusterSnapshotDetails -> Maybe Text)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Text -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Text
clusterCreateTime :: Maybe Text
$sel:clusterCreateTime:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
clusterCreateTime} -> Maybe Text
clusterCreateTime) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Text
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:clusterCreateTime:AwsRdsDbClusterSnapshotDetails' :: Maybe Text
clusterCreateTime = Maybe Text
a} :: AwsRdsDbClusterSnapshotDetails)

-- | Specifies the percentage of the estimated data that has been
-- transferred.
awsRdsDbClusterSnapshotDetails_percentProgress :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbClusterSnapshotDetails_percentProgress :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_percentProgress = (AwsRdsDbClusterSnapshotDetails -> Maybe Int)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Int
percentProgress :: Maybe Int
$sel:percentProgress:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
percentProgress} -> Maybe Int
percentProgress) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Int
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:percentProgress:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
percentProgress = Maybe Int
a} :: AwsRdsDbClusterSnapshotDetails)

-- | The port number on which the DB instances in the DB cluster accept
-- connections.
awsRdsDbClusterSnapshotDetails_port :: Lens.Lens' AwsRdsDbClusterSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbClusterSnapshotDetails_port :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbClusterSnapshotDetails
-> f AwsRdsDbClusterSnapshotDetails
awsRdsDbClusterSnapshotDetails_port = (AwsRdsDbClusterSnapshotDetails -> Maybe Int)
-> (AwsRdsDbClusterSnapshotDetails
    -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Lens
     AwsRdsDbClusterSnapshotDetails
     AwsRdsDbClusterSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbClusterSnapshotDetails' {Maybe Int
port :: Maybe Int
$sel:port:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
port} -> Maybe Int
port) (\s :: AwsRdsDbClusterSnapshotDetails
s@AwsRdsDbClusterSnapshotDetails' {} Maybe Int
a -> AwsRdsDbClusterSnapshotDetails
s {$sel:port:AwsRdsDbClusterSnapshotDetails' :: Maybe Int
port = Maybe Int
a} :: AwsRdsDbClusterSnapshotDetails)

instance Core.FromJSON AwsRdsDbClusterSnapshotDetails where
  parseJSON :: Value -> Parser AwsRdsDbClusterSnapshotDetails
parseJSON =
    String
-> (Object -> Parser AwsRdsDbClusterSnapshotDetails)
-> Value
-> Parser AwsRdsDbClusterSnapshotDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsRdsDbClusterSnapshotDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> AwsRdsDbClusterSnapshotDetails
AwsRdsDbClusterSnapshotDetails'
            (Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Int
 -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
forall (f :: * -> *) a b. Functor 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
"EngineVersion")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"Status")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"StorageEncrypted")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"DbClusterIdentifier")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"MasterUsername")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"IamDatabaseAuthenticationEnabled")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"VpcId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"DbClusterSnapshotIdentifier")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"Engine")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"LicenseModel")
            Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZones"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"SnapshotType")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"KmsKeyId")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AwsRdsDbClusterSnapshotDetails)
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
"SnapshotCreateTime")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Int -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
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
"AllocatedStorage")
            Parser
  (Maybe Text
   -> Maybe Int -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
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
"ClusterCreateTime")
            Parser (Maybe Int -> Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Int)
-> Parser (Maybe Int -> AwsRdsDbClusterSnapshotDetails)
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
"PercentProgress")
            Parser (Maybe Int -> AwsRdsDbClusterSnapshotDetails)
-> Parser (Maybe Int) -> Parser AwsRdsDbClusterSnapshotDetails
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")
      )

instance
  Prelude.Hashable
    AwsRdsDbClusterSnapshotDetails

instance
  Prelude.NFData
    AwsRdsDbClusterSnapshotDetails

instance Core.ToJSON AwsRdsDbClusterSnapshotDetails where
  toJSON :: AwsRdsDbClusterSnapshotDetails -> Value
toJSON AwsRdsDbClusterSnapshotDetails' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe Text
port :: Maybe Int
percentProgress :: Maybe Int
clusterCreateTime :: Maybe Text
allocatedStorage :: Maybe Int
snapshotCreateTime :: Maybe Text
kmsKeyId :: Maybe Text
snapshotType :: Maybe Text
availabilityZones :: Maybe [Text]
licenseModel :: Maybe Text
engine :: Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
vpcId :: Maybe Text
iamDatabaseAuthenticationEnabled :: Maybe Bool
masterUsername :: Maybe Text
dbClusterIdentifier :: Maybe Text
storageEncrypted :: Maybe Bool
status :: Maybe Text
engineVersion :: Maybe Text
$sel:port:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
$sel:percentProgress:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
$sel:clusterCreateTime:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:allocatedStorage:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Int
$sel:snapshotCreateTime:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:kmsKeyId:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:snapshotType:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:availabilityZones:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe [Text]
$sel:licenseModel:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:engine:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:dbClusterSnapshotIdentifier:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:vpcId:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:iamDatabaseAuthenticationEnabled:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Bool
$sel:masterUsername:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:dbClusterIdentifier:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:storageEncrypted:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Bool
$sel:status:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
$sel:engineVersion:AwsRdsDbClusterSnapshotDetails' :: AwsRdsDbClusterSnapshotDetails -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"EngineVersion" 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
engineVersion,
            (Text
"Status" 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
status,
            (Text
"StorageEncrypted" 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
storageEncrypted,
            (Text
"DbClusterIdentifier" 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
dbClusterIdentifier,
            (Text
"MasterUsername" 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
masterUsername,
            (Text
"IamDatabaseAuthenticationEnabled" 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
iamDatabaseAuthenticationEnabled,
            (Text
"VpcId" 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
vpcId,
            (Text
"DbClusterSnapshotIdentifier" 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
dbClusterSnapshotIdentifier,
            (Text
"Engine" 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
engine,
            (Text
"LicenseModel" 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
licenseModel,
            (Text
"AvailabilityZones" 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]
availabilityZones,
            (Text
"SnapshotType" 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
snapshotType,
            (Text
"KmsKeyId" 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
kmsKeyId,
            (Text
"SnapshotCreateTime" 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
snapshotCreateTime,
            (Text
"AllocatedStorage" 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
allocatedStorage,
            (Text
"ClusterCreateTime" 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
clusterCreateTime,
            (Text
"PercentProgress" 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
percentProgress,
            (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
          ]
      )