{-# 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.Detective.ListOrganizationAdminAccounts
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about the Detective administrator account for an
-- organization. Can only be called by the organization management account.
module Amazonka.Detective.ListOrganizationAdminAccounts
  ( -- * Creating a Request
    ListOrganizationAdminAccounts (..),
    newListOrganizationAdminAccounts,

    -- * Request Lenses
    listOrganizationAdminAccounts_maxResults,
    listOrganizationAdminAccounts_nextToken,

    -- * Destructuring the Response
    ListOrganizationAdminAccountsResponse (..),
    newListOrganizationAdminAccountsResponse,

    -- * Response Lenses
    listOrganizationAdminAccountsResponse_administrators,
    listOrganizationAdminAccountsResponse_nextToken,
    listOrganizationAdminAccountsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListOrganizationAdminAccounts' smart constructor.
data ListOrganizationAdminAccounts = ListOrganizationAdminAccounts'
  { -- | The maximum number of results to return.
    ListOrganizationAdminAccounts -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | For requests to get the next page of results, the pagination token that
    -- was returned with the previous set of results. The initial request does
    -- not include a pagination token.
    ListOrganizationAdminAccounts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListOrganizationAdminAccounts
-> ListOrganizationAdminAccounts -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOrganizationAdminAccounts
-> ListOrganizationAdminAccounts -> Bool
$c/= :: ListOrganizationAdminAccounts
-> ListOrganizationAdminAccounts -> Bool
== :: ListOrganizationAdminAccounts
-> ListOrganizationAdminAccounts -> Bool
$c== :: ListOrganizationAdminAccounts
-> ListOrganizationAdminAccounts -> Bool
Prelude.Eq, ReadPrec [ListOrganizationAdminAccounts]
ReadPrec ListOrganizationAdminAccounts
Int -> ReadS ListOrganizationAdminAccounts
ReadS [ListOrganizationAdminAccounts]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOrganizationAdminAccounts]
$creadListPrec :: ReadPrec [ListOrganizationAdminAccounts]
readPrec :: ReadPrec ListOrganizationAdminAccounts
$creadPrec :: ReadPrec ListOrganizationAdminAccounts
readList :: ReadS [ListOrganizationAdminAccounts]
$creadList :: ReadS [ListOrganizationAdminAccounts]
readsPrec :: Int -> ReadS ListOrganizationAdminAccounts
$creadsPrec :: Int -> ReadS ListOrganizationAdminAccounts
Prelude.Read, Int -> ListOrganizationAdminAccounts -> ShowS
[ListOrganizationAdminAccounts] -> ShowS
ListOrganizationAdminAccounts -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOrganizationAdminAccounts] -> ShowS
$cshowList :: [ListOrganizationAdminAccounts] -> ShowS
show :: ListOrganizationAdminAccounts -> String
$cshow :: ListOrganizationAdminAccounts -> String
showsPrec :: Int -> ListOrganizationAdminAccounts -> ShowS
$cshowsPrec :: Int -> ListOrganizationAdminAccounts -> ShowS
Prelude.Show, forall x.
Rep ListOrganizationAdminAccounts x
-> ListOrganizationAdminAccounts
forall x.
ListOrganizationAdminAccounts
-> Rep ListOrganizationAdminAccounts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOrganizationAdminAccounts x
-> ListOrganizationAdminAccounts
$cfrom :: forall x.
ListOrganizationAdminAccounts
-> Rep ListOrganizationAdminAccounts x
Prelude.Generic)

-- |
-- Create a value of 'ListOrganizationAdminAccounts' 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', 'listOrganizationAdminAccounts_maxResults' - The maximum number of results to return.
--
-- 'nextToken', 'listOrganizationAdminAccounts_nextToken' - For requests to get the next page of results, the pagination token that
-- was returned with the previous set of results. The initial request does
-- not include a pagination token.
newListOrganizationAdminAccounts ::
  ListOrganizationAdminAccounts
