{-# 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.Chime.ListUsers
(
ListUsers (..),
newListUsers,
listUsers_nextToken,
listUsers_userEmail,
listUsers_maxResults,
listUsers_userType,
listUsers_accountId,
ListUsersResponse (..),
newListUsersResponse,
listUsersResponse_users,
listUsersResponse_nextToken,
listUsersResponse_httpStatus,
)
where
import Amazonka.Chime.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 ListUsers = ListUsers'
{
ListUsers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListUsers -> Maybe (Sensitive Text)
userEmail :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ListUsers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListUsers -> Maybe UserType
userType :: Prelude.Maybe UserType,
ListUsers -> Text
accountId :: Prelude.Text
}
deriving (ListUsers -> ListUsers -> Bool
(ListUsers -> ListUsers -> Bool)
-> (ListUsers -> ListUsers -> Bool) -> Eq ListUsers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUsers -> ListUsers -> Bool
$c/= :: ListUsers -> ListUsers -> Bool
== :: ListUsers -> ListUsers -> Bool
$c== :: ListUsers -> ListUsers -> Bool
Prelude.Eq, Int -> ListUsers -> ShowS
[ListUsers] -> ShowS
ListUsers -> String
(Int -> ListUsers -> ShowS)
-> (ListUsers -> String)
-> ([ListUsers] -> ShowS)
-> Show ListUsers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUsers] -> ShowS
$cshowList :: [ListUsers] -> ShowS
show :: ListUsers -> String
$cshow :: ListUsers -> String
showsPrec :: Int -> ListUsers -> ShowS
$cshowsPrec :: Int -> ListUsers -> ShowS
Prelude.Show, (forall x. ListUsers -> Rep ListUsers x)
-> (forall x. Rep ListUsers x -> ListUsers) -> Generic ListUsers
forall x. Rep ListUsers x -> ListUsers
forall x. ListUsers -> Rep ListUsers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUsers x -> ListUsers
$cfrom :: forall x. ListUsers -> Rep ListUsers x
Prelude.Generic)
newListUsers ::
Prelude.Text ->
ListUsers
newListUsers :: Text -> ListUsers
newListUsers Text
pAccountId_ =
ListUsers' :: Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Natural
-> Maybe UserType
-> Text
-> ListUsers
ListUsers'
{ $sel:nextToken:ListUsers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userEmail:ListUsers' :: Maybe (Sensitive Text)
userEmail = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListUsers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:userType:ListUsers' :: Maybe UserType
userType = Maybe UserType
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:ListUsers' :: Text
accountId = Text
pAccountId_
}
listUsers_nextToken :: Lens.Lens' ListUsers (Prelude.Maybe Prelude.Text)
listUsers_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListUsers -> f ListUsers
listUsers_nextToken = (ListUsers -> Maybe Text)
-> (ListUsers -> Maybe Text -> ListUsers)
-> Lens ListUsers ListUsers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUsers' :: ListUsers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUsers
s@ListUsers' {} Maybe Text
a -> ListUsers
s {$sel:nextToken:ListUsers' :: Maybe Text
nextToken = Maybe Text
a} :: ListUsers)
listUsers_userEmail :: Lens.Lens' ListUsers (Prelude.Maybe Prelude.Text)
listUsers_userEmail :: (Maybe Text -> f (Maybe Text)) -> ListUsers -> f ListUsers
listUsers_userEmail = (ListUsers -> Maybe (Sensitive Text))
-> (ListUsers -> Maybe (Sensitive Text) -> ListUsers)
-> Lens
ListUsers
ListUsers
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsers' {Maybe (Sensitive Text)
userEmail :: Maybe (Sensitive Text)
$sel:userEmail:ListUsers' :: ListUsers -> Maybe (Sensitive Text)
userEmail} -> Maybe (Sensitive Text)
userEmail) (\s :: ListUsers
s@ListUsers' {} Maybe (Sensitive Text)
a -> ListUsers
s {$sel:userEmail:ListUsers' :: Maybe (Sensitive Text)
userEmail = Maybe (Sensitive Text)
a} :: ListUsers) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ListUsers -> f ListUsers)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ListUsers
-> f ListUsers
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
listUsers_maxResults :: Lens.Lens' ListUsers (Prelude.Maybe Prelude.Natural)
listUsers_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListUsers -> f ListUsers
listUsers_maxResults = (ListUsers -> Maybe Natural)
-> (ListUsers -> Maybe Natural -> ListUsers)
-> Lens ListUsers ListUsers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListUsers' :: ListUsers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListUsers
s@ListUsers' {} Maybe Natural
a -> ListUsers
s {$sel:maxResults:ListUsers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListUsers)
listUsers_userType :: Lens.Lens' ListUsers (Prelude.Maybe UserType)
listUsers_userType :: (Maybe UserType -> f (Maybe UserType)) -> ListUsers -> f ListUsers
listUsers_userType = (ListUsers -> Maybe UserType)
-> (ListUsers -> Maybe UserType -> ListUsers)
-> Lens ListUsers ListUsers (Maybe UserType) (Maybe UserType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsers' {Maybe UserType
userType :: Maybe UserType
$sel:userType:ListUsers' :: ListUsers -> Maybe UserType
userType} -> Maybe UserType
userType) (\s :: ListUsers
s@ListUsers' {} Maybe UserType
a -> ListUsers
s {$sel:userType:ListUsers' :: Maybe UserType
userType = Maybe UserType
a} :: ListUsers)
listUsers_accountId :: Lens.Lens' ListUsers Prelude.Text
listUsers_accountId :: (Text -> f Text) -> ListUsers -> f ListUsers
listUsers_accountId = (ListUsers -> Text)
-> (ListUsers -> Text -> ListUsers)
-> Lens ListUsers ListUsers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsers' {Text
accountId :: Text
$sel:accountId:ListUsers' :: ListUsers -> Text
accountId} -> Text
accountId) (\s :: ListUsers
s@ListUsers' {} Text
a -> ListUsers
s {$sel:accountId:ListUsers' :: Text
accountId = Text
a} :: ListUsers)
instance Core.AWSPager ListUsers where
page :: ListUsers -> AWSResponse ListUsers -> Maybe ListUsers
page ListUsers
rq AWSResponse ListUsers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListUsers
ListUsersResponse
rs
ListUsersResponse
-> Getting (First Text) ListUsersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListUsersResponse -> Const (First Text) ListUsersResponse
Lens' ListUsersResponse (Maybe Text)
listUsersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListUsersResponse -> Const (First Text) ListUsersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListUsersResponse 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 ListUsers
forall a. Maybe a
Prelude.Nothing
| Maybe [User] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListUsers
ListUsersResponse
rs
ListUsersResponse
-> Getting (First [User]) ListUsersResponse [User] -> Maybe [User]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [User] -> Const (First [User]) (Maybe [User]))
-> ListUsersResponse -> Const (First [User]) ListUsersResponse
Lens' ListUsersResponse (Maybe [User])
listUsersResponse_users ((Maybe [User] -> Const (First [User]) (Maybe [User]))
-> ListUsersResponse -> Const (First [User]) ListUsersResponse)
-> (([User] -> Const (First [User]) [User])
-> Maybe [User] -> Const (First [User]) (Maybe [User]))
-> Getting (First [User]) ListUsersResponse [User]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([User] -> Const (First [User]) [User])
-> Maybe [User] -> Const (First [User]) (Maybe [User])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListUsers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListUsers -> Maybe ListUsers
forall a. a -> Maybe a
Prelude.Just (ListUsers -> Maybe ListUsers) -> ListUsers -> Maybe ListUsers
forall a b. (a -> b) -> a -> b
Prelude.$
ListUsers
rq
ListUsers -> (ListUsers -> ListUsers) -> ListUsers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListUsers -> Identity ListUsers
Lens ListUsers ListUsers (Maybe Text) (Maybe Text)
listUsers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListUsers -> Identity ListUsers)
-> Maybe Text -> ListUsers -> ListUsers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListUsers
ListUsersResponse
rs
ListUsersResponse
-> Getting (First Text) ListUsersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListUsersResponse -> Const (First Text) ListUsersResponse
Lens' ListUsersResponse (Maybe Text)
listUsersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListUsersResponse -> Const (First Text) ListUsersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListUsersResponse 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 ListUsers where
type AWSResponse ListUsers = ListUsersResponse
request :: ListUsers -> Request ListUsers
request = Service -> ListUsers -> Request ListUsers
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListUsers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListUsers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListUsers))
-> Logger
-> Service
-> Proxy ListUsers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListUsers)))
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 [User] -> Maybe Text -> Int -> ListUsersResponse
ListUsersResponse'
(Maybe [User] -> Maybe Text -> Int -> ListUsersResponse)
-> Either String (Maybe [User])
-> Either String (Maybe Text -> Int -> ListUsersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [User]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Users" Either String (Maybe (Maybe [User]))
-> Maybe [User] -> Either String (Maybe [User])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [User]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListUsersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListUsersResponse)
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 -> ListUsersResponse)
-> Either String Int -> Either String ListUsersResponse
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 ListUsers
instance Prelude.NFData ListUsers
instance Core.ToHeaders ListUsers where
toHeaders :: ListUsers -> ResponseHeaders
toHeaders = ResponseHeaders -> ListUsers -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListUsers where
toPath :: ListUsers -> ByteString
toPath ListUsers' {Maybe Natural
Maybe Text
Maybe (Sensitive Text)
Maybe UserType
Text
accountId :: Text
userType :: Maybe UserType
maxResults :: Maybe Natural
userEmail :: Maybe (Sensitive Text)
nextToken :: Maybe Text
$sel:accountId:ListUsers' :: ListUsers -> Text
$sel:userType:ListUsers' :: ListUsers -> Maybe UserType
$sel:maxResults:ListUsers' :: ListUsers -> Maybe Natural
$sel:userEmail:ListUsers' :: ListUsers -> Maybe (Sensitive Text)
$sel:nextToken:ListUsers' :: ListUsers -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/accounts/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
accountId, ByteString
"/users"]
instance Core.ToQuery ListUsers where
toQuery :: ListUsers -> QueryString
toQuery ListUsers' {Maybe Natural
Maybe Text
Maybe (Sensitive Text)
Maybe UserType
Text
accountId :: Text
userType :: Maybe UserType
maxResults :: Maybe Natural
userEmail :: Maybe (Sensitive Text)
nextToken :: Maybe Text
$sel:accountId:ListUsers' :: ListUsers -> Text
$sel:userType:ListUsers' :: ListUsers -> Maybe UserType
$sel:maxResults:ListUsers' :: ListUsers -> Maybe Natural
$sel:userEmail:ListUsers' :: ListUsers -> Maybe (Sensitive Text)
$sel:nextToken:ListUsers' :: ListUsers -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"user-email" ByteString -> Maybe (Sensitive Text) -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe (Sensitive Text)
userEmail,
ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
ByteString
"user-type" ByteString -> Maybe UserType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe UserType
userType
]
data ListUsersResponse = ListUsersResponse'
{
ListUsersResponse -> Maybe [User]
users :: Prelude.Maybe [User],
ListUsersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListUsersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListUsersResponse -> ListUsersResponse -> Bool
(ListUsersResponse -> ListUsersResponse -> Bool)
-> (ListUsersResponse -> ListUsersResponse -> Bool)
-> Eq ListUsersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUsersResponse -> ListUsersResponse -> Bool
$c/= :: ListUsersResponse -> ListUsersResponse -> Bool
== :: ListUsersResponse -> ListUsersResponse -> Bool
$c== :: ListUsersResponse -> ListUsersResponse -> Bool
Prelude.Eq, Int -> ListUsersResponse -> ShowS
[ListUsersResponse] -> ShowS
ListUsersResponse -> String
(Int -> ListUsersResponse -> ShowS)
-> (ListUsersResponse -> String)
-> ([ListUsersResponse] -> ShowS)
-> Show ListUsersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUsersResponse] -> ShowS
$cshowList :: [ListUsersResponse] -> ShowS
show :: ListUsersResponse -> String
$cshow :: ListUsersResponse -> String
showsPrec :: Int -> ListUsersResponse -> ShowS
$cshowsPrec :: Int -> ListUsersResponse -> ShowS
Prelude.Show, (forall x. ListUsersResponse -> Rep ListUsersResponse x)
-> (forall x. Rep ListUsersResponse x -> ListUsersResponse)
-> Generic ListUsersResponse
forall x. Rep ListUsersResponse x -> ListUsersResponse
forall x. ListUsersResponse -> Rep ListUsersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUsersResponse x -> ListUsersResponse
$cfrom :: forall x. ListUsersResponse -> Rep ListUsersResponse x
Prelude.Generic)
newListUsersResponse ::
Prelude.Int ->
ListUsersResponse
newListUsersResponse :: Int -> ListUsersResponse
newListUsersResponse Int
pHttpStatus_ =
ListUsersResponse' :: Maybe [User] -> Maybe Text -> Int -> ListUsersResponse
ListUsersResponse'
{ $sel:users:ListUsersResponse' :: Maybe [User]
users = Maybe [User]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListUsersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListUsersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listUsersResponse_users :: Lens.Lens' ListUsersResponse (Prelude.Maybe [User])
listUsersResponse_users :: (Maybe [User] -> f (Maybe [User]))
-> ListUsersResponse -> f ListUsersResponse
listUsersResponse_users = (ListUsersResponse -> Maybe [User])
-> (ListUsersResponse -> Maybe [User] -> ListUsersResponse)
-> Lens' ListUsersResponse (Maybe [User])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersResponse' {Maybe [User]
users :: Maybe [User]
$sel:users:ListUsersResponse' :: ListUsersResponse -> Maybe [User]
users} -> Maybe [User]
users) (\s :: ListUsersResponse
s@ListUsersResponse' {} Maybe [User]
a -> ListUsersResponse
s {$sel:users:ListUsersResponse' :: Maybe [User]
users = Maybe [User]
a} :: ListUsersResponse) ((Maybe [User] -> f (Maybe [User]))
-> ListUsersResponse -> f ListUsersResponse)
-> ((Maybe [User] -> f (Maybe [User]))
-> Maybe [User] -> f (Maybe [User]))
-> (Maybe [User] -> f (Maybe [User]))
-> ListUsersResponse
-> f ListUsersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [User] [User] [User] [User]
-> Iso (Maybe [User]) (Maybe [User]) (Maybe [User]) (Maybe [User])
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 [User] [User] [User] [User]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listUsersResponse_nextToken :: Lens.Lens' ListUsersResponse (Prelude.Maybe Prelude.Text)
listUsersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListUsersResponse -> f ListUsersResponse
listUsersResponse_nextToken = (ListUsersResponse -> Maybe Text)
-> (ListUsersResponse -> Maybe Text -> ListUsersResponse)
-> Lens' ListUsersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUsersResponse' :: ListUsersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUsersResponse
s@ListUsersResponse' {} Maybe Text
a -> ListUsersResponse
s {$sel:nextToken:ListUsersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListUsersResponse)
listUsersResponse_httpStatus :: Lens.Lens' ListUsersResponse Prelude.Int
listUsersResponse_httpStatus :: (Int -> f Int) -> ListUsersResponse -> f ListUsersResponse
listUsersResponse_httpStatus = (ListUsersResponse -> Int)
-> (ListUsersResponse -> Int -> ListUsersResponse)
-> Lens ListUsersResponse ListUsersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListUsersResponse' :: ListUsersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListUsersResponse
s@ListUsersResponse' {} Int
a -> ListUsersResponse
s {$sel:httpStatus:ListUsersResponse' :: Int
httpStatus = Int
a} :: ListUsersResponse)
instance Prelude.NFData ListUsersResponse