{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.ProvisionedConcurrencyConfigListItem
-- 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)
module Amazonka.Lambda.Types.ProvisionedConcurrencyConfigListItem where

import qualified Amazonka.Core as Core
import Amazonka.Lambda.Types.ProvisionedConcurrencyStatusEnum
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Details about the provisioned concurrency configuration for a function
-- alias or version.
--
-- /See:/ 'newProvisionedConcurrencyConfigListItem' smart constructor.
data ProvisionedConcurrencyConfigListItem = ProvisionedConcurrencyConfigListItem'
  { -- | The status of the allocation process.
    ProvisionedConcurrencyConfigListItem
-> Maybe ProvisionedConcurrencyStatusEnum
status :: Prelude.Maybe ProvisionedConcurrencyStatusEnum,
    -- | The Amazon Resource Name (ARN) of the alias or version.
    ProvisionedConcurrencyConfigListItem -> Maybe Text
functionArn :: Prelude.Maybe Prelude.Text,
    -- | The amount of provisioned concurrency requested.
    ProvisionedConcurrencyConfigListItem -> Maybe Natural
requestedProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
    -- | The amount of provisioned concurrency available.
    ProvisionedConcurrencyConfigListItem -> Maybe Natural
availableProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
    -- | For failed allocations, the reason that provisioned concurrency could
    -- not be allocated.
    ProvisionedConcurrencyConfigListItem -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text,
    -- | The amount of provisioned concurrency allocated.
    ProvisionedConcurrencyConfigListItem -> Maybe Natural
allocatedProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
    -- | The date and time that a user last updated the configuration, in
    -- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601 format>.
    ProvisionedConcurrencyConfigListItem -> Maybe Text
lastModified :: Prelude.Maybe Prelude.Text
  }
  deriving (ProvisionedConcurrencyConfigListItem
-> ProvisionedConcurrencyConfigListItem -> Bool
(ProvisionedConcurrencyConfigListItem
 -> ProvisionedConcurrencyConfigListItem -> Bool)
-> (ProvisionedConcurrencyConfigListItem
    -> ProvisionedConcurrencyConfigListItem -> Bool)
-> Eq ProvisionedConcurrencyConfigListItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisionedConcurrencyConfigListItem
-> ProvisionedConcurrencyConfigListItem -> Bool
$c/= :: ProvisionedConcurrencyConfigListItem
-> ProvisionedConcurrencyConfigListItem -> Bool
== :: ProvisionedConcurrencyConfigListItem
-> ProvisionedConcurrencyConfigListItem -> Bool
$c== :: ProvisionedConcurrencyConfigListItem
-> ProvisionedConcurrencyConfigListItem -> Bool
Prelude.Eq, ReadPrec [ProvisionedConcurrencyConfigListItem]
ReadPrec ProvisionedConcurrencyConfigListItem
Int -> ReadS ProvisionedConcurrencyConfigListItem
ReadS [ProvisionedConcurrencyConfigListItem]
(Int -> ReadS ProvisionedConcurrencyConfigListItem)
-> ReadS [ProvisionedConcurrencyConfigListItem]
-> ReadPrec ProvisionedConcurrencyConfigListItem
-> ReadPrec [ProvisionedConcurrencyConfigListItem]
-> Read ProvisionedConcurrencyConfigListItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisionedConcurrencyConfigListItem]
$creadListPrec :: ReadPrec [ProvisionedConcurrencyConfigListItem]
readPrec :: ReadPrec ProvisionedConcurrencyConfigListItem
$creadPrec :: ReadPrec ProvisionedConcurrencyConfigListItem
readList :: ReadS [ProvisionedConcurrencyConfigListItem]
$creadList :: ReadS [ProvisionedConcurrencyConfigListItem]
readsPrec :: Int -> ReadS ProvisionedConcurrencyConfigListItem
$creadsPrec :: Int -> ReadS ProvisionedConcurrencyConfigListItem
Prelude.Read, Int -> ProvisionedConcurrencyConfigListItem -> ShowS
[ProvisionedConcurrencyConfigListItem] -> ShowS
ProvisionedConcurrencyConfigListItem -> String
(Int -> ProvisionedConcurrencyConfigListItem -> ShowS)
-> (ProvisionedConcurrencyConfigListItem -> String)
-> ([ProvisionedConcurrencyConfigListItem] -> ShowS)
-> Show ProvisionedConcurrencyConfigListItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisionedConcurrencyConfigListItem] -> ShowS
$cshowList :: [ProvisionedConcurrencyConfigListItem] -> ShowS
show :: ProvisionedConcurrencyConfigListItem -> String
$cshow :: ProvisionedConcurrencyConfigListItem -> String
showsPrec :: Int -> ProvisionedConcurrencyConfigListItem -> ShowS
$cshowsPrec :: Int -> ProvisionedConcurrencyConfigListItem -> ShowS
Prelude.Show, (forall x.
 ProvisionedConcurrencyConfigListItem
 -> Rep ProvisionedConcurrencyConfigListItem x)
-> (forall x.
    Rep ProvisionedConcurrencyConfigListItem x
    -> ProvisionedConcurrencyConfigListItem)
-> Generic ProvisionedConcurrencyConfigListItem
forall x.
Rep ProvisionedConcurrencyConfigListItem x
-> ProvisionedConcurrencyConfigListItem
forall x.
ProvisionedConcurrencyConfigListItem
-> Rep ProvisionedConcurrencyConfigListItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProvisionedConcurrencyConfigListItem x
-> ProvisionedConcurrencyConfigListItem
$cfrom :: forall x.
ProvisionedConcurrencyConfigListItem
-> Rep ProvisionedConcurrencyConfigListItem x
Prelude.Generic)

-- |
-- Create a value of 'ProvisionedConcurrencyConfigListItem' 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:
--
-- 'status', 'provisionedConcurrencyConfigListItem_status' - The status of the allocation process.
--
-- 'functionArn', 'provisionedConcurrencyConfigListItem_functionArn' - The Amazon Resource Name (ARN) of the alias or version.
--
-- 'requestedProvisionedConcurrentExecutions', 'provisionedConcurrencyConfigListItem_requestedProvisionedConcurrentExecutions' - The amount of provisioned concurrency requested.
--
-- 'availableProvisionedConcurrentExecutions', 'provisionedConcurrencyConfigListItem_availableProvisionedConcurrentExecutions' - The amount of provisioned concurrency available.
--
-- 'statusReason', 'provisionedConcurrencyConfigListItem_statusReason' - For failed allocations, the reason that provisioned concurrency could
-- not be allocated.
--
-- 'allocatedProvisionedConcurrentExecutions', 'provisionedConcurrencyConfigListItem_allocatedProvisionedConcurrentExecutions' - The amount of provisioned concurrency allocated.
--
-- 'lastModified', 'provisionedConcurrencyConfigListItem_lastModified' - The date and time that a user last updated the configuration, in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601 format>.
newProvisionedConcurrencyConfigListItem ::
  ProvisionedConcurrencyConfigListItem
newProvisionedConcurrencyConfigListItem :: ProvisionedConcurrencyConfigListItem
newProvisionedConcurrencyConfigListItem =
  ProvisionedConcurrencyConfigListItem' :: Maybe ProvisionedConcurrencyStatusEnum
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ProvisionedConcurrencyConfigListItem
ProvisionedConcurrencyConfigListItem'
    { $sel:status:ProvisionedConcurrencyConfigListItem' :: Maybe ProvisionedConcurrencyStatusEnum
status =
        Maybe ProvisionedConcurrencyStatusEnum
forall a. Maybe a
Prelude.Nothing,
      $sel:functionArn:ProvisionedConcurrencyConfigListItem' :: Maybe Text
functionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:requestedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
requestedProvisionedConcurrentExecutions =
        Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:availableProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
availableProvisionedConcurrentExecutions =
        Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:statusReason:ProvisionedConcurrencyConfigListItem' :: Maybe Text
statusReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:allocatedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
allocatedProvisionedConcurrentExecutions =
        Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModified:ProvisionedConcurrencyConfigListItem' :: Maybe Text
lastModified = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the allocation process.
provisionedConcurrencyConfigListItem_status :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe ProvisionedConcurrencyStatusEnum)
provisionedConcurrencyConfigListItem_status :: (Maybe ProvisionedConcurrencyStatusEnum
 -> f (Maybe ProvisionedConcurrencyStatusEnum))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_status = (ProvisionedConcurrencyConfigListItem
 -> Maybe ProvisionedConcurrencyStatusEnum)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe ProvisionedConcurrencyStatusEnum
    -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe ProvisionedConcurrencyStatusEnum)
     (Maybe ProvisionedConcurrencyStatusEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe ProvisionedConcurrencyStatusEnum
status :: Maybe ProvisionedConcurrencyStatusEnum
$sel:status:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem
-> Maybe ProvisionedConcurrencyStatusEnum
status} -> Maybe ProvisionedConcurrencyStatusEnum
status) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe ProvisionedConcurrencyStatusEnum
a -> ProvisionedConcurrencyConfigListItem
s {$sel:status:ProvisionedConcurrencyConfigListItem' :: Maybe ProvisionedConcurrencyStatusEnum
status = Maybe ProvisionedConcurrencyStatusEnum
a} :: ProvisionedConcurrencyConfigListItem)

-- | The Amazon Resource Name (ARN) of the alias or version.
provisionedConcurrencyConfigListItem_functionArn :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Text)
provisionedConcurrencyConfigListItem_functionArn :: (Maybe Text -> f (Maybe Text))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_functionArn = (ProvisionedConcurrencyConfigListItem -> Maybe Text)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Text -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Text
functionArn :: Maybe Text
$sel:functionArn:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Text
functionArn} -> Maybe Text
functionArn) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Text
a -> ProvisionedConcurrencyConfigListItem
s {$sel:functionArn:ProvisionedConcurrencyConfigListItem' :: Maybe Text
functionArn = Maybe Text
a} :: ProvisionedConcurrencyConfigListItem)

-- | The amount of provisioned concurrency requested.
provisionedConcurrencyConfigListItem_requestedProvisionedConcurrentExecutions :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Natural)
provisionedConcurrencyConfigListItem_requestedProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_requestedProvisionedConcurrentExecutions = (ProvisionedConcurrencyConfigListItem -> Maybe Natural)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Natural -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Natural
requestedProvisionedConcurrentExecutions :: Maybe Natural
$sel:requestedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Natural
requestedProvisionedConcurrentExecutions} -> Maybe Natural
requestedProvisionedConcurrentExecutions) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Natural
a -> ProvisionedConcurrencyConfigListItem
s {$sel:requestedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
requestedProvisionedConcurrentExecutions = Maybe Natural
a} :: ProvisionedConcurrencyConfigListItem)

-- | The amount of provisioned concurrency available.
provisionedConcurrencyConfigListItem_availableProvisionedConcurrentExecutions :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Natural)
provisionedConcurrencyConfigListItem_availableProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_availableProvisionedConcurrentExecutions = (ProvisionedConcurrencyConfigListItem -> Maybe Natural)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Natural -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Natural
availableProvisionedConcurrentExecutions :: Maybe Natural
$sel:availableProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Natural
availableProvisionedConcurrentExecutions} -> Maybe Natural
availableProvisionedConcurrentExecutions) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Natural
a -> ProvisionedConcurrencyConfigListItem
s {$sel:availableProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
availableProvisionedConcurrentExecutions = Maybe Natural
a} :: ProvisionedConcurrencyConfigListItem)

-- | For failed allocations, the reason that provisioned concurrency could
-- not be allocated.
provisionedConcurrencyConfigListItem_statusReason :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Text)
provisionedConcurrencyConfigListItem_statusReason :: (Maybe Text -> f (Maybe Text))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_statusReason = (ProvisionedConcurrencyConfigListItem -> Maybe Text)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Text -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Text
a -> ProvisionedConcurrencyConfigListItem
s {$sel:statusReason:ProvisionedConcurrencyConfigListItem' :: Maybe Text
statusReason = Maybe Text
a} :: ProvisionedConcurrencyConfigListItem)

