aws-lambda-haskell-runtime-3.0.5: Haskell runtime for AWS Lambda

Safe HaskellNone
LanguageHaskell2010

Aws.Lambda.Runtime.Common

Synopsis

Documentation

type RunCallback context = LambdaOptions context -> IO (Either LambdaError LambdaResult) Source #

Callback that we pass to the dispatcher function

data LambdaResult Source #

Wrapper type to handle the result of the user

data LambdaError Source #

Wrapper type for lambda execution results

data LambdaOptions context Source #

Options that the generated main expects

Instances
Generic (LambdaOptions context) Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

Associated Types

type Rep (LambdaOptions context) :: Type -> Type #

Methods

from :: LambdaOptions context -> Rep (LambdaOptions context) x #

to :: Rep (LambdaOptions context) x -> LambdaOptions context #

type Rep (LambdaOptions context) Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

type Rep (LambdaOptions context) = D1 (MetaData "LambdaOptions" "Aws.Lambda.Runtime.Common" "aws-lambda-haskell-runtime-3.0.5-I9jlBCbDHnX14k3f9BIAMN" False) (C1 (MetaCons "LambdaOptions" PrefixI True) ((S1 (MetaSel (Just "eventObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString) :*: S1 (MetaSel (Just "functionHandler") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String)) :*: (S1 (MetaSel (Just "executionUuid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String) :*: S1 (MetaSel (Just "contextObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Context context)))))

newtype DispatcherOptions Source #

Options that the dispatcher generator expects

Instances
Lift DispatcherOptions Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

newtype ApiGatewayDispatcherOptions Source #

API Gateway specific dispatcher options

Constructors

ApiGatewayDispatcherOptions 

Fields

data DispatcherStrategy Source #

A strategy on how to generate the dispatcher functions

Instances
Lift DispatcherStrategy Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

class ToLambdaResponseBody a where Source #

Methods

toStandaloneLambdaResponse :: a -> LambdaResponseBody Source #

Instances
ToJSON a => ToLambdaResponseBody a Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

Methods

toStandaloneLambdaResponse :: a -> LambdaResponseBody Source #

ToLambdaResponseBody Text Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

Methods

toStandaloneLambdaResponse :: Text -> LambdaResponseBody Source #

ToLambdaResponseBody String Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

Methods

toStandaloneLambdaResponse :: String -> LambdaResponseBody Source #

unLambdaResponseBody :: LambdaResponseBody -> Text Source #