Created
May 5, 2019 20:08
-
-
Save LukeMwila/88f841aafe3f2b898b01b60b498ba8af to your computer and use it in GitHub Desktop.
Default handler file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { APIGatewayEvent, Callback, Context, Handler } from 'aws-lambda'; | |
export const hello: Handler = (event: APIGatewayEvent, context: Context, cb: Callback) => { | |
const response = { | |
statusCode: 200, | |
body: JSON.stringify({ | |
message: 'Go Serverless Webpack (Typescript) v1.0! Your function executed successfully!', | |
input: event, | |
}), | |
}; | |
cb(null, response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment