{-# 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.ListUserPoolClients
-- 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 clients that have been created for the specified user pool.
--
-- This operation returns paginated results.
module Amazonka.CognitoIdentityProvider.ListUserPoolClients
  ( -- * Creating a Request
    ListUserPoolClients (..),
    newListUserPoolClients,

    -- * Request Lenses
    listUserPoolClients_maxResults,
    listUserPoolClients_nextToken,
    listUserPoolClients_userPoolId,

    -- * Destructuring the Response
    ListUserPoolClientsResponse (..),
    newListUserPoolClientsResponse,

    -- * Response Lenses
    listUserPoolClientsResponse_nextToken,
    listUserPoolClientsResponse_userPoolClients,
    listUserPoolClientsResponse_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

-- | Represents the request to list the user pool clients.
--
-- /See:/ 'newListUserPoolClients' smart constructor.
data ListUserPoolClients = ListUserPoolClients'
  { -- | The maximum number of results you want the request to return when
    -- listing the user pool clients.
    ListUserPoolClients -> Maybe Natural
maxResults :: 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.
    ListUserPoolClients -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The user pool ID for the user pool where you want to list user pool
    -- clients.
    ListUserPoolClients -> Text
userPoolId :: Prelude.Text
  }
  deriving (ListUserPoolClients -> ListUserPoolClients -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUserPoolClients -> ListUserPoolClients -> Bool
$c/= :: ListUserPoolClients -> ListUserPoolClients -> Bool
== :: ListUserPoolClients -> ListUserPoolClients -> Bool
$c== :: ListUserPoolClients -> ListUserPoolClients -> Bool
Prelude.Eq, ReadPrec [ListUserPoolClients]
ReadPrec ListUserPoolClients
Int -> ReadS ListUserPoolClients
ReadS [ListUserPoolClients]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUserPoolClients]
$creadListPrec :: ReadPrec [ListUserPoolClients]
readPrec :: ReadPrec ListUserPoolClients
$creadPrec :: ReadPrec ListUserPoolClients
readList :: ReadS [ListUserPoolClients]
$creadList :: ReadS [ListUserPoolClients]
readsPrec :: Int -> ReadS ListUserPoolClients
$creadsPrec :: Int -> ReadS ListUserPoolClients
Prelude.Read, Int -> ListUserPoolClients -> ShowS
[ListUserPoolClients] -> ShowS
ListUserPoolClients -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUserPoolClients] -> ShowS
$cshowList :: [ListUserPoolClients] -> ShowS
show :: ListUserPoolClients -> String
$cshow :: ListUserPoolClients -> String
showsPrec :: Int -> ListUserPoolClients -> ShowS
$cshowsPrec :: Int -> ListUserPoolClients -> ShowS
Prelude.Show, forall x. Rep ListUserPoolClients x -> ListUserPoolClients
forall x. ListUserPoolClients -> Rep ListUserPoolClients x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUserPoolClients x -> ListUserPoolClients
$cfrom :: forall x. ListUserPoolClients -> Rep ListUserPoolClients x
Prelude.Generic)

-- |
-- Create a value of 'ListUserPoolClients' 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:
--
-- 'maxResults', 'listUserPoolClients_maxResults' - The maximum number of results you want the request to return when
-- listing the user pool clients.
--
-- 'nextToken', 'listUserPoolClients_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', 'listUserPoolClients_userPoolId' - The user pool ID for the user pool where you want to list user pool
-- clients.
newListUserPoolClients ::
  -- | 'userPoolId'
  Prelude.Text ->
  ListUserPoolClients
newListUserPoolClients :: Text -> ListUserPoolClients
newListUserPoolClients Text
pUserPoolId_ =
  ListUserPoolClients'
    { $sel:maxResults:ListUserPoolClients' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListUserPoolClients' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:userPoolId:ListUserPoolClients' :: Text
userPoolId = Text
pUserPoolId_
    }

-- | The maximum number of results you want the request to return when
-- listing the user pool clients.
listUserPoolClients_maxResults :: Lens.Lens' ListUserPoolClients (Prelude.Maybe Prelude.Natural)
listUserPoolClients_maxResults :: Lens' ListUserPoolClients (Maybe Natural)
listUserPoolClients_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClients' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListUserPoolClients' :: ListUserPoolClients -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListUserPoolClients
s@ListUserPoolClients' {} Maybe Natural
a -> ListUserPoolClients
s {$sel:maxResults:ListUserPoolClients' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListUserPoolClients)

-- | 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.
listUserPoolClients_nextToken :: Lens.Lens' ListUserPoolClients (Prelude.Maybe Prelude.Text)
listUserPoolClients_nextToken :: Lens' ListUserPoolClients (Maybe Text)
listUserPoolClients_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClients' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUserPoolClients' :: ListUserPoolClients -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUserPoolClients
s@ListUserPoolClients' {} Maybe Text
a -> ListUserPoolClients
s {$sel:nextToken:ListUserPoolClients' :: Maybe Text
nextToken = Maybe Text
a} :: ListUserPoolClients)

