{-# 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.AppSync.ListResolversByFunction
(
ListResolversByFunction (..),
newListResolversByFunction,
listResolversByFunction_nextToken,
listResolversByFunction_maxResults,
listResolversByFunction_apiId,
listResolversByFunction_functionId,
ListResolversByFunctionResponse (..),
newListResolversByFunctionResponse,
listResolversByFunctionResponse_nextToken,
listResolversByFunctionResponse_resolvers,
listResolversByFunctionResponse_httpStatus,
)
where
import Amazonka.AppSync.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 ListResolversByFunction = ListResolversByFunction'
{
ListResolversByFunction -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolversByFunction -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListResolversByFunction -> Text
apiId :: Prelude.Text,
ListResolversByFunction -> Text
functionId :: Prelude.Text
}
deriving (ListResolversByFunction -> ListResolversByFunction -> Bool
(ListResolversByFunction -> ListResolversByFunction -> Bool)
-> (ListResolversByFunction -> ListResolversByFunction -> Bool)
-> Eq ListResolversByFunction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolversByFunction -> ListResolversByFunction -> Bool
$c/= :: ListResolversByFunction -> ListResolversByFunction -> Bool
== :: ListResolversByFunction -> ListResolversByFunction -> Bool
$c== :: ListResolversByFunction -> ListResolversByFunction -> Bool
Prelude.Eq, ReadPrec [ListResolversByFunction]
ReadPrec ListResolversByFunction
Int -> ReadS ListResolversByFunction
ReadS [ListResolversByFunction]
(Int -> ReadS ListResolversByFunction)
-> ReadS [ListResolversByFunction]
-> ReadPrec ListResolversByFunction
-> ReadPrec [ListResolversByFunction]
-> Read ListResolversByFunction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolversByFunction]
$creadListPrec :: ReadPrec [ListResolversByFunction]
readPrec :: ReadPrec ListResolversByFunction
$creadPrec :: ReadPrec ListResolversByFunction
readList :: ReadS [ListResolversByFunction]
$creadList :: ReadS [ListResolversByFunction]
readsPrec :: Int -> ReadS ListResolversByFunction
$creadsPrec :: Int -> ReadS ListResolversByFunction
Prelude.Read, Int -> ListResolversByFunction -> ShowS
[ListResolversByFunction] -> ShowS
ListResolversByFunction -> String
(Int -> ListResolversByFunction -> ShowS)
-> (ListResolversByFunction -> String)
-> ([ListResolversByFunction] -> ShowS)
-> Show ListResolversByFunction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolversByFunction] -> ShowS
$cshowList :: [ListResolversByFunction] -> ShowS
show :: ListResolversByFunction -> String
$cshow :: ListResolversByFunction -> String
showsPrec :: Int -> ListResolversByFunction -> ShowS
$cshowsPrec :: Int -> ListResolversByFunction -> ShowS
Prelude.Show, (forall x.
ListResolversByFunction -> Rep ListResolversByFunction x)
-> (forall x.
Rep ListResolversByFunction x -> ListResolversByFunction)
-> Generic ListResolversByFunction
forall x. Rep ListResolversByFunction x -> ListResolversByFunction
forall x. ListResolversByFunction -> Rep ListResolversByFunction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResolversByFunction x -> ListResolversByFunction
$cfrom :: forall x. ListResolversByFunction -> Rep ListResolversByFunction x
Prelude.Generic)
newListResolversByFunction ::
Prelude.Text ->
Prelude.Text ->
ListResolversByFunction
newListResolversByFunction :: Text -> Text -> ListResolversByFunction
newListResolversByFunction Text
pApiId_ Text
pFunctionId_ =
ListResolversByFunction' :: Maybe Text
-> Maybe Natural -> Text -> Text -> ListResolversByFunction
ListResolversByFunction'
{ $sel:nextToken:ListResolversByFunction' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResolversByFunction' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:apiId:ListResolversByFunction' :: Text
apiId = Text
pApiId_,
$sel:functionId:ListResolversByFunction' :: Text
functionId = Text
pFunctionId_
}
listResolversByFunction_nextToken :: Lens.Lens' ListResolversByFunction (Prelude.Maybe Prelude.Text)
listResolversByFunction_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResolversByFunction -> f ListResolversByFunction
listResolversByFunction_nextToken = (ListResolversByFunction -> Maybe Text)
-> (ListResolversByFunction
-> Maybe Text -> ListResolversByFunction)
-> Lens
ListResolversByFunction
ListResolversByFunction
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunction' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolversByFunction' :: ListResolversByFunction -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolversByFunction
s@ListResolversByFunction' {} Maybe Text
a -> ListResolversByFunction
s {$sel:nextToken:ListResolversByFunction' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolversByFunction)
listResolversByFunction_maxResults :: Lens.Lens' ListResolversByFunction (Prelude.Maybe Prelude.Natural)
listResolversByFunction_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListResolversByFunction -> f ListResolversByFunction
listResolversByFunction_maxResults = (ListResolversByFunction -> Maybe Natural)
-> (ListResolversByFunction
-> Maybe Natural -> ListResolversByFunction)
-> Lens
ListResolversByFunction
ListResolversByFunction
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunction' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolversByFunction' :: ListResolversByFunction -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolversByFunction
s@ListResolversByFunction' {} Maybe Natural
a -> ListResolversByFunction
s {$sel:maxResults:ListResolversByFunction' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolversByFunction)
listResolversByFunction_apiId :: Lens.Lens' ListResolversByFunction Prelude.Text
listResolversByFunction_apiId :: (Text -> f Text)
-> ListResolversByFunction -> f ListResolversByFunction
listResolversByFunction_apiId = (ListResolversByFunction -> Text)
-> (ListResolversByFunction -> Text -> ListResolversByFunction)
-> Lens ListResolversByFunction ListResolversByFunction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunction' {Text
apiId :: Text
$sel:apiId:ListResolversByFunction' :: ListResolversByFunction -> Text
apiId} -> Text
apiId) (\s :: ListResolversByFunction
s@ListResolversByFunction' {} Text
a -> ListResolversByFunction
s {$sel:apiId:ListResolversByFunction' :: Text
apiId = Text
a} :: ListResolversByFunction)
listResolversByFunction_functionId :: Lens.Lens' ListResolversByFunction Prelude.Text
listResolversByFunction_functionId :: (Text -> f Text)
-> ListResolversByFunction -> f ListResolversByFunction
listResolversByFunction_functionId = (ListResolversByFunction -> Text)
-> (ListResolversByFunction -> Text -> ListResolversByFunction)
-> Lens ListResolversByFunction ListResolversByFunction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunction' {Text
functionId :: Text
$sel:functionId:ListResolversByFunction' :: ListResolversByFunction -> Text
functionId} -> Text
functionId) (\s :: ListResolversByFunction
s@ListResolversByFunction' {} Text
a -> ListResolversByFunction
s {$sel:functionId:ListResolversByFunction' :: Text
functionId = Text
a} :: ListResolversByFunction)
instance Core.AWSPager ListResolversByFunction where
page :: ListResolversByFunction
-> AWSResponse ListResolversByFunction
-> Maybe ListResolversByFunction
page ListResolversByFunction
rq AWSResponse ListResolversByFunction
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolversByFunction
ListResolversByFunctionResponse
rs
ListResolversByFunctionResponse
-> Getting (First Text) ListResolversByFunctionResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversByFunctionResponse
-> Const (First Text) ListResolversByFunctionResponse
Lens' ListResolversByFunctionResponse (Maybe Text)
listResolversByFunctionResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversByFunctionResponse
-> Const (First Text) ListResolversByFunctionResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolversByFunctionResponse 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 ListResolversByFunction
forall a. Maybe a
Prelude.Nothing
| Maybe [Resolver] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolversByFunction
ListResolversByFunctionResponse
rs
ListResolversByFunctionResponse
-> Getting
(First [Resolver]) ListResolversByFunctionResponse [Resolver]
-> Maybe [Resolver]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> ListResolversByFunctionResponse
-> Const (First [Resolver]) ListResolversByFunctionResponse
Lens' ListResolversByFunctionResponse (Maybe [Resolver])
listResolversByFunctionResponse_resolvers
((Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> ListResolversByFunctionResponse
-> Const (First [Resolver]) ListResolversByFunctionResponse)
-> (([Resolver] -> Const (First [Resolver]) [Resolver])
-> Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> Getting
(First [Resolver]) ListResolversByFunctionResponse [Resolver]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Resolver] -> Const (First [Resolver]) [Resolver])
-> Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListResolversByFunction
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListResolversByFunction -> Maybe ListResolversByFunction
forall a. a -> Maybe a
Prelude.Just (ListResolversByFunction -> Maybe ListResolversByFunction)
-> ListResolversByFunction -> Maybe ListResolversByFunction
forall a b. (a -> b) -> a -> b
Prelude.$
ListResolversByFunction
rq
ListResolversByFunction
-> (ListResolversByFunction -> ListResolversByFunction)
-> ListResolversByFunction
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListResolversByFunction -> Identity ListResolversByFunction
Lens
ListResolversByFunction
ListResolversByFunction
(Maybe Text)
(Maybe Text)
listResolversByFunction_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListResolversByFunction -> Identity ListResolversByFunction)
-> Maybe Text -> ListResolversByFunction -> ListResolversByFunction
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolversByFunction
ListResolversByFunctionResponse
rs
ListResolversByFunctionResponse
-> Getting (First Text) ListResolversByFunctionResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversByFunctionResponse
-> Const (First Text) ListResolversByFunctionResponse
Lens' ListResolversByFunctionResponse (Maybe Text)
listResolversByFunctionResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversByFunctionResponse
-> Const (First Text) ListResolversByFunctionResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolversByFunctionResponse 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 ListResolversByFunction where
type
AWSResponse ListResolversByFunction =
ListResolversByFunctionResponse
request :: ListResolversByFunction -> Request ListResolversByFunction
request = Service
-> ListResolversByFunction -> Request ListResolversByFunction
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListResolversByFunction
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResolversByFunction)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListResolversByFunction))
-> Logger
-> Service
-> Proxy ListResolversByFunction
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResolversByFunction)))
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 Text
-> Maybe [Resolver] -> Int -> ListResolversByFunctionResponse
ListResolversByFunctionResponse'
(Maybe Text
-> Maybe [Resolver] -> Int -> ListResolversByFunctionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Resolver] -> Int -> ListResolversByFunctionResponse)
forall (f :: * -> *) a b. Functor 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 (Maybe [Resolver] -> Int -> ListResolversByFunctionResponse)
-> Either String (Maybe [Resolver])
-> Either String (Int -> ListResolversByFunctionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Resolver]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resolvers" Either String (Maybe (Maybe [Resolver]))
-> Maybe [Resolver] -> Either String (Maybe [Resolver])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Resolver]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListResolversByFunctionResponse)
-> Either String Int
-> Either String ListResolversByFunctionResponse
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 ListResolversByFunction
instance Prelude.NFData ListResolversByFunction
instance Core.ToHeaders ListResolversByFunction where
toHeaders :: ListResolversByFunction -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListResolversByFunction -> 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 ListResolversByFunction where
toPath :: ListResolversByFunction -> ByteString
toPath ListResolversByFunction' {Maybe Natural
Maybe Text
Text
functionId :: Text
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:functionId:ListResolversByFunction' :: ListResolversByFunction -> Text
$sel:apiId:ListResolversByFunction' :: ListResolversByFunction -> Text
$sel:maxResults:ListResolversByFunction' :: ListResolversByFunction -> Maybe Natural
$sel:nextToken:ListResolversByFunction' :: ListResolversByFunction -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/apis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId,
ByteString
"/functions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
functionId,
ByteString
"/resolvers"
]
instance Core.ToQuery ListResolversByFunction where
toQuery :: ListResolversByFunction -> QueryString
toQuery ListResolversByFunction' {Maybe Natural
Maybe Text
Text
functionId :: Text
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:functionId:ListResolversByFunction' :: ListResolversByFunction -> Text
$sel:apiId:ListResolversByFunction' :: ListResolversByFunction -> Text
$sel:maxResults:ListResolversByFunction' :: ListResolversByFunction -> Maybe Natural
$sel:nextToken:ListResolversByFunction' :: ListResolversByFunction -> 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 ListResolversByFunctionResponse = ListResolversByFunctionResponse'
{
ListResolversByFunctionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolversByFunctionResponse -> Maybe [Resolver]
resolvers :: Prelude.Maybe [Resolver],
ListResolversByFunctionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool
(ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool)
-> (ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool)
-> Eq ListResolversByFunctionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool
$c/= :: ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool
== :: ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool
$c== :: ListResolversByFunctionResponse
-> ListResolversByFunctionResponse -> Bool
Prelude.Eq, ReadPrec [ListResolversByFunctionResponse]
ReadPrec ListResolversByFunctionResponse
Int -> ReadS ListResolversByFunctionResponse
ReadS [ListResolversByFunctionResponse]
(Int -> ReadS ListResolversByFunctionResponse)
-> ReadS [ListResolversByFunctionResponse]
-> ReadPrec ListResolversByFunctionResponse
-> ReadPrec [ListResolversByFunctionResponse]
-> Read ListResolversByFunctionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolversByFunctionResponse]
$creadListPrec :: ReadPrec [ListResolversByFunctionResponse]
readPrec :: ReadPrec ListResolversByFunctionResponse
$creadPrec :: ReadPrec ListResolversByFunctionResponse
readList :: ReadS [ListResolversByFunctionResponse]
$creadList :: ReadS [ListResolversByFunctionResponse]
readsPrec :: Int -> ReadS ListResolversByFunctionResponse
$creadsPrec :: Int -> ReadS ListResolversByFunctionResponse
Prelude.Read, Int -> ListResolversByFunctionResponse -> ShowS
[ListResolversByFunctionResponse] -> ShowS
ListResolversByFunctionResponse -> String
(Int -> ListResolversByFunctionResponse -> ShowS)
-> (ListResolversByFunctionResponse -> String)
-> ([ListResolversByFunctionResponse] -> ShowS)
-> Show ListResolversByFunctionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolversByFunctionResponse] -> ShowS
$cshowList :: [ListResolversByFunctionResponse] -> ShowS
show :: ListResolversByFunctionResponse -> String
$cshow :: ListResolversByFunctionResponse -> String
showsPrec :: Int -> ListResolversByFunctionResponse -> ShowS
$cshowsPrec :: Int -> ListResolversByFunctionResponse -> ShowS
Prelude.Show, (forall x.
ListResolversByFunctionResponse
-> Rep ListResolversByFunctionResponse x)
-> (forall x.
Rep ListResolversByFunctionResponse x
-> ListResolversByFunctionResponse)
-> Generic ListResolversByFunctionResponse
forall x.
Rep ListResolversByFunctionResponse x
-> ListResolversByFunctionResponse
forall x.
ListResolversByFunctionResponse
-> Rep ListResolversByFunctionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolversByFunctionResponse x
-> ListResolversByFunctionResponse
$cfrom :: forall x.
ListResolversByFunctionResponse
-> Rep ListResolversByFunctionResponse x
Prelude.Generic)
newListResolversByFunctionResponse ::
Prelude.Int ->
ListResolversByFunctionResponse
newListResolversByFunctionResponse :: Int -> ListResolversByFunctionResponse
newListResolversByFunctionResponse Int
pHttpStatus_ =
ListResolversByFunctionResponse' :: Maybe Text
-> Maybe [Resolver] -> Int -> ListResolversByFunctionResponse
ListResolversByFunctionResponse'
{ $sel:nextToken:ListResolversByFunctionResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resolvers:ListResolversByFunctionResponse' :: Maybe [Resolver]
resolvers = Maybe [Resolver]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResolversByFunctionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResolversByFunctionResponse_nextToken :: Lens.Lens' ListResolversByFunctionResponse (Prelude.Maybe Prelude.Text)
listResolversByFunctionResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResolversByFunctionResponse
-> f ListResolversByFunctionResponse
listResolversByFunctionResponse_nextToken = (ListResolversByFunctionResponse -> Maybe Text)
-> (ListResolversByFunctionResponse
-> Maybe Text -> ListResolversByFunctionResponse)
-> Lens' ListResolversByFunctionResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunctionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolversByFunctionResponse' :: ListResolversByFunctionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolversByFunctionResponse
s@ListResolversByFunctionResponse' {} Maybe Text
a -> ListResolversByFunctionResponse
s {$sel:nextToken:ListResolversByFunctionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolversByFunctionResponse)
listResolversByFunctionResponse_resolvers :: Lens.Lens' ListResolversByFunctionResponse (Prelude.Maybe [Resolver])
listResolversByFunctionResponse_resolvers :: (Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversByFunctionResponse
-> f ListResolversByFunctionResponse
listResolversByFunctionResponse_resolvers = (ListResolversByFunctionResponse -> Maybe [Resolver])
-> (ListResolversByFunctionResponse
-> Maybe [Resolver] -> ListResolversByFunctionResponse)
-> Lens' ListResolversByFunctionResponse (Maybe [Resolver])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunctionResponse' {Maybe [Resolver]
resolvers :: Maybe [Resolver]
$sel:resolvers:ListResolversByFunctionResponse' :: ListResolversByFunctionResponse -> Maybe [Resolver]
resolvers} -> Maybe [Resolver]
resolvers) (\s :: ListResolversByFunctionResponse
s@ListResolversByFunctionResponse' {} Maybe [Resolver]
a -> ListResolversByFunctionResponse
s {$sel:resolvers:ListResolversByFunctionResponse' :: Maybe [Resolver]
resolvers = Maybe [Resolver]
a} :: ListResolversByFunctionResponse) ((Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversByFunctionResponse
-> f ListResolversByFunctionResponse)
-> ((Maybe [Resolver] -> f (Maybe [Resolver]))
-> Maybe [Resolver] -> f (Maybe [Resolver]))
-> (Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversByFunctionResponse
-> f ListResolversByFunctionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Resolver] [Resolver] [Resolver] [Resolver]
-> Iso
(Maybe [Resolver])
(Maybe [Resolver])
(Maybe [Resolver])
(Maybe [Resolver])
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 [Resolver] [Resolver] [Resolver] [Resolver]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listResolversByFunctionResponse_httpStatus :: Lens.Lens' ListResolversByFunctionResponse Prelude.Int
listResolversByFunctionResponse_httpStatus :: (Int -> f Int)
-> ListResolversByFunctionResponse
-> f ListResolversByFunctionResponse
listResolversByFunctionResponse_httpStatus = (ListResolversByFunctionResponse -> Int)
-> (ListResolversByFunctionResponse
-> Int -> ListResolversByFunctionResponse)
-> Lens
ListResolversByFunctionResponse
ListResolversByFunctionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversByFunctionResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResolversByFunctionResponse' :: ListResolversByFunctionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResolversByFunctionResponse
s@ListResolversByFunctionResponse' {} Int
a -> ListResolversByFunctionResponse
s {$sel:httpStatus:ListResolversByFunctionResponse' :: Int
httpStatus = Int
a} :: ListResolversByFunctionResponse)
instance
Prelude.NFData
ListResolversByFunctionResponse