Sha256: d9752628f71e45b059ef725698df561e08265e1362e1b8878d4400283cb41c8b

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 Bytes

Contents

console.log('Loading function');

exports.handler = async (event, context) => {
    //console.log('Received event:', JSON.stringify(event, null, 2));
    console.log('value1 =', event.key1);
    console.log('value2 =', event.key2);
    console.log('value3 =', event.key3);
    return event.key1;  // Echo back the first key value
    // throw new Error('Something went wrong');
};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cloud-mu-3.6.4 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.6.3 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.5.1 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.5.0 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.4.0 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.3.2 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.3.1 modules/tests/functions/node-function/lambda_function.js
cloud-mu-3.3.0 modules/tests/functions/node-function/lambda_function.js