-- 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 1.0.9 module Aws.Lambda.Runtime type LByteString = ByteString type ByteString = ByteString type App a = ExceptT RuntimeError IO a data RuntimeError EnvironmentVariableNotSet :: Text -> RuntimeError ApiConnectionError :: RuntimeError ApiHeaderNotSet :: Text -> RuntimeError ParseError :: Text -> Text -> RuntimeError InvocationError :: Text -> RuntimeError data Context Context :: !Int -> !Text -> !Text -> !Text -> !Text -> !Text -> !Text -> !Text -> !Int -> Context [memoryLimitInMb] :: Context -> !Int [functionName] :: Context -> !Text [functionVersion] :: Context -> !Text [invokedFunctionArn] :: Context -> !Text [awsRequestId] :: Context -> !Text [xrayTraceId] :: Context -> !Text [logStreamName] :: Context -> !Text [logGroupName] :: Context -> !Text [deadline] :: Context -> !Int newtype LambdaResult LambdaResult :: Text -> LambdaResult awsLambdaVersion :: String nextInvocationEndpoint :: Text -> String responseEndpoint :: Text -> Text -> String invocationErrorEndpoint :: Text -> Text -> String runtimeInitErrorEndpoint :: Text -> String readEnvironmentVariable :: Text -> App Text readFunctionMemory :: App Int getApiData :: Text -> App (Response LByteString) extractHeader :: Response LByteString -> Text -> Text extractIntHeader :: Response LByteString -> Text -> App Int extractBody :: Response LByteString -> Text propagateXRayTrace :: Text -> App () initializeContext :: Response LByteString -> App Context getFunctionResult :: UUID -> Text -> App (Maybe Text) invoke :: Text -> Context -> App LambdaResult publishResult :: Context -> Text -> LambdaResult -> App () invokeAndPublish :: Context -> Text -> Text -> App () publishError :: Context -> Text -> RuntimeError -> App () lambdaRunner :: App () instance GHC.Generics.Generic Aws.Lambda.Runtime.Context instance GHC.Show.Show Aws.Lambda.Runtime.RuntimeError instance Data.Aeson.Types.FromJSON.FromJSON Aws.Lambda.Runtime.Context instance Data.Aeson.Types.ToJSON.ToJSON Aws.Lambda.Runtime.Context instance GHC.Exception.Type.Exception Aws.Lambda.Runtime.RuntimeError instance Data.Aeson.Types.ToJSON.ToJSON Aws.Lambda.Runtime.RuntimeError module Aws.Lambda.Configuration data LambdaOptions LambdaOptions :: Text -> Text -> Text -> Text -> LambdaOptions [eventObject] :: LambdaOptions -> Text [contextObject] :: LambdaOptions -> Text [functionHandler] :: LambdaOptions -> Text [executionUuid] :: LambdaOptions -> Text configureLambda :: Q [Dec] returnAndFail :: ToJSON a => Text -> a -> IO () returnAndSucceed :: ToJSON a => Text -> a -> IO () decodeObj :: FromJSON a => Text -> a -- | Marshal any value that implements ParseRecord from the command -- line -- -- If you need to modify the top-level ParserInfo or -- ParserPrefs use the getRecordWith function. getRecord :: (MonadIO io, ParseRecord a) => Text -> io a instance GHC.Generics.Generic Aws.Lambda.Configuration.LambdaOptions instance Options.Generic.ParseRecord Aws.Lambda.Configuration.LambdaOptions