{-# 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.AwsRdsDbSnapshotDetails
-- 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.AwsRdsDbSnapshotDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsRdsDbProcessorFeature

-- | Provides details about an Amazon RDS DB cluster snapshot.
--
-- /See:/ 'newAwsRdsDbSnapshotDetails' smart constructor.
data AwsRdsDbSnapshotDetails = AwsRdsDbSnapshotDetails'
  { -- | The version of the database engine.
    AwsRdsDbSnapshotDetails -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | The status of this DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The master user name for the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
masterUsername :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services Region that the DB snapshot was created in or
    -- copied from.
    AwsRdsDbSnapshotDetails -> Maybe Text
sourceRegion :: Prelude.Maybe Prelude.Text,
    -- | The provisioned IOPS (I\/O operations per second) value of the DB
    -- instance at the time of the snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
    -- | Whether mapping of IAM accounts to database accounts is enabled.
    AwsRdsDbSnapshotDetails -> Maybe Bool
iamDatabaseAuthenticationEnabled :: Prelude.Maybe Prelude.Bool,
    -- | The VPC ID associated with the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | Specifies the time in Coordinated Universal Time (UTC) when the DB
    -- instance, from which the snapshot was taken, was created.
    AwsRdsDbSnapshotDetails -> Maybe Text
instanceCreateTime :: Prelude.Maybe Prelude.Text,
    -- | The name of the database engine to use for this DB instance.
    AwsRdsDbSnapshotDetails -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
    -- | Whether the DB snapshot is encrypted.
    AwsRdsDbSnapshotDetails -> Maybe Bool
encrypted :: Prelude.Maybe Prelude.Bool,
    -- | The name or ARN of the DB snapshot that is used to restore the DB
    -- instance.
    AwsRdsDbSnapshotDetails -> Maybe Text
dbSnapshotIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The number of CPU cores and the number of threads per core for the DB
    -- instance class of the DB instance.
    AwsRdsDbSnapshotDetails -> Maybe [AwsRdsDbProcessorFeature]
processorFeatures :: Prelude.Maybe [AwsRdsDbProcessorFeature],
    -- | License model information for the restored DB instance.
    AwsRdsDbSnapshotDetails -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | A name for the DB instance.
    AwsRdsDbSnapshotDetails -> Maybe Text
dbInstanceIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The type of the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
snapshotType :: Prelude.Maybe Prelude.Text,
    -- | The DB snapshot ARN that the DB snapshot was copied from.
    AwsRdsDbSnapshotDetails -> Maybe Text
sourceDbSnapshotIdentifier :: Prelude.Maybe Prelude.Text,
    -- | If @Encrypted@ is @true@, the KMS key identifier for the encrypted DB
    -- snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | Specifies the name of the Availability Zone in which the DB instance was
    -- located at the time of the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
    -- | When the snapshot was taken in Coordinated Universal Time (UTC).
    AwsRdsDbSnapshotDetails -> Maybe Text
snapshotCreateTime :: Prelude.Maybe Prelude.Text,
    -- | The amount of storage (in gigabytes) to be initially allocated for the
    -- database instance.
    AwsRdsDbSnapshotDetails -> Maybe Int
allocatedStorage :: Prelude.Maybe Prelude.Int,
    -- | The identifier for the source DB instance.
    AwsRdsDbSnapshotDetails -> Maybe Text
dbiResourceId :: Prelude.Maybe Prelude.Text,
    -- | The option group name for the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text,
    -- | The time zone of the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
timezone :: Prelude.Maybe Prelude.Text,
    -- | The ARN from the key store with which to associate the instance for TDE
    -- encryption.
    AwsRdsDbSnapshotDetails -> Maybe Text
tdeCredentialArn :: Prelude.Maybe Prelude.Text,
    -- | The percentage of the estimated data that has been transferred.
    AwsRdsDbSnapshotDetails -> Maybe Int
percentProgress :: Prelude.Maybe Prelude.Int,
    -- | The port that the database engine was listening on at the time of the
    -- snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
    -- | The storage type associated with the DB snapshot.
    AwsRdsDbSnapshotDetails -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text
  }
  deriving (AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool
(AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool)
-> (AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool)
-> Eq AwsRdsDbSnapshotDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool
$c/= :: AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool
== :: AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool
$c== :: AwsRdsDbSnapshotDetails -> AwsRdsDbSnapshotDetails -> Bool
Prelude.Eq, ReadPrec [AwsRdsDbSnapshotDetails]
ReadPrec AwsRdsDbSnapshotDetails
Int -> ReadS AwsRdsDbSnapshotDetails
ReadS [AwsRdsDbSnapshotDetails]
(Int -> ReadS AwsRdsDbSnapshotDetails)
-> ReadS [AwsRdsDbSnapshotDetails]
-> ReadPrec AwsRdsDbSnapshotDetails
-> ReadPrec [AwsRdsDbSnapshotDetails]
-> Read AwsRdsDbSnapshotDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsRdsDbSnapshotDetails]
$creadListPrec :: ReadPrec [AwsRdsDbSnapshotDetails]
readPrec :: ReadPrec AwsRdsDbSnapshotDetails
$creadPrec :: ReadPrec AwsRdsDbSnapshotDetails
readList :: ReadS [AwsRdsDbSnapshotDetails]
$creadList :: ReadS [AwsRdsDbSnapshotDetails]
readsPrec :: Int -> ReadS AwsRdsDbSnapshotDetails
$creadsPrec :: Int -> ReadS AwsRdsDbSnapshotDetails
Prelude.Read, Int -> AwsRdsDbSnapshotDetails -> ShowS
[AwsRdsDbSnapshotDetails] -> ShowS
AwsRdsDbSnapshotDetails -> String
(Int -> AwsRdsDbSnapshotDetails -> ShowS)
-> (AwsRdsDbSnapshotDetails -> String)
-> ([AwsRdsDbSnapshotDetails] -> ShowS)
-> Show AwsRdsDbSnapshotDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsRdsDbSnapshotDetails] -> ShowS
$cshowList :: [AwsRdsDbSnapshotDetails] -> ShowS
show :: AwsRdsDbSnapshotDetails -> String
$cshow :: AwsRdsDbSnapshotDetails -> String
showsPrec :: Int -> AwsRdsDbSnapshotDetails -> ShowS
$cshowsPrec :: Int -> AwsRdsDbSnapshotDetails -> ShowS
Prelude.Show, (forall x.
 AwsRdsDbSnapshotDetails -> Rep AwsRdsDbSnapshotDetails x)
