Event only

exports.handler = function (event) {
  return {
    statusCode: 200,
    body: "Hello, World!",
  }
}

Context

exports.handler = function (event) {
  return {
    statusCode: 200,
    body: "Hello, World! ${JSON.stringify(context)}",
  }
}

Callback

exports.handler =  unction (event, context, callback) {
  callback(null, {
    statusCode: 200,
    body: "Hello, World!"
  })
}