Skip to main content

Handler Function

Handler function is a function that will be invoked by AWS Lambda when the trigger is activated.

/**
 * The main function
 * @param {object} event Event from system
 * @returns 
 */
export const handler = async (event) => {
    // Return the output
    return { statusCode: 200, body: 'Success' };
};