newListOrganizationAdminAccounts :: ListOrganizationAdminAccounts
newListOrganizationAdminAccounts =
  ListOrganizationAdminAccounts'
    { $sel:maxResults:ListOrganizationAdminAccounts' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListOrganizationAdminAccounts' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to return.
listOrganizationAdminAccounts_maxResults :: Lens.Lens' ListOrganizationAdminAccounts (Prelude.Maybe Prelude.Natural)
listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural)
listOrganizationAdminAccounts_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOrganizationAdminAccounts' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOrganizationAdminAccounts
s@ListOrganizationAdminAccounts' {} Maybe Natural
a -> ListOrganizationAdminAccounts
s {$sel:maxResults:ListOrganizationAdminAccounts' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOrganizationAdminAccounts)

-- | For requests to get the next page of results, the pagination token that
-- was returned with the previous set of results. The initial request does
-- not include a pagination token.
listOrganizationAdminAccounts_nextToken :: Lens.Lens' ListOrganizationAdminAccounts (Prelude.Maybe Prelude.Text)
listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text)
listOrganizationAdminAccounts_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOrganizationAdminAccounts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOrganizationAdminAccounts
s@ListOrganizationAdminAccounts' {} Maybe Text
a -> ListOrganizationAdminAccounts
s {$sel:nextToken:ListOrganizationAdminAccounts' :: Maybe Text
nextToken = Maybe Text
a} :: ListOrganizationAdminAccounts)

instance
  Core.AWSRequest
    ListOrganizationAdminAccounts
  where
  type
    AWSResponse ListOrganizationAdminAccounts =
      ListOrganizationAdminAccountsResponse
  request :: (Service -> Service)
-> ListOrganizationAdminAccounts
-> Request ListOrganizationAdminAccounts
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 ListOrganizationAdminAccounts
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListOrganizationAdminAccounts)))
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 [Administrator]
-> Maybe Text -> Int -> ListOrganizationAdminAccountsResponse
ListOrganizationAdminAccountsResponse'
            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
"Administrators" 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.<*> (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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListOrganizationAdminAccounts
  where
  hashWithSalt :: Int -> ListOrganizationAdminAccounts -> Int
hashWithSalt Int
_salt ListOrganizationAdminAccounts' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> Maybe Text
$sel:maxResults:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> 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

instance Prelude.NFData ListOrganizationAdminAccounts where
  rnf :: ListOrganizationAdminAccounts -> ()
rnf ListOrganizationAdminAccounts' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> Maybe Text
$sel:maxResults:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> 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

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

instance Data.ToJSON ListOrganizationAdminAccounts where
  toJSON :: ListOrganizationAdminAccounts -> Value
toJSON ListOrganizationAdminAccounts' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> Maybe Text
$sel:maxResults:ListOrganizationAdminAccounts' :: ListOrganizationAdminAccounts -> 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
          ]
      )

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

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

