{-# 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 #-}
module Amazonka.Lambda.GetProvisionedConcurrencyConfig
(
GetProvisionedConcurrencyConfig (..),
newGetProvisionedConcurrencyConfig,
getProvisionedConcurrencyConfig_functionName,
getProvisionedConcurrencyConfig_qualifier,
GetProvisionedConcurrencyConfigResponse (..),
newGetProvisionedConcurrencyConfigResponse,
getProvisionedConcurrencyConfigResponse_status,
getProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions,
getProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions,
getProvisionedConcurrencyConfigResponse_statusReason,
getProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions,
getProvisionedConcurrencyConfigResponse_lastModified,
getProvisionedConcurrencyConfigResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Lambda.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetProvisionedConcurrencyConfig = GetProvisionedConcurrencyConfig'
{
GetProvisionedConcurrencyConfig -> Text
functionName :: Prelude.Text,
GetProvisionedConcurrencyConfig -> Text
qualifier :: Prelude.Text
}
deriving (GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool
(GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool)
-> (GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool)
-> Eq GetProvisionedConcurrencyConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool
$c/= :: GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool
== :: GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool
$c== :: GetProvisionedConcurrencyConfig
-> GetProvisionedConcurrencyConfig -> Bool
Prelude.Eq, ReadPrec [GetProvisionedConcurrencyConfig]
ReadPrec GetProvisionedConcurrencyConfig
Int -> ReadS GetProvisionedConcurrencyConfig
ReadS [GetProvisionedConcurrencyConfig]
(Int -> ReadS GetProvisionedConcurrencyConfig)
-> ReadS [GetProvisionedConcurrencyConfig]
-> ReadPrec GetProvisionedConcurrencyConfig
-> ReadPrec [GetProvisionedConcurrencyConfig]
-> Read GetProvisionedConcurrencyConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProvisionedConcurrencyConfig]
$creadListPrec :: ReadPrec [GetProvisionedConcurrencyConfig]
readPrec :: ReadPrec GetProvisionedConcurrencyConfig
$creadPrec :: ReadPrec GetProvisionedConcurrencyConfig
readList :: ReadS [GetProvisionedConcurrencyConfig]
$creadList :: ReadS [GetProvisionedConcurrencyConfig]
readsPrec :: Int -> ReadS GetProvisionedConcurrencyConfig
$creadsPrec :: Int -> ReadS GetProvisionedConcurrencyConfig
Prelude.Read, Int -> GetProvisionedConcurrencyConfig -> ShowS
[GetProvisionedConcurrencyConfig] -> ShowS
GetProvisionedConcurrencyConfig -> String
(Int -> GetProvisionedConcurrencyConfig -> ShowS)
-> (GetProvisionedConcurrencyConfig -> String)
-> ([GetProvisionedConcurrencyConfig] -> ShowS)
-> Show GetProvisionedConcurrencyConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProvisionedConcurrencyConfig] -> ShowS
$cshowList :: [GetProvisionedConcurrencyConfig] -> ShowS
show :: GetProvisionedConcurrencyConfig -> String
$cshow :: GetProvisionedConcurrencyConfig -> String
showsPrec :: Int -> GetProvisionedConcurrencyConfig -> ShowS
$cshowsPrec :: Int -> GetProvisionedConcurrencyConfig -> ShowS
Prelude.Show, (forall x.
GetProvisionedConcurrencyConfig
-> Rep GetProvisionedConcurrencyConfig x)
-> (forall x.
Rep GetProvisionedConcurrencyConfig x
-> GetProvisionedConcurrencyConfig)
-> Generic GetProvisionedConcurrencyConfig
forall x.
Rep GetProvisionedConcurrencyConfig x
-> GetProvisionedConcurrencyConfig
forall x.
GetProvisionedConcurrencyConfig
-> Rep GetProvisionedConcurrencyConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetProvisionedConcurrencyConfig x
-> GetProvisionedConcurrencyConfig
$cfrom :: forall x.
GetProvisionedConcurrencyConfig
-> Rep GetProvisionedConcurrencyConfig x
Prelude.Generic)
newGetProvisionedConcurrencyConfig ::
Prelude.Text ->
Prelude.Text ->
GetProvisionedConcurrencyConfig
newGetProvisionedConcurrencyConfig :: Text -> Text -> GetProvisionedConcurrencyConfig
newGetProvisionedConcurrencyConfig
Text
pFunctionName_
Text
pQualifier_ =
GetProvisionedConcurrencyConfig' :: Text -> Text -> GetProvisionedConcurrencyConfig
GetProvisionedConcurrencyConfig'
{ $sel:functionName:GetProvisionedConcurrencyConfig' :: Text
functionName =
Text
pFunctionName_,
$sel:qualifier:GetProvisionedConcurrencyConfig' :: Text
qualifier = Text
pQualifier_
}
getProvisionedConcurrencyConfig_functionName :: Lens.Lens' GetProvisionedConcurrencyConfig Prelude.Text
getProvisionedConcurrencyConfig_functionName :: (Text -> f Text)
-> GetProvisionedConcurrencyConfig
-> f GetProvisionedConcurrencyConfig
getProvisionedConcurrencyConfig_functionName = (GetProvisionedConcurrencyConfig -> Text)
-> (GetProvisionedConcurrencyConfig
-> Text -> GetProvisionedConcurrencyConfig)
-> Lens
GetProvisionedConcurrencyConfig
GetProvisionedConcurrencyConfig
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfig' {Text
functionName :: Text
$sel:functionName:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
functionName} -> Text
functionName) (\s :: GetProvisionedConcurrencyConfig
s@GetProvisionedConcurrencyConfig' {} Text
a -> GetProvisionedConcurrencyConfig
s {$sel:functionName:GetProvisionedConcurrencyConfig' :: Text
functionName = Text
a} :: GetProvisionedConcurrencyConfig)
getProvisionedConcurrencyConfig_qualifier :: Lens.Lens' GetProvisionedConcurrencyConfig Prelude.Text
getProvisionedConcurrencyConfig_qualifier :: (Text -> f Text)
-> GetProvisionedConcurrencyConfig
-> f GetProvisionedConcurrencyConfig
getProvisionedConcurrencyConfig_qualifier = (GetProvisionedConcurrencyConfig -> Text)
-> (GetProvisionedConcurrencyConfig
-> Text -> GetProvisionedConcurrencyConfig)
-> Lens
GetProvisionedConcurrencyConfig
GetProvisionedConcurrencyConfig
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfig' {Text
qualifier :: Text
$sel:qualifier:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
qualifier} -> Text
qualifier) (\s :: GetProvisionedConcurrencyConfig
s@GetProvisionedConcurrencyConfig' {} Text
a -> GetProvisionedConcurrencyConfig
s {$sel:qualifier:GetProvisionedConcurrencyConfig' :: Text
qualifier = Text
a} :: GetProvisionedConcurrencyConfig)
instance
Core.AWSRequest
GetProvisionedConcurrencyConfig
where
type
AWSResponse GetProvisionedConcurrencyConfig =
GetProvisionedConcurrencyConfigResponse
request :: GetProvisionedConcurrencyConfig
-> Request GetProvisionedConcurrencyConfig
request = Service
-> GetProvisionedConcurrencyConfig
-> Request GetProvisionedConcurrencyConfig
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetProvisionedConcurrencyConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetProvisionedConcurrencyConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetProvisionedConcurrencyConfig))
-> Logger
-> Service
-> Proxy GetProvisionedConcurrencyConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetProvisionedConcurrencyConfig)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ProvisionedConcurrencyStatusEnum
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse'
(Maybe ProvisionedConcurrencyStatusEnum
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe ProvisionedConcurrencyStatusEnum)
-> Either
String
(Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe ProvisionedConcurrencyStatusEnum)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RequestedProvisionedConcurrentExecutions"
)
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AvailableProvisionedConcurrentExecutions"
)
Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Text -> Int -> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StatusReason")
Either
String
(Maybe Natural
-> Maybe Text -> Int -> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text -> Int -> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AllocatedProvisionedConcurrentExecutions"
)
Either
String
(Maybe Text -> Int -> GetProvisionedConcurrencyConfigResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetProvisionedConcurrencyConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModified")
Either String (Int -> GetProvisionedConcurrencyConfigResponse)
-> Either String Int
-> Either String GetProvisionedConcurrencyConfigResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
GetProvisionedConcurrencyConfig
instance
Prelude.NFData
GetProvisionedConcurrencyConfig
instance
Core.ToHeaders
GetProvisionedConcurrencyConfig
where
toHeaders :: GetProvisionedConcurrencyConfig -> ResponseHeaders
toHeaders = ResponseHeaders
-> GetProvisionedConcurrencyConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath GetProvisionedConcurrencyConfig where
toPath :: GetProvisionedConcurrencyConfig -> ByteString
toPath GetProvisionedConcurrencyConfig' {Text
qualifier :: Text
functionName :: Text
$sel:qualifier:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
$sel:functionName:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2019-09-30/functions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
functionName,
ByteString
"/provisioned-concurrency"
]
instance Core.ToQuery GetProvisionedConcurrencyConfig where
toQuery :: GetProvisionedConcurrencyConfig -> QueryString
toQuery GetProvisionedConcurrencyConfig' {Text
qualifier :: Text
functionName :: Text
$sel:qualifier:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
$sel:functionName:GetProvisionedConcurrencyConfig' :: GetProvisionedConcurrencyConfig -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Qualifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
qualifier]
data GetProvisionedConcurrencyConfigResponse = GetProvisionedConcurrencyConfigResponse'
{
GetProvisionedConcurrencyConfigResponse
-> Maybe ProvisionedConcurrencyStatusEnum
status :: Prelude.Maybe ProvisionedConcurrencyStatusEnum,
GetProvisionedConcurrencyConfigResponse -> Maybe Natural
requestedProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
GetProvisionedConcurrencyConfigResponse -> Maybe Natural
availableProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
GetProvisionedConcurrencyConfigResponse -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text,
GetProvisionedConcurrencyConfigResponse -> Maybe Natural
allocatedProvisionedConcurrentExecutions :: Prelude.Maybe Prelude.Natural,
GetProvisionedConcurrencyConfigResponse -> Maybe Text
lastModified :: Prelude.Maybe Prelude.Text,
GetProvisionedConcurrencyConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool
(GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool)
-> (GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool)
-> Eq GetProvisionedConcurrencyConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool
$c/= :: GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool
== :: GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool
$c== :: GetProvisionedConcurrencyConfigResponse
-> GetProvisionedConcurrencyConfigResponse -> Bool
Prelude.Eq, ReadPrec [GetProvisionedConcurrencyConfigResponse]
ReadPrec GetProvisionedConcurrencyConfigResponse
Int -> ReadS GetProvisionedConcurrencyConfigResponse
ReadS [GetProvisionedConcurrencyConfigResponse]
(Int -> ReadS GetProvisionedConcurrencyConfigResponse)
-> ReadS [GetProvisionedConcurrencyConfigResponse]
-> ReadPrec GetProvisionedConcurrencyConfigResponse
-> ReadPrec [GetProvisionedConcurrencyConfigResponse]
-> Read GetProvisionedConcurrencyConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProvisionedConcurrencyConfigResponse]
$creadListPrec :: ReadPrec [GetProvisionedConcurrencyConfigResponse]
readPrec :: ReadPrec GetProvisionedConcurrencyConfigResponse
$creadPrec :: ReadPrec GetProvisionedConcurrencyConfigResponse
readList :: ReadS [GetProvisionedConcurrencyConfigResponse]
$creadList :: ReadS [GetProvisionedConcurrencyConfigResponse]
readsPrec :: Int -> ReadS GetProvisionedConcurrencyConfigResponse
$creadsPrec :: Int -> ReadS GetProvisionedConcurrencyConfigResponse
Prelude.Read, Int -> GetProvisionedConcurrencyConfigResponse -> ShowS
[GetProvisionedConcurrencyConfigResponse] -> ShowS
GetProvisionedConcurrencyConfigResponse -> String
(Int -> GetProvisionedConcurrencyConfigResponse -> ShowS)
-> (GetProvisionedConcurrencyConfigResponse -> String)
-> ([GetProvisionedConcurrencyConfigResponse] -> ShowS)
-> Show GetProvisionedConcurrencyConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProvisionedConcurrencyConfigResponse] -> ShowS
$cshowList :: [GetProvisionedConcurrencyConfigResponse] -> ShowS
show :: GetProvisionedConcurrencyConfigResponse -> String
$cshow :: GetProvisionedConcurrencyConfigResponse -> String
showsPrec :: Int -> GetProvisionedConcurrencyConfigResponse -> ShowS
$cshowsPrec :: Int -> GetProvisionedConcurrencyConfigResponse -> ShowS
Prelude.Show, (forall x.
GetProvisionedConcurrencyConfigResponse
-> Rep GetProvisionedConcurrencyConfigResponse x)
-> (forall x.
Rep GetProvisionedConcurrencyConfigResponse x
-> GetProvisionedConcurrencyConfigResponse)
-> Generic GetProvisionedConcurrencyConfigResponse
forall x.
Rep GetProvisionedConcurrencyConfigResponse x
-> GetProvisionedConcurrencyConfigResponse
forall x.
GetProvisionedConcurrencyConfigResponse
-> Rep GetProvisionedConcurrencyConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetProvisionedConcurrencyConfigResponse x
-> GetProvisionedConcurrencyConfigResponse
$cfrom :: forall x.
GetProvisionedConcurrencyConfigResponse
-> Rep GetProvisionedConcurrencyConfigResponse x
Prelude.Generic)
newGetProvisionedConcurrencyConfigResponse ::
Prelude.Int ->
GetProvisionedConcurrencyConfigResponse
newGetProvisionedConcurrencyConfigResponse :: Int -> GetProvisionedConcurrencyConfigResponse
newGetProvisionedConcurrencyConfigResponse
Int
pHttpStatus_ =
GetProvisionedConcurrencyConfigResponse' :: Maybe ProvisionedConcurrencyStatusEnum
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Int
-> GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse'
{ $sel:status:GetProvisionedConcurrencyConfigResponse' :: Maybe ProvisionedConcurrencyStatusEnum
status =
Maybe ProvisionedConcurrencyStatusEnum
forall a. Maybe a
Prelude.Nothing,
$sel:requestedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
requestedProvisionedConcurrentExecutions =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:availableProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
availableProvisionedConcurrentExecutions =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:GetProvisionedConcurrencyConfigResponse' :: Maybe Text
statusReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:allocatedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
allocatedProvisionedConcurrentExecutions =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:lastModified:GetProvisionedConcurrencyConfigResponse' :: Maybe Text
lastModified = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetProvisionedConcurrencyConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getProvisionedConcurrencyConfigResponse_status :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe ProvisionedConcurrencyStatusEnum)
getProvisionedConcurrencyConfigResponse_status :: (Maybe ProvisionedConcurrencyStatusEnum
-> f (Maybe ProvisionedConcurrencyStatusEnum))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_status = (GetProvisionedConcurrencyConfigResponse
-> Maybe ProvisionedConcurrencyStatusEnum)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe ProvisionedConcurrencyStatusEnum
-> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe ProvisionedConcurrencyStatusEnum)
(Maybe ProvisionedConcurrencyStatusEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe ProvisionedConcurrencyStatusEnum
status :: Maybe ProvisionedConcurrencyStatusEnum
$sel:status:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse
-> Maybe ProvisionedConcurrencyStatusEnum
status} -> Maybe ProvisionedConcurrencyStatusEnum
status) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe ProvisionedConcurrencyStatusEnum
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:status:GetProvisionedConcurrencyConfigResponse' :: Maybe ProvisionedConcurrencyStatusEnum
status = Maybe ProvisionedConcurrencyStatusEnum
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe Prelude.Natural)
getProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions = (GetProvisionedConcurrencyConfigResponse -> Maybe Natural)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe Natural -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe Natural
requestedProvisionedConcurrentExecutions :: Maybe Natural
$sel:requestedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Maybe Natural
requestedProvisionedConcurrentExecutions} -> Maybe Natural
requestedProvisionedConcurrentExecutions) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe Natural
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:requestedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
requestedProvisionedConcurrentExecutions = Maybe Natural
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe Prelude.Natural)
getProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions = (GetProvisionedConcurrencyConfigResponse -> Maybe Natural)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe Natural -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe Natural
availableProvisionedConcurrentExecutions :: Maybe Natural
$sel:availableProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Maybe Natural
availableProvisionedConcurrentExecutions} -> Maybe Natural
availableProvisionedConcurrentExecutions) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe Natural
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:availableProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
availableProvisionedConcurrentExecutions = Maybe Natural
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_statusReason :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe Prelude.Text)
getProvisionedConcurrencyConfigResponse_statusReason :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_statusReason = (GetProvisionedConcurrencyConfigResponse -> Maybe Text)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe Text -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe Text
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:statusReason:GetProvisionedConcurrencyConfigResponse' :: Maybe Text
statusReason = Maybe Text
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe Prelude.Natural)
getProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions :: (Maybe Natural -> f (Maybe Natural))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions = (GetProvisionedConcurrencyConfigResponse -> Maybe Natural)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe Natural -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe Natural
allocatedProvisionedConcurrentExecutions :: Maybe Natural
$sel:allocatedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Maybe Natural
allocatedProvisionedConcurrentExecutions} -> Maybe Natural
allocatedProvisionedConcurrentExecutions) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe Natural
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:allocatedProvisionedConcurrentExecutions:GetProvisionedConcurrencyConfigResponse' :: Maybe Natural
allocatedProvisionedConcurrentExecutions = Maybe Natural
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_lastModified :: Lens.Lens' GetProvisionedConcurrencyConfigResponse (Prelude.Maybe Prelude.Text)
getProvisionedConcurrencyConfigResponse_lastModified :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_lastModified = (GetProvisionedConcurrencyConfigResponse -> Maybe Text)
-> (GetProvisionedConcurrencyConfigResponse
-> Maybe Text -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Maybe Text
lastModified :: Maybe Text
$sel:lastModified:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Maybe Text
lastModified} -> Maybe Text
lastModified) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Maybe Text
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:lastModified:GetProvisionedConcurrencyConfigResponse' :: Maybe Text
lastModified = Maybe Text
a} :: GetProvisionedConcurrencyConfigResponse)
getProvisionedConcurrencyConfigResponse_httpStatus :: Lens.Lens' GetProvisionedConcurrencyConfigResponse Prelude.Int
getProvisionedConcurrencyConfigResponse_httpStatus :: (Int -> f Int)
-> GetProvisionedConcurrencyConfigResponse
-> f GetProvisionedConcurrencyConfigResponse
getProvisionedConcurrencyConfigResponse_httpStatus = (GetProvisionedConcurrencyConfigResponse -> Int)
-> (GetProvisionedConcurrencyConfigResponse
-> Int -> GetProvisionedConcurrencyConfigResponse)
-> Lens
GetProvisionedConcurrencyConfigResponse
GetProvisionedConcurrencyConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedConcurrencyConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetProvisionedConcurrencyConfigResponse' :: GetProvisionedConcurrencyConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetProvisionedConcurrencyConfigResponse
s@GetProvisionedConcurrencyConfigResponse' {} Int
a -> GetProvisionedConcurrencyConfigResponse
s {$sel:httpStatus:GetProvisionedConcurrencyConfigResponse' :: Int
httpStatus = Int
a} :: GetProvisionedConcurrencyConfigResponse)
instance
Prelude.NFData
GetProvisionedConcurrencyConfigResponse