{-# 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.Connect.ListLambdaFunctions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This API is in preview release for Amazon Connect and is subject to
-- change.
--
-- Returns a paginated list of all Lambda functions that display in the
-- dropdown options in the relevant flow blocks.
--
-- This operation returns paginated results.
module Amazonka.Connect.ListLambdaFunctions
  ( -- * Creating a Request
    ListLambdaFunctions (..),
    newListLambdaFunctions,

    -- * Request Lenses
    listLambdaFunctions_maxResults,
    listLambdaFunctions_nextToken,
    listLambdaFunctions_instanceId,

    -- * Destructuring the Response
    ListLambdaFunctionsResponse (..),
    newListLambdaFunctionsResponse,

    -- * Response Lenses
    listLambdaFunctionsResponse_lambdaFunctions,
    listLambdaFunctionsResponse_nextToken,
    listLambdaFunctionsResponse_httpStatus,
  )
where

import Amazonka.Connect.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:/ 'newListLambdaFunctions' smart constructor.
data ListLambdaFunctions = ListLambdaFunctions'
  { -- | The maximum number of results to return per page.
    ListLambdaFunctions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next set of results. Use the value returned in the
    -- previous response in the next request to retrieve the next set of
    -- results.
    ListLambdaFunctions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    ListLambdaFunctions -> Text
instanceId :: Prelude.Text
  }
  deriving (ListLambdaFunctions -> ListLambdaFunctions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLambdaFunctions -> ListLambdaFunctions -> Bool
$c/= :: ListLambdaFunctions -> ListLambdaFunctions -> Bool
== :: ListLambdaFunctions -> ListLambdaFunctions -> Bool
$c== :: ListLambdaFunctions -> ListLambdaFunctions -> Bool
Prelude.Eq, ReadPrec [ListLambdaFunctions]
ReadPrec ListLambdaFunctions
Int -> ReadS ListLambdaFunctions
ReadS [ListLambdaFunctions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLambdaFunctions]
$creadListPrec :: ReadPrec [ListLambdaFunctions]
readPrec :: ReadPrec ListLambdaFunctions
$creadPrec :: ReadPrec ListLambdaFunctions
readList :: ReadS [ListLambdaFunctions]
$creadList :: ReadS [ListLambdaFunctions]
readsPrec :: Int -> ReadS ListLambdaFunctions
$creadsPrec :: Int -> ReadS ListLambdaFunctions
Prelude.Read, Int -> ListLambdaFunctions -> ShowS
[ListLambdaFunctions] -> ShowS
ListLambdaFunctions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLambdaFunctions] -> ShowS
$cshowList :: [ListLambdaFunctions] -> ShowS
show :: ListLambdaFunctions -> String
$cshow :: ListLambdaFunctions -> String
showsPrec :: Int -> ListLambdaFunctions -> ShowS
$cshowsPrec :: Int -> ListLambdaFunctions -> ShowS
Prelude.Show, forall x. Rep ListLambdaFunctions x -> ListLambdaFunctions
forall x. ListLambdaFunctions -> Rep ListLambdaFunctions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLambdaFunctions x -> ListLambdaFunctions
$cfrom :: forall x. ListLambdaFunctions -> Rep ListLambdaFunctions x
Prelude.Generic)

-- |
-- Create a value of 'ListLambdaFunctions' 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', 'listLambdaFunctions_maxResults' - The maximum number of results to return per page.
--
-- 'nextToken', 'listLambdaFunctions_nextToken' - The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
--
-- 'instanceId', 'listLambdaFunctions_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
newListLambdaFunctions ::
  -- | 'instanceId'
  Prelude.Text ->
  ListLambdaFunctions
newListLambdaFunctions :: Text -> ListLambdaFunctions
newListLambdaFunctions Text
pInstanceId_ =
  ListLambdaFunctions'
    { $sel:maxResults:ListLambdaFunctions' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLambdaFunctions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceId:ListLambdaFunctions' :: Text
instanceId = Text
pInstanceId_
    }

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

-- | The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
listLambdaFunctions_nextToken :: Lens.Lens' ListLambdaFunctions (Prelude.Maybe Prelude.Text)
listLambdaFunctions_nextToken :: Lens' ListLambdaFunctions (Maybe Text)
listLambdaFunctions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLambdaFunctions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLambdaFunctions' :: ListLambdaFunctions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLambdaFunctions
s@ListLambdaFunctions' {} Maybe Text
a -> ListLambdaFunctions
s {$sel:nextToken:ListLambdaFunctions' :: Maybe Text
nextToken = Maybe Text
a} :: ListLambdaFunctions)

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
listLambdaFunctions_instanceId :: Lens.Lens' ListLambdaFunctions Prelude.Text
listLambdaFunctions_instanceId :: Lens' ListLambdaFunctions Text
listLambdaFunctions_instanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLambdaFunctions' {Text
instanceId :: Text
$sel:instanceId:ListLambdaFunctions' :: ListLambdaFunctions -> Text
instanceId} -> Text
instanceId) (\s :: ListLambdaFunctions
s@ListLambdaFunctions' {} Text
a -> ListLambdaFunctions
s {$sel:instanceId:ListLambdaFunctions' :: Text
instanceId = Text
a} :: ListLambdaFunctions)

instance Core.AWSPager ListLambdaFunctions where
  page :: ListLambdaFunctions
-> AWSResponse ListLambdaFunctions -> Maybe ListLambdaFunctions
page ListLambdaFunctions
rq AWSResponse ListLambdaFunctions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLambdaFunctions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLambdaFunctionsResponse (Maybe Text)
listLambdaFunctionsResponse_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 ListLambdaFunctions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLambdaFunctionsResponse (Maybe [Text])
listLambdaFunctionsResponse_lambdaFunctions
            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.$ ListLambdaFunctions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListLambdaFunctions (Maybe Text)
listLambdaFunctions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLambdaFunctions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLambdaFunctionsResponse (Maybe Text)
listLambdaFunctionsResponse_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 ListLambdaFunctions where
  type
    AWSResponse ListLambdaFunctions =
      ListLambdaFunctionsResponse
  request :: (Service -> Service)
-> ListLambdaFunctions -> Request ListLambdaFunctions
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 ListLambdaFunctions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListLambdaFunctions)))
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 Text -> Int -> ListLambdaFunctionsResponse
ListLambdaFunctionsResponse'
            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
"LambdaFunctions"
                            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 ListLambdaFunctions where
  hashWithSalt :: Int -> ListLambdaFunctions -> Int
hashWithSalt Int
_salt ListLambdaFunctions' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListLambdaFunctions' :: ListLambdaFunctions -> Text
$sel:nextToken:ListLambdaFunctions' :: ListLambdaFunctions -> Maybe Text
$sel:maxResults:ListLambdaFunctions' :: ListLambdaFunctions -> 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
instanceId

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

instance Data.ToHeaders ListLambdaFunctions where
  toHeaders :: ListLambdaFunctions -> 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 ListLambdaFunctions where
  toPath :: ListLambdaFunctions -> ByteString
toPath ListLambdaFunctions' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListLambdaFunctions' :: ListLambdaFunctions -> Text
$sel:nextToken:ListLambdaFunctions' :: ListLambdaFunctions -> Maybe Text
$sel:maxResults:ListLambdaFunctions' :: ListLambdaFunctions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/instance/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
instanceId,
        ByteString
"/lambda-functions"
      ]

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

-- | /See:/ 'newListLambdaFunctionsResponse' smart constructor.
data ListLambdaFunctionsResponse = ListLambdaFunctionsResponse'
  { -- | The Lambdafunction ARNs associated with the specified instance.
    ListLambdaFunctionsResponse -> Maybe [Text]
lambdaFunctions :: Prelude.Maybe [Prelude.Text],
    -- | If there are additional results, this is the token for the next set of
    -- results.
    ListLambdaFunctionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLambdaFunctionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLambdaFunctionsResponse -> ListLambdaFunctionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLambdaFunctionsResponse -> ListLambdaFunctionsResponse -> Bool
$c/= :: ListLambdaFunctionsResponse -> ListLambdaFunctionsResponse -> Bool
== :: ListLambdaFunctionsResponse -> ListLambdaFunctionsResponse -> Bool
$c== :: ListLambdaFunctionsResponse -> ListLambdaFunctionsResponse -> Bool
Prelude.Eq, ReadPrec [ListLambdaFunctionsResponse]
ReadPrec ListLambdaFunctionsResponse
Int -> ReadS ListLambdaFunctionsResponse
ReadS [ListLambdaFunctionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLambdaFunctionsResponse]
$creadListPrec :: ReadPrec [ListLambdaFunctionsResponse]
readPrec :: ReadPrec ListLambdaFunctionsResponse
$creadPrec :: ReadPrec ListLambdaFunctionsResponse
readList :: ReadS [ListLambdaFunctionsResponse]
$creadList :: ReadS [ListLambdaFunctionsResponse]
readsPrec :: Int -> ReadS ListLambdaFunctionsResponse
$creadsPrec :: Int -> ReadS ListLambdaFunctionsResponse
Prelude.Read, Int -> ListLambdaFunctionsResponse -> ShowS
[ListLambdaFunctionsResponse] -> ShowS
ListLambdaFunctionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLambdaFunctionsResponse] -> ShowS
$cshowList :: [ListLambdaFunctionsResponse] -> ShowS
show :: ListLambdaFunctionsResponse -> String
$cshow :: ListLambdaFunctionsResponse -> String
showsPrec :: Int -> ListLambdaFunctionsResponse -> ShowS
$cshowsPrec :: Int -> ListLambdaFunctionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListLambdaFunctionsResponse x -> ListLambdaFunctionsResponse
forall x.
ListLambdaFunctionsResponse -> Rep ListLambdaFunctionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLambdaFunctionsResponse x -> ListLambdaFunctionsResponse
$cfrom :: forall x.
ListLambdaFunctionsResponse -> Rep ListLambdaFunctionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLambdaFunctionsResponse' 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:
--
-- 'lambdaFunctions', 'listLambdaFunctionsResponse_lambdaFunctions' - The Lambdafunction ARNs associated with the specified instance.
--
-- 'nextToken', 'listLambdaFunctionsResponse_nextToken' - If there are additional results, this is the token for the next set of
-- results.
--
-- 'httpStatus', 'listLambdaFunctionsResponse_httpStatus' - The response's http status code.
newListLambdaFunctionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLambdaFunctionsResponse
newListLambdaFunctionsResponse :: Int -> ListLambdaFunctionsResponse
newListLambdaFunctionsResponse Int
pHttpStatus_ =
  ListLambdaFunctionsResponse'
    { $sel:lambdaFunctions:ListLambdaFunctionsResponse' :: Maybe [Text]
lambdaFunctions =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLambdaFunctionsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLambdaFunctionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Lambdafunction ARNs associated with the specified instance.
listLambdaFunctionsResponse_lambdaFunctions :: Lens.Lens' ListLambdaFunctionsResponse (Prelude.Maybe [Prelude.Text])
listLambdaFunctionsResponse_lambdaFunctions :: Lens' ListLambdaFunctionsResponse (Maybe [Text])
listLambdaFunctionsResponse_lambdaFunctions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLambdaFunctionsResponse' {Maybe [Text]
lambdaFunctions :: Maybe [Text]
$sel:lambdaFunctions:ListLambdaFunctionsResponse' :: ListLambdaFunctionsResponse -> Maybe [Text]
lambdaFunctions} -> Maybe [Text]
lambdaFunctions) (\s :: ListLambdaFunctionsResponse
s@ListLambdaFunctionsResponse' {} Maybe [Text]
a -> ListLambdaFunctionsResponse
s {$sel:lambdaFunctions:ListLambdaFunctionsResponse' :: Maybe [Text]
lambdaFunctions = Maybe [Text]
a} :: ListLambdaFunctionsResponse) 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 additional results, this is the token for the next set of
-- results.
listLambdaFunctionsResponse_nextToken :: Lens.Lens' ListLambdaFunctionsResponse (Prelude.Maybe Prelude.Text)
listLambdaFunctionsResponse_nextToken :: Lens' ListLambdaFunctionsResponse (Maybe Text)
listLambdaFunctionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLambdaFunctionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLambdaFunctionsResponse' :: ListLambdaFunctionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLambdaFunctionsResponse
s@ListLambdaFunctionsResponse' {} Maybe Text
a -> ListLambdaFunctionsResponse
s {$sel:nextToken:ListLambdaFunctionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLambdaFunctionsResponse)

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

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