-> (forall x.
    Rep AwsRdsDbSnapshotDetails x -> AwsRdsDbSnapshotDetails)
-> Generic AwsRdsDbSnapshotDetails
forall x. Rep AwsRdsDbSnapshotDetails x -> AwsRdsDbSnapshotDetails
forall x. AwsRdsDbSnapshotDetails -> Rep AwsRdsDbSnapshotDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsRdsDbSnapshotDetails x -> AwsRdsDbSnapshotDetails
$cfrom :: forall x. AwsRdsDbSnapshotDetails -> Rep AwsRdsDbSnapshotDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsRdsDbSnapshotDetails' 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', 'awsRdsDbSnapshotDetails_engineVersion' - The version of the database engine.
--
-- 'status', 'awsRdsDbSnapshotDetails_status' - The status of this DB snapshot.
--
-- 'masterUsername', 'awsRdsDbSnapshotDetails_masterUsername' - The master user name for the DB snapshot.
--
-- 'sourceRegion', 'awsRdsDbSnapshotDetails_sourceRegion' - The Amazon Web Services Region that the DB snapshot was created in or
-- copied from.
--
-- 'iops', 'awsRdsDbSnapshotDetails_iops' - The provisioned IOPS (I\/O operations per second) value of the DB
-- instance at the time of the snapshot.
--
-- 'iamDatabaseAuthenticationEnabled', 'awsRdsDbSnapshotDetails_iamDatabaseAuthenticationEnabled' - Whether mapping of IAM accounts to database accounts is enabled.
--
-- 'vpcId', 'awsRdsDbSnapshotDetails_vpcId' - The VPC ID associated with the DB snapshot.
--
-- 'instanceCreateTime', 'awsRdsDbSnapshotDetails_instanceCreateTime' - Specifies the time in Coordinated Universal Time (UTC) when the DB
-- instance, from which the snapshot was taken, was created.
--
-- 'engine', 'awsRdsDbSnapshotDetails_engine' - The name of the database engine to use for this DB instance.
--
-- 'encrypted', 'awsRdsDbSnapshotDetails_encrypted' - Whether the DB snapshot is encrypted.
--
-- 'dbSnapshotIdentifier', 'awsRdsDbSnapshotDetails_dbSnapshotIdentifier' - The name or ARN of the DB snapshot that is used to restore the DB
-- instance.
--
-- 'processorFeatures', 'awsRdsDbSnapshotDetails_processorFeatures' - The number of CPU cores and the number of threads per core for the DB
-- instance class of the DB instance.
--
-- 'licenseModel', 'awsRdsDbSnapshotDetails_licenseModel' - License model information for the restored DB instance.
--
-- 'dbInstanceIdentifier', 'awsRdsDbSnapshotDetails_dbInstanceIdentifier' - A name for the DB instance.
--
-- 'snapshotType', 'awsRdsDbSnapshotDetails_snapshotType' - The type of the DB snapshot.
--
-- 'sourceDbSnapshotIdentifier', 'awsRdsDbSnapshotDetails_sourceDbSnapshotIdentifier' - The DB snapshot ARN that the DB snapshot was copied from.
--
-- 'kmsKeyId', 'awsRdsDbSnapshotDetails_kmsKeyId' - If @Encrypted@ is @true@, the KMS key identifier for the encrypted DB
-- snapshot.
--
-- 'availabilityZone', 'awsRdsDbSnapshotDetails_availabilityZone' - Specifies the name of the Availability Zone in which the DB instance was
-- located at the time of the DB snapshot.
--
-- 'snapshotCreateTime', 'awsRdsDbSnapshotDetails_snapshotCreateTime' - When the snapshot was taken in Coordinated Universal Time (UTC).
--
-- 'allocatedStorage', 'awsRdsDbSnapshotDetails_allocatedStorage' - The amount of storage (in gigabytes) to be initially allocated for the
-- database instance.
--
-- 'dbiResourceId', 'awsRdsDbSnapshotDetails_dbiResourceId' - The identifier for the source DB instance.
--
-- 'optionGroupName', 'awsRdsDbSnapshotDetails_optionGroupName' - The option group name for the DB snapshot.
--
-- 'timezone', 'awsRdsDbSnapshotDetails_timezone' - The time zone of the DB snapshot.
--
-- 'tdeCredentialArn', 'awsRdsDbSnapshotDetails_tdeCredentialArn' - The ARN from the key store with which to associate the instance for TDE
-- encryption.
--
-- 'percentProgress', 'awsRdsDbSnapshotDetails_percentProgress' - The percentage of the estimated data that has been transferred.
--
-- 'port', 'awsRdsDbSnapshotDetails_port' - The port that the database engine was listening on at the time of the
-- snapshot.
--
-- 'storageType', 'awsRdsDbSnapshotDetails_storageType' - The storage type associated with the DB snapshot.
newAwsRdsDbSnapshotDetails ::
  AwsRdsDbSnapshotDetails
newAwsRdsDbSnapshotDetails :: AwsRdsDbSnapshotDetails
newAwsRdsDbSnapshotDetails =
  AwsRdsDbSnapshotDetails' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe [AwsRdsDbProcessorFeature]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> AwsRdsDbSnapshotDetails
AwsRdsDbSnapshotDetails'
    { $sel:engineVersion:AwsRdsDbSnapshotDetails' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:AwsRdsDbSnapshotDetails' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:masterUsername:AwsRdsDbSnapshotDetails' :: Maybe Text
masterUsername = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceRegion:AwsRdsDbSnapshotDetails' :: Maybe Text
sourceRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:iops:AwsRdsDbSnapshotDetails' :: Maybe Int
iops = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:iamDatabaseAuthenticationEnabled:AwsRdsDbSnapshotDetails' :: Maybe Bool
iamDatabaseAuthenticationEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:AwsRdsDbSnapshotDetails' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceCreateTime:AwsRdsDbSnapshotDetails' :: Maybe Text
instanceCreateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:engine:AwsRdsDbSnapshotDetails' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:encrypted:AwsRdsDbSnapshotDetails' :: Maybe Bool
encrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:dbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
dbSnapshotIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:processorFeatures:AwsRdsDbSnapshotDetails' :: Maybe [AwsRdsDbProcessorFeature]
processorFeatures = Maybe [AwsRdsDbProcessorFeature]
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseModel:AwsRdsDbSnapshotDetails' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
dbInstanceIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotType:AwsRdsDbSnapshotDetails' :: Maybe Text
snapshotType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceDbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
sourceDbSnapshotIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKeyId:AwsRdsDbSnapshotDetails' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZone:AwsRdsDbSnapshotDetails' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotCreateTime:AwsRdsDbSnapshotDetails' :: Maybe Text
snapshotCreateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:allocatedStorage:AwsRdsDbSnapshotDetails' :: Maybe Int
allocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:dbiResourceId:AwsRdsDbSnapshotDetails' :: Maybe Text
dbiResourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupName:AwsRdsDbSnapshotDetails' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:timezone:AwsRdsDbSnapshotDetails' :: Maybe Text
timezone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tdeCredentialArn:AwsRdsDbSnapshotDetails' :: Maybe Text
tdeCredentialArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:percentProgress:AwsRdsDbSnapshotDetails' :: Maybe Int
percentProgress = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:port:AwsRdsDbSnapshotDetails' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:storageType:AwsRdsDbSnapshotDetails' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

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

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

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

-- | The Amazon Web Services Region that the DB snapshot was created in or
-- copied from.
awsRdsDbSnapshotDetails_sourceRegion :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_sourceRegion :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_sourceRegion = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
sourceRegion :: Maybe Text
$sel:sourceRegion:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
sourceRegion} -> Maybe Text
sourceRegion) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:sourceRegion:AwsRdsDbSnapshotDetails' :: Maybe Text
sourceRegion = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The provisioned IOPS (I\/O operations per second) value of the DB
-- instance at the time of the snapshot.
awsRdsDbSnapshotDetails_iops :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbSnapshotDetails_iops :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_iops = (AwsRdsDbSnapshotDetails -> Maybe Int)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Int -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Int
iops :: Maybe Int
$sel:iops:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
iops} -> Maybe Int
iops) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Int
a -> AwsRdsDbSnapshotDetails
s {$sel:iops:AwsRdsDbSnapshotDetails' :: Maybe Int
iops = Maybe Int
a} :: AwsRdsDbSnapshotDetails)

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

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

-- | Specifies the time in Coordinated Universal Time (UTC) when the DB
-- instance, from which the snapshot was taken, was created.
awsRdsDbSnapshotDetails_instanceCreateTime :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_instanceCreateTime :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_instanceCreateTime = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
instanceCreateTime :: Maybe Text
$sel:instanceCreateTime:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
instanceCreateTime} -> Maybe Text
instanceCreateTime) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:instanceCreateTime:AwsRdsDbSnapshotDetails' :: Maybe Text
instanceCreateTime = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

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

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

-- | The name or ARN of the DB snapshot that is used to restore the DB
-- instance.
awsRdsDbSnapshotDetails_dbSnapshotIdentifier :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_dbSnapshotIdentifier :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_dbSnapshotIdentifier = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
dbSnapshotIdentifier :: Maybe Text
$sel:dbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
dbSnapshotIdentifier} -> Maybe Text
dbSnapshotIdentifier) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:dbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
dbSnapshotIdentifier = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The number of CPU cores and the number of threads per core for the DB
-- instance class of the DB instance.
awsRdsDbSnapshotDetails_processorFeatures :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe [AwsRdsDbProcessorFeature])
awsRdsDbSnapshotDetails_processorFeatures :: (Maybe [AwsRdsDbProcessorFeature]
 -> f (Maybe [AwsRdsDbProcessorFeature]))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_processorFeatures = (AwsRdsDbSnapshotDetails -> Maybe [AwsRdsDbProcessorFeature])
-> (AwsRdsDbSnapshotDetails
    -> Maybe [AwsRdsDbProcessorFeature] -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe [AwsRdsDbProcessorFeature])
     (Maybe [AwsRdsDbProcessorFeature])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe [AwsRdsDbProcessorFeature]
processorFeatures :: Maybe [AwsRdsDbProcessorFeature]
$sel:processorFeatures:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe [AwsRdsDbProcessorFeature]
processorFeatures} -> Maybe [AwsRdsDbProcessorFeature]
processorFeatures) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe [AwsRdsDbProcessorFeature]
a -> AwsRdsDbSnapshotDetails
s {$sel:processorFeatures:AwsRdsDbSnapshotDetails' :: Maybe [AwsRdsDbProcessorFeature]
processorFeatures = Maybe [AwsRdsDbProcessorFeature]
a} :: AwsRdsDbSnapshotDetails) ((Maybe [AwsRdsDbProcessorFeature]
  -> f (Maybe [AwsRdsDbProcessorFeature]))
 -> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails)
