Initial commit

This commit is contained in:
2021-02-16 18:16:47 -05:00
commit b5aaa0b7fc
5 changed files with 27 additions and 0 deletions

15
src/Handler.hx Normal file
View File

@ -0,0 +1,15 @@
@:expose
class Handler {
static function main() {} // Main is not called
static function handler(event : {source : String}, context : {functionName : String}) : String {
// Run your Haxe code
var eventSource : String = event.source;
var lambdaName : String = context.functionName;
// Return response
return 'Hello to $eventSource from $lambdaName!';
}
}