{-# 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.Backup.ListRecoveryPointsByResource
(
ListRecoveryPointsByResource (..),
newListRecoveryPointsByResource,
listRecoveryPointsByResource_nextToken,
listRecoveryPointsByResource_maxResults,
listRecoveryPointsByResource_resourceArn,
ListRecoveryPointsByResourceResponse (..),
newListRecoveryPointsByResourceResponse,
listRecoveryPointsByResourceResponse_recoveryPoints,
listRecoveryPointsByResourceResponse_nextToken,
listRecoveryPointsByResourceResponse_httpStatus,
)
where
import Amazonka.Backup.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListRecoveryPointsByResource = ListRecoveryPointsByResource'
{
ListRecoveryPointsByResource -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRecoveryPointsByResource -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListRecoveryPointsByResource -> Text
resourceArn :: Prelude.Text
}
deriving (ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool
(ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool)
-> (ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool)
-> Eq ListRecoveryPointsByResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool
$c/= :: ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool
== :: ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool
$c== :: ListRecoveryPointsByResource
-> ListRecoveryPointsByResource -> Bool
Prelude.Eq, ReadPrec [ListRecoveryPointsByResource]
ReadPrec ListRecoveryPointsByResource
Int -> ReadS ListRecoveryPointsByResource
ReadS [ListRecoveryPointsByResource]
(Int -> ReadS ListRecoveryPointsByResource)
-> ReadS [ListRecoveryPointsByResource]
-> ReadPrec ListRecoveryPointsByResource
-> ReadPrec [ListRecoveryPointsByResource]
-> Read ListRecoveryPointsByResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRecoveryPointsByResource]
$creadListPrec :: ReadPrec [ListRecoveryPointsByResource]
readPrec :: ReadPrec ListRecoveryPointsByResource
$creadPrec :: ReadPrec ListRecoveryPointsByResource
readList :: ReadS [ListRecoveryPointsByResource]
$creadList :: ReadS [ListRecoveryPointsByResource]
readsPrec :: Int -> ReadS ListRecoveryPointsByResource
$creadsPrec :: Int -> ReadS ListRecoveryPointsByResource
Prelude.Read, Int -> ListRecoveryPointsByResource -> ShowS
[ListRecoveryPointsByResource] -> ShowS
ListRecoveryPointsByResource -> String
(Int -> ListRecoveryPointsByResource -> ShowS)
-> (ListRecoveryPointsByResource -> String)
-> ([ListRecoveryPointsByResource] -> ShowS)
-> Show ListRecoveryPointsByResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRecoveryPointsByResource] -> ShowS
$cshowList :: [ListRecoveryPointsByResource] -> ShowS
show :: ListRecoveryPointsByResource -> String
$cshow :: ListRecoveryPointsByResource -> String
showsPrec :: Int -> ListRecoveryPointsByResource -> ShowS
$cshowsPrec :: Int -> ListRecoveryPointsByResource -> ShowS
Prelude.Show, (forall x.
ListRecoveryPointsByResource -> Rep ListRecoveryPointsByResource x)
-> (forall x.
Rep ListRecoveryPointsByResource x -> ListRecoveryPointsByResource)
-> Generic ListRecoveryPointsByResource
forall x.
Rep ListRecoveryPointsByResource x -> ListRecoveryPointsByResource
forall x.
ListRecoveryPointsByResource -> Rep ListRecoveryPointsByResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRecoveryPointsByResource x -> ListRecoveryPointsByResource
$cfrom :: forall x.
ListRecoveryPointsByResource -> Rep ListRecoveryPointsByResource x
Prelude.Generic)
newListRecoveryPointsByResource ::
Prelude.Text ->
ListRecoveryPointsByResource
newListRecoveryPointsByResource :: Text -> ListRecoveryPointsByResource
newListRecoveryPointsByResource Text
pResourceArn_ =
ListRecoveryPointsByResource' :: Maybe Text -> Maybe Natural -> Text -> ListRecoveryPointsByResource
ListRecoveryPointsByResource'
{ $sel:nextToken:ListRecoveryPointsByResource' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRecoveryPointsByResource' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:ListRecoveryPointsByResource' :: Text
resourceArn = Text
pResourceArn_
}
listRecoveryPointsByResource_nextToken :: Lens.Lens' ListRecoveryPointsByResource (Prelude.Maybe Prelude.Text)
listRecoveryPointsByResource_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRecoveryPointsByResource -> f ListRecoveryPointsByResource
listRecoveryPointsByResource_nextToken = (ListRecoveryPointsByResource -> Maybe Text)
-> (ListRecoveryPointsByResource
-> Maybe Text -> ListRecoveryPointsByResource)
-> Lens
ListRecoveryPointsByResource
ListRecoveryPointsByResource
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResource' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRecoveryPointsByResource
s@ListRecoveryPointsByResource' {} Maybe Text
a -> ListRecoveryPointsByResource
s {$sel:nextToken:ListRecoveryPointsByResource' :: Maybe Text
nextToken = Maybe Text
a} :: ListRecoveryPointsByResource)
listRecoveryPointsByResource_maxResults :: Lens.Lens' ListRecoveryPointsByResource (Prelude.Maybe Prelude.Natural)
listRecoveryPointsByResource_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRecoveryPointsByResource -> f ListRecoveryPointsByResource
listRecoveryPointsByResource_maxResults = (ListRecoveryPointsByResource -> Maybe Natural)
-> (ListRecoveryPointsByResource
-> Maybe Natural -> ListRecoveryPointsByResource)
-> Lens
ListRecoveryPointsByResource
ListRecoveryPointsByResource
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResource' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRecoveryPointsByResource
s@ListRecoveryPointsByResource' {} Maybe Natural
a -> ListRecoveryPointsByResource
s {$sel:maxResults:ListRecoveryPointsByResource' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRecoveryPointsByResource)
listRecoveryPointsByResource_resourceArn :: Lens.Lens' ListRecoveryPointsByResource Prelude.Text
listRecoveryPointsByResource_resourceArn :: (Text -> f Text)
-> ListRecoveryPointsByResource -> f ListRecoveryPointsByResource
listRecoveryPointsByResource_resourceArn = (ListRecoveryPointsByResource -> Text)
-> (ListRecoveryPointsByResource
-> Text -> ListRecoveryPointsByResource)
-> Lens
ListRecoveryPointsByResource ListRecoveryPointsByResource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResource' {Text
resourceArn :: Text
$sel:resourceArn:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Text
resourceArn} -> Text
resourceArn) (\s :: ListRecoveryPointsByResource
s@ListRecoveryPointsByResource' {} Text
a -> ListRecoveryPointsByResource
s {$sel:resourceArn:ListRecoveryPointsByResource' :: Text
resourceArn = Text
a} :: ListRecoveryPointsByResource)
instance Core.AWSRequest ListRecoveryPointsByResource where
type
AWSResponse ListRecoveryPointsByResource =
ListRecoveryPointsByResourceResponse
request :: ListRecoveryPointsByResource
-> Request ListRecoveryPointsByResource
request = Service
-> ListRecoveryPointsByResource
-> Request ListRecoveryPointsByResource
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRecoveryPointsByResource
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRecoveryPointsByResource)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRecoveryPointsByResource))
-> Logger
-> Service
-> Proxy ListRecoveryPointsByResource
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRecoveryPointsByResource)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [RecoveryPointByResource]
-> Maybe Text -> Int -> ListRecoveryPointsByResourceResponse
ListRecoveryPointsByResourceResponse'
(Maybe [RecoveryPointByResource]
-> Maybe Text -> Int -> ListRecoveryPointsByResourceResponse)
-> Either String (Maybe [RecoveryPointByResource])
-> Either
String (Maybe Text -> Int -> ListRecoveryPointsByResourceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [RecoveryPointByResource]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RecoveryPoints" Either String (Maybe (Maybe [RecoveryPointByResource]))
-> Maybe [RecoveryPointByResource]
-> Either String (Maybe [RecoveryPointByResource])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RecoveryPointByResource]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListRecoveryPointsByResourceResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListRecoveryPointsByResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListRecoveryPointsByResourceResponse)
-> Either String Int
-> Either String ListRecoveryPointsByResourceResponse
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
ListRecoveryPointsByResource
instance Prelude.NFData ListRecoveryPointsByResource
instance Core.ToHeaders ListRecoveryPointsByResource where
toHeaders :: ListRecoveryPointsByResource -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRecoveryPointsByResource -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListRecoveryPointsByResource where
toPath :: ListRecoveryPointsByResource -> ByteString
toPath ListRecoveryPointsByResource' {Maybe Natural
Maybe Text
Text
resourceArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:resourceArn:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Text
$sel:maxResults:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Natural
$sel:nextToken:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/resources/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
resourceArn,
ByteString
"/recovery-points/"
]
instance Core.ToQuery ListRecoveryPointsByResource where
toQuery :: ListRecoveryPointsByResource -> QueryString
toQuery ListRecoveryPointsByResource' {Maybe Natural
Maybe Text
Text
resourceArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:resourceArn:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Text
$sel:maxResults:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Natural
$sel:nextToken:ListRecoveryPointsByResource' :: ListRecoveryPointsByResource -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListRecoveryPointsByResourceResponse = ListRecoveryPointsByResourceResponse'
{
ListRecoveryPointsByResourceResponse
-> Maybe [RecoveryPointByResource]
recoveryPoints :: Prelude.Maybe [RecoveryPointByResource],
ListRecoveryPointsByResourceResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRecoveryPointsByResourceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool
(ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool)
-> (ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool)
-> Eq ListRecoveryPointsByResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool
$c/= :: ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool
== :: ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool
$c== :: ListRecoveryPointsByResourceResponse
-> ListRecoveryPointsByResourceResponse -> Bool
Prelude.Eq, ReadPrec [ListRecoveryPointsByResourceResponse]
ReadPrec ListRecoveryPointsByResourceResponse
Int -> ReadS ListRecoveryPointsByResourceResponse
ReadS [ListRecoveryPointsByResourceResponse]
(Int -> ReadS ListRecoveryPointsByResourceResponse)
-> ReadS [ListRecoveryPointsByResourceResponse]
-> ReadPrec ListRecoveryPointsByResourceResponse
-> ReadPrec [ListRecoveryPointsByResourceResponse]
-> Read ListRecoveryPointsByResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRecoveryPointsByResourceResponse]
$creadListPrec :: ReadPrec [ListRecoveryPointsByResourceResponse]
readPrec :: ReadPrec ListRecoveryPointsByResourceResponse
$creadPrec :: ReadPrec ListRecoveryPointsByResourceResponse
readList :: ReadS [ListRecoveryPointsByResourceResponse]
$creadList :: ReadS [ListRecoveryPointsByResourceResponse]
readsPrec :: Int -> ReadS ListRecoveryPointsByResourceResponse
$creadsPrec :: Int -> ReadS ListRecoveryPointsByResourceResponse
Prelude.Read, Int -> ListRecoveryPointsByResourceResponse -> ShowS
[ListRecoveryPointsByResourceResponse] -> ShowS
ListRecoveryPointsByResourceResponse -> String
(Int -> ListRecoveryPointsByResourceResponse -> ShowS)
-> (ListRecoveryPointsByResourceResponse -> String)
-> ([ListRecoveryPointsByResourceResponse] -> ShowS)
-> Show ListRecoveryPointsByResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRecoveryPointsByResourceResponse] -> ShowS
$cshowList :: [ListRecoveryPointsByResourceResponse] -> ShowS
show :: ListRecoveryPointsByResourceResponse -> String
$cshow :: ListRecoveryPointsByResourceResponse -> String
showsPrec :: Int -> ListRecoveryPointsByResourceResponse -> ShowS
$cshowsPrec :: Int -> ListRecoveryPointsByResourceResponse -> ShowS
Prelude.Show, (forall x.
ListRecoveryPointsByResourceResponse
-> Rep ListRecoveryPointsByResourceResponse x)
-> (forall x.
Rep ListRecoveryPointsByResourceResponse x
-> ListRecoveryPointsByResourceResponse)
-> Generic ListRecoveryPointsByResourceResponse
forall x.
Rep ListRecoveryPointsByResourceResponse x
-> ListRecoveryPointsByResourceResponse
forall x.
ListRecoveryPointsByResourceResponse
-> Rep ListRecoveryPointsByResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRecoveryPointsByResourceResponse x
-> ListRecoveryPointsByResourceResponse
$cfrom :: forall x.
ListRecoveryPointsByResourceResponse
-> Rep ListRecoveryPointsByResourceResponse x
Prelude.Generic)
newListRecoveryPointsByResourceResponse ::
Prelude.Int ->
ListRecoveryPointsByResourceResponse
newListRecoveryPointsByResourceResponse :: Int -> ListRecoveryPointsByResourceResponse
newListRecoveryPointsByResourceResponse Int
pHttpStatus_ =
ListRecoveryPointsByResourceResponse' :: Maybe [RecoveryPointByResource]
-> Maybe Text -> Int -> ListRecoveryPointsByResourceResponse
ListRecoveryPointsByResourceResponse'
{ $sel:recoveryPoints:ListRecoveryPointsByResourceResponse' :: Maybe [RecoveryPointByResource]
recoveryPoints =
Maybe [RecoveryPointByResource]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRecoveryPointsByResourceResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRecoveryPointsByResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listRecoveryPointsByResourceResponse_recoveryPoints :: Lens.Lens' ListRecoveryPointsByResourceResponse (Prelude.Maybe [RecoveryPointByResource])
listRecoveryPointsByResourceResponse_recoveryPoints :: (Maybe [RecoveryPointByResource]
-> f (Maybe [RecoveryPointByResource]))
-> ListRecoveryPointsByResourceResponse
-> f ListRecoveryPointsByResourceResponse
listRecoveryPointsByResourceResponse_recoveryPoints = (ListRecoveryPointsByResourceResponse
-> Maybe [RecoveryPointByResource])
-> (ListRecoveryPointsByResourceResponse
-> Maybe [RecoveryPointByResource]
-> ListRecoveryPointsByResourceResponse)
-> Lens
ListRecoveryPointsByResourceResponse
ListRecoveryPointsByResourceResponse
(Maybe [RecoveryPointByResource])
(Maybe [RecoveryPointByResource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResourceResponse' {Maybe [RecoveryPointByResource]
recoveryPoints :: Maybe [RecoveryPointByResource]
$sel:recoveryPoints:ListRecoveryPointsByResourceResponse' :: ListRecoveryPointsByResourceResponse
-> Maybe [RecoveryPointByResource]
recoveryPoints} -> Maybe [RecoveryPointByResource]
recoveryPoints) (\s :: ListRecoveryPointsByResourceResponse
s@ListRecoveryPointsByResourceResponse' {} Maybe [RecoveryPointByResource]
a -> ListRecoveryPointsByResourceResponse
s {$sel:recoveryPoints:ListRecoveryPointsByResourceResponse' :: Maybe [RecoveryPointByResource]
recoveryPoints = Maybe [RecoveryPointByResource]
a} :: ListRecoveryPointsByResourceResponse) ((Maybe [RecoveryPointByResource]
-> f (Maybe [RecoveryPointByResource]))
-> ListRecoveryPointsByResourceResponse
-> f ListRecoveryPointsByResourceResponse)
-> ((Maybe [RecoveryPointByResource]
-> f (Maybe [RecoveryPointByResource]))
-> Maybe [RecoveryPointByResource]
-> f (Maybe [RecoveryPointByResource]))
-> (Maybe [RecoveryPointByResource]
-> f (Maybe [RecoveryPointByResource]))
-> ListRecoveryPointsByResourceResponse
-> f ListRecoveryPointsByResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RecoveryPointByResource]
[RecoveryPointByResource]
[RecoveryPointByResource]
[RecoveryPointByResource]
-> Iso
(Maybe [RecoveryPointByResource])
(Maybe [RecoveryPointByResource])
(Maybe [RecoveryPointByResource])
(Maybe [RecoveryPointByResource])
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
[RecoveryPointByResource]
[RecoveryPointByResource]
[RecoveryPointByResource]
[RecoveryPointByResource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listRecoveryPointsByResourceResponse_nextToken :: Lens.Lens' ListRecoveryPointsByResourceResponse (Prelude.Maybe Prelude.Text)
listRecoveryPointsByResourceResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRecoveryPointsByResourceResponse
-> f ListRecoveryPointsByResourceResponse
listRecoveryPointsByResourceResponse_nextToken = (ListRecoveryPointsByResourceResponse -> Maybe Text)
-> (ListRecoveryPointsByResourceResponse
-> Maybe Text -> ListRecoveryPointsByResourceResponse)
-> Lens
ListRecoveryPointsByResourceResponse
ListRecoveryPointsByResourceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResourceResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRecoveryPointsByResourceResponse' :: ListRecoveryPointsByResourceResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRecoveryPointsByResourceResponse
s@ListRecoveryPointsByResourceResponse' {} Maybe Text
a -> ListRecoveryPointsByResourceResponse
s {$sel:nextToken:ListRecoveryPointsByResourceResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRecoveryPointsByResourceResponse)
listRecoveryPointsByResourceResponse_httpStatus :: Lens.Lens' ListRecoveryPointsByResourceResponse Prelude.Int
listRecoveryPointsByResourceResponse_httpStatus :: (Int -> f Int)
-> ListRecoveryPointsByResourceResponse
-> f ListRecoveryPointsByResourceResponse
listRecoveryPointsByResourceResponse_httpStatus = (ListRecoveryPointsByResourceResponse -> Int)
-> (ListRecoveryPointsByResourceResponse
-> Int -> ListRecoveryPointsByResourceResponse)
-> Lens
ListRecoveryPointsByResourceResponse
ListRecoveryPointsByResourceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecoveryPointsByResourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRecoveryPointsByResourceResponse' :: ListRecoveryPointsByResourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRecoveryPointsByResourceResponse
s@ListRecoveryPointsByResourceResponse' {} Int
a -> ListRecoveryPointsByResourceResponse
s {$sel:httpStatus:ListRecoveryPointsByResourceResponse' :: Int
httpStatus = Int
a} :: ListRecoveryPointsByResourceResponse)
instance
Prelude.NFData
ListRecoveryPointsByResourceResponse