mirror of
https://github.com/yeslayla/haxe-lambda-example.git
synced 2025-07-27 16:55:42 +02:00
15 lines
421 B
Haxe
15 lines
421 B
Haxe
|
|
@: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!';
|
|
}
|
|
} |