-- | /See:/ 'newListOrganizationAdminAccountsResponse' smart constructor.
data ListOrganizationAdminAccountsResponse = ListOrganizationAdminAccountsResponse'
  { -- | The list of Detective administrator accounts.
    ListOrganizationAdminAccountsResponse -> Maybe [Administrator]
administrators :: Prelude.Maybe [Administrator],
    -- | If there are more accounts remaining in the results, then this is the
    -- pagination token to use to request the next page of accounts.
    ListOrganizationAdminAccountsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListOrganizationAdminAccountsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListOrganizationAdminAccountsResponse
-> ListOrganizationAdminAccountsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOrganizationAdminAccountsResponse
-> ListOrganizationAdminAccountsResponse -> Bool
$c/= :: ListOrganizationAdminAccountsResponse
-> ListOrganizationAdminAccountsResponse -> Bool
== :: ListOrganizationAdminAccountsResponse
-> ListOrganizationAdminAccountsResponse -> Bool
$c== :: ListOrganizationAdminAccountsResponse
-> ListOrganizationAdminAccountsResponse -> Bool
Prelude.Eq, ReadPrec [ListOrganizationAdminAccountsResponse]
ReadPrec ListOrganizationAdminAccountsResponse
Int -> ReadS ListOrganizationAdminAccountsResponse
ReadS [ListOrganizationAdminAccountsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOrganizationAdminAccountsResponse]
$creadListPrec :: ReadPrec [ListOrganizationAdminAccountsResponse]
readPrec :: ReadPrec ListOrganizationAdminAccountsResponse
$creadPrec :: ReadPrec ListOrganizationAdminAccountsResponse
readList :: ReadS [ListOrganizationAdminAccountsResponse]
$creadList :: ReadS [ListOrganizationAdminAccountsResponse]
readsPrec :: Int -> ReadS ListOrganizationAdminAccountsResponse
$creadsPrec :: Int -> ReadS ListOrganizationAdminAccountsResponse
Prelude.Read, Int -> ListOrganizationAdminAccountsResponse -> ShowS
[ListOrganizationAdminAccountsResponse] -> ShowS
ListOrganizationAdminAccountsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOrganizationAdminAccountsResponse] -> ShowS
$cshowList :: [ListOrganizationAdminAccountsResponse] -> ShowS
show :: ListOrganizationAdminAccountsResponse -> String
$cshow :: ListOrganizationAdminAccountsResponse -> String
showsPrec :: Int -> ListOrganizationAdminAccountsResponse -> ShowS
$cshowsPrec :: Int -> ListOrganizationAdminAccountsResponse -> ShowS
Prelude.Show, forall x.
Rep ListOrganizationAdminAccountsResponse x
-> ListOrganizationAdminAccountsResponse
forall x.
ListOrganizationAdminAccountsResponse
-> Rep ListOrganizationAdminAccountsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOrganizationAdminAccountsResponse x
-> ListOrganizationAdminAccountsResponse
$cfrom :: forall x.
ListOrganizationAdminAccountsResponse
-> Rep ListOrganizationAdminAccountsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListOrganizationAdminAccountsResponse' 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:
--
-- 'administrators', 'listOrganizationAdminAccountsResponse_administrators' - The list of Detective administrator accounts.
--
-- 'nextToken', 'listOrganizationAdminAccountsResponse_nextToken' - If there are more accounts remaining in the results, then this is the
-- pagination token to use to request the next page of accounts.
--
-- 'httpStatus', 'listOrganizationAdminAccountsResponse_httpStatus' - The response's http status code.
newListOrganizationAdminAccountsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListOrganizationAdminAccountsResponse
newListOrganizationAdminAccountsResponse :: Int -> ListOrganizationAdminAccountsResponse
newListOrganizationAdminAccountsResponse Int
pHttpStatus_ =
  ListOrganizationAdminAccountsResponse'
    { $sel:administrators:ListOrganizationAdminAccountsResponse' :: Maybe [Administrator]
administrators =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListOrganizationAdminAccountsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListOrganizationAdminAccountsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of Detective administrator accounts.
listOrganizationAdminAccountsResponse_administrators :: Lens.Lens' ListOrganizationAdminAccountsResponse (Prelude.Maybe [Administrator])
listOrganizationAdminAccountsResponse_administrators :: Lens' ListOrganizationAdminAccountsResponse (Maybe [Administrator])
listOrganizationAdminAccountsResponse_administrators = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOrganizationAdminAccountsResponse' {Maybe [Administrator]
administrators :: Maybe [Administrator]
$sel:administrators:ListOrganizationAdminAccountsResponse' :: ListOrganizationAdminAccountsResponse -> Maybe [Administrator]
administrators} -> Maybe [Administrator]
administrators) (\s :: ListOrganizationAdminAccountsResponse
s@ListOrganizationAdminAccountsResponse' {} Maybe [Administrator]
a -> ListOrganizationAdminAccountsResponse
s {$sel:administrators:ListOrganizationAdminAccountsResponse' :: Maybe [Administrator]
administrators = Maybe [Administrator]
a} :: ListOrganizationAdminAccountsResponse) 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

-- | If there are more accounts remaining in the results, then this is the
-- pagination token to use to request the next page of accounts.
listOrganizationAdminAccountsResponse_nextToken :: Lens.Lens' ListOrganizationAdminAccountsResponse (Prelude.Maybe Prelude.Text)
listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text)
listOrganizationAdminAccountsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOrganizationAdminAccountsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOrganizationAdminAccountsResponse' :: ListOrganizationAdminAccountsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOrganizationAdminAccountsResponse
s@ListOrganizationAdminAccountsResponse' {} Maybe Text
a -> ListOrganizationAdminAccountsResponse
s {$sel:nextToken:ListOrganizationAdminAccountsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOrganizationAdminAccountsResponse)

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

instance
  Prelude.NFData
    ListOrganizationAdminAccountsResponse
  where
  rnf :: ListOrganizationAdminAccountsResponse -> ()
rnf ListOrganizationAdminAccountsResponse' {Int
Maybe [Administrator]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
administrators :: Maybe [Administrator]
$sel:httpStatus:ListOrganizationAdminAccountsResponse' :: ListOrganizationAdminAccountsResponse -> Int
$sel:nextToken:ListOrganizationAdminAccountsResponse' :: ListOrganizationAdminAccountsResponse -> Maybe Text
$sel:administrators:ListOrganizationAdminAccountsResponse' :: ListOrganizationAdminAccountsResponse -> Maybe [Administrator]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Administrator]
administrators
      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 Int
httpStatus