{-# 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.CognitoIdentity.ListIdentityPools
(
ListIdentityPools (..),
newListIdentityPools,
listIdentityPools_nextToken,
listIdentityPools_maxResults,
ListIdentityPoolsResponse (..),
newListIdentityPoolsResponse,
listIdentityPoolsResponse_identityPools,
listIdentityPoolsResponse_nextToken,
listIdentityPoolsResponse_httpStatus,
)
where
import Amazonka.CognitoIdentity.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 ListIdentityPools = ListIdentityPools'
{
ListIdentityPools -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIdentityPools -> Natural
maxResults :: Prelude.Natural
}
deriving (ListIdentityPools -> ListIdentityPools -> Bool
(ListIdentityPools -> ListIdentityPools -> Bool)
-> (ListIdentityPools -> ListIdentityPools -> Bool)
-> Eq ListIdentityPools
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIdentityPools -> ListIdentityPools -> Bool
$c/= :: ListIdentityPools -> ListIdentityPools -> Bool
== :: ListIdentityPools -> ListIdentityPools -> Bool
$c== :: ListIdentityPools -> ListIdentityPools -> Bool
Prelude.Eq, ReadPrec [ListIdentityPools]
ReadPrec ListIdentityPools
Int -> ReadS ListIdentityPools
ReadS [ListIdentityPools]
(Int -> ReadS ListIdentityPools)
-> ReadS [ListIdentityPools]
-> ReadPrec ListIdentityPools
-> ReadPrec [ListIdentityPools]
-> Read ListIdentityPools
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIdentityPools]
$creadListPrec :: ReadPrec [ListIdentityPools]
readPrec :: ReadPrec ListIdentityPools
$creadPrec :: ReadPrec ListIdentityPools
readList :: ReadS [ListIdentityPools]
$creadList :: ReadS [ListIdentityPools]
readsPrec :: Int -> ReadS ListIdentityPools
$creadsPrec :: Int -> ReadS ListIdentityPools
Prelude.Read, Int -> ListIdentityPools -> ShowS
[ListIdentityPools] -> ShowS
ListIdentityPools -> String
(Int -> ListIdentityPools -> ShowS)
-> (ListIdentityPools -> String)
-> ([ListIdentityPools] -> ShowS)
-> Show ListIdentityPools
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIdentityPools] -> ShowS
$cshowList :: [ListIdentityPools] -> ShowS
show :: ListIdentityPools -> String
$cshow :: ListIdentityPools -> String
showsPrec :: Int -> ListIdentityPools -> ShowS
$cshowsPrec :: Int -> ListIdentityPools -> ShowS
Prelude.Show, (forall x. ListIdentityPools -> Rep ListIdentityPools x)
-> (forall x. Rep ListIdentityPools x -> ListIdentityPools)
-> Generic ListIdentityPools
forall x. Rep ListIdentityPools x -> ListIdentityPools
forall x. ListIdentityPools -> Rep ListIdentityPools x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIdentityPools x -> ListIdentityPools
$cfrom :: forall x. ListIdentityPools -> Rep ListIdentityPools x
Prelude.Generic)
newListIdentityPools ::
Prelude.Natural ->
ListIdentityPools
newListIdentityPools :: Natural -> ListIdentityPools
newListIdentityPools Natural
pMaxResults_ =
ListIdentityPools' :: Maybe Text -> Natural -> ListIdentityPools
ListIdentityPools'
{ $sel:nextToken:ListIdentityPools' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListIdentityPools' :: Natural
maxResults = Natural
pMaxResults_
}
listIdentityPools_nextToken :: Lens.Lens' ListIdentityPools (Prelude.Maybe Prelude.Text)
listIdentityPools_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIdentityPools -> f ListIdentityPools
listIdentityPools_nextToken = (ListIdentityPools -> Maybe Text)
-> (ListIdentityPools -> Maybe Text -> ListIdentityPools)
-> Lens
ListIdentityPools ListIdentityPools (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityPools' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIdentityPools' :: ListIdentityPools -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIdentityPools
s@ListIdentityPools' {} Maybe Text
a -> ListIdentityPools
s {$sel:nextToken:ListIdentityPools' :: Maybe Text
nextToken = Maybe Text
a} :: ListIdentityPools)
listIdentityPools_maxResults :: Lens.Lens' ListIdentityPools Prelude.Natural
listIdentityPools_maxResults :: (Natural -> f Natural) -> ListIdentityPools -> f ListIdentityPools
listIdentityPools_maxResults = (ListIdentityPools -> Natural)
-> (ListIdentityPools -> Natural -> ListIdentityPools)
-> Lens ListIdentityPools ListIdentityPools Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityPools' {Natural
maxResults :: Natural
$sel:maxResults:ListIdentityPools' :: ListIdentityPools -> Natural
maxResults} -> Natural
maxResults) (\s :: ListIdentityPools
s@ListIdentityPools' {} Natural
a -> ListIdentityPools
s {$sel:maxResults:ListIdentityPools' :: Natural
maxResults = Natural
a} :: ListIdentityPools)
instance Core.AWSPager ListIdentityPools where
page :: ListIdentityPools
-> AWSResponse ListIdentityPools -> Maybe ListIdentityPools
page ListIdentityPools
rq AWSResponse ListIdentityPools
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIdentityPools
ListIdentityPoolsResponse
rs
ListIdentityPoolsResponse
-> Getting (First Text) ListIdentityPoolsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityPoolsResponse
-> Const (First Text) ListIdentityPoolsResponse
Lens' ListIdentityPoolsResponse (Maybe Text)
listIdentityPoolsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityPoolsResponse
-> Const (First Text) ListIdentityPoolsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIdentityPoolsResponse 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 ListIdentityPools
forall a. Maybe a
Prelude.Nothing
| Maybe [IdentityPoolShortDescription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIdentityPools
ListIdentityPoolsResponse
rs
ListIdentityPoolsResponse
-> Getting
(First [IdentityPoolShortDescription])
ListIdentityPoolsResponse
[IdentityPoolShortDescription]
-> Maybe [IdentityPoolShortDescription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription]))
-> ListIdentityPoolsResponse
-> Const
(First [IdentityPoolShortDescription]) ListIdentityPoolsResponse
Lens'
ListIdentityPoolsResponse (Maybe [IdentityPoolShortDescription])
listIdentityPoolsResponse_identityPools
((Maybe [IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription]))
-> ListIdentityPoolsResponse
-> Const
(First [IdentityPoolShortDescription]) ListIdentityPoolsResponse)
-> (([IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
[IdentityPoolShortDescription])
-> Maybe [IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription]))
-> Getting
(First [IdentityPoolShortDescription])
ListIdentityPoolsResponse
[IdentityPoolShortDescription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
[IdentityPoolShortDescription])
-> Maybe [IdentityPoolShortDescription]
-> Const
(First [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListIdentityPools
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListIdentityPools -> Maybe ListIdentityPools
forall a. a -> Maybe a
Prelude.Just (ListIdentityPools -> Maybe ListIdentityPools)
-> ListIdentityPools -> Maybe ListIdentityPools
forall a b. (a -> b) -> a -> b
Prelude.$
ListIdentityPools
rq
ListIdentityPools
-> (ListIdentityPools -> ListIdentityPools) -> ListIdentityPools
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListIdentityPools -> Identity ListIdentityPools
Lens ListIdentityPools ListIdentityPools (Maybe Text) (Maybe Text)
listIdentityPools_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListIdentityPools -> Identity ListIdentityPools)
-> Maybe Text -> ListIdentityPools -> ListIdentityPools
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListIdentityPools
ListIdentityPoolsResponse
rs
ListIdentityPoolsResponse
-> Getting (First Text) ListIdentityPoolsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityPoolsResponse
-> Const (First Text) ListIdentityPoolsResponse
Lens' ListIdentityPoolsResponse (Maybe Text)
listIdentityPoolsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityPoolsResponse
-> Const (First Text) ListIdentityPoolsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIdentityPoolsResponse 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 ListIdentityPools where
type
AWSResponse ListIdentityPools =
ListIdentityPoolsResponse
request :: ListIdentityPools -> Request ListIdentityPools
request = Service -> ListIdentityPools -> Request ListIdentityPools
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListIdentityPools
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListIdentityPools)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListIdentityPools))
-> Logger
-> Service
-> Proxy ListIdentityPools
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListIdentityPools)))
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 [IdentityPoolShortDescription]
-> Maybe Text -> Int -> ListIdentityPoolsResponse
ListIdentityPoolsResponse'
(Maybe [IdentityPoolShortDescription]
-> Maybe Text -> Int -> ListIdentityPoolsResponse)
-> Either String (Maybe [IdentityPoolShortDescription])
-> Either String (Maybe Text -> Int -> ListIdentityPoolsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [IdentityPoolShortDescription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IdentityPools" Either String (Maybe (Maybe [IdentityPoolShortDescription]))
-> Maybe [IdentityPoolShortDescription]
-> Either String (Maybe [IdentityPoolShortDescription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [IdentityPoolShortDescription]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListIdentityPoolsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListIdentityPoolsResponse)
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 -> ListIdentityPoolsResponse)
-> Either String Int -> Either String ListIdentityPoolsResponse
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 ListIdentityPools
instance Prelude.NFData ListIdentityPools
instance Core.ToHeaders ListIdentityPools where
toHeaders :: ListIdentityPools -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListIdentityPools -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSCognitoIdentityService.ListIdentityPools" ::
Prelude.ByteString
),
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.ToJSON ListIdentityPools where
toJSON :: ListIdentityPools -> Value
toJSON ListIdentityPools' {Natural
Maybe Text
maxResults :: Natural
nextToken :: Maybe Text
$sel:maxResults:ListIdentityPools' :: ListIdentityPools -> Natural
$sel:nextToken:ListIdentityPools' :: ListIdentityPools -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
maxResults)
]
)
instance Core.ToPath ListIdentityPools where
toPath :: ListIdentityPools -> ByteString
toPath = ByteString -> ListIdentityPools -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListIdentityPools where
toQuery :: ListIdentityPools -> QueryString
toQuery = QueryString -> ListIdentityPools -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListIdentityPoolsResponse = ListIdentityPoolsResponse'
{
ListIdentityPoolsResponse -> Maybe [IdentityPoolShortDescription]
identityPools :: Prelude.Maybe [IdentityPoolShortDescription],
ListIdentityPoolsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIdentityPoolsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool
(ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool)
-> (ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool)
-> Eq ListIdentityPoolsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool
$c/= :: ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool
== :: ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool
$c== :: ListIdentityPoolsResponse -> ListIdentityPoolsResponse -> Bool
Prelude.Eq, ReadPrec [ListIdentityPoolsResponse]
ReadPrec ListIdentityPoolsResponse
Int -> ReadS ListIdentityPoolsResponse
ReadS [ListIdentityPoolsResponse]
(Int -> ReadS ListIdentityPoolsResponse)
-> ReadS [ListIdentityPoolsResponse]
-> ReadPrec ListIdentityPoolsResponse
-> ReadPrec [ListIdentityPoolsResponse]
-> Read ListIdentityPoolsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIdentityPoolsResponse]
$creadListPrec :: ReadPrec [ListIdentityPoolsResponse]
readPrec :: ReadPrec ListIdentityPoolsResponse
$creadPrec :: ReadPrec ListIdentityPoolsResponse
readList :: ReadS [ListIdentityPoolsResponse]
$creadList :: ReadS [ListIdentityPoolsResponse]
readsPrec :: Int -> ReadS ListIdentityPoolsResponse
$creadsPrec :: Int -> ReadS ListIdentityPoolsResponse
Prelude.Read, Int -> ListIdentityPoolsResponse -> ShowS
[ListIdentityPoolsResponse] -> ShowS
ListIdentityPoolsResponse -> String
(Int -> ListIdentityPoolsResponse -> ShowS)
-> (ListIdentityPoolsResponse -> String)
-> ([ListIdentityPoolsResponse] -> ShowS)
-> Show ListIdentityPoolsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIdentityPoolsResponse] -> ShowS
$cshowList :: [ListIdentityPoolsResponse] -> ShowS
show :: ListIdentityPoolsResponse -> String
$cshow :: ListIdentityPoolsResponse -> String
showsPrec :: Int -> ListIdentityPoolsResponse -> ShowS
$cshowsPrec :: Int -> ListIdentityPoolsResponse -> ShowS
Prelude.Show, (forall x.
ListIdentityPoolsResponse -> Rep ListIdentityPoolsResponse x)
-> (forall x.
Rep ListIdentityPoolsResponse x -> ListIdentityPoolsResponse)
-> Generic ListIdentityPoolsResponse
forall x.
Rep ListIdentityPoolsResponse x -> ListIdentityPoolsResponse
forall x.
ListIdentityPoolsResponse -> Rep ListIdentityPoolsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListIdentityPoolsResponse x -> ListIdentityPoolsResponse
$cfrom :: forall x.
ListIdentityPoolsResponse -> Rep ListIdentityPoolsResponse x
Prelude.Generic)
newListIdentityPoolsResponse ::
Prelude.Int ->
ListIdentityPoolsResponse
newListIdentityPoolsResponse :: Int -> ListIdentityPoolsResponse
newListIdentityPoolsResponse Int
pHttpStatus_ =
ListIdentityPoolsResponse' :: Maybe [IdentityPoolShortDescription]
-> Maybe Text -> Int -> ListIdentityPoolsResponse
ListIdentityPoolsResponse'
{ $sel:identityPools:ListIdentityPoolsResponse' :: Maybe [IdentityPoolShortDescription]
identityPools =
Maybe [IdentityPoolShortDescription]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListIdentityPoolsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListIdentityPoolsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listIdentityPoolsResponse_identityPools :: Lens.Lens' ListIdentityPoolsResponse (Prelude.Maybe [IdentityPoolShortDescription])
listIdentityPoolsResponse_identityPools :: (Maybe [IdentityPoolShortDescription]
-> f (Maybe [IdentityPoolShortDescription]))
-> ListIdentityPoolsResponse -> f ListIdentityPoolsResponse
listIdentityPoolsResponse_identityPools = (ListIdentityPoolsResponse -> Maybe [IdentityPoolShortDescription])
-> (ListIdentityPoolsResponse
-> Maybe [IdentityPoolShortDescription]
-> ListIdentityPoolsResponse)
-> Lens'
ListIdentityPoolsResponse (Maybe [IdentityPoolShortDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityPoolsResponse' {Maybe [IdentityPoolShortDescription]
identityPools :: Maybe [IdentityPoolShortDescription]
$sel:identityPools:ListIdentityPoolsResponse' :: ListIdentityPoolsResponse -> Maybe [IdentityPoolShortDescription]
identityPools} -> Maybe [IdentityPoolShortDescription]
identityPools) (\s :: ListIdentityPoolsResponse
s@ListIdentityPoolsResponse' {} Maybe [IdentityPoolShortDescription]
a -> ListIdentityPoolsResponse
s {$sel:identityPools:ListIdentityPoolsResponse' :: Maybe [IdentityPoolShortDescription]
identityPools = Maybe [IdentityPoolShortDescription]
a} :: ListIdentityPoolsResponse) ((Maybe [IdentityPoolShortDescription]
-> f (Maybe [IdentityPoolShortDescription]))
-> ListIdentityPoolsResponse -> f ListIdentityPoolsResponse)
-> ((Maybe [IdentityPoolShortDescription]
-> f (Maybe [IdentityPoolShortDescription]))
-> Maybe [IdentityPoolShortDescription]
-> f (Maybe [IdentityPoolShortDescription]))
-> (Maybe [IdentityPoolShortDescription]
-> f (Maybe [IdentityPoolShortDescription]))
-> ListIdentityPoolsResponse
-> f ListIdentityPoolsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
-> Iso
(Maybe [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription])
(Maybe [IdentityPoolShortDescription])
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
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
[IdentityPoolShortDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listIdentityPoolsResponse_nextToken :: Lens.Lens' ListIdentityPoolsResponse (Prelude.Maybe Prelude.Text)
listIdentityPoolsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIdentityPoolsResponse -> f ListIdentityPoolsResponse
listIdentityPoolsResponse_nextToken = (ListIdentityPoolsResponse -> Maybe Text)
-> (ListIdentityPoolsResponse
-> Maybe Text -> ListIdentityPoolsResponse)
-> Lens' ListIdentityPoolsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityPoolsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIdentityPoolsResponse' :: ListIdentityPoolsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIdentityPoolsResponse
s@ListIdentityPoolsResponse' {} Maybe Text
a -> ListIdentityPoolsResponse
s {$sel:nextToken:ListIdentityPoolsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListIdentityPoolsResponse)
listIdentityPoolsResponse_httpStatus :: Lens.Lens' ListIdentityPoolsResponse Prelude.Int
listIdentityPoolsResponse_httpStatus :: (Int -> f Int)
-> ListIdentityPoolsResponse -> f ListIdentityPoolsResponse
listIdentityPoolsResponse_httpStatus = (ListIdentityPoolsResponse -> Int)
-> (ListIdentityPoolsResponse -> Int -> ListIdentityPoolsResponse)
-> Lens ListIdentityPoolsResponse ListIdentityPoolsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityPoolsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListIdentityPoolsResponse' :: ListIdentityPoolsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListIdentityPoolsResponse
s@ListIdentityPoolsResponse' {} Int
a -> ListIdentityPoolsResponse
s {$sel:httpStatus:ListIdentityPoolsResponse' :: Int
httpStatus = Int
a} :: ListIdentityPoolsResponse)
instance Prelude.NFData ListIdentityPoolsResponse