-> ((Maybe [AwsRdsDbProcessorFeature]
     -> f (Maybe [AwsRdsDbProcessorFeature]))
    -> Maybe [AwsRdsDbProcessorFeature]
    -> f (Maybe [AwsRdsDbProcessorFeature]))
-> (Maybe [AwsRdsDbProcessorFeature]
    -> f (Maybe [AwsRdsDbProcessorFeature]))
-> AwsRdsDbSnapshotDetails
-> f AwsRdsDbSnapshotDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
-> Iso
     (Maybe [AwsRdsDbProcessorFeature])
     (Maybe [AwsRdsDbProcessorFeature])
     (Maybe [AwsRdsDbProcessorFeature])
     (Maybe [AwsRdsDbProcessorFeature])
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
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
  [AwsRdsDbProcessorFeature]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | License model information for the restored DB instance.
awsRdsDbSnapshotDetails_licenseModel :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_licenseModel :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_licenseModel = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:licenseModel:AwsRdsDbSnapshotDetails' :: Maybe Text
licenseModel = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | A name for the DB instance.
awsRdsDbSnapshotDetails_dbInstanceIdentifier :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_dbInstanceIdentifier :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_dbInstanceIdentifier = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:dbInstanceIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
dbInstanceIdentifier} -> Maybe Text
dbInstanceIdentifier) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:dbInstanceIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
dbInstanceIdentifier = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

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

-- | The DB snapshot ARN that the DB snapshot was copied from.
awsRdsDbSnapshotDetails_sourceDbSnapshotIdentifier :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_sourceDbSnapshotIdentifier :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_sourceDbSnapshotIdentifier = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
sourceDbSnapshotIdentifier :: Maybe Text
$sel:sourceDbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
sourceDbSnapshotIdentifier} -> Maybe Text
sourceDbSnapshotIdentifier) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:sourceDbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: Maybe Text
sourceDbSnapshotIdentifier = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | If @Encrypted@ is @true@, the KMS key identifier for the encrypted DB
-- snapshot.
awsRdsDbSnapshotDetails_kmsKeyId :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_kmsKeyId = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:kmsKeyId:AwsRdsDbSnapshotDetails' :: Maybe Text
kmsKeyId = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | Specifies the name of the Availability Zone in which the DB instance was
-- located at the time of the DB snapshot.
awsRdsDbSnapshotDetails_availabilityZone :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_availabilityZone :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_availabilityZone = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:availabilityZone:AwsRdsDbSnapshotDetails' :: Maybe Text
availabilityZone = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | When the snapshot was taken in Coordinated Universal Time (UTC).
awsRdsDbSnapshotDetails_snapshotCreateTime :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_snapshotCreateTime :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_snapshotCreateTime = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
snapshotCreateTime :: Maybe Text
$sel:snapshotCreateTime:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
snapshotCreateTime} -> Maybe Text
snapshotCreateTime) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:snapshotCreateTime:AwsRdsDbSnapshotDetails' :: Maybe Text
snapshotCreateTime = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The amount of storage (in gigabytes) to be initially allocated for the
-- database instance.
awsRdsDbSnapshotDetails_allocatedStorage :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbSnapshotDetails_allocatedStorage :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_allocatedStorage = (AwsRdsDbSnapshotDetails -> Maybe Int)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Int -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Int
allocatedStorage :: Maybe Int
$sel:allocatedStorage:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
allocatedStorage} -> Maybe Int
allocatedStorage) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Int
a -> AwsRdsDbSnapshotDetails
s {$sel:allocatedStorage:AwsRdsDbSnapshotDetails' :: Maybe Int
allocatedStorage = Maybe Int
a} :: AwsRdsDbSnapshotDetails)

-- | The identifier for the source DB instance.
awsRdsDbSnapshotDetails_dbiResourceId :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_dbiResourceId :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_dbiResourceId = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
dbiResourceId :: Maybe Text
$sel:dbiResourceId:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
dbiResourceId} -> Maybe Text
dbiResourceId) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:dbiResourceId:AwsRdsDbSnapshotDetails' :: Maybe Text
dbiResourceId = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The option group name for the DB snapshot.
awsRdsDbSnapshotDetails_optionGroupName :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_optionGroupName :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_optionGroupName = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:optionGroupName:AwsRdsDbSnapshotDetails' :: Maybe Text
optionGroupName = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The time zone of the DB snapshot.
awsRdsDbSnapshotDetails_timezone :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_timezone :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_timezone = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
timezone :: Maybe Text
$sel:timezone:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
timezone} -> Maybe Text
timezone) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:timezone:AwsRdsDbSnapshotDetails' :: Maybe Text
timezone = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

-- | The ARN from the key store with which to associate the instance for TDE
-- encryption.
awsRdsDbSnapshotDetails_tdeCredentialArn :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_tdeCredentialArn :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_tdeCredentialArn = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
tdeCredentialArn :: Maybe Text
$sel:tdeCredentialArn:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
tdeCredentialArn} -> Maybe Text
tdeCredentialArn) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:tdeCredentialArn:AwsRdsDbSnapshotDetails' :: Maybe Text
tdeCredentialArn = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

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

-- | The port that the database engine was listening on at the time of the
-- snapshot.
awsRdsDbSnapshotDetails_port :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Int)
awsRdsDbSnapshotDetails_port :: (Maybe Int -> f (Maybe Int))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_port = (AwsRdsDbSnapshotDetails -> Maybe Int)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Int -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Int
port :: Maybe Int
$sel:port:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
port} -> Maybe Int
port) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Int
a -> AwsRdsDbSnapshotDetails
s {$sel:port:AwsRdsDbSnapshotDetails' :: Maybe Int
port = Maybe Int
a} :: AwsRdsDbSnapshotDetails)

-- | The storage type associated with the DB snapshot.
awsRdsDbSnapshotDetails_storageType :: Lens.Lens' AwsRdsDbSnapshotDetails (Prelude.Maybe Prelude.Text)
awsRdsDbSnapshotDetails_storageType :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSnapshotDetails -> f AwsRdsDbSnapshotDetails
awsRdsDbSnapshotDetails_storageType = (AwsRdsDbSnapshotDetails -> Maybe Text)
-> (AwsRdsDbSnapshotDetails
    -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Lens
     AwsRdsDbSnapshotDetails
     AwsRdsDbSnapshotDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSnapshotDetails' {Maybe Text
storageType :: Maybe Text
$sel:storageType:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: AwsRdsDbSnapshotDetails
s@AwsRdsDbSnapshotDetails' {} Maybe Text
a -> AwsRdsDbSnapshotDetails
s {$sel:storageType:AwsRdsDbSnapshotDetails' :: Maybe Text
storageType = Maybe Text
a} :: AwsRdsDbSnapshotDetails)

instance Core.FromJSON AwsRdsDbSnapshotDetails where
  parseJSON :: Value -> Parser AwsRdsDbSnapshotDetails
parseJSON =
    String
-> (Object -> Parser AwsRdsDbSnapshotDetails)
-> Value
-> Parser AwsRdsDbSnapshotDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsRdsDbSnapshotDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe [AwsRdsDbProcessorFeature]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> AwsRdsDbSnapshotDetails
AwsRdsDbSnapshotDetails'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe [AwsRdsDbProcessorFeature]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Int
 -> Maybe Text
 -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"SourceRegion")
            Parser
  (Maybe Int
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Int)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"Iops")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"InstanceCreateTime")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Bool
   -> Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"Encrypted")
            Parser
  (Maybe Text
   -> Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [AwsRdsDbProcessorFeature]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"DbSnapshotIdentifier")
            Parser
  (Maybe [AwsRdsDbProcessorFeature]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe [AwsRdsDbProcessorFeature])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [AwsRdsDbProcessorFeature]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProcessorFeatures"
                            Parser (Maybe (Maybe [AwsRdsDbProcessorFeature]))
-> Maybe [AwsRdsDbProcessorFeature]
-> Parser (Maybe [AwsRdsDbProcessorFeature])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsRdsDbProcessorFeature]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"DbInstanceIdentifier")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"SourceDbSnapshotIdentifier")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"AvailabilityZone")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"DbiResourceId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> AwsRdsDbSnapshotDetails)
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
"OptionGroupName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int -> Maybe Int -> Maybe Text -> AwsRdsDbSnapshotDetails)
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
"Timezone")
            Parser
  (Maybe Text
   -> Maybe Int -> Maybe Int -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int -> Maybe Int -> Maybe Text -> AwsRdsDbSnapshotDetails)
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
"TdeCredentialArn")
            Parser
  (Maybe Int -> Maybe Int -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Int)
