{-# 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.Greengrass.ListLoggerDefinitions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a list of logger definitions.
--
-- This operation returns paginated results.
module Amazonka.Greengrass.ListLoggerDefinitions
  ( -- * Creating a Request
    ListLoggerDefinitions (..),
    newListLoggerDefinitions,

    -- * Request Lenses
    listLoggerDefinitions_maxResults,
    listLoggerDefinitions_nextToken,

    -- * Destructuring the Response
    ListLoggerDefinitionsResponse (..),
    newListLoggerDefinitionsResponse,

    -- * Response Lenses
    listLoggerDefinitionsResponse_definitions,
    listLoggerDefinitionsResponse_nextToken,
    listLoggerDefinitionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListLoggerDefinitions' smart constructor.
data ListLoggerDefinitions = ListLoggerDefinitions'
  { -- | The maximum number of results to be returned per request.
    ListLoggerDefinitions -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
    -- | The token for the next set of results, or \'\'null\'\' if there are no
    -- additional results.
    ListLoggerDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListLoggerDefinitions -> ListLoggerDefinitions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLoggerDefinitions -> ListLoggerDefinitions -> Bool
$c/= :: ListLoggerDefinitions -> ListLoggerDefinitions -> Bool
== :: ListLoggerDefinitions -> ListLoggerDefinitions -> Bool
$c== :: ListLoggerDefinitions -> ListLoggerDefinitions -> Bool
Prelude.Eq, ReadPrec [ListLoggerDefinitions]
ReadPrec ListLoggerDefinitions
Int -> ReadS ListLoggerDefinitions
ReadS [ListLoggerDefinitions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLoggerDefinitions]
$creadListPrec :: ReadPrec [ListLoggerDefinitions]
readPrec :: ReadPrec ListLoggerDefinitions
$creadPrec :: ReadPrec ListLoggerDefinitions
readList :: ReadS [ListLoggerDefinitions]
$creadList :: ReadS [ListLoggerDefinitions]
readsPrec :: Int -> ReadS ListLoggerDefinitions
$creadsPrec :: Int -> ReadS ListLoggerDefinitions
Prelude.Read, Int -> ListLoggerDefinitions -> ShowS
[ListLoggerDefinitions] -> ShowS
ListLoggerDefinitions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLoggerDefinitions] -> ShowS
$cshowList :: [ListLoggerDefinitions] -> ShowS
show :: ListLoggerDefinitions -> String
$cshow :: ListLoggerDefinitions -> String
showsPrec :: Int -> ListLoggerDefinitions -> ShowS
$cshowsPrec :: Int -> ListLoggerDefinitions -> ShowS
Prelude.Show, forall x. Rep ListLoggerDefinitions x -> ListLoggerDefinitions
forall x. ListLoggerDefinitions -> Rep ListLoggerDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLoggerDefinitions x -> ListLoggerDefinitions
$cfrom :: forall x. ListLoggerDefinitions -> Rep ListLoggerDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListLoggerDefinitions' 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', 'listLoggerDefinitions_maxResults' - The maximum number of results to be returned per request.
--
-- 'nextToken', 'listLoggerDefinitions_nextToken' - The token for the next set of results, or \'\'null\'\' if there are no
-- additional results.
newListLoggerDefinitions ::
  ListLoggerDefinitions
newListLoggerDefinitions :: ListLoggerDefinitions
newListLoggerDefinitions =
  ListLoggerDefinitions'
    { $sel:maxResults:ListLoggerDefinitions' :: Maybe Text
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLoggerDefinitions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to be returned per request.
listLoggerDefinitions_maxResults :: Lens.Lens' ListLoggerDefinitions (Prelude.Maybe Prelude.Text)
listLoggerDefinitions_maxResults :: Lens' ListLoggerDefinitions (Maybe Text)
listLoggerDefinitions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggerDefinitions' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListLoggerDefinitions
s@ListLoggerDefinitions' {} Maybe Text
a -> ListLoggerDefinitions
s {$sel:maxResults:ListLoggerDefinitions' :: Maybe Text
maxResults = Maybe Text
a} :: ListLoggerDefinitions)

-- | The token for the next set of results, or \'\'null\'\' if there are no
-- additional results.
listLoggerDefinitions_nextToken :: Lens.Lens' ListLoggerDefinitions (Prelude.Maybe Prelude.Text)
listLoggerDefinitions_nextToken :: Lens' ListLoggerDefinitions (Maybe Text)
listLoggerDefinitions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggerDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLoggerDefinitions
s@ListLoggerDefinitions' {} Maybe Text
a -> ListLoggerDefinitions
s {$sel:nextToken:ListLoggerDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListLoggerDefinitions)

instance Core.AWSPager ListLoggerDefinitions where
  page :: ListLoggerDefinitions
-> AWSResponse ListLoggerDefinitions -> Maybe ListLoggerDefinitions
page ListLoggerDefinitions
rq AWSResponse ListLoggerDefinitions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLoggerDefinitions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLoggerDefinitionsResponse (Maybe Text)
listLoggerDefinitionsResponse_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 ListLoggerDefinitions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLoggerDefinitionsResponse (Maybe [DefinitionInformation])
listLoggerDefinitionsResponse_definitions
            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.$ ListLoggerDefinitions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListLoggerDefinitions (Maybe Text)
listLoggerDefinitions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLoggerDefinitions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLoggerDefinitionsResponse (Maybe Text)
listLoggerDefinitionsResponse_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 ListLoggerDefinitions where
  type
    AWSResponse ListLoggerDefinitions =
      ListLoggerDefinitionsResponse
  request :: (Service -> Service)
-> ListLoggerDefinitions -> Request ListLoggerDefinitions
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListLoggerDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListLoggerDefinitions)))
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 [DefinitionInformation]
-> Maybe Text -> Int -> ListLoggerDefinitionsResponse
ListLoggerDefinitionsResponse'
            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
"Definitions" 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 ListLoggerDefinitions where
  hashWithSalt :: Int -> ListLoggerDefinitions -> Int
hashWithSalt Int
_salt ListLoggerDefinitions' {Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:nextToken:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
$sel:maxResults:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListLoggerDefinitions where
  rnf :: ListLoggerDefinitions -> ()
rnf ListLoggerDefinitions' {Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:nextToken:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
$sel:maxResults:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders ListLoggerDefinitions where
  toHeaders :: ListLoggerDefinitions -> 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.ToPath ListLoggerDefinitions where
  toPath :: ListLoggerDefinitions -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const ByteString
"/greengrass/definition/loggers"

instance Data.ToQuery ListLoggerDefinitions where
  toQuery :: ListLoggerDefinitions -> QueryString
toQuery ListLoggerDefinitions' {Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:nextToken:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
$sel:maxResults:ListLoggerDefinitions' :: ListLoggerDefinitions -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
maxResults,
        ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListLoggerDefinitionsResponse' smart constructor.
data ListLoggerDefinitionsResponse = ListLoggerDefinitionsResponse'
  { -- | Information about a definition.
    ListLoggerDefinitionsResponse -> Maybe [DefinitionInformation]
definitions :: Prelude.Maybe [DefinitionInformation],
    -- | The token for the next set of results, or \'\'null\'\' if there are no
    -- additional results.
    ListLoggerDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLoggerDefinitionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLoggerDefinitionsResponse
-> ListLoggerDefinitionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLoggerDefinitionsResponse
-> ListLoggerDefinitionsResponse -> Bool
$c/= :: ListLoggerDefinitionsResponse
-> ListLoggerDefinitionsResponse -> Bool
== :: ListLoggerDefinitionsResponse
-> ListLoggerDefinitionsResponse -> Bool
$c== :: ListLoggerDefinitionsResponse
-> ListLoggerDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListLoggerDefinitionsResponse]
ReadPrec ListLoggerDefinitionsResponse
Int -> ReadS ListLoggerDefinitionsResponse
ReadS [ListLoggerDefinitionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLoggerDefinitionsResponse]
$creadListPrec :: ReadPrec [ListLoggerDefinitionsResponse]
readPrec :: ReadPrec ListLoggerDefinitionsResponse
$creadPrec :: ReadPrec ListLoggerDefinitionsResponse
readList :: ReadS [ListLoggerDefinitionsResponse]
$creadList :: ReadS [ListLoggerDefinitionsResponse]
readsPrec :: Int -> ReadS ListLoggerDefinitionsResponse
$creadsPrec :: Int -> ReadS ListLoggerDefinitionsResponse
Prelude.Read, Int -> ListLoggerDefinitionsResponse -> ShowS
[ListLoggerDefinitionsResponse] -> ShowS
ListLoggerDefinitionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLoggerDefinitionsResponse] -> ShowS
$cshowList :: [ListLoggerDefinitionsResponse] -> ShowS
show :: ListLoggerDefinitionsResponse -> String
$cshow :: ListLoggerDefinitionsResponse -> String
showsPrec :: Int -> ListLoggerDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListLoggerDefinitionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListLoggerDefinitionsResponse x
-> ListLoggerDefinitionsResponse
forall x.
ListLoggerDefinitionsResponse
-> Rep ListLoggerDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLoggerDefinitionsResponse x
-> ListLoggerDefinitionsResponse
$cfrom :: forall x.
ListLoggerDefinitionsResponse
-> Rep ListLoggerDefinitionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLoggerDefinitionsResponse' 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:
--
-- 'definitions', 'listLoggerDefinitionsResponse_definitions' - Information about a definition.
--
-- 'nextToken', 'listLoggerDefinitionsResponse_nextToken' - The token for the next set of results, or \'\'null\'\' if there are no
-- additional results.
--
-- 'httpStatus', 'listLoggerDefinitionsResponse_httpStatus' - The response's http status code.
newListLoggerDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLoggerDefinitionsResponse
newListLoggerDefinitionsResponse :: Int -> ListLoggerDefinitionsResponse
newListLoggerDefinitionsResponse Int
pHttpStatus_ =
  ListLoggerDefinitionsResponse'
    { $sel:definitions:ListLoggerDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLoggerDefinitionsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLoggerDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about a definition.
listLoggerDefinitionsResponse_definitions :: Lens.Lens' ListLoggerDefinitionsResponse (Prelude.Maybe [DefinitionInformation])
listLoggerDefinitionsResponse_definitions :: Lens' ListLoggerDefinitionsResponse (Maybe [DefinitionInformation])
listLoggerDefinitionsResponse_definitions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggerDefinitionsResponse' {Maybe [DefinitionInformation]
definitions :: Maybe [DefinitionInformation]
$sel:definitions:ListLoggerDefinitionsResponse' :: ListLoggerDefinitionsResponse -> Maybe [DefinitionInformation]
definitions} -> Maybe [DefinitionInformation]
definitions) (\s :: ListLoggerDefinitionsResponse
s@ListLoggerDefinitionsResponse' {} Maybe [DefinitionInformation]
a -> ListLoggerDefinitionsResponse
s {$sel:definitions:ListLoggerDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions = Maybe [DefinitionInformation]
a} :: ListLoggerDefinitionsResponse) 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 token for the next set of results, or \'\'null\'\' if there are no
-- additional results.
listLoggerDefinitionsResponse_nextToken :: Lens.Lens' ListLoggerDefinitionsResponse (Prelude.Maybe Prelude.Text)
listLoggerDefinitionsResponse_nextToken :: Lens' ListLoggerDefinitionsResponse (Maybe Text)
listLoggerDefinitionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggerDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLoggerDefinitionsResponse' :: ListLoggerDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLoggerDefinitionsResponse
s@ListLoggerDefinitionsResponse' {} Maybe Text
a -> ListLoggerDefinitionsResponse
s {$sel:nextToken:ListLoggerDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLoggerDefinitionsResponse)

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

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