| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Aws.Lambda.Runtime
Synopsis
- runLambda :: forall context. IO context -> RunCallback context -> IO ()
- data LambdaResult
- = StandaloneLambdaResult LambdaResponseBody
- | ApiGatewayResult (ApiGatewayResponse ApiGatewayResponseBody)
- data DispatcherStrategy
- newtype DispatcherOptions = DispatcherOptions {}
- newtype ApiGatewayDispatcherOptions = ApiGatewayDispatcherOptions {}
- defaultDispatcherOptions :: DispatcherOptions
- data Parsing = Parsing {}
Documentation
runLambda :: forall context. IO context -> RunCallback context -> IO () Source #
Runs the user haskell_lambda executable and posts back the
results. This is called from the layer's main function.
data LambdaResult Source #
Wrapper type to handle the result of the user
Constructors
| StandaloneLambdaResult LambdaResponseBody | |
| ApiGatewayResult (ApiGatewayResponse ApiGatewayResponseBody) |
data DispatcherStrategy Source #
A strategy on how to generate the dispatcher functions
Constructors
| UseWithAPIGateway | |
| StandaloneLambda |
Instances
| Lift DispatcherStrategy Source # | |
Defined in Aws.Lambda.Runtime.Common Methods lift :: DispatcherStrategy -> Q Exp # | |
newtype DispatcherOptions Source #
Options that the dispatcher generator expects
Constructors
| DispatcherOptions | |
Instances
| Lift DispatcherOptions Source # | |
Defined in Aws.Lambda.Runtime.Common Methods lift :: DispatcherOptions -> Q Exp # | |
newtype ApiGatewayDispatcherOptions Source #
API Gateway specific dispatcher options
Constructors
| ApiGatewayDispatcherOptions | |
Fields
| |
Instances
| Lift ApiGatewayDispatcherOptions Source # | |
Defined in Aws.Lambda.Runtime.Common Methods lift :: ApiGatewayDispatcherOptions -> Q Exp # | |
Constructors
| Parsing | |
Fields
| |
Instances
| Show Parsing Source # | |
| ToJSON Parsing Source # | |
Defined in Aws.Lambda.Runtime.Error | |
| Exception Parsing Source # | |
Defined in Aws.Lambda.Runtime.Error Methods toException :: Parsing -> SomeException # fromException :: SomeException -> Maybe Parsing # displayException :: Parsing -> String # | |