- event (1st arg): arguments by caller
- context (2nd arg): runtime information
- callback (3rd, optional arg): return information to caller
- callback(error, results)
- error: null(success) or any
- results: must be JSON.stringify compatible
- callback(error, results)
When the callback is called (explicitly or implicitly), AWS Lambda continues the Lambda function invocation until the Node.js event loop is empty.
起動法