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

Safe HaskellNone
LanguageHaskell2010

Aws.Lambda

Synopsis

Documentation

data Context Source #

Context that is passed to all the handlers

Instances
Generic Context Source # 
Instance details

Defined in Aws.Lambda.Runtime.Context

Associated Types

type Rep Context :: Type -> Type #

Methods

from :: Context -> Rep Context x #

to :: Rep Context x -> Context #

ToJSON Context Source # 
Instance details

Defined in Aws.Lambda.Runtime.Context

FromJSON Context Source # 
Instance details

Defined in Aws.Lambda.Runtime.Context

type Rep Context Source # 
Instance details

Defined in Aws.Lambda.Runtime.Context

initialize :: Throws Parsing => Throws EnvironmentVariableNotSet => Event -> IO Context Source #

Initializes the context out of the environment

data LambdaOptions Source #

Options that the generated main expects

Instances
Generic LambdaOptions Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

Associated Types

type Rep LambdaOptions :: Type -> Type #

type Rep LambdaOptions Source # 
Instance details

Defined in Aws.Lambda.Runtime.Common

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

generateLambdaDispatcher :: DecsQ Source #

Generates a main function that acts as a dispatcher

decodeObj :: FromJSON a => String -> a Source #

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 Source #

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.