{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.RDS.Types.DBClusterSnapshot where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types.Tag
data DBClusterSnapshot = DBClusterSnapshot'
{
DBClusterSnapshot -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Bool
storageEncrypted :: Prelude.Maybe Prelude.Bool,
DBClusterSnapshot -> Maybe Text
dbClusterIdentifier :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
masterUsername :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Bool
iAMDatabaseAuthenticationEnabled :: Prelude.Maybe Prelude.Bool,
DBClusterSnapshot -> Maybe Text
dbClusterSnapshotArn :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe [Tag]
tagList :: Prelude.Maybe [Tag],
DBClusterSnapshot -> Maybe Text
dbClusterSnapshotIdentifier :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
DBClusterSnapshot -> Maybe Text
snapshotType :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe Text
engineMode :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe ISO8601
snapshotCreateTime :: Prelude.Maybe Core.ISO8601,
DBClusterSnapshot -> Maybe Int
allocatedStorage :: Prelude.Maybe Prelude.Int,
DBClusterSnapshot -> Maybe Text
sourceDBClusterSnapshotArn :: Prelude.Maybe Prelude.Text,
DBClusterSnapshot -> Maybe ISO8601
clusterCreateTime :: Prelude.Maybe Core.ISO8601,
DBClusterSnapshot -> Maybe Int
percentProgress :: Prelude.Maybe Prelude.Int,
DBClusterSnapshot -> Maybe Int
port :: Prelude.Maybe Prelude.Int
}
deriving (DBClusterSnapshot -> DBClusterSnapshot -> Bool
(DBClusterSnapshot -> DBClusterSnapshot -> Bool)
-> (DBClusterSnapshot -> DBClusterSnapshot -> Bool)
-> Eq DBClusterSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBClusterSnapshot -> DBClusterSnapshot -> Bool
$c/= :: DBClusterSnapshot -> DBClusterSnapshot -> Bool
== :: DBClusterSnapshot -> DBClusterSnapshot -> Bool
$c== :: DBClusterSnapshot -> DBClusterSnapshot -> Bool
Prelude.Eq, ReadPrec [DBClusterSnapshot]
ReadPrec DBClusterSnapshot
Int -> ReadS DBClusterSnapshot
ReadS [DBClusterSnapshot]
(Int -> ReadS DBClusterSnapshot)
-> ReadS [DBClusterSnapshot]
-> ReadPrec DBClusterSnapshot
-> ReadPrec [DBClusterSnapshot]
-> Read DBClusterSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBClusterSnapshot]
$creadListPrec :: ReadPrec [DBClusterSnapshot]
readPrec :: ReadPrec DBClusterSnapshot
$creadPrec :: ReadPrec DBClusterSnapshot
readList :: ReadS [DBClusterSnapshot]
$creadList :: ReadS [DBClusterSnapshot]
readsPrec :: Int -> ReadS DBClusterSnapshot
$creadsPrec :: Int -> ReadS DBClusterSnapshot
Prelude.Read, Int -> DBClusterSnapshot -> ShowS
[DBClusterSnapshot] -> ShowS
DBClusterSnapshot -> String
(Int -> DBClusterSnapshot -> ShowS)
-> (DBClusterSnapshot -> String)
-> ([DBClusterSnapshot] -> ShowS)
-> Show DBClusterSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBClusterSnapshot] -> ShowS
$cshowList :: [DBClusterSnapshot] -> ShowS
show :: DBClusterSnapshot -> String
$cshow :: DBClusterSnapshot -> String
showsPrec :: Int -> DBClusterSnapshot -> ShowS
$cshowsPrec :: Int -> DBClusterSnapshot -> ShowS
Prelude.Show, (forall x. DBClusterSnapshot -> Rep DBClusterSnapshot x)
-> (forall x. Rep DBClusterSnapshot x -> DBClusterSnapshot)
-> Generic DBClusterSnapshot
forall x. Rep DBClusterSnapshot x -> DBClusterSnapshot
forall x. DBClusterSnapshot -> Rep DBClusterSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DBClusterSnapshot x -> DBClusterSnapshot
$cfrom :: forall x. DBClusterSnapshot -> Rep DBClusterSnapshot x
Prelude.Generic)
newDBClusterSnapshot ::
DBClusterSnapshot
newDBClusterSnapshot :: DBClusterSnapshot
newDBClusterSnapshot =
DBClusterSnapshot' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot
DBClusterSnapshot'
{ $sel:engineVersion:DBClusterSnapshot' :: Maybe Text
engineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:DBClusterSnapshot' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:storageEncrypted:DBClusterSnapshot' :: Maybe Bool
storageEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterIdentifier:DBClusterSnapshot' :: Maybe Text
dbClusterIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:masterUsername:DBClusterSnapshot' :: Maybe Text
masterUsername = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:iAMDatabaseAuthenticationEnabled:DBClusterSnapshot' :: Maybe Bool
iAMDatabaseAuthenticationEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterSnapshotArn:DBClusterSnapshot' :: Maybe Text
dbClusterSnapshotArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:DBClusterSnapshot' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tagList:DBClusterSnapshot' :: Maybe [Tag]
tagList = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshot' :: Maybe Text
dbClusterSnapshotIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:engine:DBClusterSnapshot' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenseModel:DBClusterSnapshot' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:DBClusterSnapshot' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotType:DBClusterSnapshot' :: Maybe Text
snapshotType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:DBClusterSnapshot' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:engineMode:DBClusterSnapshot' :: Maybe Text
engineMode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotCreateTime:DBClusterSnapshot' :: Maybe ISO8601
snapshotCreateTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:allocatedStorage:DBClusterSnapshot' :: Maybe Int
allocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:sourceDBClusterSnapshotArn:DBClusterSnapshot' :: Maybe Text
sourceDBClusterSnapshotArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clusterCreateTime:DBClusterSnapshot' :: Maybe ISO8601
clusterCreateTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:percentProgress:DBClusterSnapshot' :: Maybe Int
percentProgress = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:port:DBClusterSnapshot' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
dbClusterSnapshot_engineVersion :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_engineVersion :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_engineVersion = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:engineVersion:DBClusterSnapshot' :: Maybe Text
engineVersion = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_status :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_status :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_status = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
status :: Maybe Text
$sel:status:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
status} -> Maybe Text
status) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:status:DBClusterSnapshot' :: Maybe Text
status = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_storageEncrypted :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Bool)
dbClusterSnapshot_storageEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_storageEncrypted = (DBClusterSnapshot -> Maybe Bool)
-> (DBClusterSnapshot -> Maybe Bool -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Bool
storageEncrypted :: Maybe Bool
$sel:storageEncrypted:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Bool
storageEncrypted} -> Maybe Bool
storageEncrypted) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Bool
a -> DBClusterSnapshot
s {$sel:storageEncrypted:DBClusterSnapshot' :: Maybe Bool
storageEncrypted = Maybe Bool
a} :: DBClusterSnapshot)
dbClusterSnapshot_dbClusterIdentifier :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_dbClusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_dbClusterIdentifier = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
dbClusterIdentifier :: Maybe Text
$sel:dbClusterIdentifier:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
dbClusterIdentifier} -> Maybe Text
dbClusterIdentifier) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:dbClusterIdentifier:DBClusterSnapshot' :: Maybe Text
dbClusterIdentifier = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_masterUsername :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_masterUsername :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_masterUsername = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
masterUsername :: Maybe Text
$sel:masterUsername:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
masterUsername} -> Maybe Text
masterUsername) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:masterUsername:DBClusterSnapshot' :: Maybe Text
masterUsername = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_iAMDatabaseAuthenticationEnabled :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Bool)
dbClusterSnapshot_iAMDatabaseAuthenticationEnabled :: (Maybe Bool -> f (Maybe Bool))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_iAMDatabaseAuthenticationEnabled = (DBClusterSnapshot -> Maybe Bool)
-> (DBClusterSnapshot -> Maybe Bool -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Bool
iAMDatabaseAuthenticationEnabled :: Maybe Bool
$sel:iAMDatabaseAuthenticationEnabled:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Bool
iAMDatabaseAuthenticationEnabled} -> Maybe Bool
iAMDatabaseAuthenticationEnabled) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Bool
a -> DBClusterSnapshot
s {$sel:iAMDatabaseAuthenticationEnabled:DBClusterSnapshot' :: Maybe Bool
iAMDatabaseAuthenticationEnabled = Maybe Bool
a} :: DBClusterSnapshot)
dbClusterSnapshot_dbClusterSnapshotArn :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_dbClusterSnapshotArn :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_dbClusterSnapshotArn = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
dbClusterSnapshotArn :: Maybe Text
$sel:dbClusterSnapshotArn:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
dbClusterSnapshotArn} -> Maybe Text
dbClusterSnapshotArn) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:dbClusterSnapshotArn:DBClusterSnapshot' :: Maybe Text
dbClusterSnapshotArn = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_vpcId :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_vpcId :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_vpcId = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:vpcId:DBClusterSnapshot' :: Maybe Text
vpcId = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_tagList :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe [Tag])
dbClusterSnapshot_tagList :: (Maybe [Tag] -> f (Maybe [Tag]))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_tagList = (DBClusterSnapshot -> Maybe [Tag])
-> (DBClusterSnapshot -> Maybe [Tag] -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe [Tag]
tagList :: Maybe [Tag]
$sel:tagList:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe [Tag]
tagList} -> Maybe [Tag]
tagList) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe [Tag]
a -> DBClusterSnapshot
s {$sel:tagList:DBClusterSnapshot' :: Maybe [Tag]
tagList = Maybe [Tag]
a} :: DBClusterSnapshot) ((Maybe [Tag] -> f (Maybe [Tag]))
-> DBClusterSnapshot -> f DBClusterSnapshot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> DBClusterSnapshot
-> f DBClusterSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
dbClusterSnapshot_dbClusterSnapshotIdentifier :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_dbClusterSnapshotIdentifier :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_dbClusterSnapshotIdentifier = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
dbClusterSnapshotIdentifier} -> Maybe Text
dbClusterSnapshotIdentifier) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:dbClusterSnapshotIdentifier:DBClusterSnapshot' :: Maybe Text
dbClusterSnapshotIdentifier = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_engine :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_engine :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_engine = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
engine :: Maybe Text
$sel:engine:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
engine} -> Maybe Text
engine) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:engine:DBClusterSnapshot' :: Maybe Text
engine = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_licenseModel :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_licenseModel :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_licenseModel = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:licenseModel:DBClusterSnapshot' :: Maybe Text
licenseModel = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_availabilityZones :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe [Prelude.Text])
dbClusterSnapshot_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_availabilityZones = (DBClusterSnapshot -> Maybe [Text])
-> (DBClusterSnapshot -> Maybe [Text] -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe [Text]
a -> DBClusterSnapshot
s {$sel:availabilityZones:DBClusterSnapshot' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: DBClusterSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
-> DBClusterSnapshot -> f DBClusterSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DBClusterSnapshot
-> f DBClusterSnapshot
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
dbClusterSnapshot_snapshotType :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_snapshotType :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_snapshotType = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
snapshotType :: Maybe Text
$sel:snapshotType:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
snapshotType} -> Maybe Text
snapshotType) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:snapshotType:DBClusterSnapshot' :: Maybe Text
snapshotType = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_kmsKeyId :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_kmsKeyId = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:kmsKeyId:DBClusterSnapshot' :: Maybe Text
kmsKeyId = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_engineMode :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_engineMode :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_engineMode = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
engineMode :: Maybe Text
$sel:engineMode:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
engineMode} -> Maybe Text
engineMode) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:engineMode:DBClusterSnapshot' :: Maybe Text
engineMode = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_snapshotCreateTime :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.UTCTime)
dbClusterSnapshot_snapshotCreateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_snapshotCreateTime = (DBClusterSnapshot -> Maybe ISO8601)
-> (DBClusterSnapshot -> Maybe ISO8601 -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe ISO8601
snapshotCreateTime :: Maybe ISO8601
$sel:snapshotCreateTime:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe ISO8601
snapshotCreateTime} -> Maybe ISO8601
snapshotCreateTime) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe ISO8601
a -> DBClusterSnapshot
s {$sel:snapshotCreateTime:DBClusterSnapshot' :: Maybe ISO8601
snapshotCreateTime = Maybe ISO8601
a} :: DBClusterSnapshot) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> DBClusterSnapshot -> f DBClusterSnapshot)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DBClusterSnapshot
-> f DBClusterSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
dbClusterSnapshot_allocatedStorage :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Int)
dbClusterSnapshot_allocatedStorage :: (Maybe Int -> f (Maybe Int))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_allocatedStorage = (DBClusterSnapshot -> Maybe Int)
-> (DBClusterSnapshot -> Maybe Int -> DBClusterSnapshot)
-> Lens DBClusterSnapshot DBClusterSnapshot (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Int
allocatedStorage :: Maybe Int
$sel:allocatedStorage:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Int
allocatedStorage} -> Maybe Int
allocatedStorage) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Int
a -> DBClusterSnapshot
s {$sel:allocatedStorage:DBClusterSnapshot' :: Maybe Int
allocatedStorage = Maybe Int
a} :: DBClusterSnapshot)
dbClusterSnapshot_sourceDBClusterSnapshotArn :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Text)
dbClusterSnapshot_sourceDBClusterSnapshotArn :: (Maybe Text -> f (Maybe Text))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_sourceDBClusterSnapshotArn = (DBClusterSnapshot -> Maybe Text)
-> (DBClusterSnapshot -> Maybe Text -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Text
sourceDBClusterSnapshotArn :: Maybe Text
$sel:sourceDBClusterSnapshotArn:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Text
sourceDBClusterSnapshotArn} -> Maybe Text
sourceDBClusterSnapshotArn) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Text
a -> DBClusterSnapshot
s {$sel:sourceDBClusterSnapshotArn:DBClusterSnapshot' :: Maybe Text
sourceDBClusterSnapshotArn = Maybe Text
a} :: DBClusterSnapshot)
dbClusterSnapshot_clusterCreateTime :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.UTCTime)
dbClusterSnapshot_clusterCreateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_clusterCreateTime = (DBClusterSnapshot -> Maybe ISO8601)
-> (DBClusterSnapshot -> Maybe ISO8601 -> DBClusterSnapshot)
-> Lens
DBClusterSnapshot DBClusterSnapshot (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe ISO8601
clusterCreateTime :: Maybe ISO8601
$sel:clusterCreateTime:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe ISO8601
clusterCreateTime} -> Maybe ISO8601
clusterCreateTime) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe ISO8601
a -> DBClusterSnapshot
s {$sel:clusterCreateTime:DBClusterSnapshot' :: Maybe ISO8601
clusterCreateTime = Maybe ISO8601
a} :: DBClusterSnapshot) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> DBClusterSnapshot -> f DBClusterSnapshot)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DBClusterSnapshot
-> f DBClusterSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
dbClusterSnapshot_percentProgress :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Int)
dbClusterSnapshot_percentProgress :: (Maybe Int -> f (Maybe Int))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_percentProgress = (DBClusterSnapshot -> Maybe Int)
-> (DBClusterSnapshot -> Maybe Int -> DBClusterSnapshot)
-> Lens DBClusterSnapshot DBClusterSnapshot (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Int
percentProgress :: Maybe Int
$sel:percentProgress:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Int
percentProgress} -> Maybe Int
percentProgress) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Int
a -> DBClusterSnapshot
s {$sel:percentProgress:DBClusterSnapshot' :: Maybe Int
percentProgress = Maybe Int
a} :: DBClusterSnapshot)
dbClusterSnapshot_port :: Lens.Lens' DBClusterSnapshot (Prelude.Maybe Prelude.Int)
dbClusterSnapshot_port :: (Maybe Int -> f (Maybe Int))
-> DBClusterSnapshot -> f DBClusterSnapshot
dbClusterSnapshot_port = (DBClusterSnapshot -> Maybe Int)
-> (DBClusterSnapshot -> Maybe Int -> DBClusterSnapshot)
-> Lens DBClusterSnapshot DBClusterSnapshot (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshot' {Maybe Int
port :: Maybe Int
$sel:port:DBClusterSnapshot' :: DBClusterSnapshot -> Maybe Int
port} -> Maybe Int
port) (\s :: DBClusterSnapshot
s@DBClusterSnapshot' {} Maybe Int
a -> DBClusterSnapshot
s {$sel:port:DBClusterSnapshot' :: Maybe Int
port = Maybe Int
a} :: DBClusterSnapshot)
instance Core.FromXML DBClusterSnapshot where
parseXML :: [Node] -> Either String DBClusterSnapshot
parseXML [Node]
x =
Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot
DBClusterSnapshot'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EngineVersion")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StorageEncrypted")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterIdentifier")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MasterUsername")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IAMDatabaseAuthenticationEnabled")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterSnapshotArn")
Either
String
(Maybe Text
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"VpcId")
Either
String
(Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe [Tag])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TagList" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Tag]))
-> Either String (Maybe [Tag])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Tag])
-> [Node] -> Either String (Maybe [Tag])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Tag]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"Tag")
)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterSnapshotIdentifier")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Engine")
Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LicenseModel")
Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AvailabilityZones"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"AvailabilityZone")
)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SnapshotType")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"KmsKeyId")
Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EngineMode")
Either
String
(Maybe ISO8601
-> Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SnapshotCreateTime")
Either
String
(Maybe Int
-> Maybe Text
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> DBClusterSnapshot)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe ISO8601 -> Maybe Int -> Maybe Int -> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AllocatedStorage")
Either
String
(Maybe Text
-> Maybe ISO8601 -> Maybe Int -> Maybe Int -> DBClusterSnapshot)
-> Either String (Maybe Text)
-> Either
String
(Maybe ISO8601 -> Maybe Int -> Maybe Int -> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SourceDBClusterSnapshotArn")
Either
String
(Maybe ISO8601 -> Maybe Int -> Maybe Int -> DBClusterSnapshot)
-> Either String (Maybe ISO8601)
-> Either String (Maybe Int -> Maybe Int -> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ClusterCreateTime")
Either String (Maybe Int -> Maybe Int -> DBClusterSnapshot)
-> Either String (Maybe Int)
-> Either String (Maybe Int -> DBClusterSnapshot)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PercentProgress")
Either String (Maybe Int -> DBClusterSnapshot)
-> Either String (Maybe Int) -> Either String DBClusterSnapshot
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Port")
instance Prelude.Hashable DBClusterSnapshot
instance Prelude.NFData DBClusterSnapshot