purescript-aws-lambda
October 10, 2015 ยท View on GitHub
Purescript integration for AWS Lambda.
Context
foreign import data Context :: *
Wraps the context object provided by AWS Lambda.
LAMBDA
foreign import data LAMBDA :: !
Defines side effects for dealing with AWS Lambda.
forall eff. Eff (lambda :: LAMBDA | eff)
succeed
foreign import succeed :: forall eff. Context -> String -> Eff (lambda :: LAMBDA | eff) Unit
Called when your Lambda has finished processing successfully.
fail
foreign import fail :: forall eff. Context -> String -> Eff (lambda :: LAMBDA | eff) Unit
Called when your Lambda has completed processing with an error.