-- | The user pool ID for the user pool where you want to list user pool
-- clients.
listUserPoolClients_userPoolId :: Lens.Lens' ListUserPoolClients Prelude.Text
listUserPoolClients_userPoolId :: Lens' ListUserPoolClients Text
listUserPoolClients_userPoolId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClients' {Text
userPoolId :: Text
$sel:userPoolId:ListUserPoolClients' :: ListUserPoolClients -> Text
userPoolId} -> Text
userPoolId) (\s :: ListUserPoolClients
s@ListUserPoolClients' {} Text
a -> ListUserPoolClients
s {$sel:userPoolId:ListUserPoolClients' :: Text
userPoolId = Text
a} :: ListUserPoolClients)

instance Core.AWSPager ListUserPoolClients where
  page :: ListUserPoolClients
-> AWSResponse ListUserPoolClients -> Maybe ListUserPoolClients
page ListUserPoolClients
rq AWSResponse ListUserPoolClients
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListUserPoolClients
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUserPoolClientsResponse (Maybe Text)
listUserPoolClientsResponse_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 ListUserPoolClients
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListUserPoolClientsResponse (Maybe [UserPoolClientDescription])
listUserPoolClientsResponse_userPoolClients
            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.$ ListUserPoolClients
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListUserPoolClients (Maybe Text)
listUserPoolClients_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListUserPoolClients
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUserPoolClientsResponse (Maybe Text)
listUserPoolClientsResponse_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 ListUserPoolClients where
  type
    AWSResponse ListUserPoolClients =
      ListUserPoolClientsResponse
  request :: (Service -> Service)
-> ListUserPoolClients -> Request ListUserPoolClients
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 ListUserPoolClients
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListUserPoolClients)))
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 [UserPoolClientDescription]
-> Int
-> ListUserPoolClientsResponse
ListUserPoolClientsResponse'
            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
"UserPoolClients"
                            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 ListUserPoolClients where
  hashWithSalt :: Int -> ListUserPoolClients -> Int
hashWithSalt Int
_salt ListUserPoolClients' {Maybe Natural
Maybe Text
Text
userPoolId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:userPoolId:ListUserPoolClients' :: ListUserPoolClients -> Text
$sel:nextToken:ListUserPoolClients' :: ListUserPoolClients -> Maybe Text
$sel:maxResults:ListUserPoolClients' :: ListUserPoolClients -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userPoolId

instance Prelude.NFData ListUserPoolClients where
  rnf :: ListUserPoolClients -> ()
rnf ListUserPoolClients' {Maybe Natural
Maybe Text
Text
userPoolId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:userPoolId:ListUserPoolClients' :: ListUserPoolClients -> Text
$sel:nextToken:ListUserPoolClients' :: ListUserPoolClients -> Maybe Text
$sel:maxResults:ListUserPoolClients' :: ListUserPoolClients -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      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

instance Data.ToHeaders ListUserPoolClients where
  toHeaders :: ListUserPoolClients -> 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.ListUserPoolClients" ::
                          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 ListUserPoolClients where
  toJSON :: ListUserPoolClients -> Value
toJSON ListUserPoolClients' {Maybe Natural
Maybe Text
Text
userPoolId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:userPoolId:ListUserPoolClients' :: ListUserPoolClients -> Text
$sel:nextToken:ListUserPoolClients' :: ListUserPoolClients -> Maybe Text
$sel:maxResults:ListUserPoolClients' :: ListUserPoolClients -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"MaxResults" 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
maxResults,
            (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)
          ]
      )

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

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

-- | Represents the response from the server that lists user pool clients.
--
-- /See:/ 'newListUserPoolClientsResponse' smart constructor.
data ListUserPoolClientsResponse = ListUserPoolClientsResponse'
  { -- | 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.
    ListUserPoolClientsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The user pool clients in the response that lists user pool clients.
    ListUserPoolClientsResponse -> Maybe [UserPoolClientDescription]
userPoolClients :: Prelude.Maybe [UserPoolClientDescription],
    -- | The response's http status code.
    ListUserPoolClientsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListUserPoolClientsResponse -> ListUserPoolClientsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUserPoolClientsResponse -> ListUserPoolClientsResponse -> Bool
$c/= :: ListUserPoolClientsResponse -> ListUserPoolClientsResponse -> Bool
== :: ListUserPoolClientsResponse -> ListUserPoolClientsResponse -> Bool
$c== :: ListUserPoolClientsResponse -> ListUserPoolClientsResponse -> Bool
Prelude.Eq, Int -> ListUserPoolClientsResponse -> ShowS
[ListUserPoolClientsResponse] -> ShowS
ListUserPoolClientsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUserPoolClientsResponse] -> ShowS
$cshowList :: [ListUserPoolClientsResponse] -> ShowS
show :: ListUserPoolClientsResponse -> String
$cshow :: ListUserPoolClientsResponse -> String
showsPrec :: Int -> ListUserPoolClientsResponse -> ShowS
$cshowsPrec :: Int -> ListUserPoolClientsResponse -> ShowS
Prelude.Show, forall x.
Rep ListUserPoolClientsResponse x -> ListUserPoolClientsResponse
forall x.
ListUserPoolClientsResponse -> Rep ListUserPoolClientsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListUserPoolClientsResponse x -> ListUserPoolClientsResponse
$cfrom :: forall x.
ListUserPoolClientsResponse -> Rep ListUserPoolClientsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListUserPoolClientsResponse' 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', 'listUserPoolClientsResponse_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.
--
-- 'userPoolClients', 'listUserPoolClientsResponse_userPoolClients' - The user pool clients in the response that lists user pool clients.
--
-- 'httpStatus', 'listUserPoolClientsResponse_httpStatus' - The response's http status code.
newListUserPoolClientsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListUserPoolClientsResponse
newListUserPoolClientsResponse :: Int -> ListUserPoolClientsResponse
newListUserPoolClientsResponse Int
pHttpStatus_ =
  ListUserPoolClientsResponse'
    { $sel:nextToken:ListUserPoolClientsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:userPoolClients:ListUserPoolClientsResponse' :: Maybe [UserPoolClientDescription]
userPoolClients = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListUserPoolClientsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | 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.
listUserPoolClientsResponse_nextToken :: Lens.Lens' ListUserPoolClientsResponse (Prelude.Maybe Prelude.Text)
listUserPoolClientsResponse_nextToken :: Lens' ListUserPoolClientsResponse (Maybe Text)
listUserPoolClientsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClientsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUserPoolClientsResponse
s@ListUserPoolClientsResponse' {} Maybe Text
a -> ListUserPoolClientsResponse
s {$sel:nextToken:ListUserPoolClientsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListUserPoolClientsResponse)

-- | The user pool clients in the response that lists user pool clients.
listUserPoolClientsResponse_userPoolClients :: Lens.Lens' ListUserPoolClientsResponse (Prelude.Maybe [UserPoolClientDescription])
listUserPoolClientsResponse_userPoolClients :: Lens'
  ListUserPoolClientsResponse (Maybe [UserPoolClientDescription])
listUserPoolClientsResponse_userPoolClients = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClientsResponse' {Maybe [UserPoolClientDescription]
userPoolClients :: Maybe [UserPoolClientDescription]
$sel:userPoolClients:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> Maybe [UserPoolClientDescription]
userPoolClients} -> Maybe [UserPoolClientDescription]
userPoolClients) (\s :: ListUserPoolClientsResponse
s@ListUserPoolClientsResponse' {} Maybe [UserPoolClientDescription]
a -> ListUserPoolClientsResponse
s {$sel:userPoolClients:ListUserPoolClientsResponse' :: Maybe [UserPoolClientDescription]
userPoolClients = Maybe [UserPoolClientDescription]
a} :: ListUserPoolClientsResponse) 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.
listUserPoolClientsResponse_httpStatus :: Lens.Lens' ListUserPoolClientsResponse Prelude.Int
listUserPoolClientsResponse_httpStatus :: Lens' ListUserPoolClientsResponse Int
listUserPoolClientsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserPoolClientsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListUserPoolClientsResponse
s@ListUserPoolClientsResponse' {} Int
a -> ListUserPoolClientsResponse
s {$sel:httpStatus:ListUserPoolClientsResponse' :: Int
httpStatus = Int
a} :: ListUserPoolClientsResponse)

instance Prelude.NFData ListUserPoolClientsResponse where
  rnf :: ListUserPoolClientsResponse -> ()
rnf ListUserPoolClientsResponse' {Int
Maybe [UserPoolClientDescription]
Maybe Text
httpStatus :: Int
userPoolClients :: Maybe [UserPoolClientDescription]
nextToken :: Maybe Text
$sel:httpStatus:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> Int
$sel:userPoolClients:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> Maybe [UserPoolClientDescription]
$sel:nextToken:ListUserPoolClientsResponse' :: ListUserPoolClientsResponse -> 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 [UserPoolClientDescription]
userPoolClients
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus