{-# 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.Lambda.ListFunctionUrlConfigs
-- 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 a list of Lambda function URLs for the specified function.
--
-- This operation returns paginated results.
module Amazonka.Lambda.ListFunctionUrlConfigs
  ( -- * Creating a Request
    ListFunctionUrlConfigs (..),
    newListFunctionUrlConfigs,

    -- * Request Lenses
    listFunctionUrlConfigs_marker,
    listFunctionUrlConfigs_maxItems,
    listFunctionUrlConfigs_functionName,

    -- * Destructuring the Response
    ListFunctionUrlConfigsResponse (..),
    newListFunctionUrlConfigsResponse,

    -- * Response Lenses
    listFunctionUrlConfigsResponse_nextMarker,
    listFunctionUrlConfigsResponse_httpStatus,
    listFunctionUrlConfigsResponse_functionUrlConfigs,
  )
where

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

-- | /See:/ 'newListFunctionUrlConfigs' smart constructor.
data ListFunctionUrlConfigs = ListFunctionUrlConfigs'
  { -- | Specify the pagination token that\'s returned by a previous request to
    -- retrieve the next page of results.
    ListFunctionUrlConfigs -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of function URLs to return in the response. Note that
    -- @ListFunctionUrlConfigs@ returns a maximum of 50 items in each response,
    -- even if you set the number higher.
    ListFunctionUrlConfigs -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
    -- | The name of the Lambda function.
    --
    -- __Name formats__
    --
    -- -   __Function name__ – @my-function@.
    --
    -- -   __Function ARN__ –
    --     @arn:aws:lambda:us-west-2:123456789012:function:my-function@.
    --
    -- -   __Partial ARN__ – @123456789012:function:my-function@.
    --
    -- The length constraint applies only to the full ARN. If you specify only
    -- the function name, it is limited to 64 characters in length.
    ListFunctionUrlConfigs -> Text
functionName :: Prelude.Text
  }
  deriving (ListFunctionUrlConfigs -> ListFunctionUrlConfigs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFunctionUrlConfigs -> ListFunctionUrlConfigs -> Bool
$c/= :: ListFunctionUrlConfigs -> ListFunctionUrlConfigs -> Bool
== :: ListFunctionUrlConfigs -> ListFunctionUrlConfigs -> Bool
$c== :: ListFunctionUrlConfigs -> ListFunctionUrlConfigs -> Bool
Prelude.Eq, ReadPrec [ListFunctionUrlConfigs]
ReadPrec ListFunctionUrlConfigs
Int -> ReadS ListFunctionUrlConfigs
ReadS [ListFunctionUrlConfigs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFunctionUrlConfigs]
$creadListPrec :: ReadPrec [ListFunctionUrlConfigs]
readPrec :: ReadPrec ListFunctionUrlConfigs
$creadPrec :: ReadPrec ListFunctionUrlConfigs
readList :: ReadS [ListFunctionUrlConfigs]
$creadList :: ReadS [ListFunctionUrlConfigs]
readsPrec :: Int -> ReadS ListFunctionUrlConfigs
$creadsPrec :: Int -> ReadS ListFunctionUrlConfigs
Prelude.Read, Int -> ListFunctionUrlConfigs -> ShowS
[ListFunctionUrlConfigs] -> ShowS
ListFunctionUrlConfigs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFunctionUrlConfigs] -> ShowS
$cshowList :: [ListFunctionUrlConfigs] -> ShowS
show :: ListFunctionUrlConfigs -> String
$cshow :: ListFunctionUrlConfigs -> String
showsPrec :: Int -> ListFunctionUrlConfigs -> ShowS
$cshowsPrec :: Int -> ListFunctionUrlConfigs -> ShowS
Prelude.Show, forall x. Rep ListFunctionUrlConfigs x -> ListFunctionUrlConfigs
forall x. ListFunctionUrlConfigs -> Rep ListFunctionUrlConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFunctionUrlConfigs x -> ListFunctionUrlConfigs
$cfrom :: forall x. ListFunctionUrlConfigs -> Rep ListFunctionUrlConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListFunctionUrlConfigs' 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:
--
-- 'marker', 'listFunctionUrlConfigs_marker' - Specify the pagination token that\'s returned by a previous request to
-- retrieve the next page of results.
--
-- 'maxItems', 'listFunctionUrlConfigs_maxItems' - The maximum number of function URLs to return in the response. Note that
-- @ListFunctionUrlConfigs@ returns a maximum of 50 items in each response,
-- even if you set the number higher.
--
-- 'functionName', 'listFunctionUrlConfigs_functionName' - The name of the Lambda function.
--
-- __Name formats__
--
-- -   __Function name__ – @my-function@.
--
-- -   __Function ARN__ –
--     @arn:aws:lambda:us-west-2:123456789012:function:my-function@.
--
-- -   __Partial ARN__ – @123456789012:function:my-function@.
--
-- The length constraint applies only to the full ARN. If you specify only
-- the function name, it is limited to 64 characters in length.
newListFunctionUrlConfigs ::
  -- | 'functionName'
  Prelude.Text ->
  ListFunctionUrlConfigs
newListFunctionUrlConfigs :: Text -> ListFunctionUrlConfigs
newListFunctionUrlConfigs Text
pFunctionName_ =
  ListFunctionUrlConfigs'
    { $sel:marker:ListFunctionUrlConfigs' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
      $sel:maxItems:ListFunctionUrlConfigs' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
      $sel:functionName:ListFunctionUrlConfigs' :: Text
functionName = Text
pFunctionName_
    }

-- | Specify the pagination token that\'s returned by a previous request to
-- retrieve the next page of results.
listFunctionUrlConfigs_marker :: Lens.Lens' ListFunctionUrlConfigs (Prelude.Maybe Prelude.Text)
listFunctionUrlConfigs_marker :: Lens' ListFunctionUrlConfigs (Maybe Text)
listFunctionUrlConfigs_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionUrlConfigs' {Maybe Text
marker :: Maybe Text
$sel:marker:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListFunctionUrlConfigs
s@ListFunctionUrlConfigs' {} Maybe Text
a -> ListFunctionUrlConfigs
s {$sel:marker:ListFunctionUrlConfigs' :: Maybe Text
marker = Maybe Text
a} :: ListFunctionUrlConfigs)

-- | The maximum number of function URLs to return in the response. Note that
-- @ListFunctionUrlConfigs@ returns a maximum of 50 items in each response,
-- even if you set the number higher.
listFunctionUrlConfigs_maxItems :: Lens.Lens' ListFunctionUrlConfigs (Prelude.Maybe Prelude.Natural)
listFunctionUrlConfigs_maxItems :: Lens' ListFunctionUrlConfigs (Maybe Natural)
listFunctionUrlConfigs_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionUrlConfigs' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListFunctionUrlConfigs
s@ListFunctionUrlConfigs' {} Maybe Natural
a -> ListFunctionUrlConfigs
s {$sel:maxItems:ListFunctionUrlConfigs' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListFunctionUrlConfigs)

-- | The name of the Lambda function.
--
-- __Name formats__
--
-- -   __Function name__ – @my-function@.
--
-- -   __Function ARN__ –
--     @arn:aws:lambda:us-west-2:123456789012:function:my-function@.
--
-- -   __Partial ARN__ – @123456789012:function:my-function@.
--
-- The length constraint applies only to the full ARN. If you specify only
-- the function name, it is limited to 64 characters in length.
listFunctionUrlConfigs_functionName :: Lens.Lens' ListFunctionUrlConfigs Prelude.Text
listFunctionUrlConfigs_functionName :: Lens' ListFunctionUrlConfigs Text
listFunctionUrlConfigs_functionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionUrlConfigs' {Text
functionName :: Text
$sel:functionName:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Text
functionName} -> Text
functionName) (\s :: ListFunctionUrlConfigs
s@ListFunctionUrlConfigs' {} Text
a -> ListFunctionUrlConfigs
s {$sel:functionName:ListFunctionUrlConfigs' :: Text
functionName = Text
a} :: ListFunctionUrlConfigs)

instance Core.AWSPager ListFunctionUrlConfigs where
  page :: ListFunctionUrlConfigs
-> AWSResponse ListFunctionUrlConfigs
-> Maybe ListFunctionUrlConfigs
page ListFunctionUrlConfigs
rq AWSResponse ListFunctionUrlConfigs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFunctionUrlConfigs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFunctionUrlConfigsResponse (Maybe Text)
listFunctionUrlConfigsResponse_nextMarker
            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 ListFunctionUrlConfigs
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListFunctionUrlConfigsResponse [FunctionUrlConfig]
listFunctionUrlConfigsResponse_functionUrlConfigs
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListFunctionUrlConfigs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListFunctionUrlConfigs (Maybe Text)
listFunctionUrlConfigs_marker
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFunctionUrlConfigs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFunctionUrlConfigsResponse (Maybe Text)
listFunctionUrlConfigsResponse_nextMarker
          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 ListFunctionUrlConfigs where
  type
    AWSResponse ListFunctionUrlConfigs =
      ListFunctionUrlConfigsResponse
  request :: (Service -> Service)
-> ListFunctionUrlConfigs -> Request ListFunctionUrlConfigs
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 ListFunctionUrlConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListFunctionUrlConfigs)))
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
-> Int -> [FunctionUrlConfig] -> ListFunctionUrlConfigsResponse
ListFunctionUrlConfigsResponse'
            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
"NextMarker")
            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))
            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
"FunctionUrlConfigs"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListFunctionUrlConfigs where
  hashWithSalt :: Int -> ListFunctionUrlConfigs -> Int
hashWithSalt Int
_salt ListFunctionUrlConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Text
$sel:maxItems:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Natural
$sel:marker:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
marker
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxItems
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
functionName

instance Prelude.NFData ListFunctionUrlConfigs where
  rnf :: ListFunctionUrlConfigs -> ()
rnf ListFunctionUrlConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Text
$sel:maxItems:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Natural
$sel:marker:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxItems
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
functionName

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

instance Data.ToPath ListFunctionUrlConfigs where
  toPath :: ListFunctionUrlConfigs -> ByteString
toPath ListFunctionUrlConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Text
$sel:maxItems:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Natural
$sel:marker:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2021-10-31/functions/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
functionName,
        ByteString
"/urls"
      ]

instance Data.ToQuery ListFunctionUrlConfigs where
  toQuery :: ListFunctionUrlConfigs -> QueryString
toQuery ListFunctionUrlConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Text
$sel:maxItems:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Natural
$sel:marker:ListFunctionUrlConfigs' :: ListFunctionUrlConfigs -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Marker" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
marker,
        ByteString
"MaxItems" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxItems
      ]

-- | /See:/ 'newListFunctionUrlConfigsResponse' smart constructor.
data ListFunctionUrlConfigsResponse = ListFunctionUrlConfigsResponse'
  { -- | The pagination token that\'s included if more results are available.
    ListFunctionUrlConfigsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFunctionUrlConfigsResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list of function URL configurations.
    ListFunctionUrlConfigsResponse -> [FunctionUrlConfig]
functionUrlConfigs :: [FunctionUrlConfig]
  }
  deriving (ListFunctionUrlConfigsResponse
-> ListFunctionUrlConfigsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFunctionUrlConfigsResponse
-> ListFunctionUrlConfigsResponse -> Bool
$c/= :: ListFunctionUrlConfigsResponse
-> ListFunctionUrlConfigsResponse -> Bool
== :: ListFunctionUrlConfigsResponse
-> ListFunctionUrlConfigsResponse -> Bool
$c== :: ListFunctionUrlConfigsResponse
-> ListFunctionUrlConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListFunctionUrlConfigsResponse]
ReadPrec ListFunctionUrlConfigsResponse
Int -> ReadS ListFunctionUrlConfigsResponse
ReadS [ListFunctionUrlConfigsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFunctionUrlConfigsResponse]
$creadListPrec :: ReadPrec [ListFunctionUrlConfigsResponse]
readPrec :: ReadPrec ListFunctionUrlConfigsResponse
$creadPrec :: ReadPrec ListFunctionUrlConfigsResponse
readList :: ReadS [ListFunctionUrlConfigsResponse]
$creadList :: ReadS [ListFunctionUrlConfigsResponse]
readsPrec :: Int -> ReadS ListFunctionUrlConfigsResponse
$creadsPrec :: Int -> ReadS ListFunctionUrlConfigsResponse
Prelude.Read, Int -> ListFunctionUrlConfigsResponse -> ShowS
[ListFunctionUrlConfigsResponse] -> ShowS
ListFunctionUrlConfigsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFunctionUrlConfigsResponse] -> ShowS
$cshowList :: [ListFunctionUrlConfigsResponse] -> ShowS
show :: ListFunctionUrlConfigsResponse -> String
$cshow :: ListFunctionUrlConfigsResponse -> String
showsPrec :: Int -> ListFunctionUrlConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListFunctionUrlConfigsResponse -> ShowS
Prelude.Show, forall x.
Rep ListFunctionUrlConfigsResponse x
-> ListFunctionUrlConfigsResponse
forall x.
ListFunctionUrlConfigsResponse
-> Rep ListFunctionUrlConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFunctionUrlConfigsResponse x
-> ListFunctionUrlConfigsResponse
$cfrom :: forall x.
ListFunctionUrlConfigsResponse
-> Rep ListFunctionUrlConfigsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFunctionUrlConfigsResponse' 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:
--
-- 'nextMarker', 'listFunctionUrlConfigsResponse_nextMarker' - The pagination token that\'s included if more results are available.
--
-- 'httpStatus', 'listFunctionUrlConfigsResponse_httpStatus' - The response's http status code.
--
-- 'functionUrlConfigs', 'listFunctionUrlConfigsResponse_functionUrlConfigs' - A list of function URL configurations.
newListFunctionUrlConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFunctionUrlConfigsResponse
newListFunctionUrlConfigsResponse :: Int -> ListFunctionUrlConfigsResponse
newListFunctionUrlConfigsResponse Int
pHttpStatus_ =
  ListFunctionUrlConfigsResponse'
    { $sel:nextMarker:ListFunctionUrlConfigsResponse' :: Maybe Text
nextMarker =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListFunctionUrlConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:functionUrlConfigs:ListFunctionUrlConfigsResponse' :: [FunctionUrlConfig]
functionUrlConfigs = forall a. Monoid a => a
Prelude.mempty
    }

-- | The pagination token that\'s included if more results are available.
listFunctionUrlConfigsResponse_nextMarker :: Lens.Lens' ListFunctionUrlConfigsResponse (Prelude.Maybe Prelude.Text)
listFunctionUrlConfigsResponse_nextMarker :: Lens' ListFunctionUrlConfigsResponse (Maybe Text)
listFunctionUrlConfigsResponse_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionUrlConfigsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListFunctionUrlConfigsResponse' :: ListFunctionUrlConfigsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListFunctionUrlConfigsResponse
s@ListFunctionUrlConfigsResponse' {} Maybe Text
a -> ListFunctionUrlConfigsResponse
s {$sel:nextMarker:ListFunctionUrlConfigsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListFunctionUrlConfigsResponse)

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

-- | A list of function URL configurations.
listFunctionUrlConfigsResponse_functionUrlConfigs :: Lens.Lens' ListFunctionUrlConfigsResponse [FunctionUrlConfig]
listFunctionUrlConfigsResponse_functionUrlConfigs :: Lens' ListFunctionUrlConfigsResponse [FunctionUrlConfig]
listFunctionUrlConfigsResponse_functionUrlConfigs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionUrlConfigsResponse' {[FunctionUrlConfig]
functionUrlConfigs :: [FunctionUrlConfig]
$sel:functionUrlConfigs:ListFunctionUrlConfigsResponse' :: ListFunctionUrlConfigsResponse -> [FunctionUrlConfig]
functionUrlConfigs} -> [FunctionUrlConfig]
functionUrlConfigs) (\s :: ListFunctionUrlConfigsResponse
s@ListFunctionUrlConfigsResponse' {} [FunctionUrlConfig]
a -> ListFunctionUrlConfigsResponse
s {$sel:functionUrlConfigs:ListFunctionUrlConfigsResponse' :: [FunctionUrlConfig]
functionUrlConfigs = [FunctionUrlConfig]
a} :: ListFunctionUrlConfigsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListFunctionUrlConfigsResponse
  where
  rnf :: ListFunctionUrlConfigsResponse -> ()
rnf ListFunctionUrlConfigsResponse' {Int
[FunctionUrlConfig]
Maybe Text
functionUrlConfigs :: [FunctionUrlConfig]
httpStatus :: Int
nextMarker :: Maybe Text
$sel:functionUrlConfigs:ListFunctionUrlConfigsResponse' :: ListFunctionUrlConfigsResponse -> [FunctionUrlConfig]
$sel:httpStatus:ListFunctionUrlConfigsResponse' :: ListFunctionUrlConfigsResponse -> Int
$sel:nextMarker:ListFunctionUrlConfigsResponse' :: ListFunctionUrlConfigsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [FunctionUrlConfig]
functionUrlConfigs