{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CognitoIdentityProvider.ListUsersInGroup
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the users in the specified group.
--
-- Calling this action requires developer credentials.
--
-- This operation returns paginated results.
module Amazonka.CognitoIdentityProvider.ListUsersInGroup
  ( -- * Creating a Request
    ListUsersInGroup (..),
    newListUsersInGroup,

    -- * Request Lenses
    listUsersInGroup_limit,
    listUsersInGroup_nextToken,
    listUsersInGroup_userPoolId,
    listUsersInGroup_groupName,

    -- * Destructuring the Response
    ListUsersInGroupResponse (..),
    newListUsersInGroupResponse,

    -- * Response Lenses
    listUsersInGroupResponse_nextToken,
    listUsersInGroupResponse_users,
    listUsersInGroupResponse_httpStatus,
  )
where

import Amazonka.CognitoIdentityProvider.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListUsersInGroup' smart constructor.
data ListUsersInGroup = ListUsersInGroup'
  { -- | The limit of the request to list users.
    ListUsersInGroup -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | An identifier that was returned from the previous call to this
    -- operation, which can be used to return the next set of items in the
    -- list.
    ListUsersInGroup -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The user pool ID for the user pool.
    ListUsersInGroup -> Text
userPoolId :: Prelude.Text,
    -- | The name of the group.
    ListUsersInGroup -> Text
groupName :: Prelude.Text
  }
  deriving (ListUsersInGroup -> ListUsersInGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUsersInGroup -> ListUsersInGroup -> Bool
$c/= :: ListUsersInGroup -> ListUsersInGroup -> Bool
== :: ListUsersInGroup -> ListUsersInGroup -> Bool
$c== :: ListUsersInGroup -> ListUsersInGroup -> Bool
Prelude.Eq, ReadPrec [ListUsersInGroup]
ReadPrec ListUsersInGroup
Int -> ReadS ListUsersInGroup
ReadS [ListUsersInGroup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUsersInGroup]
$creadListPrec :: ReadPrec [ListUsersInGroup]
readPrec :: ReadPrec ListUsersInGroup
$creadPrec :: ReadPrec ListUsersInGroup
readList :: ReadS [ListUsersInGroup]
$creadList :: ReadS [ListUsersInGroup]
readsPrec :: Int -> ReadS ListUsersInGroup
$creadsPrec :: Int -> ReadS ListUsersInGroup
Prelude.Read, Int -> ListUsersInGroup -> ShowS
[ListUsersInGroup] -> ShowS
ListUsersInGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUsersInGroup] -> ShowS
$cshowList :: [ListUsersInGroup] -> ShowS
show :: ListUsersInGroup -> String
$cshow :: ListUsersInGroup -> String
showsPrec :: Int -> ListUsersInGroup -> ShowS
$cshowsPrec :: Int -> ListUsersInGroup -> ShowS
Prelude.Show, forall x. Rep ListUsersInGroup x -> ListUsersInGroup
forall x. ListUsersInGroup -> Rep ListUsersInGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUsersInGroup x -> ListUsersInGroup
$cfrom :: forall x. ListUsersInGroup -> Rep ListUsersInGroup x
Prelude.Generic)

-- |
-- Create a value of 'ListUsersInGroup' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'limit', 'listUsersInGroup_limit' - The limit of the request to list users.
--
-- 'nextToken', 'listUsersInGroup_nextToken' - An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
--
-- 'userPoolId', 'listUsersInGroup_userPoolId' - The user pool ID for the user pool.
--
-- 'groupName', 'listUsersInGroup_groupName' - The name of the group.
newListUsersInGroup ::
  -- | 'userPoolId'
  Prelude.Text ->
  -- | 'groupName'
  Prelude.Text ->
  ListUsersInGroup
newListUsersInGroup :: Text -> Text -> ListUsersInGroup
newListUsersInGroup Text
pUserPoolId_ Text
pGroupName_ =
  ListUsersInGroup'
    { $sel:limit:ListUsersInGroup' :: Maybe Natural
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListUsersInGroup' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:userPoolId:ListUsersInGroup' :: Text
userPoolId = Text
pUserPoolId_,
      $sel:groupName:ListUsersInGroup' :: Text
groupName = Text
pGroupName_
    }

-- | The limit of the request to list users.
listUsersInGroup_limit :: Lens.Lens' ListUsersInGroup (Prelude.Maybe Prelude.Natural)
listUsersInGroup_limit :: Lens' ListUsersInGroup (Maybe Natural)
listUsersInGroup_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroup' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListUsersInGroup' :: ListUsersInGroup -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListUsersInGroup
s@ListUsersInGroup' {} Maybe Natural
a -> ListUsersInGroup
s {$sel:limit:ListUsersInGroup' :: Maybe Natural
limit = Maybe Natural
a} :: ListUsersInGroup)

-- | An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
listUsersInGroup_nextToken :: Lens.Lens' ListUsersInGroup (Prelude.Maybe Prelude.Text)
listUsersInGroup_nextToken :: Lens' ListUsersInGroup (Maybe Text)
listUsersInGroup_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroup' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUsersInGroup' :: ListUsersInGroup -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUsersInGroup
s@ListUsersInGroup' {} Maybe Text
a -> ListUsersInGroup
s {$sel:nextToken:ListUsersInGroup' :: Maybe Text
nextToken = Maybe Text
a} :: ListUsersInGroup)

-- | The user pool ID for the user pool.
listUsersInGroup_userPoolId :: Lens.Lens' ListUsersInGroup Prelude.Text
listUsersInGroup_userPoolId :: Lens' ListUsersInGroup Text
listUsersInGroup_userPoolId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroup' {Text
userPoolId :: Text
$sel:userPoolId:ListUsersInGroup' :: ListUsersInGroup -> Text
userPoolId} -> Text
userPoolId) (\s :: ListUsersInGroup
s@ListUsersInGroup' {} Text
a -> ListUsersInGroup
s {$sel:userPoolId:ListUsersInGroup' :: Text
userPoolId = Text
a} :: ListUsersInGroup)

-- | The name of the group.
listUsersInGroup_groupName :: Lens.Lens' ListUsersInGroup Prelude.Text
listUsersInGroup_groupName :: Lens' ListUsersInGroup Text
listUsersInGroup_groupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroup' {Text
groupName :: Text
$sel:groupName:ListUsersInGroup' :: ListUsersInGroup -> Text
groupName} -> Text
groupName) (\s :: ListUsersInGroup
s@ListUsersInGroup' {} Text
a -> ListUsersInGroup
s {$sel:groupName:ListUsersInGroup' :: Text
groupName = Text
a} :: ListUsersInGroup)

instance Core.AWSPager ListUsersInGroup where
  page :: ListUsersInGroup
-> AWSResponse ListUsersInGroup -> Maybe ListUsersInGroup
page ListUsersInGroup
rq AWSResponse ListUsersInGroup
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListUsersInGroup
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUsersInGroupResponse (Maybe Text)
listUsersInGroupResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListUsersInGroup
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUsersInGroupResponse (Maybe [UserType])
listUsersInGroupResponse_users
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListUsersInGroup
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListUsersInGroup (Maybe Text)
listUsersInGroup_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListUsersInGroup
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUsersInGroupResponse (Maybe Text)
listUsersInGroupResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListUsersInGroup where
  type
    AWSResponse ListUsersInGroup =
      ListUsersInGroupResponse
  request :: (Service -> Service)
-> ListUsersInGroup -> Request ListUsersInGroup
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListUsersInGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListUsersInGroup)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Maybe [UserType] -> Int -> ListUsersInGroupResponse
ListUsersInGroupResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Users" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListUsersInGroup where
  hashWithSalt :: Int -> ListUsersInGroup -> Int
hashWithSalt Int
_salt ListUsersInGroup' {Maybe Natural
Maybe Text
Text
groupName :: Text
userPoolId :: Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:groupName:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:userPoolId:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:nextToken:ListUsersInGroup' :: ListUsersInGroup -> Maybe Text
$sel:limit:ListUsersInGroup' :: ListUsersInGroup -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userPoolId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
groupName

instance Prelude.NFData ListUsersInGroup where
  rnf :: ListUsersInGroup -> ()
rnf ListUsersInGroup' {Maybe Natural
Maybe Text
Text
groupName :: Text
userPoolId :: Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:groupName:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:userPoolId:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:nextToken:ListUsersInGroup' :: ListUsersInGroup -> Maybe Text
$sel:limit:ListUsersInGroup' :: ListUsersInGroup -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
userPoolId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
groupName

instance Data.ToHeaders ListUsersInGroup where
  toHeaders :: ListUsersInGroup -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSCognitoIdentityProviderService.ListUsersInGroup" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListUsersInGroup where
  toJSON :: ListUsersInGroup -> Value
toJSON ListUsersInGroup' {Maybe Natural
Maybe Text
Text
groupName :: Text
userPoolId :: Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:groupName:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:userPoolId:ListUsersInGroup' :: ListUsersInGroup -> Text
$sel:nextToken:ListUsersInGroup' :: ListUsersInGroup -> Maybe Text
$sel:limit:ListUsersInGroup' :: ListUsersInGroup -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Limit" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"UserPoolId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
userPoolId),
            forall a. a -> Maybe a
Prelude.Just (Key
"GroupName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
groupName)
          ]
      )

instance Data.ToPath ListUsersInGroup where
  toPath :: ListUsersInGroup -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListUsersInGroup where
  toQuery :: ListUsersInGroup -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListUsersInGroupResponse' smart constructor.
