Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log('Loading function');
- exports.handler = function(event, context, callback) {
- //console.log('Received event:', JSON.stringify(event, null, 2));
- console.log('value1 =', event.key1);
- console.log('value2 =', event.key2);
- console.log('value3 =', event.key3);
- console.log('remaining time =', context.getRemainingTimeInMillis());
- console.log('functionName =', context.functionName);
- console.log('AWSrequestID =', context.awsRequestId);
- console.log('logGroupName =', context.logGroupName);
- console.log('logStreamName =', context.logStreamName);
- console.log('clientContext =', context.clientContext);
- if (typeof context.identity !== 'undefined') {
- console.log('Cognito
- identity ID =', context.identity.cognitoIdentityId);
- }
- callback(null, event.key1); // Echo back the first key value
- // or
- // callback("some error type");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement