'use strict' ; import { Handler , Context , Callback } from 'aws-lambda' ; import 'source-map-support/register' ; import * as AWS from 'aws-sdk' ; interface HelloResponse { statusCode : number ; body : string ; } const handler = ( event , context , callback ) => { AWS . config . update ( { region : process . env . SLS_AWS_REGION } ) ; const response = { statusCode : 200 , body : JSON . stringify ( event ) } ; console . log ( 'use console log, and view cloudwatch logs' ) ; callback ( undefined , response ) ; } ; export { handler } ;