data ListUsersInGroupResponse = ListUsersInGroupResponse'
  { -- | An identifier that you can use in a later request to return the next set
    -- of items in the list.
    ListUsersInGroupResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The users returned in the request to list users.
    ListUsersInGroupResponse -> Maybe [UserType]
users :: Prelude.Maybe [UserType],
    -- | The response's http status code.
    ListUsersInGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListUsersInGroupResponse -> ListUsersInGroupResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUsersInGroupResponse -> ListUsersInGroupResponse -> Bool
$c/= :: ListUsersInGroupResponse -> ListUsersInGroupResponse -> Bool
== :: ListUsersInGroupResponse -> ListUsersInGroupResponse -> Bool
$c== :: ListUsersInGroupResponse -> ListUsersInGroupResponse -> Bool
Prelude.Eq, Int -> ListUsersInGroupResponse -> ShowS
[ListUsersInGroupResponse] -> ShowS
ListUsersInGroupResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUsersInGroupResponse] -> ShowS
$cshowList :: [ListUsersInGroupResponse] -> ShowS
show :: ListUsersInGroupResponse -> String
$cshow :: ListUsersInGroupResponse -> String
showsPrec :: Int -> ListUsersInGroupResponse -> ShowS
$cshowsPrec :: Int -> ListUsersInGroupResponse -> ShowS
Prelude.Show, forall x.
Rep ListUsersInGroupResponse x -> ListUsersInGroupResponse
forall x.
ListUsersInGroupResponse -> Rep ListUsersInGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListUsersInGroupResponse x -> ListUsersInGroupResponse
$cfrom :: forall x.
ListUsersInGroupResponse -> Rep ListUsersInGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListUsersInGroupResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listUsersInGroupResponse_nextToken' - An identifier that you can use in a later request to return the next set
-- of items in the list.
--
-- 'users', 'listUsersInGroupResponse_users' - The users returned in the request to list users.
--
-- 'httpStatus', 'listUsersInGroupResponse_httpStatus' - The response's http status code.
newListUsersInGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListUsersInGroupResponse
newListUsersInGroupResponse :: Int -> ListUsersInGroupResponse
newListUsersInGroupResponse Int
pHttpStatus_ =
  ListUsersInGroupResponse'
    { $sel:nextToken:ListUsersInGroupResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:users:ListUsersInGroupResponse' :: Maybe [UserType]
users = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListUsersInGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An identifier that you can use in a later request to return the next set
-- of items in the list.
listUsersInGroupResponse_nextToken :: Lens.Lens' ListUsersInGroupResponse (Prelude.Maybe Prelude.Text)
listUsersInGroupResponse_nextToken :: Lens' ListUsersInGroupResponse (Maybe Text)
listUsersInGroupResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroupResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUsersInGroupResponse
s@ListUsersInGroupResponse' {} Maybe Text
a -> ListUsersInGroupResponse
s {$sel:nextToken:ListUsersInGroupResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListUsersInGroupResponse)

-- | The users returned in the request to list users.
listUsersInGroupResponse_users :: Lens.Lens' ListUsersInGroupResponse (Prelude.Maybe [UserType])
listUsersInGroupResponse_users :: Lens' ListUsersInGroupResponse (Maybe [UserType])
listUsersInGroupResponse_users = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroupResponse' {Maybe [UserType]
users :: Maybe [UserType]
$sel:users:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Maybe [UserType]
users} -> Maybe [UserType]
users) (\s :: ListUsersInGroupResponse
s@ListUsersInGroupResponse' {} Maybe [UserType]
a -> ListUsersInGroupResponse
s {$sel:users:ListUsersInGroupResponse' :: Maybe [UserType]
users = Maybe [UserType]
a} :: ListUsersInGroupResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listUsersInGroupResponse_httpStatus :: Lens.Lens' ListUsersInGroupResponse Prelude.Int
listUsersInGroupResponse_httpStatus :: Lens' ListUsersInGroupResponse Int
listUsersInGroupResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUsersInGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListUsersInGroupResponse
s@ListUsersInGroupResponse' {} Int
a -> ListUsersInGroupResponse
s {$sel:httpStatus:ListUsersInGroupResponse' :: Int
httpStatus = Int
a} :: ListUsersInGroupResponse)

instance Prelude.NFData ListUsersInGroupResponse where
  rnf :: ListUsersInGroupResponse -> ()
rnf ListUsersInGroupResponse' {Int
Maybe [UserType]
Maybe Text
httpStatus :: Int
users :: Maybe [UserType]
nextToken :: Maybe Text
$sel:httpStatus:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Int
$sel:users:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Maybe [UserType]
$sel:nextToken:ListUsersInGroupResponse' :: ListUsersInGroupResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [UserType]
users
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus