{-# 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.ListProvisionedConcurrencyConfigs
-- 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 provisioned concurrency configurations for a
-- function.
--
-- This operation returns paginated results.
module Amazonka.Lambda.ListProvisionedConcurrencyConfigs
  ( -- * Creating a Request
    ListProvisionedConcurrencyConfigs (..),
    newListProvisionedConcurrencyConfigs,

    -- * Request Lenses
    listProvisionedConcurrencyConfigs_marker,
    listProvisionedConcurrencyConfigs_maxItems,
    listProvisionedConcurrencyConfigs_functionName,

    -- * Destructuring the Response
    ListProvisionedConcurrencyConfigsResponse (..),
    newListProvisionedConcurrencyConfigsResponse,

    -- * Response Lenses
    listProvisionedConcurrencyConfigsResponse_nextMarker,
    listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs,
    listProvisionedConcurrencyConfigsResponse_httpStatus,
  )
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:/ 'newListProvisionedConcurrencyConfigs' smart constructor.
data ListProvisionedConcurrencyConfigs = ListProvisionedConcurrencyConfigs'
  { -- | Specify the pagination token that\'s returned by a previous request to
    -- retrieve the next page of results.
    ListProvisionedConcurrencyConfigs -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | Specify a number to limit the number of configurations returned.
    ListProvisionedConcurrencyConfigs -> 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.
    ListProvisionedConcurrencyConfigs -> Text
functionName :: Prelude.Text
  }
  deriving (ListProvisionedConcurrencyConfigs
-> ListProvisionedConcurrencyConfigs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProvisionedConcurrencyConfigs
-> ListProvisionedConcurrencyConfigs -> Bool
$c/= :: ListProvisionedConcurrencyConfigs
-> ListProvisionedConcurrencyConfigs -> Bool
== :: ListProvisionedConcurrencyConfigs
-> ListProvisionedConcurrencyConfigs -> Bool
$c== :: ListProvisionedConcurrencyConfigs
-> ListProvisionedConcurrencyConfigs -> Bool
Prelude.Eq, ReadPrec [ListProvisionedConcurrencyConfigs]
ReadPrec ListProvisionedConcurrencyConfigs
Int -> ReadS ListProvisionedConcurrencyConfigs
ReadS [ListProvisionedConcurrencyConfigs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProvisionedConcurrencyConfigs]
$creadListPrec :: ReadPrec [ListProvisionedConcurrencyConfigs]
readPrec :: ReadPrec ListProvisionedConcurrencyConfigs
$creadPrec :: ReadPrec ListProvisionedConcurrencyConfigs
readList :: ReadS [ListProvisionedConcurrencyConfigs]
$creadList :: ReadS [ListProvisionedConcurrencyConfigs]
readsPrec :: Int -> ReadS ListProvisionedConcurrencyConfigs
$creadsPrec :: Int -> ReadS ListProvisionedConcurrencyConfigs
Prelude.Read, Int -> ListProvisionedConcurrencyConfigs -> ShowS
[ListProvisionedConcurrencyConfigs] -> ShowS
ListProvisionedConcurrencyConfigs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProvisionedConcurrencyConfigs] -> ShowS
$cshowList :: [ListProvisionedConcurrencyConfigs] -> ShowS
show :: ListProvisionedConcurrencyConfigs -> String
$cshow :: ListProvisionedConcurrencyConfigs -> String
showsPrec :: Int -> ListProvisionedConcurrencyConfigs -> ShowS
$cshowsPrec :: Int -> ListProvisionedConcurrencyConfigs -> ShowS
Prelude.Show, forall x.
Rep ListProvisionedConcurrencyConfigs x
-> ListProvisionedConcurrencyConfigs
forall x.
ListProvisionedConcurrencyConfigs
-> Rep ListProvisionedConcurrencyConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProvisionedConcurrencyConfigs x
-> ListProvisionedConcurrencyConfigs
$cfrom :: forall x.
ListProvisionedConcurrencyConfigs
-> Rep ListProvisionedConcurrencyConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListProvisionedConcurrencyConfigs' 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', 'listProvisionedConcurrencyConfigs_marker' - Specify the pagination token that\'s returned by a previous request to
-- retrieve the next page of results.
--
-- 'maxItems', 'listProvisionedConcurrencyConfigs_maxItems' - Specify a number to limit the number of configurations returned.
--
-- 'functionName', 'listProvisionedConcurrencyConfigs_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.
newListProvisionedConcurrencyConfigs ::
  -- | 'functionName'
  Prelude.Text ->
  ListProvisionedConcurrencyConfigs
newListProvisionedConcurrencyConfigs :: Text -> ListProvisionedConcurrencyConfigs
newListProvisionedConcurrencyConfigs Text
pFunctionName_ =
  ListProvisionedConcurrencyConfigs'
    { $sel:marker:ListProvisionedConcurrencyConfigs' :: Maybe Text
marker =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxItems:ListProvisionedConcurrencyConfigs' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
      $sel:functionName:ListProvisionedConcurrencyConfigs' :: Text
functionName = Text
pFunctionName_
    }

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

-- | Specify a number to limit the number of configurations returned.
listProvisionedConcurrencyConfigs_maxItems :: Lens.Lens' ListProvisionedConcurrencyConfigs (Prelude.Maybe Prelude.Natural)
listProvisionedConcurrencyConfigs_maxItems :: Lens' ListProvisionedConcurrencyConfigs (Maybe Natural)
listProvisionedConcurrencyConfigs_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisionedConcurrencyConfigs' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListProvisionedConcurrencyConfigs
s@ListProvisionedConcurrencyConfigs' {} Maybe Natural
a -> ListProvisionedConcurrencyConfigs
s {$sel:maxItems:ListProvisionedConcurrencyConfigs' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListProvisionedConcurrencyConfigs)

-- | 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.
listProvisionedConcurrencyConfigs_functionName :: Lens.Lens' ListProvisionedConcurrencyConfigs Prelude.Text
listProvisionedConcurrencyConfigs_functionName :: Lens' ListProvisionedConcurrencyConfigs Text
listProvisionedConcurrencyConfigs_functionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisionedConcurrencyConfigs' {Text
functionName :: Text
$sel:functionName:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Text
functionName} -> Text
functionName) (\s :: ListProvisionedConcurrencyConfigs
s@ListProvisionedConcurrencyConfigs' {} Text
a -> ListProvisionedConcurrencyConfigs
s {$sel:functionName:ListProvisionedConcurrencyConfigs' :: Text
functionName = Text
a} :: ListProvisionedConcurrencyConfigs)

instance
  Core.AWSPager
    ListProvisionedConcurrencyConfigs
  where
  page :: ListProvisionedConcurrencyConfigs
-> AWSResponse ListProvisionedConcurrencyConfigs
-> Maybe ListProvisionedConcurrencyConfigs
page ListProvisionedConcurrencyConfigs
rq AWSResponse ListProvisionedConcurrencyConfigs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListProvisionedConcurrencyConfigs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListProvisionedConcurrencyConfigsResponse (Maybe Text)
listProvisionedConcurrencyConfigsResponse_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 ListProvisionedConcurrencyConfigs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListProvisionedConcurrencyConfigsResponse
  (Maybe [ProvisionedConcurrencyConfigListItem])
listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs
            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.$ ListProvisionedConcurrencyConfigs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListProvisionedConcurrencyConfigs (Maybe Text)
listProvisionedConcurrencyConfigs_marker
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListProvisionedConcurrencyConfigs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListProvisionedConcurrencyConfigsResponse (Maybe Text)
listProvisionedConcurrencyConfigsResponse_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
    ListProvisionedConcurrencyConfigs
  where
  type
    AWSResponse ListProvisionedConcurrencyConfigs =
      ListProvisionedConcurrencyConfigsResponse
  request :: (Service -> Service)
-> ListProvisionedConcurrencyConfigs
-> Request ListProvisionedConcurrencyConfigs
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 ListProvisionedConcurrencyConfigs
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListProvisionedConcurrencyConfigs)))
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 [ProvisionedConcurrencyConfigListItem]
-> Int
-> ListProvisionedConcurrencyConfigsResponse
ListProvisionedConcurrencyConfigsResponse'
            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.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ProvisionedConcurrencyConfigs"
                            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListProvisionedConcurrencyConfigs
  where
  hashWithSalt :: Int -> ListProvisionedConcurrencyConfigs -> Int
hashWithSalt
    Int
_salt
    ListProvisionedConcurrencyConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Text
$sel:maxItems:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Natural
$sel:marker:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> 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
    ListProvisionedConcurrencyConfigs
  where
  rnf :: ListProvisionedConcurrencyConfigs -> ()
rnf ListProvisionedConcurrencyConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Text
$sel:maxItems:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Natural
$sel:marker:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> 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
    ListProvisionedConcurrencyConfigs
  where
  toHeaders :: ListProvisionedConcurrencyConfigs -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance
  Data.ToPath
    ListProvisionedConcurrencyConfigs
  where
  toPath :: ListProvisionedConcurrencyConfigs -> ByteString
toPath ListProvisionedConcurrencyConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Text
$sel:maxItems:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Natural
$sel:marker:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2019-09-30/functions/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
functionName,
        ByteString
"/provisioned-concurrency"
      ]

instance
  Data.ToQuery
    ListProvisionedConcurrencyConfigs
  where
  toQuery :: ListProvisionedConcurrencyConfigs -> QueryString
toQuery ListProvisionedConcurrencyConfigs' {Maybe Natural
Maybe Text
Text
functionName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:functionName:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Text
$sel:maxItems:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> Maybe Natural
$sel:marker:ListProvisionedConcurrencyConfigs' :: ListProvisionedConcurrencyConfigs -> 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,
        QueryString
"List=ALL"
      ]

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

-- |
-- Create a value of 'ListProvisionedConcurrencyConfigsResponse' 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', 'listProvisionedConcurrencyConfigsResponse_nextMarker' - The pagination token that\'s included if more results are available.
--
-- 'provisionedConcurrencyConfigs', 'listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs' - A list of provisioned concurrency configurations.
--
-- 'httpStatus', 'listProvisionedConcurrencyConfigsResponse_httpStatus' - The response's http status code.
newListProvisionedConcurrencyConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListProvisionedConcurrencyConfigsResponse
newListProvisionedConcurrencyConfigsResponse :: Int -> ListProvisionedConcurrencyConfigsResponse
newListProvisionedConcurrencyConfigsResponse
  Int
pHttpStatus_ =
    ListProvisionedConcurrencyConfigsResponse'
      { $sel:nextMarker:ListProvisionedConcurrencyConfigsResponse' :: Maybe Text
nextMarker =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedConcurrencyConfigs:ListProvisionedConcurrencyConfigsResponse' :: Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListProvisionedConcurrencyConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

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

-- | A list of provisioned concurrency configurations.
listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs :: Lens.Lens' ListProvisionedConcurrencyConfigsResponse (Prelude.Maybe [ProvisionedConcurrencyConfigListItem])
listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs :: Lens'
  ListProvisionedConcurrencyConfigsResponse
  (Maybe [ProvisionedConcurrencyConfigListItem])
listProvisionedConcurrencyConfigsResponse_provisionedConcurrencyConfigs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisionedConcurrencyConfigsResponse' {Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs :: Maybe [ProvisionedConcurrencyConfigListItem]
$sel:provisionedConcurrencyConfigs:ListProvisionedConcurrencyConfigsResponse' :: ListProvisionedConcurrencyConfigsResponse
-> Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs} -> Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs) (\s :: ListProvisionedConcurrencyConfigsResponse
s@ListProvisionedConcurrencyConfigsResponse' {} Maybe [ProvisionedConcurrencyConfigListItem]
a -> ListProvisionedConcurrencyConfigsResponse
s {$sel:provisionedConcurrencyConfigs:ListProvisionedConcurrencyConfigsResponse' :: Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs = Maybe [ProvisionedConcurrencyConfigListItem]
a} :: ListProvisionedConcurrencyConfigsResponse) 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 response's http status code.
listProvisionedConcurrencyConfigsResponse_httpStatus :: Lens.Lens' ListProvisionedConcurrencyConfigsResponse Prelude.Int
listProvisionedConcurrencyConfigsResponse_httpStatus :: Lens' ListProvisionedConcurrencyConfigsResponse Int
listProvisionedConcurrencyConfigsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisionedConcurrencyConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProvisionedConcurrencyConfigsResponse' :: ListProvisionedConcurrencyConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProvisionedConcurrencyConfigsResponse
s@ListProvisionedConcurrencyConfigsResponse' {} Int
a -> ListProvisionedConcurrencyConfigsResponse
s {$sel:httpStatus:ListProvisionedConcurrencyConfigsResponse' :: Int
httpStatus = Int
a} :: ListProvisionedConcurrencyConfigsResponse)

instance
  Prelude.NFData
    ListProvisionedConcurrencyConfigsResponse
  where
  rnf :: ListProvisionedConcurrencyConfigsResponse -> ()
rnf ListProvisionedConcurrencyConfigsResponse' {Int
Maybe [ProvisionedConcurrencyConfigListItem]
Maybe Text
httpStatus :: Int
provisionedConcurrencyConfigs :: Maybe [ProvisionedConcurrencyConfigListItem]
nextMarker :: Maybe Text
$sel:httpStatus:ListProvisionedConcurrencyConfigsResponse' :: ListProvisionedConcurrencyConfigsResponse -> Int
$sel:provisionedConcurrencyConfigs:ListProvisionedConcurrencyConfigsResponse' :: ListProvisionedConcurrencyConfigsResponse
-> Maybe [ProvisionedConcurrencyConfigListItem]
$sel:nextMarker:ListProvisionedConcurrencyConfigsResponse' :: ListProvisionedConcurrencyConfigsResponse -> 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 Maybe [ProvisionedConcurrencyConfigListItem]
provisionedConcurrencyConfigs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus