harris-chris / Jot.jl

Streamlines the creation and management of AWS Lambda functions written in Julia
MIT License
41 stars 6 forks source link

How does invocation work? #44

Open evanfields opened 1 year ago

evanfields commented 1 year ago

Lambda functions in the AWS documentation and examples have a signature (event, context) => result. The content of the event argument seems to depend on how the function is invoked, e.g. invocations from the AWS command line interface put just the payload in event, whereas if the function is invoked via a Lambda function URL, the event argument contains full information about the HTTP request. (All this subject to disclaimers of "based on what I'm seeing today but I am not an expert" :) )

So, say I use Jot to wrap up a Julia function fun--whether defined in a package or a script or anything else--which takes a single argument of type InputType.

Thanks!