Answers for "aws lambda tutorial"

0

how to Write AWS lambda function

exports.fn = (event, context, callback) => {
    console.log(event);
    const age = event.age;
    callback(null, age * 2);
};
Posted by: Guest on October-05-2021
-2

aws lambda tutorial

callback();                // It will return success, but no indication to the caller
callback(null);            // It will return success, but no indication to the caller
callback(null, "success"); // It will return the success indication to the caller
callback(error);           //  It will return the error indication to the caller
Posted by: Guest on December-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language