{-# 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.Invoke
(
Invoke (..),
newInvoke,
invoke_invocationType,
invoke_logType,
invoke_qualifier,
invoke_clientContext,
invoke_functionName,
invoke_payload,
InvokeResponse (..),
newInvokeResponse,
invokeResponse_functionError,
invokeResponse_logResult,
invokeResponse_payload,
invokeResponse_executedVersion,
invokeResponse_statusCode,
)
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 Invoke = Invoke'
{
Invoke -> Maybe InvocationType
invocationType :: Prelude.Maybe InvocationType,
Invoke -> Maybe LogType
logType :: Prelude.Maybe LogType,
Invoke -> Maybe Text
qualifier :: Prelude.Maybe Prelude.Text,
Invoke -> Maybe Text
clientContext :: Prelude.Maybe Prelude.Text,
Invoke -> Text
functionName :: Prelude.Text,
Invoke -> ByteString
payload :: Prelude.ByteString
}
deriving (Invoke -> Invoke -> Bool
(Invoke -> Invoke -> Bool)
-> (Invoke -> Invoke -> Bool) -> Eq Invoke
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Invoke -> Invoke -> Bool
$c/= :: Invoke -> Invoke -> Bool
== :: Invoke -> Invoke -> Bool
$c== :: Invoke -> Invoke -> Bool
Prelude.Eq, Int -> Invoke -> ShowS
[Invoke] -> ShowS
Invoke -> String
(Int -> Invoke -> ShowS)
-> (Invoke -> String) -> ([Invoke] -> ShowS) -> Show Invoke
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Invoke] -> ShowS
$cshowList :: [Invoke] -> ShowS
show :: Invoke -> String
$cshow :: Invoke -> String
showsPrec :: Int -> Invoke -> ShowS
$cshowsPrec :: Int -> Invoke -> ShowS
Prelude.Show, (forall x. Invoke -> Rep Invoke x)
-> (forall x. Rep Invoke x -> Invoke) -> Generic Invoke
forall x. Rep Invoke x -> Invoke
forall x. Invoke -> Rep Invoke x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Invoke x -> Invoke
$cfrom :: forall x. Invoke -> Rep Invoke x
Prelude.Generic)
newInvoke ::
Prelude.Text ->
Prelude.ByteString ->
Invoke
newInvoke :: Text -> ByteString -> Invoke
newInvoke Text
pFunctionName_ ByteString
pPayload_ =
Invoke' :: Maybe InvocationType
-> Maybe LogType
-> Maybe Text
-> Maybe Text
-> Text
-> ByteString
-> Invoke
Invoke'
{ $sel:invocationType:Invoke' :: Maybe InvocationType
invocationType = Maybe InvocationType
forall a. Maybe a
Prelude.Nothing,
$sel:logType:Invoke' :: Maybe LogType
logType = Maybe LogType
forall a. Maybe a
Prelude.Nothing,
$sel:qualifier:Invoke' :: Maybe Text
qualifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientContext:Invoke' :: Maybe Text
clientContext = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:functionName:Invoke' :: Text
functionName = Text
pFunctionName_,
$sel:payload:Invoke' :: ByteString
payload = ByteString
pPayload_
}
invoke_invocationType :: Lens.Lens' Invoke (Prelude.Maybe InvocationType)
invoke_invocationType :: (Maybe InvocationType -> f (Maybe InvocationType))
-> Invoke -> f Invoke
invoke_invocationType = (Invoke -> Maybe InvocationType)
-> (Invoke -> Maybe InvocationType -> Invoke)
-> Lens Invoke Invoke (Maybe InvocationType) (Maybe InvocationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {Maybe InvocationType
invocationType :: Maybe InvocationType
$sel:invocationType:Invoke' :: Invoke -> Maybe InvocationType
invocationType} -> Maybe InvocationType
invocationType) (\s :: Invoke
s@Invoke' {} Maybe InvocationType
a -> Invoke
s {$sel:invocationType:Invoke' :: Maybe InvocationType
invocationType = Maybe InvocationType
a} :: Invoke)
invoke_logType :: Lens.Lens' Invoke (Prelude.Maybe LogType)
invoke_logType :: (Maybe LogType -> f (Maybe LogType)) -> Invoke -> f Invoke
invoke_logType = (Invoke -> Maybe LogType)
-> (Invoke -> Maybe LogType -> Invoke)
-> Lens Invoke Invoke (Maybe LogType) (Maybe LogType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {Maybe LogType
logType :: Maybe LogType
$sel:logType:Invoke' :: Invoke -> Maybe LogType
logType} -> Maybe LogType
logType) (\s :: Invoke
s@Invoke' {} Maybe LogType
a -> Invoke
s {$sel:logType:Invoke' :: Maybe LogType
logType = Maybe LogType
a} :: Invoke)
invoke_qualifier :: Lens.Lens' Invoke (Prelude.Maybe Prelude.Text)
invoke_qualifier :: (Maybe Text -> f (Maybe Text)) -> Invoke -> f Invoke
invoke_qualifier = (Invoke -> Maybe Text)
-> (Invoke -> Maybe Text -> Invoke)
-> Lens Invoke Invoke (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {Maybe Text
qualifier :: Maybe Text
$sel:qualifier:Invoke' :: Invoke -> Maybe Text
qualifier} -> Maybe Text
qualifier) (\s :: Invoke
s@Invoke' {} Maybe Text
a -> Invoke
s {$sel:qualifier:Invoke' :: Maybe Text
qualifier = Maybe Text
a} :: Invoke)
invoke_clientContext :: Lens.Lens' Invoke (Prelude.Maybe Prelude.Text)
invoke_clientContext :: (Maybe Text -> f (Maybe Text)) -> Invoke -> f Invoke
invoke_clientContext = (Invoke -> Maybe Text)
-> (Invoke -> Maybe Text -> Invoke)
-> Lens Invoke Invoke (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {Maybe Text
clientContext :: Maybe Text
$sel:clientContext:Invoke' :: Invoke -> Maybe Text
clientContext} -> Maybe Text
clientContext) (\s :: Invoke
s@Invoke' {} Maybe Text
a -> Invoke
s {$sel:clientContext:Invoke' :: Maybe Text
clientContext = Maybe Text
a} :: Invoke)
invoke_functionName :: Lens.Lens' Invoke Prelude.Text
invoke_functionName :: (Text -> f Text) -> Invoke -> f Invoke
invoke_functionName = (Invoke -> Text)
-> (Invoke -> Text -> Invoke) -> Lens Invoke Invoke Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {Text
functionName :: Text
$sel:functionName:Invoke' :: Invoke -> Text
functionName} -> Text
functionName) (\s :: Invoke
s@Invoke' {} Text
a -> Invoke
s {$sel:functionName:Invoke' :: Text
functionName = Text
a} :: Invoke)
invoke_payload :: Lens.Lens' Invoke Prelude.ByteString
invoke_payload :: (ByteString -> f ByteString) -> Invoke -> f Invoke
invoke_payload = (Invoke -> ByteString)
-> (Invoke -> ByteString -> Invoke)
-> Lens Invoke Invoke ByteString ByteString
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Invoke' {ByteString
payload :: ByteString
$sel:payload:Invoke' :: Invoke -> ByteString
payload} -> ByteString
payload) (\s :: Invoke
s@Invoke' {} ByteString
a -> Invoke
s {$sel:payload:Invoke' :: ByteString
payload = ByteString
a} :: Invoke)
instance Core.AWSRequest Invoke where
type AWSResponse Invoke = InvokeResponse
request :: Invoke -> Request Invoke
request = Service -> Invoke -> Request Invoke
forall a. (ToRequest a, ToBody a) => Service -> a -> Request a
Request.postBody Service
defaultService
response :: Logger
-> Service
-> Proxy Invoke
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse Invoke)))
response =
(Int
-> ResponseHeaders
-> ByteString
-> Either String (AWSResponse Invoke))
-> Logger
-> Service
-> Proxy Invoke
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse Invoke)))
forall (m :: * -> *) a.
MonadResource m =>
(Int
-> ResponseHeaders -> ByteString -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveBytes
( \Int
s ResponseHeaders
h ByteString
x ->
Maybe Text
-> Maybe Text
-> Maybe ByteString
-> Maybe Text
-> Int
-> InvokeResponse
InvokeResponse'
(Maybe Text
-> Maybe Text
-> Maybe ByteString
-> Maybe Text
-> Int
-> InvokeResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ByteString -> Maybe Text -> Int -> InvokeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"X-Amz-Function-Error")
Either
String
(Maybe Text
-> Maybe ByteString -> Maybe Text -> Int -> InvokeResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe ByteString -> Maybe Text -> Int -> InvokeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"X-Amz-Log-Result")
Either
String (Maybe ByteString -> Maybe Text -> Int -> InvokeResponse)
-> Either String (Maybe ByteString)
-> Either String (Maybe Text -> Int -> InvokeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Maybe ByteString -> Either String (Maybe ByteString)
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (ByteString -> Maybe ByteString
forall a. a -> Maybe a
Prelude.Just (ByteString -> ByteString
Prelude.coerce ByteString
x)))
Either String (Maybe Text -> Int -> InvokeResponse)
-> Either String (Maybe Text)
-> Either String (Int -> InvokeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"X-Amz-Executed-Version")
Either String (Int -> InvokeResponse)
-> Either String Int -> Either String InvokeResponse
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 Invoke
instance Prelude.NFData Invoke
instance Core.ToBody Invoke where
toBody :: Invoke -> RequestBody
toBody Invoke' {Maybe Text
Maybe InvocationType
Maybe LogType
ByteString
Text
payload :: ByteString
functionName :: Text
clientContext :: Maybe Text
qualifier :: Maybe Text
logType :: Maybe LogType
invocationType :: Maybe InvocationType
$sel:payload:Invoke' :: Invoke -> ByteString
$sel:functionName:Invoke' :: Invoke -> Text
$sel:clientContext:Invoke' :: Invoke -> Maybe Text
$sel:qualifier:Invoke' :: Invoke -> Maybe Text
$sel:logType:Invoke' :: Invoke -> Maybe LogType
$sel:invocationType:Invoke' :: Invoke -> Maybe InvocationType
..} = ByteString -> RequestBody
forall a. ToBody a => a -> RequestBody
Core.toBody ByteString
payload
instance Core.ToHeaders Invoke where
toHeaders :: Invoke -> ResponseHeaders
toHeaders Invoke' {Maybe Text
Maybe InvocationType
Maybe LogType
ByteString
Text
payload :: ByteString
functionName :: Text
clientContext :: Maybe Text
qualifier :: Maybe Text
logType :: Maybe LogType
invocationType :: Maybe InvocationType
$sel:payload:Invoke' :: Invoke -> ByteString
$sel:functionName:Invoke' :: Invoke -> Text
$sel:clientContext:Invoke' :: Invoke -> Maybe Text
$sel:qualifier:Invoke' :: Invoke -> Maybe Text
$sel:logType:Invoke' :: Invoke -> Maybe LogType
$sel:invocationType:Invoke' :: Invoke -> Maybe InvocationType
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Invocation-Type" HeaderName -> Maybe InvocationType -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe InvocationType
invocationType,
HeaderName
"X-Amz-Log-Type" HeaderName -> Maybe LogType -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe LogType
logType,
HeaderName
"X-Amz-Client-Context" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
clientContext
]
instance Core.ToPath Invoke where
toPath :: Invoke -> ByteString
toPath Invoke' {Maybe Text
Maybe InvocationType
Maybe LogType
ByteString
Text
payload :: ByteString
functionName :: Text
clientContext :: Maybe Text
qualifier :: Maybe Text
logType :: Maybe LogType
invocationType :: Maybe InvocationType
$sel:payload:Invoke' :: Invoke -> ByteString
$sel:functionName:Invoke' :: Invoke -> Text
$sel:clientContext:Invoke' :: Invoke -> Maybe Text
$sel:qualifier:Invoke' :: Invoke -> Maybe Text
$sel:logType:Invoke' :: Invoke -> Maybe LogType
$sel:invocationType:Invoke' :: Invoke -> Maybe InvocationType
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2015-03-31/functions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
functionName,
ByteString
"/invocations"
]
instance Core.ToQuery Invoke where
toQuery :: Invoke -> QueryString
toQuery Invoke' {Maybe Text
Maybe InvocationType
Maybe LogType
ByteString
Text
payload :: ByteString
functionName :: Text
clientContext :: Maybe Text
qualifier :: Maybe Text
logType :: Maybe LogType
invocationType :: Maybe InvocationType
$sel:payload:Invoke' :: Invoke -> ByteString
$sel:functionName:Invoke' :: Invoke -> Text
$sel:clientContext:Invoke' :: Invoke -> Maybe Text
$sel:qualifier:Invoke' :: Invoke -> Maybe Text
$sel:logType:Invoke' :: Invoke -> Maybe LogType
$sel:invocationType:Invoke' :: Invoke -> Maybe InvocationType
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Qualifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
qualifier]
data InvokeResponse = InvokeResponse'
{
InvokeResponse -> Maybe Text
functionError :: Prelude.Maybe Prelude.Text,
InvokeResponse -> Maybe Text
logResult :: Prelude.Maybe Prelude.Text,
InvokeResponse -> Maybe ByteString
payload :: Prelude.Maybe Prelude.ByteString,
InvokeResponse -> Maybe Text
executedVersion :: Prelude.Maybe Prelude.Text,
InvokeResponse -> Int
statusCode :: Prelude.Int
}
deriving (InvokeResponse -> InvokeResponse -> Bool
(InvokeResponse -> InvokeResponse -> Bool)
-> (InvokeResponse -> InvokeResponse -> Bool) -> Eq InvokeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvokeResponse -> InvokeResponse -> Bool
$c/= :: InvokeResponse -> InvokeResponse -> Bool
== :: InvokeResponse -> InvokeResponse -> Bool
$c== :: InvokeResponse -> InvokeResponse -> Bool
Prelude.Eq, Int -> InvokeResponse -> ShowS
[InvokeResponse] -> ShowS
InvokeResponse -> String
(Int -> InvokeResponse -> ShowS)
-> (InvokeResponse -> String)
-> ([InvokeResponse] -> ShowS)
-> Show InvokeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvokeResponse] -> ShowS
$cshowList :: [InvokeResponse] -> ShowS
show :: InvokeResponse -> String
$cshow :: InvokeResponse -> String
showsPrec :: Int -> InvokeResponse -> ShowS
$cshowsPrec :: Int -> InvokeResponse -> ShowS
Prelude.Show, (forall x. InvokeResponse -> Rep InvokeResponse x)
-> (forall x. Rep InvokeResponse x -> InvokeResponse)
-> Generic InvokeResponse
forall x. Rep InvokeResponse x -> InvokeResponse
forall x. InvokeResponse -> Rep InvokeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InvokeResponse x -> InvokeResponse
$cfrom :: forall x. InvokeResponse -> Rep InvokeResponse x
Prelude.Generic)
newInvokeResponse ::
Prelude.Int ->
InvokeResponse
newInvokeResponse :: Int -> InvokeResponse
newInvokeResponse Int
pStatusCode_ =
InvokeResponse' :: Maybe Text
-> Maybe Text
-> Maybe ByteString
-> Maybe Text
-> Int
-> InvokeResponse
InvokeResponse'
{ $sel:functionError:InvokeResponse' :: Maybe Text
functionError = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logResult:InvokeResponse' :: Maybe Text
logResult = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:payload:InvokeResponse' :: Maybe ByteString
payload = Maybe ByteString
forall a. Maybe a
Prelude.Nothing,
$sel:executedVersion:InvokeResponse' :: Maybe Text
executedVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusCode:InvokeResponse' :: Int
statusCode = Int
pStatusCode_
}
invokeResponse_functionError :: Lens.Lens' InvokeResponse (Prelude.Maybe Prelude.Text)
invokeResponse_functionError :: (Maybe Text -> f (Maybe Text))
-> InvokeResponse -> f InvokeResponse
invokeResponse_functionError = (InvokeResponse -> Maybe Text)
-> (InvokeResponse -> Maybe Text -> InvokeResponse)
-> Lens InvokeResponse InvokeResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeResponse' {Maybe Text
functionError :: Maybe Text
$sel:functionError:InvokeResponse' :: InvokeResponse -> Maybe Text
functionError} -> Maybe Text
functionError) (\s :: InvokeResponse
s@InvokeResponse' {} Maybe Text
a -> InvokeResponse
s {$sel:functionError:InvokeResponse' :: Maybe Text
functionError = Maybe Text
a} :: InvokeResponse)
invokeResponse_logResult :: Lens.Lens' InvokeResponse (Prelude.Maybe Prelude.Text)
invokeResponse_logResult :: (Maybe Text -> f (Maybe Text))
-> InvokeResponse -> f InvokeResponse
invokeResponse_logResult = (InvokeResponse -> Maybe Text)
-> (InvokeResponse -> Maybe Text -> InvokeResponse)
-> Lens InvokeResponse InvokeResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeResponse' {Maybe Text
logResult :: Maybe Text
$sel:logResult:InvokeResponse' :: InvokeResponse -> Maybe Text
logResult} -> Maybe Text
logResult) (\s :: InvokeResponse
s@InvokeResponse' {} Maybe Text
a -> InvokeResponse
s {$sel:logResult:InvokeResponse' :: Maybe Text
logResult = Maybe Text
a} :: InvokeResponse)
invokeResponse_payload :: Lens.Lens' InvokeResponse (Prelude.Maybe Prelude.ByteString)
invokeResponse_payload :: (Maybe ByteString -> f (Maybe ByteString))
-> InvokeResponse -> f InvokeResponse
invokeResponse_payload = (InvokeResponse -> Maybe ByteString)
-> (InvokeResponse -> Maybe ByteString -> InvokeResponse)
-> Lens
InvokeResponse InvokeResponse (Maybe ByteString) (Maybe ByteString)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeResponse' {Maybe ByteString
payload :: Maybe ByteString
$sel:payload:InvokeResponse' :: InvokeResponse -> Maybe ByteString
payload} -> Maybe ByteString
payload) (\s :: InvokeResponse
s@InvokeResponse' {} Maybe ByteString
a -> InvokeResponse
s {$sel:payload:InvokeResponse' :: Maybe ByteString
payload = Maybe ByteString
a} :: InvokeResponse)
invokeResponse_executedVersion :: Lens.Lens' InvokeResponse (Prelude.Maybe Prelude.Text)
invokeResponse_executedVersion :: (Maybe Text -> f (Maybe Text))
-> InvokeResponse -> f InvokeResponse
invokeResponse_executedVersion = (InvokeResponse -> Maybe Text)
-> (InvokeResponse -> Maybe Text -> InvokeResponse)
-> Lens InvokeResponse InvokeResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeResponse' {Maybe Text
executedVersion :: Maybe Text
$sel:executedVersion:InvokeResponse' :: InvokeResponse -> Maybe Text
executedVersion} -> Maybe Text
executedVersion) (\s :: InvokeResponse
s@InvokeResponse' {} Maybe Text
a -> InvokeResponse
s {$sel:executedVersion:InvokeResponse' :: Maybe Text
executedVersion = Maybe Text
a} :: InvokeResponse)
invokeResponse_statusCode :: Lens.Lens' InvokeResponse Prelude.Int
invokeResponse_statusCode :: (Int -> f Int) -> InvokeResponse -> f InvokeResponse
invokeResponse_statusCode = (InvokeResponse -> Int)
-> (InvokeResponse -> Int -> InvokeResponse)
-> Lens InvokeResponse InvokeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeResponse' {Int
statusCode :: Int
$sel:statusCode:InvokeResponse' :: InvokeResponse -> Int
statusCode} -> Int
statusCode) (\s :: InvokeResponse
s@InvokeResponse' {} Int
a -> InvokeResponse
s {$sel:statusCode:InvokeResponse' :: Int
statusCode = Int
a} :: InvokeResponse)
instance Prelude.NFData InvokeResponse