{-# 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.AppStream.DescribeUsers
(
DescribeUsers (..),
newDescribeUsers,
describeUsers_nextToken,
describeUsers_maxResults,
describeUsers_authenticationType,
DescribeUsersResponse (..),
newDescribeUsersResponse,
describeUsersResponse_users,
describeUsersResponse_nextToken,
describeUsersResponse_httpStatus,
)
where
import Amazonka.AppStream.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 DescribeUsers = DescribeUsers'
{
DescribeUsers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeUsers -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
DescribeUsers -> AuthenticationType
authenticationType :: AuthenticationType
}
deriving (DescribeUsers -> DescribeUsers -> Bool
(DescribeUsers -> DescribeUsers -> Bool)
-> (DescribeUsers -> DescribeUsers -> Bool) -> Eq DescribeUsers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUsers -> DescribeUsers -> Bool
$c/= :: DescribeUsers -> DescribeUsers -> Bool
== :: DescribeUsers -> DescribeUsers -> Bool
$c== :: DescribeUsers -> DescribeUsers -> Bool
Prelude.Eq, ReadPrec [DescribeUsers]
ReadPrec DescribeUsers
Int -> ReadS DescribeUsers
ReadS [DescribeUsers]
(Int -> ReadS DescribeUsers)
-> ReadS [DescribeUsers]
-> ReadPrec DescribeUsers
-> ReadPrec [DescribeUsers]
-> Read DescribeUsers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUsers]
$creadListPrec :: ReadPrec [DescribeUsers]
readPrec :: ReadPrec DescribeUsers
$creadPrec :: ReadPrec DescribeUsers
readList :: ReadS [DescribeUsers]
$creadList :: ReadS [DescribeUsers]
readsPrec :: Int -> ReadS DescribeUsers
$creadsPrec :: Int -> ReadS DescribeUsers
Prelude.Read, Int -> DescribeUsers -> ShowS
[DescribeUsers] -> ShowS
DescribeUsers -> String
(Int -> DescribeUsers -> ShowS)
-> (DescribeUsers -> String)
-> ([DescribeUsers] -> ShowS)
-> Show DescribeUsers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUsers] -> ShowS
$cshowList :: [DescribeUsers] -> ShowS
show :: DescribeUsers -> String
$cshow :: DescribeUsers -> String
showsPrec :: Int -> DescribeUsers -> ShowS
$cshowsPrec :: Int -> DescribeUsers -> ShowS
Prelude.Show, (forall x. DescribeUsers -> Rep DescribeUsers x)
-> (forall x. Rep DescribeUsers x -> DescribeUsers)
-> Generic DescribeUsers
forall x. Rep DescribeUsers x -> DescribeUsers
forall x. DescribeUsers -> Rep DescribeUsers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeUsers x -> DescribeUsers
$cfrom :: forall x. DescribeUsers -> Rep DescribeUsers x
Prelude.Generic)
newDescribeUsers ::
AuthenticationType ->
DescribeUsers
newDescribeUsers :: AuthenticationType -> DescribeUsers
newDescribeUsers AuthenticationType
pAuthenticationType_ =
DescribeUsers' :: Maybe Text -> Maybe Int -> AuthenticationType -> DescribeUsers
DescribeUsers'
{ $sel:nextToken:DescribeUsers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeUsers' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationType:DescribeUsers' :: AuthenticationType
authenticationType = AuthenticationType
pAuthenticationType_
}
describeUsers_nextToken :: Lens.Lens' DescribeUsers (Prelude.Maybe Prelude.Text)
describeUsers_nextToken :: (Maybe Text -> f (Maybe Text)) -> DescribeUsers -> f DescribeUsers
describeUsers_nextToken = (DescribeUsers -> Maybe Text)
-> (DescribeUsers -> Maybe Text -> DescribeUsers)
-> Lens DescribeUsers DescribeUsers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeUsers' :: DescribeUsers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeUsers
s@DescribeUsers' {} Maybe Text
a -> DescribeUsers
s {$sel:nextToken:DescribeUsers' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeUsers)
describeUsers_maxResults :: Lens.Lens' DescribeUsers (Prelude.Maybe Prelude.Int)
describeUsers_maxResults :: (Maybe Int -> f (Maybe Int)) -> DescribeUsers -> f DescribeUsers
describeUsers_maxResults = (DescribeUsers -> Maybe Int)
-> (DescribeUsers -> Maybe Int -> DescribeUsers)
-> Lens DescribeUsers DescribeUsers (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsers' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeUsers' :: DescribeUsers -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeUsers
s@DescribeUsers' {} Maybe Int
a -> DescribeUsers
s {$sel:maxResults:DescribeUsers' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeUsers)
describeUsers_authenticationType :: Lens.Lens' DescribeUsers AuthenticationType
describeUsers_authenticationType :: (AuthenticationType -> f AuthenticationType)
-> DescribeUsers -> f DescribeUsers
describeUsers_authenticationType = (DescribeUsers -> AuthenticationType)
-> (DescribeUsers -> AuthenticationType -> DescribeUsers)
-> Lens
DescribeUsers DescribeUsers AuthenticationType AuthenticationType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsers' {AuthenticationType
authenticationType :: AuthenticationType
$sel:authenticationType:DescribeUsers' :: DescribeUsers -> AuthenticationType
authenticationType} -> AuthenticationType
authenticationType) (\s :: DescribeUsers
s@DescribeUsers' {} AuthenticationType
a -> DescribeUsers
s {$sel:authenticationType:DescribeUsers' :: AuthenticationType
authenticationType = AuthenticationType
a} :: DescribeUsers)
instance Core.AWSPager DescribeUsers where
page :: DescribeUsers -> AWSResponse DescribeUsers -> Maybe DescribeUsers
page DescribeUsers
rq AWSResponse DescribeUsers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeUsers
DescribeUsersResponse
rs
DescribeUsersResponse
-> Getting (First Text) DescribeUsersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeUsersResponse
-> Const (First Text) DescribeUsersResponse
Lens' DescribeUsersResponse (Maybe Text)
describeUsersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeUsersResponse
-> Const (First Text) DescribeUsersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeUsersResponse 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 DescribeUsers
forall a. Maybe a
Prelude.Nothing
| Maybe [User] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeUsers
DescribeUsersResponse
rs
DescribeUsersResponse
-> Getting (First [User]) DescribeUsersResponse [User]
-> Maybe [User]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [User] -> Const (First [User]) (Maybe [User]))
-> DescribeUsersResponse
-> Const (First [User]) DescribeUsersResponse
Lens' DescribeUsersResponse (Maybe [User])
describeUsersResponse_users ((Maybe [User] -> Const (First [User]) (Maybe [User]))
-> DescribeUsersResponse
-> Const (First [User]) DescribeUsersResponse)
-> (([User] -> Const (First [User]) [User])
-> Maybe [User] -> Const (First [User]) (Maybe [User]))
-> Getting (First [User]) DescribeUsersResponse [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 DescribeUsers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeUsers -> Maybe DescribeUsers
forall a. a -> Maybe a
Prelude.Just (DescribeUsers -> Maybe DescribeUsers)
-> DescribeUsers -> Maybe DescribeUsers
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeUsers
rq
DescribeUsers -> (DescribeUsers -> DescribeUsers) -> DescribeUsers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeUsers -> Identity DescribeUsers
Lens DescribeUsers DescribeUsers (Maybe Text) (Maybe Text)
describeUsers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeUsers -> Identity DescribeUsers)
-> Maybe Text -> DescribeUsers -> DescribeUsers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeUsers
DescribeUsersResponse
rs
DescribeUsersResponse
-> Getting (First Text) DescribeUsersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeUsersResponse
-> Const (First Text) DescribeUsersResponse
Lens' DescribeUsersResponse (Maybe Text)
describeUsersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeUsersResponse
-> Const (First Text) DescribeUsersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeUsersResponse 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 DescribeUsers where
type
AWSResponse DescribeUsers =
DescribeUsersResponse
request :: DescribeUsers -> Request DescribeUsers
request = Service -> DescribeUsers -> Request DescribeUsers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeUsers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeUsers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeUsers))
-> Logger
-> Service
-> Proxy DescribeUsers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeUsers)))
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 -> DescribeUsersResponse
DescribeUsersResponse'
(Maybe [User] -> Maybe Text -> Int -> DescribeUsersResponse)
-> Either String (Maybe [User])
-> Either String (Maybe Text -> Int -> DescribeUsersResponse)
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 -> DescribeUsersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeUsersResponse)
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 -> DescribeUsersResponse)
-> Either String Int -> Either String DescribeUsersResponse
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 DescribeUsers
instance Prelude.NFData DescribeUsers
instance Core.ToHeaders DescribeUsers where
toHeaders :: DescribeUsers -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeUsers -> 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
"PhotonAdminProxyService.DescribeUsers" ::
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 DescribeUsers where
toJSON :: DescribeUsers -> Value
toJSON DescribeUsers' {Maybe Int
Maybe Text
AuthenticationType
authenticationType :: AuthenticationType
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:authenticationType:DescribeUsers' :: DescribeUsers -> AuthenticationType
$sel:maxResults:DescribeUsers' :: DescribeUsers -> Maybe Int
$sel:nextToken:DescribeUsers' :: DescribeUsers -> 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,
(Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"AuthenticationType" Text -> AuthenticationType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= AuthenticationType
authenticationType)
]
)
instance Core.ToPath DescribeUsers where
toPath :: DescribeUsers -> ByteString
toPath = ByteString -> DescribeUsers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeUsers where
toQuery :: DescribeUsers -> QueryString
toQuery = QueryString -> DescribeUsers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeUsersResponse = DescribeUsersResponse'
{
DescribeUsersResponse -> Maybe [User]
users :: Prelude.Maybe [User],
DescribeUsersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeUsersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeUsersResponse -> DescribeUsersResponse -> Bool
(DescribeUsersResponse -> DescribeUsersResponse -> Bool)
-> (DescribeUsersResponse -> DescribeUsersResponse -> Bool)
-> Eq DescribeUsersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUsersResponse -> DescribeUsersResponse -> Bool
$c/= :: DescribeUsersResponse -> DescribeUsersResponse -> Bool
== :: DescribeUsersResponse -> DescribeUsersResponse -> Bool
$c== :: DescribeUsersResponse -> DescribeUsersResponse -> Bool
Prelude.Eq, Int -> DescribeUsersResponse -> ShowS
[DescribeUsersResponse] -> ShowS
DescribeUsersResponse -> String
(Int -> DescribeUsersResponse -> ShowS)
-> (DescribeUsersResponse -> String)
-> ([DescribeUsersResponse] -> ShowS)
-> Show DescribeUsersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUsersResponse] -> ShowS
$cshowList :: [DescribeUsersResponse] -> ShowS
show :: DescribeUsersResponse -> String
$cshow :: DescribeUsersResponse -> String
showsPrec :: Int -> DescribeUsersResponse -> ShowS
$cshowsPrec :: Int -> DescribeUsersResponse -> ShowS
Prelude.Show, (forall x. DescribeUsersResponse -> Rep DescribeUsersResponse x)
-> (forall x. Rep DescribeUsersResponse x -> DescribeUsersResponse)
-> Generic DescribeUsersResponse
forall x. Rep DescribeUsersResponse x -> DescribeUsersResponse
forall x. DescribeUsersResponse -> Rep DescribeUsersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeUsersResponse x -> DescribeUsersResponse
$cfrom :: forall x. DescribeUsersResponse -> Rep DescribeUsersResponse x
Prelude.Generic)
newDescribeUsersResponse ::
Prelude.Int ->
DescribeUsersResponse
newDescribeUsersResponse :: Int -> DescribeUsersResponse
newDescribeUsersResponse Int
pHttpStatus_ =
DescribeUsersResponse' :: Maybe [User] -> Maybe Text -> Int -> DescribeUsersResponse
DescribeUsersResponse'
{ $sel:users:DescribeUsersResponse' :: Maybe [User]
users = Maybe [User]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeUsersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeUsersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeUsersResponse_users :: Lens.Lens' DescribeUsersResponse (Prelude.Maybe [User])
describeUsersResponse_users :: (Maybe [User] -> f (Maybe [User]))
-> DescribeUsersResponse -> f DescribeUsersResponse
describeUsersResponse_users = (DescribeUsersResponse -> Maybe [User])
-> (DescribeUsersResponse -> Maybe [User] -> DescribeUsersResponse)
-> Lens' DescribeUsersResponse (Maybe [User])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsersResponse' {Maybe [User]
users :: Maybe [User]
$sel:users:DescribeUsersResponse' :: DescribeUsersResponse -> Maybe [User]
users} -> Maybe [User]
users) (\s :: DescribeUsersResponse
s@DescribeUsersResponse' {} Maybe [User]
a -> DescribeUsersResponse
s {$sel:users:DescribeUsersResponse' :: Maybe [User]
users = Maybe [User]
a} :: DescribeUsersResponse) ((Maybe [User] -> f (Maybe [User]))
-> DescribeUsersResponse -> f DescribeUsersResponse)
-> ((Maybe [User] -> f (Maybe [User]))
-> Maybe [User] -> f (Maybe [User]))
-> (Maybe [User] -> f (Maybe [User]))
-> DescribeUsersResponse
-> f DescribeUsersResponse
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
describeUsersResponse_nextToken :: Lens.Lens' DescribeUsersResponse (Prelude.Maybe Prelude.Text)
describeUsersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeUsersResponse -> f DescribeUsersResponse
describeUsersResponse_nextToken = (DescribeUsersResponse -> Maybe Text)
-> (DescribeUsersResponse -> Maybe Text -> DescribeUsersResponse)
-> Lens' DescribeUsersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeUsersResponse' :: DescribeUsersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeUsersResponse
s@DescribeUsersResponse' {} Maybe Text
a -> DescribeUsersResponse
s {$sel:nextToken:DescribeUsersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeUsersResponse)
describeUsersResponse_httpStatus :: Lens.Lens' DescribeUsersResponse Prelude.Int
describeUsersResponse_httpStatus :: (Int -> f Int) -> DescribeUsersResponse -> f DescribeUsersResponse
describeUsersResponse_httpStatus = (DescribeUsersResponse -> Int)
-> (DescribeUsersResponse -> Int -> DescribeUsersResponse)
-> Lens DescribeUsersResponse DescribeUsersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsersResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeUsersResponse' :: DescribeUsersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeUsersResponse
s@DescribeUsersResponse' {} Int
a -> DescribeUsersResponse
s {$sel:httpStatus:DescribeUsersResponse' :: Int
httpStatus = Int
a} :: DescribeUsersResponse)
instance Prelude.NFData DescribeUsersResponse