-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Haskell runtime for AWS Lambda -- -- Please see the README on GitHub at -- https://github.com/theam/aws-lambda-haskell-runtime#readme @package aws-lambda-haskell-runtime @version 2.0.2 module Aws.Lambda.Runtime -- | Runs the user haskell_lambda executable and posts back the -- results. This is called from the layer's main function. runLambda :: RunCallback -> IO () -- | Wrapper type to handle the result of the user newtype LambdaResult LambdaResult :: String -> LambdaResult module Aws.Lambda -- | Context that is passed to all the handlers data Context Context :: !Int -> !String -> !String -> !String -> !String -> !String -> !String -> !String -> !Int -> Context [memoryLimitInMb] :: Context -> !Int [functionName] :: Context -> !String [functionVersion] :: Context -> !String [invokedFunctionArn] :: Context -> !String [awsRequestId] :: Context -> !String [xrayTraceId] :: Context -> !String [logStreamName] :: Context -> !String [logGroupName] :: Context -> !String [deadline] :: Context -> !Int -- | Initializes the context out of the environment initialize :: Throws Parsing => Throws EnvironmentVariableNotSet => Event -> IO Context -- | Options that the generated main expects data LambdaOptions LambdaOptions :: !String -> !String -> !String -> !String -> LambdaOptions [eventObject] :: LambdaOptions -> !String [contextObject] :: LambdaOptions -> !String [functionHandler] :: LambdaOptions -> !String [executionUuid] :: LambdaOptions -> !String -- | Generates a main function that acts as a dispatcher generateLambdaDispatcher :: DecsQ -- | Helper function that the dispatcher will use to decode the JSON that -- comes as an AWS Lambda event into the appropriate type expected by the -- handler. decodeObj :: FromJSON a => String -> a -- | Helper function that the dispatcher will use to decode the JSON that -- comes as an AWS Lambda event into the appropriate type expected by the -- handler. encodeObj :: ToJSON a => a -> String