| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
AWS.Lambda.RuntimeAPI.Types
Synopsis
- data LambdaInvocation payload = LambdaInvocation {
- liAwsRequestId :: Text
- liDeadlineMs :: Word64
- liInvokedFunctionArn :: Text
- liTraceId :: Text
- liMobileMetadata :: Maybe MobileInvocationMetadata
- liPayload :: payload
- data LambdaResult payload
- = LambdaSuccess payload
- | LambdaError ErrorInfo
- | LambdaNop
- data LambdaExecutionContext a m b = LambdaExecutionContext {
- lecApiPrefix :: String
- lecHttpManager :: Manager
- lecHandler :: LambdaInvocation a -> m (LambdaResult b)
- data MobileInvocationMetadata = MobileInvocationMetadata {}
- type ErrorType = Text
- type ErrorMessage = Text
- type ErrorInfo = (ErrorType, ErrorMessage)
Documentation
data LambdaInvocation payload Source #
Represents the data provided to an invocation of the lambda
Constructors
| LambdaInvocation | |
Fields
| |
Instances
data LambdaResult payload Source #
The two possible results of a Lambda execution: success or failure
Constructors
| LambdaSuccess payload | Denotes success and provides the value to return |
| LambdaError ErrorInfo | Denotes failure and provides details |
| LambdaNop | Denotes that no invocation was provided |
Instances
data LambdaExecutionContext a m b Source #
Constructors
| LambdaExecutionContext | |
Fields
| |
data MobileInvocationMetadata Source #
Additional information available only when the Lambda is invoked through the AWS Mobile SDK. This data is currently unstructured, but will be updated to be structured in some future major release.
(Pull requests very welcome.)
Constructors
| MobileInvocationMetadata | |
Fields
| |
Instances
type ErrorMessage = Text Source #
type ErrorInfo = (ErrorType, ErrorMessage) Source #