-> Parser (Maybe Int -> Maybe Text -> AwsRdsDbSnapshotDetails)
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 -> Maybe Text -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Int)
-> Parser (Maybe Text -> AwsRdsDbSnapshotDetails)
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 -> AwsRdsDbSnapshotDetails)
-> Parser (Maybe Text) -> Parser AwsRdsDbSnapshotDetails
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
"StorageType")
      )

instance Prelude.Hashable AwsRdsDbSnapshotDetails

instance Prelude.NFData AwsRdsDbSnapshotDetails

instance Core.ToJSON AwsRdsDbSnapshotDetails where
  toJSON :: AwsRdsDbSnapshotDetails -> Value
toJSON AwsRdsDbSnapshotDetails' {Maybe Bool
Maybe Int
Maybe [AwsRdsDbProcessorFeature]
Maybe Text
storageType :: Maybe Text
port :: Maybe Int
percentProgress :: Maybe Int
tdeCredentialArn :: Maybe Text
timezone :: Maybe Text
optionGroupName :: Maybe Text
dbiResourceId :: Maybe Text
allocatedStorage :: Maybe Int
snapshotCreateTime :: Maybe Text
availabilityZone :: Maybe Text
kmsKeyId :: Maybe Text
sourceDbSnapshotIdentifier :: Maybe Text
snapshotType :: Maybe Text
dbInstanceIdentifier :: Maybe Text
licenseModel :: Maybe Text
processorFeatures :: Maybe [AwsRdsDbProcessorFeature]
dbSnapshotIdentifier :: Maybe Text
encrypted :: Maybe Bool
engine :: Maybe Text
instanceCreateTime :: Maybe Text
vpcId :: Maybe Text
iamDatabaseAuthenticationEnabled :: Maybe Bool
iops :: Maybe Int
sourceRegion :: Maybe Text
masterUsername :: Maybe Text
status :: Maybe Text
engineVersion :: Maybe Text
$sel:storageType:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:port:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
$sel:percentProgress:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
$sel:tdeCredentialArn:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:timezone:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:optionGroupName:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:dbiResourceId:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:allocatedStorage:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
$sel:snapshotCreateTime:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:availabilityZone:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:kmsKeyId:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:sourceDbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:snapshotType:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:dbInstanceIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:licenseModel:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:processorFeatures:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe [AwsRdsDbProcessorFeature]
$sel:dbSnapshotIdentifier:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:encrypted:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Bool
$sel:engine:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:instanceCreateTime:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:vpcId:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:iamDatabaseAuthenticationEnabled:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Bool
$sel:iops:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Int
$sel:sourceRegion:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:masterUsername:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:status:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> Maybe Text
$sel:engineVersion:AwsRdsDbSnapshotDetails' :: AwsRdsDbSnapshotDetails -> 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
"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
"SourceRegion" 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
sourceRegion,
            (Text
"Iops" 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
iops,
            (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
"InstanceCreateTime" 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
instanceCreateTime,
            (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
"Encrypted" 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
encrypted,
            (Text
"DbSnapshotIdentifier" 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
dbSnapshotIdentifier,
            (Text
"ProcessorFeatures" Text -> [AwsRdsDbProcessorFeature] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([AwsRdsDbProcessorFeature] -> Pair)
-> Maybe [AwsRdsDbProcessorFeature] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsRdsDbProcessorFeature]
processorFeatures,
            (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
"DbInstanceIdentifier" 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
dbInstanceIdentifier,
            (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
"SourceDbSnapshotIdentifier" 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
sourceDbSnapshotIdentifier,
            (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
"AvailabilityZone" 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
availabilityZone,
            (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
"DbiResourceId" 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
dbiResourceId,
            (Text
"OptionGroupName" 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
optionGroupName,
            (Text
"Timezone" 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
timezone,
            (Text
"TdeCredentialArn" 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
tdeCredentialArn,
            (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,
            (Text
"StorageType" 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
storageType
          ]
      )