{-# 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.Polly.ListLexicons
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of pronunciation lexicons stored in an Amazon Web
-- Services Region. For more information, see
-- <https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons>.
--
-- This operation returns paginated results.
module Amazonka.Polly.ListLexicons
  ( -- * Creating a Request
    ListLexicons (..),
    newListLexicons,

    -- * Request Lenses
    listLexicons_nextToken,

    -- * Destructuring the Response
    ListLexiconsResponse (..),
    newListLexiconsResponse,

    -- * Response Lenses
    listLexiconsResponse_lexicons,
    listLexiconsResponse_nextToken,
    listLexiconsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Polly.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListLexicons' smart constructor.
data ListLexicons = ListLexicons'
  { -- | An opaque pagination token returned from previous @ListLexicons@
    -- operation. If present, indicates where to continue the list of lexicons.
    ListLexicons -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListLexicons -> ListLexicons -> Bool
(ListLexicons -> ListLexicons -> Bool)
-> (ListLexicons -> ListLexicons -> Bool) -> Eq ListLexicons
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLexicons -> ListLexicons -> Bool
$c/= :: ListLexicons -> ListLexicons -> Bool
== :: ListLexicons -> ListLexicons -> Bool
$c== :: ListLexicons -> ListLexicons -> Bool
Prelude.Eq, ReadPrec [ListLexicons]
ReadPrec ListLexicons
Int -> ReadS ListLexicons
ReadS [ListLexicons]
(Int -> ReadS ListLexicons)
-> ReadS [ListLexicons]
-> ReadPrec ListLexicons
-> ReadPrec [ListLexicons]
-> Read ListLexicons
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLexicons]
$creadListPrec :: ReadPrec [ListLexicons]
readPrec :: ReadPrec ListLexicons
$creadPrec :: ReadPrec ListLexicons
readList :: ReadS [ListLexicons]
$creadList :: ReadS [ListLexicons]
readsPrec :: Int -> ReadS ListLexicons
$creadsPrec :: Int -> ReadS ListLexicons
Prelude.Read, Int -> ListLexicons -> ShowS
[ListLexicons] -> ShowS
ListLexicons -> String
(Int -> ListLexicons -> ShowS)
-> (ListLexicons -> String)
-> ([ListLexicons] -> ShowS)
-> Show ListLexicons
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLexicons] -> ShowS
$cshowList :: [ListLexicons] -> ShowS
show :: ListLexicons -> String
$cshow :: ListLexicons -> String
showsPrec :: Int -> ListLexicons -> ShowS
$cshowsPrec :: Int -> ListLexicons -> ShowS
Prelude.Show, (forall x. ListLexicons -> Rep ListLexicons x)
-> (forall x. Rep ListLexicons x -> ListLexicons)
-> Generic ListLexicons
forall x. Rep ListLexicons x -> ListLexicons
forall x. ListLexicons -> Rep ListLexicons x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLexicons x -> ListLexicons
$cfrom :: forall x. ListLexicons -> Rep ListLexicons x
Prelude.Generic)

-- |
-- Create a value of 'ListLexicons' 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', 'listLexicons_nextToken' - An opaque pagination token returned from previous @ListLexicons@
-- operation. If present, indicates where to continue the list of lexicons.
newListLexicons ::
  ListLexicons
newListLexicons :: ListLexicons
newListLexicons =
  ListLexicons' :: Maybe Text -> ListLexicons
ListLexicons' {$sel:nextToken:ListLexicons' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing}

-- | An opaque pagination token returned from previous @ListLexicons@
-- operation. If present, indicates where to continue the list of lexicons.
listLexicons_nextToken :: Lens.Lens' ListLexicons (Prelude.Maybe Prelude.Text)
listLexicons_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListLexicons -> f ListLexicons
listLexicons_nextToken = (ListLexicons -> Maybe Text)
-> (ListLexicons -> Maybe Text -> ListLexicons)
-> Lens ListLexicons ListLexicons (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexicons' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLexicons' :: ListLexicons -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLexicons
s@ListLexicons' {} Maybe Text
a -> ListLexicons
s {$sel:nextToken:ListLexicons' :: Maybe Text
nextToken = Maybe Text
a} :: ListLexicons)

instance Core.AWSPager ListLexicons where
  page :: ListLexicons -> AWSResponse ListLexicons -> Maybe ListLexicons
page ListLexicons
rq AWSResponse ListLexicons
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLexicons
ListLexiconsResponse
rs
            ListLexiconsResponse
-> Getting (First Text) ListLexiconsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexiconsResponse -> Const (First Text) ListLexiconsResponse
Lens' ListLexiconsResponse (Maybe Text)
listLexiconsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListLexiconsResponse -> Const (First Text) ListLexiconsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLexiconsResponse 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 ListLexicons
forall a. Maybe a
Prelude.Nothing
    | Maybe [LexiconDescription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLexicons
ListLexiconsResponse
rs
            ListLexiconsResponse
-> Getting
     (First [LexiconDescription])
     ListLexiconsResponse
     [LexiconDescription]
-> Maybe [LexiconDescription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [LexiconDescription]
 -> Const (First [LexiconDescription]) (Maybe [LexiconDescription]))
-> ListLexiconsResponse
-> Const (First [LexiconDescription]) ListLexiconsResponse
Lens' ListLexiconsResponse (Maybe [LexiconDescription])
listLexiconsResponse_lexicons ((Maybe [LexiconDescription]
  -> Const (First [LexiconDescription]) (Maybe [LexiconDescription]))
 -> ListLexiconsResponse
 -> Const (First [LexiconDescription]) ListLexiconsResponse)
-> (([LexiconDescription]
     -> Const (First [LexiconDescription]) [LexiconDescription])
    -> Maybe [LexiconDescription]
    -> Const (First [LexiconDescription]) (Maybe [LexiconDescription]))
-> Getting
     (First [LexiconDescription])
     ListLexiconsResponse
     [LexiconDescription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([LexiconDescription]
 -> Const (First [LexiconDescription]) [LexiconDescription])
-> Maybe [LexiconDescription]
-> Const (First [LexiconDescription]) (Maybe [LexiconDescription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListLexicons
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListLexicons -> Maybe ListLexicons
forall a. a -> Maybe a
Prelude.Just (ListLexicons -> Maybe ListLexicons)
-> ListLexicons -> Maybe ListLexicons
forall a b. (a -> b) -> a -> b
Prelude.$
        ListLexicons
rq
          ListLexicons -> (ListLexicons -> ListLexicons) -> ListLexicons
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListLexicons -> Identity ListLexicons
Lens ListLexicons ListLexicons (Maybe Text) (Maybe Text)
listLexicons_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListLexicons -> Identity ListLexicons)
-> Maybe Text -> ListLexicons -> ListLexicons
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLexicons
ListLexiconsResponse
rs
          ListLexiconsResponse
-> Getting (First Text) ListLexiconsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexiconsResponse -> Const (First Text) ListLexiconsResponse
Lens' ListLexiconsResponse (Maybe Text)
listLexiconsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListLexiconsResponse -> Const (First Text) ListLexiconsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLexiconsResponse 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 ListLexicons where
  type AWSResponse ListLexicons = ListLexiconsResponse
  request :: ListLexicons -> Request ListLexicons
request = Service -> ListLexicons -> Request ListLexicons
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListLexicons
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLexicons)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListLexicons))
-> Logger
-> Service
-> Proxy ListLexicons
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLexicons)))
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 [LexiconDescription]
-> Maybe Text -> Int -> ListLexiconsResponse
ListLexiconsResponse'
            (Maybe [LexiconDescription]
 -> Maybe Text -> Int -> ListLexiconsResponse)
-> Either String (Maybe [LexiconDescription])
-> Either String (Maybe Text -> Int -> ListLexiconsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [LexiconDescription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Lexicons" Either String (Maybe (Maybe [LexiconDescription]))
-> Maybe [LexiconDescription]
-> Either String (Maybe [LexiconDescription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LexiconDescription]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> ListLexiconsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListLexiconsResponse)
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 -> ListLexiconsResponse)
-> Either String Int -> Either String ListLexiconsResponse
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 ListLexicons

instance Prelude.NFData ListLexicons

instance Core.ToHeaders ListLexicons where
  toHeaders :: ListLexicons -> ResponseHeaders
toHeaders = ResponseHeaders -> ListLexicons -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListLexicons where
  toPath :: ListLexicons -> ByteString
toPath = ByteString -> ListLexicons -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/lexicons"

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

-- | /See:/ 'newListLexiconsResponse' smart constructor.
data ListLexiconsResponse = ListLexiconsResponse'
  { -- | A list of lexicon names and attributes.
    ListLexiconsResponse -> Maybe [LexiconDescription]
lexicons :: Prelude.Maybe [LexiconDescription],
    -- | The pagination token to use in the next request to continue the listing
    -- of lexicons. @NextToken@ is returned only if the response is truncated.
    ListLexiconsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLexiconsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLexiconsResponse -> ListLexiconsResponse -> Bool
(ListLexiconsResponse -> ListLexiconsResponse -> Bool)
-> (ListLexiconsResponse -> ListLexiconsResponse -> Bool)
-> Eq ListLexiconsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLexiconsResponse -> ListLexiconsResponse -> Bool
$c/= :: ListLexiconsResponse -> ListLexiconsResponse -> Bool
== :: ListLexiconsResponse -> ListLexiconsResponse -> Bool
$c== :: ListLexiconsResponse -> ListLexiconsResponse -> Bool
Prelude.Eq, ReadPrec [ListLexiconsResponse]
ReadPrec ListLexiconsResponse
Int -> ReadS ListLexiconsResponse
ReadS [ListLexiconsResponse]
(Int -> ReadS ListLexiconsResponse)
-> ReadS [ListLexiconsResponse]
-> ReadPrec ListLexiconsResponse
-> ReadPrec [ListLexiconsResponse]
-> Read ListLexiconsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLexiconsResponse]
$creadListPrec :: ReadPrec [ListLexiconsResponse]
readPrec :: ReadPrec ListLexiconsResponse
$creadPrec :: ReadPrec ListLexiconsResponse
readList :: ReadS [ListLexiconsResponse]
$creadList :: ReadS [ListLexiconsResponse]
readsPrec :: Int -> ReadS ListLexiconsResponse
$creadsPrec :: Int -> ReadS ListLexiconsResponse
Prelude.Read, Int -> ListLexiconsResponse -> ShowS
[ListLexiconsResponse] -> ShowS
ListLexiconsResponse -> String
(Int -> ListLexiconsResponse -> ShowS)
-> (ListLexiconsResponse -> String)
-> ([ListLexiconsResponse] -> ShowS)
-> Show ListLexiconsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLexiconsResponse] -> ShowS
$cshowList :: [ListLexiconsResponse] -> ShowS
show :: ListLexiconsResponse -> String
$cshow :: ListLexiconsResponse -> String
showsPrec :: Int -> ListLexiconsResponse -> ShowS
$cshowsPrec :: Int -> ListLexiconsResponse -> ShowS
Prelude.Show, (forall x. ListLexiconsResponse -> Rep ListLexiconsResponse x)
-> (forall x. Rep ListLexiconsResponse x -> ListLexiconsResponse)
-> Generic ListLexiconsResponse
forall x. Rep ListLexiconsResponse x -> ListLexiconsResponse
forall x. ListLexiconsResponse -> Rep ListLexiconsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLexiconsResponse x -> ListLexiconsResponse
$cfrom :: forall x. ListLexiconsResponse -> Rep ListLexiconsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLexiconsResponse' 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:
--
-- 'lexicons', 'listLexiconsResponse_lexicons' - A list of lexicon names and attributes.
--
-- 'nextToken', 'listLexiconsResponse_nextToken' - The pagination token to use in the next request to continue the listing
-- of lexicons. @NextToken@ is returned only if the response is truncated.
--
-- 'httpStatus', 'listLexiconsResponse_httpStatus' - The response's http status code.
newListLexiconsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLexiconsResponse
newListLexiconsResponse :: Int -> ListLexiconsResponse
newListLexiconsResponse Int
pHttpStatus_ =
  ListLexiconsResponse' :: Maybe [LexiconDescription]
-> Maybe Text -> Int -> ListLexiconsResponse
ListLexiconsResponse'
    { $sel:lexicons:ListLexiconsResponse' :: Maybe [LexiconDescription]
lexicons = Maybe [LexiconDescription]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLexiconsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLexiconsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of lexicon names and attributes.
listLexiconsResponse_lexicons :: Lens.Lens' ListLexiconsResponse (Prelude.Maybe [LexiconDescription])
listLexiconsResponse_lexicons :: (Maybe [LexiconDescription] -> f (Maybe [LexiconDescription]))
-> ListLexiconsResponse -> f ListLexiconsResponse
listLexiconsResponse_lexicons = (ListLexiconsResponse -> Maybe [LexiconDescription])
-> (ListLexiconsResponse
    -> Maybe [LexiconDescription] -> ListLexiconsResponse)
-> Lens' ListLexiconsResponse (Maybe [LexiconDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexiconsResponse' {Maybe [LexiconDescription]
lexicons :: Maybe [LexiconDescription]
$sel:lexicons:ListLexiconsResponse' :: ListLexiconsResponse -> Maybe [LexiconDescription]
lexicons} -> Maybe [LexiconDescription]
lexicons) (\s :: ListLexiconsResponse
s@ListLexiconsResponse' {} Maybe [LexiconDescription]
a -> ListLexiconsResponse
s {$sel:lexicons:ListLexiconsResponse' :: Maybe [LexiconDescription]
lexicons = Maybe [LexiconDescription]
a} :: ListLexiconsResponse) ((Maybe [LexiconDescription] -> f (Maybe [LexiconDescription]))
 -> ListLexiconsResponse -> f ListLexiconsResponse)
-> ((Maybe [LexiconDescription] -> f (Maybe [LexiconDescription]))
    -> Maybe [LexiconDescription] -> f (Maybe [LexiconDescription]))
-> (Maybe [LexiconDescription] -> f (Maybe [LexiconDescription]))
-> ListLexiconsResponse
-> f ListLexiconsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LexiconDescription]
  [LexiconDescription]
  [LexiconDescription]
  [LexiconDescription]
-> Iso
     (Maybe [LexiconDescription])
     (Maybe [LexiconDescription])
     (Maybe [LexiconDescription])
     (Maybe [LexiconDescription])
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
  [LexiconDescription]
  [LexiconDescription]
  [LexiconDescription]
  [LexiconDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The pagination token to use in the next request to continue the listing
-- of lexicons. @NextToken@ is returned only if the response is truncated.
listLexiconsResponse_nextToken :: Lens.Lens' ListLexiconsResponse (Prelude.Maybe Prelude.Text)
listLexiconsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLexiconsResponse -> f ListLexiconsResponse
listLexiconsResponse_nextToken = (ListLexiconsResponse -> Maybe Text)
-> (ListLexiconsResponse -> Maybe Text -> ListLexiconsResponse)
-> Lens' ListLexiconsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexiconsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLexiconsResponse' :: ListLexiconsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLexiconsResponse
s@ListLexiconsResponse' {} Maybe Text
a -> ListLexiconsResponse
s {$sel:nextToken:ListLexiconsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLexiconsResponse)

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

instance Prelude.NFData ListLexiconsResponse