byrage byrage - 1 year ago 122
Node.js Question

How can extract special character parameter in AWS Lambda?

I am testing AWS Lambda by Node.js 4.3.
when I request POST method in start with special character Parameters.

"@type": "Test"

then print log is normally working, but Lambda dose not recognize '@type' params.

exports.handler = (event, context, callback) => {
var type = event.@type;
callback(null, type);

How can I fix it?

Answer Source

You could always use the non-groovy hipster syntax:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download