-- | The amount of provisioned concurrency allocated.
provisionedConcurrencyConfigListItem_allocatedProvisionedConcurrentExecutions :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Natural)
provisionedConcurrencyConfigListItem_allocatedProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_allocatedProvisionedConcurrentExecutions = (ProvisionedConcurrencyConfigListItem -> Maybe Natural)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Natural -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Natural
allocatedProvisionedConcurrentExecutions :: Maybe Natural
$sel:allocatedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Natural
allocatedProvisionedConcurrentExecutions} -> Maybe Natural
allocatedProvisionedConcurrentExecutions) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Natural
a -> ProvisionedConcurrencyConfigListItem
s {$sel:allocatedProvisionedConcurrentExecutions:ProvisionedConcurrencyConfigListItem' :: Maybe Natural
allocatedProvisionedConcurrentExecutions = Maybe Natural
a} :: ProvisionedConcurrencyConfigListItem)

-- | The date and time that a user last updated the configuration, in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601 format>.
provisionedConcurrencyConfigListItem_lastModified :: Lens.Lens' ProvisionedConcurrencyConfigListItem (Prelude.Maybe Prelude.Text)
provisionedConcurrencyConfigListItem_lastModified :: (Maybe Text -> f (Maybe Text))
-> ProvisionedConcurrencyConfigListItem
-> f ProvisionedConcurrencyConfigListItem
provisionedConcurrencyConfigListItem_lastModified = (ProvisionedConcurrencyConfigListItem -> Maybe Text)
-> (ProvisionedConcurrencyConfigListItem
    -> Maybe Text -> ProvisionedConcurrencyConfigListItem)
-> Lens
     ProvisionedConcurrencyConfigListItem
     ProvisionedConcurrencyConfigListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedConcurrencyConfigListItem' {Maybe Text
lastModified :: Maybe Text
$sel:lastModified:ProvisionedConcurrencyConfigListItem' :: ProvisionedConcurrencyConfigListItem -> Maybe Text
lastModified} -> Maybe Text
lastModified) (\s :: ProvisionedConcurrencyConfigListItem
s@ProvisionedConcurrencyConfigListItem' {} Maybe Text
a -> ProvisionedConcurrencyConfigListItem
s {$sel:lastModified:ProvisionedConcurrencyConfigListItem' :: Maybe Text
lastModified = Maybe Text
a} :: ProvisionedConcurrencyConfigListItem)

instance
  Core.FromJSON
    ProvisionedConcurrencyConfigListItem
  where
  parseJSON :: Value -> Parser ProvisionedConcurrencyConfigListItem
parseJSON =
    String
-> (Object -> Parser ProvisionedConcurrencyConfigListItem)
-> Value
-> Parser ProvisionedConcurrencyConfigListItem
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProvisionedConcurrencyConfigListItem"
      ( \Object
x ->
          Maybe ProvisionedConcurrencyStatusEnum
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ProvisionedConcurrencyConfigListItem
ProvisionedConcurrencyConfigListItem'
            (Maybe ProvisionedConcurrencyStatusEnum
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Text
 -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe ProvisionedConcurrencyStatusEnum)
-> Parser
     (Maybe Text
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ProvisionedConcurrencyStatusEnum)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Text
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FunctionArn")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RequestedProvisionedConcurrentExecutions"
                        )
            Parser
  (Maybe Natural
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailableProvisionedConcurrentExecutions"
                        )
            Parser
  (Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe Natural
      -> Maybe Text -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StatusReason")
            Parser
  (Maybe Natural
   -> Maybe Text -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Natural)
-> Parser (Maybe Text -> ProvisionedConcurrencyConfigListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AllocatedProvisionedConcurrentExecutions"
                        )
            Parser (Maybe Text -> ProvisionedConcurrencyConfigListItem)
-> Parser (Maybe Text)
-> Parser ProvisionedConcurrencyConfigListItem
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModified")
      )

instance
  Prelude.Hashable
    ProvisionedConcurrencyConfigListItem

instance
  Prelude.NFData
    ProvisionedConcurrencyConfigListItem