{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.RDS.DescribeDBInstanceAutomatedBackups
(
DescribeDBInstanceAutomatedBackups (..),
newDescribeDBInstanceAutomatedBackups,
describeDBInstanceAutomatedBackups_filters,
describeDBInstanceAutomatedBackups_dbInstanceIdentifier,
describeDBInstanceAutomatedBackups_marker,
describeDBInstanceAutomatedBackups_maxRecords,
describeDBInstanceAutomatedBackups_dbiResourceId,
describeDBInstanceAutomatedBackups_dbInstanceAutomatedBackupsArn,
DescribeDBInstanceAutomatedBackupsResponse (..),
newDescribeDBInstanceAutomatedBackupsResponse,
describeDBInstanceAutomatedBackupsResponse_dbInstanceAutomatedBackups,
describeDBInstanceAutomatedBackupsResponse_marker,
describeDBInstanceAutomatedBackupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeDBInstanceAutomatedBackups = DescribeDBInstanceAutomatedBackups'
{
DescribeDBInstanceAutomatedBackups -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeDBInstanceAutomatedBackups -> Maybe Text
dbInstanceIdentifier :: Prelude.Maybe Prelude.Text,
DescribeDBInstanceAutomatedBackups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBInstanceAutomatedBackups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeDBInstanceAutomatedBackups -> Maybe Text
dbiResourceId :: Prelude.Maybe Prelude.Text,
DescribeDBInstanceAutomatedBackups -> Maybe Text
dbInstanceAutomatedBackupsArn :: Prelude.Maybe Prelude.Text
}
deriving (DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool
(DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool)
-> (DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool)
-> Eq DescribeDBInstanceAutomatedBackups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool
$c/= :: DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool
== :: DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool
$c== :: DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups -> Bool
Prelude.Eq, ReadPrec [DescribeDBInstanceAutomatedBackups]
ReadPrec DescribeDBInstanceAutomatedBackups
Int -> ReadS DescribeDBInstanceAutomatedBackups
ReadS [DescribeDBInstanceAutomatedBackups]
(Int -> ReadS DescribeDBInstanceAutomatedBackups)
-> ReadS [DescribeDBInstanceAutomatedBackups]
-> ReadPrec DescribeDBInstanceAutomatedBackups
-> ReadPrec [DescribeDBInstanceAutomatedBackups]
-> Read DescribeDBInstanceAutomatedBackups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBInstanceAutomatedBackups]
$creadListPrec :: ReadPrec [DescribeDBInstanceAutomatedBackups]
readPrec :: ReadPrec DescribeDBInstanceAutomatedBackups
$creadPrec :: ReadPrec DescribeDBInstanceAutomatedBackups
readList :: ReadS [DescribeDBInstanceAutomatedBackups]
$creadList :: ReadS [DescribeDBInstanceAutomatedBackups]
readsPrec :: Int -> ReadS DescribeDBInstanceAutomatedBackups
$creadsPrec :: Int -> ReadS DescribeDBInstanceAutomatedBackups
Prelude.Read, Int -> DescribeDBInstanceAutomatedBackups -> ShowS
[DescribeDBInstanceAutomatedBackups] -> ShowS
DescribeDBInstanceAutomatedBackups -> String
(Int -> DescribeDBInstanceAutomatedBackups -> ShowS)
-> (DescribeDBInstanceAutomatedBackups -> String)
-> ([DescribeDBInstanceAutomatedBackups] -> ShowS)
-> Show DescribeDBInstanceAutomatedBackups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBInstanceAutomatedBackups] -> ShowS
$cshowList :: [DescribeDBInstanceAutomatedBackups] -> ShowS
show :: DescribeDBInstanceAutomatedBackups -> String
$cshow :: DescribeDBInstanceAutomatedBackups -> String
showsPrec :: Int -> DescribeDBInstanceAutomatedBackups -> ShowS
$cshowsPrec :: Int -> DescribeDBInstanceAutomatedBackups -> ShowS
Prelude.Show, (forall x.
DescribeDBInstanceAutomatedBackups
-> Rep DescribeDBInstanceAutomatedBackups x)
-> (forall x.
Rep DescribeDBInstanceAutomatedBackups x
-> DescribeDBInstanceAutomatedBackups)
-> Generic DescribeDBInstanceAutomatedBackups
forall x.
Rep DescribeDBInstanceAutomatedBackups x
-> DescribeDBInstanceAutomatedBackups
forall x.
DescribeDBInstanceAutomatedBackups
-> Rep DescribeDBInstanceAutomatedBackups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBInstanceAutomatedBackups x
-> DescribeDBInstanceAutomatedBackups
$cfrom :: forall x.
DescribeDBInstanceAutomatedBackups
-> Rep DescribeDBInstanceAutomatedBackups x
Prelude.Generic)
newDescribeDBInstanceAutomatedBackups ::
DescribeDBInstanceAutomatedBackups
newDescribeDBInstanceAutomatedBackups :: DescribeDBInstanceAutomatedBackups
newDescribeDBInstanceAutomatedBackups =
DescribeDBInstanceAutomatedBackups' :: Maybe [Filter]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups'
{ $sel:filters:DescribeDBInstanceAutomatedBackups' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:dbInstanceIdentifier:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbInstanceIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBInstanceAutomatedBackups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeDBInstanceAutomatedBackups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:dbiResourceId:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbiResourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbInstanceAutomatedBackupsArn:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbInstanceAutomatedBackupsArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeDBInstanceAutomatedBackups_filters :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe [Filter])
describeDBInstanceAutomatedBackups_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_filters = (DescribeDBInstanceAutomatedBackups -> Maybe [Filter])
-> (DescribeDBInstanceAutomatedBackups
-> Maybe [Filter] -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe [Filter]
a -> DescribeDBInstanceAutomatedBackups
s {$sel:filters:DescribeDBInstanceAutomatedBackups' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBInstanceAutomatedBackups) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBInstanceAutomatedBackups_dbInstanceIdentifier :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe Prelude.Text)
describeDBInstanceAutomatedBackups_dbInstanceIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_dbInstanceIdentifier = (DescribeDBInstanceAutomatedBackups -> Maybe Text)
-> (DescribeDBInstanceAutomatedBackups
-> Maybe Text -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:dbInstanceIdentifier:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
dbInstanceIdentifier} -> Maybe Text
dbInstanceIdentifier) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe Text
a -> DescribeDBInstanceAutomatedBackups
s {$sel:dbInstanceIdentifier:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbInstanceIdentifier = Maybe Text
a} :: DescribeDBInstanceAutomatedBackups)
describeDBInstanceAutomatedBackups_marker :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe Prelude.Text)
describeDBInstanceAutomatedBackups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_marker = (DescribeDBInstanceAutomatedBackups -> Maybe Text)
-> (DescribeDBInstanceAutomatedBackups
-> Maybe Text -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe Text
a -> DescribeDBInstanceAutomatedBackups
s {$sel:marker:DescribeDBInstanceAutomatedBackups' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBInstanceAutomatedBackups)
describeDBInstanceAutomatedBackups_maxRecords :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe Prelude.Int)
describeDBInstanceAutomatedBackups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_maxRecords = (DescribeDBInstanceAutomatedBackups -> Maybe Int)
-> (DescribeDBInstanceAutomatedBackups
-> Maybe Int -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe Int
a -> DescribeDBInstanceAutomatedBackups
s {$sel:maxRecords:DescribeDBInstanceAutomatedBackups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeDBInstanceAutomatedBackups)
describeDBInstanceAutomatedBackups_dbiResourceId :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe Prelude.Text)
describeDBInstanceAutomatedBackups_dbiResourceId :: (Maybe Text -> f (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_dbiResourceId = (DescribeDBInstanceAutomatedBackups -> Maybe Text)
-> (DescribeDBInstanceAutomatedBackups
-> Maybe Text -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe Text
dbiResourceId :: Maybe Text
$sel:dbiResourceId:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
dbiResourceId} -> Maybe Text
dbiResourceId) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe Text
a -> DescribeDBInstanceAutomatedBackups
s {$sel:dbiResourceId:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbiResourceId = Maybe Text
a} :: DescribeDBInstanceAutomatedBackups)
describeDBInstanceAutomatedBackups_dbInstanceAutomatedBackupsArn :: Lens.Lens' DescribeDBInstanceAutomatedBackups (Prelude.Maybe Prelude.Text)
describeDBInstanceAutomatedBackups_dbInstanceAutomatedBackupsArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> f DescribeDBInstanceAutomatedBackups
describeDBInstanceAutomatedBackups_dbInstanceAutomatedBackupsArn = (DescribeDBInstanceAutomatedBackups -> Maybe Text)
-> (DescribeDBInstanceAutomatedBackups
-> Maybe Text -> DescribeDBInstanceAutomatedBackups)
-> Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackups' {Maybe Text
dbInstanceAutomatedBackupsArn :: Maybe Text
$sel:dbInstanceAutomatedBackupsArn:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
dbInstanceAutomatedBackupsArn} -> Maybe Text
dbInstanceAutomatedBackupsArn) (\s :: DescribeDBInstanceAutomatedBackups
s@DescribeDBInstanceAutomatedBackups' {} Maybe Text
a -> DescribeDBInstanceAutomatedBackups
s {$sel:dbInstanceAutomatedBackupsArn:DescribeDBInstanceAutomatedBackups' :: Maybe Text
dbInstanceAutomatedBackupsArn = Maybe Text
a} :: DescribeDBInstanceAutomatedBackups)
instance
Core.AWSPager
DescribeDBInstanceAutomatedBackups
where
page :: DescribeDBInstanceAutomatedBackups
-> AWSResponse DescribeDBInstanceAutomatedBackups
-> Maybe DescribeDBInstanceAutomatedBackups
page DescribeDBInstanceAutomatedBackups
rq AWSResponse DescribeDBInstanceAutomatedBackups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackupsResponse
rs
DescribeDBInstanceAutomatedBackupsResponse
-> Getting
(First Text) DescribeDBInstanceAutomatedBackupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const (First Text) DescribeDBInstanceAutomatedBackupsResponse
Lens' DescribeDBInstanceAutomatedBackupsResponse (Maybe Text)
describeDBInstanceAutomatedBackupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const (First Text) DescribeDBInstanceAutomatedBackupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeDBInstanceAutomatedBackupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBInstanceAutomatedBackups
forall a. Maybe a
Prelude.Nothing
| Maybe [DBInstanceAutomatedBackup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackupsResponse
rs
DescribeDBInstanceAutomatedBackupsResponse
-> Getting
(First [DBInstanceAutomatedBackup])
DescribeDBInstanceAutomatedBackupsResponse
[DBInstanceAutomatedBackup]
-> Maybe [DBInstanceAutomatedBackup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup]))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const
(First [DBInstanceAutomatedBackup])
DescribeDBInstanceAutomatedBackupsResponse
Lens'
DescribeDBInstanceAutomatedBackupsResponse
(Maybe [DBInstanceAutomatedBackup])
describeDBInstanceAutomatedBackupsResponse_dbInstanceAutomatedBackups
((Maybe [DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup]))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const
(First [DBInstanceAutomatedBackup])
DescribeDBInstanceAutomatedBackupsResponse)
-> (([DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup]) [DBInstanceAutomatedBackup])
-> Maybe [DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup]))
-> Getting
(First [DBInstanceAutomatedBackup])
DescribeDBInstanceAutomatedBackupsResponse
[DBInstanceAutomatedBackup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup]) [DBInstanceAutomatedBackup])
-> Maybe [DBInstanceAutomatedBackup]
-> Const
(First [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBInstanceAutomatedBackups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDBInstanceAutomatedBackups
-> Maybe DescribeDBInstanceAutomatedBackups
forall a. a -> Maybe a
Prelude.Just (DescribeDBInstanceAutomatedBackups
-> Maybe DescribeDBInstanceAutomatedBackups)
-> DescribeDBInstanceAutomatedBackups
-> Maybe DescribeDBInstanceAutomatedBackups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDBInstanceAutomatedBackups
rq
DescribeDBInstanceAutomatedBackups
-> (DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups)
-> DescribeDBInstanceAutomatedBackups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> Identity DescribeDBInstanceAutomatedBackups
Lens
DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackups
(Maybe Text)
(Maybe Text)
describeDBInstanceAutomatedBackups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeDBInstanceAutomatedBackups
-> Identity DescribeDBInstanceAutomatedBackups)
-> Maybe Text
-> DescribeDBInstanceAutomatedBackups
-> DescribeDBInstanceAutomatedBackups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBInstanceAutomatedBackups
DescribeDBInstanceAutomatedBackupsResponse
rs
DescribeDBInstanceAutomatedBackupsResponse
-> Getting
(First Text) DescribeDBInstanceAutomatedBackupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const (First Text) DescribeDBInstanceAutomatedBackupsResponse
Lens' DescribeDBInstanceAutomatedBackupsResponse (Maybe Text)
describeDBInstanceAutomatedBackupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBInstanceAutomatedBackupsResponse
-> Const (First Text) DescribeDBInstanceAutomatedBackupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeDBInstanceAutomatedBackupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribeDBInstanceAutomatedBackups
where
type
AWSResponse DescribeDBInstanceAutomatedBackups =
DescribeDBInstanceAutomatedBackupsResponse
request :: DescribeDBInstanceAutomatedBackups
-> Request DescribeDBInstanceAutomatedBackups
request = Service
-> DescribeDBInstanceAutomatedBackups
-> Request DescribeDBInstanceAutomatedBackups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDBInstanceAutomatedBackups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeDBInstanceAutomatedBackups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeDBInstanceAutomatedBackups))
-> Logger
-> Service
-> Proxy DescribeDBInstanceAutomatedBackups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeDBInstanceAutomatedBackups)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeDBInstanceAutomatedBackupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [DBInstanceAutomatedBackup]
-> Maybe Text -> Int -> DescribeDBInstanceAutomatedBackupsResponse
DescribeDBInstanceAutomatedBackupsResponse'
(Maybe [DBInstanceAutomatedBackup]
-> Maybe Text -> Int -> DescribeDBInstanceAutomatedBackupsResponse)
-> Either String (Maybe [DBInstanceAutomatedBackup])
-> Either
String
(Maybe Text -> Int -> DescribeDBInstanceAutomatedBackupsResponse)
forall (f :: * -> *) a b. Functor 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
"DBInstanceAutomatedBackups"
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 [DBInstanceAutomatedBackup]))
-> Either String (Maybe [DBInstanceAutomatedBackup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBInstanceAutomatedBackup])
-> [Node] -> Either String (Maybe [DBInstanceAutomatedBackup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
(Text -> [Node] -> Either String [DBInstanceAutomatedBackup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"DBInstanceAutomatedBackup")
)
Either
String
(Maybe Text -> Int -> DescribeDBInstanceAutomatedBackupsResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> DescribeDBInstanceAutomatedBackupsResponse)
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
"Marker")
Either String (Int -> DescribeDBInstanceAutomatedBackupsResponse)
-> Either String Int
-> Either String DescribeDBInstanceAutomatedBackupsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DescribeDBInstanceAutomatedBackups
instance
Prelude.NFData
DescribeDBInstanceAutomatedBackups
instance
Core.ToHeaders
DescribeDBInstanceAutomatedBackups
where
toHeaders :: DescribeDBInstanceAutomatedBackups -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeDBInstanceAutomatedBackups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
DescribeDBInstanceAutomatedBackups
where
toPath :: DescribeDBInstanceAutomatedBackups -> ByteString
toPath = ByteString -> DescribeDBInstanceAutomatedBackups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeDBInstanceAutomatedBackups
where
toQuery :: DescribeDBInstanceAutomatedBackups -> QueryString
toQuery DescribeDBInstanceAutomatedBackups' {Maybe Int
Maybe [Filter]
Maybe Text
dbInstanceAutomatedBackupsArn :: Maybe Text
dbiResourceId :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
dbInstanceIdentifier :: Maybe Text
filters :: Maybe [Filter]
$sel:dbInstanceAutomatedBackupsArn:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
$sel:dbiResourceId:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
$sel:maxRecords:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Int
$sel:marker:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
$sel:dbInstanceIdentifier:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe Text
$sel:filters:DescribeDBInstanceAutomatedBackups' :: DescribeDBInstanceAutomatedBackups -> Maybe [Filter]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeDBInstanceAutomatedBackups" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"Filters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"DBInstanceIdentifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceIdentifier,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
ByteString
"DbiResourceId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbiResourceId,
ByteString
"DBInstanceAutomatedBackupsArn"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceAutomatedBackupsArn
]
data DescribeDBInstanceAutomatedBackupsResponse = DescribeDBInstanceAutomatedBackupsResponse'
{
DescribeDBInstanceAutomatedBackupsResponse
-> Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups :: Prelude.Maybe [DBInstanceAutomatedBackup],
DescribeDBInstanceAutomatedBackupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBInstanceAutomatedBackupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool
(DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool)
-> (DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool)
-> Eq DescribeDBInstanceAutomatedBackupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool
$c/= :: DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool
== :: DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool
$c== :: DescribeDBInstanceAutomatedBackupsResponse
-> DescribeDBInstanceAutomatedBackupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBInstanceAutomatedBackupsResponse]
ReadPrec DescribeDBInstanceAutomatedBackupsResponse
Int -> ReadS DescribeDBInstanceAutomatedBackupsResponse
ReadS [DescribeDBInstanceAutomatedBackupsResponse]
(Int -> ReadS DescribeDBInstanceAutomatedBackupsResponse)
-> ReadS [DescribeDBInstanceAutomatedBackupsResponse]
-> ReadPrec DescribeDBInstanceAutomatedBackupsResponse
-> ReadPrec [DescribeDBInstanceAutomatedBackupsResponse]
-> Read DescribeDBInstanceAutomatedBackupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBInstanceAutomatedBackupsResponse]
$creadListPrec :: ReadPrec [DescribeDBInstanceAutomatedBackupsResponse]
readPrec :: ReadPrec DescribeDBInstanceAutomatedBackupsResponse
$creadPrec :: ReadPrec DescribeDBInstanceAutomatedBackupsResponse
readList :: ReadS [DescribeDBInstanceAutomatedBackupsResponse]
$creadList :: ReadS [DescribeDBInstanceAutomatedBackupsResponse]
readsPrec :: Int -> ReadS DescribeDBInstanceAutomatedBackupsResponse
$creadsPrec :: Int -> ReadS DescribeDBInstanceAutomatedBackupsResponse
Prelude.Read, Int -> DescribeDBInstanceAutomatedBackupsResponse -> ShowS
[DescribeDBInstanceAutomatedBackupsResponse] -> ShowS
DescribeDBInstanceAutomatedBackupsResponse -> String
(Int -> DescribeDBInstanceAutomatedBackupsResponse -> ShowS)
-> (DescribeDBInstanceAutomatedBackupsResponse -> String)
-> ([DescribeDBInstanceAutomatedBackupsResponse] -> ShowS)
-> Show DescribeDBInstanceAutomatedBackupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBInstanceAutomatedBackupsResponse] -> ShowS
$cshowList :: [DescribeDBInstanceAutomatedBackupsResponse] -> ShowS
show :: DescribeDBInstanceAutomatedBackupsResponse -> String
$cshow :: DescribeDBInstanceAutomatedBackupsResponse -> String
showsPrec :: Int -> DescribeDBInstanceAutomatedBackupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBInstanceAutomatedBackupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeDBInstanceAutomatedBackupsResponse
-> Rep DescribeDBInstanceAutomatedBackupsResponse x)
-> (forall x.
Rep DescribeDBInstanceAutomatedBackupsResponse x
-> DescribeDBInstanceAutomatedBackupsResponse)
-> Generic DescribeDBInstanceAutomatedBackupsResponse
forall x.
Rep DescribeDBInstanceAutomatedBackupsResponse x
-> DescribeDBInstanceAutomatedBackupsResponse
forall x.
DescribeDBInstanceAutomatedBackupsResponse
-> Rep DescribeDBInstanceAutomatedBackupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBInstanceAutomatedBackupsResponse x
-> DescribeDBInstanceAutomatedBackupsResponse
$cfrom :: forall x.
DescribeDBInstanceAutomatedBackupsResponse
-> Rep DescribeDBInstanceAutomatedBackupsResponse x
Prelude.Generic)
newDescribeDBInstanceAutomatedBackupsResponse ::
Prelude.Int ->
DescribeDBInstanceAutomatedBackupsResponse
newDescribeDBInstanceAutomatedBackupsResponse :: Int -> DescribeDBInstanceAutomatedBackupsResponse
newDescribeDBInstanceAutomatedBackupsResponse
Int
pHttpStatus_ =
DescribeDBInstanceAutomatedBackupsResponse' :: Maybe [DBInstanceAutomatedBackup]
-> Maybe Text -> Int -> DescribeDBInstanceAutomatedBackupsResponse
DescribeDBInstanceAutomatedBackupsResponse'
{ $sel:dbInstanceAutomatedBackups:DescribeDBInstanceAutomatedBackupsResponse' :: Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups =
Maybe [DBInstanceAutomatedBackup]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBInstanceAutomatedBackupsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDBInstanceAutomatedBackupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDBInstanceAutomatedBackupsResponse_dbInstanceAutomatedBackups :: Lens.Lens' DescribeDBInstanceAutomatedBackupsResponse (Prelude.Maybe [DBInstanceAutomatedBackup])
describeDBInstanceAutomatedBackupsResponse_dbInstanceAutomatedBackups :: (Maybe [DBInstanceAutomatedBackup]
-> f (Maybe [DBInstanceAutomatedBackup]))
-> DescribeDBInstanceAutomatedBackupsResponse
-> f DescribeDBInstanceAutomatedBackupsResponse
describeDBInstanceAutomatedBackupsResponse_dbInstanceAutomatedBackups = (DescribeDBInstanceAutomatedBackupsResponse
-> Maybe [DBInstanceAutomatedBackup])
-> (DescribeDBInstanceAutomatedBackupsResponse
-> Maybe [DBInstanceAutomatedBackup]
-> DescribeDBInstanceAutomatedBackupsResponse)
-> Lens'
DescribeDBInstanceAutomatedBackupsResponse
(Maybe [DBInstanceAutomatedBackup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackupsResponse' {Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups :: Maybe [DBInstanceAutomatedBackup]
$sel:dbInstanceAutomatedBackups:DescribeDBInstanceAutomatedBackupsResponse' :: DescribeDBInstanceAutomatedBackupsResponse
-> Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups} -> Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups) (\s :: DescribeDBInstanceAutomatedBackupsResponse
s@DescribeDBInstanceAutomatedBackupsResponse' {} Maybe [DBInstanceAutomatedBackup]
a -> DescribeDBInstanceAutomatedBackupsResponse
s {$sel:dbInstanceAutomatedBackups:DescribeDBInstanceAutomatedBackupsResponse' :: Maybe [DBInstanceAutomatedBackup]
dbInstanceAutomatedBackups = Maybe [DBInstanceAutomatedBackup]
a} :: DescribeDBInstanceAutomatedBackupsResponse) ((Maybe [DBInstanceAutomatedBackup]
-> f (Maybe [DBInstanceAutomatedBackup]))
-> DescribeDBInstanceAutomatedBackupsResponse
-> f DescribeDBInstanceAutomatedBackupsResponse)
-> ((Maybe [DBInstanceAutomatedBackup]
-> f (Maybe [DBInstanceAutomatedBackup]))
-> Maybe [DBInstanceAutomatedBackup]
-> f (Maybe [DBInstanceAutomatedBackup]))
-> (Maybe [DBInstanceAutomatedBackup]
-> f (Maybe [DBInstanceAutomatedBackup]))
-> DescribeDBInstanceAutomatedBackupsResponse
-> f DescribeDBInstanceAutomatedBackupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
-> Iso
(Maybe [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup])
(Maybe [DBInstanceAutomatedBackup])
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
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
[DBInstanceAutomatedBackup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBInstanceAutomatedBackupsResponse_marker :: Lens.Lens' DescribeDBInstanceAutomatedBackupsResponse (Prelude.Maybe Prelude.Text)
describeDBInstanceAutomatedBackupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBInstanceAutomatedBackupsResponse
-> f DescribeDBInstanceAutomatedBackupsResponse
describeDBInstanceAutomatedBackupsResponse_marker = (DescribeDBInstanceAutomatedBackupsResponse -> Maybe Text)
-> (DescribeDBInstanceAutomatedBackupsResponse
-> Maybe Text -> DescribeDBInstanceAutomatedBackupsResponse)
-> Lens' DescribeDBInstanceAutomatedBackupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBInstanceAutomatedBackupsResponse' :: DescribeDBInstanceAutomatedBackupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBInstanceAutomatedBackupsResponse
s@DescribeDBInstanceAutomatedBackupsResponse' {} Maybe Text
a -> DescribeDBInstanceAutomatedBackupsResponse
s {$sel:marker:DescribeDBInstanceAutomatedBackupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBInstanceAutomatedBackupsResponse)
describeDBInstanceAutomatedBackupsResponse_httpStatus :: Lens.Lens' DescribeDBInstanceAutomatedBackupsResponse Prelude.Int
describeDBInstanceAutomatedBackupsResponse_httpStatus :: (Int -> f Int)
-> DescribeDBInstanceAutomatedBackupsResponse
-> f DescribeDBInstanceAutomatedBackupsResponse
describeDBInstanceAutomatedBackupsResponse_httpStatus = (DescribeDBInstanceAutomatedBackupsResponse -> Int)
-> (DescribeDBInstanceAutomatedBackupsResponse
-> Int -> DescribeDBInstanceAutomatedBackupsResponse)
-> Lens
DescribeDBInstanceAutomatedBackupsResponse
DescribeDBInstanceAutomatedBackupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBInstanceAutomatedBackupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDBInstanceAutomatedBackupsResponse' :: DescribeDBInstanceAutomatedBackupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDBInstanceAutomatedBackupsResponse
s@DescribeDBInstanceAutomatedBackupsResponse' {} Int
a -> DescribeDBInstanceAutomatedBackupsResponse
s {$sel:httpStatus:DescribeDBInstanceAutomatedBackupsResponse' :: Int
httpStatus = Int
a} :: DescribeDBInstanceAutomatedBackupsResponse)
instance
Prelude.NFData
DescribeDBInstanceAutomatedBackupsResponse