Created
February 4, 2020 05:13
-
-
Save RishiRajSahu/701f0d2acd49a7ebb6dbe5e7d8dfc7c9 to your computer and use it in GitHub Desktop.
TargetLambda.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handler for teams events | |
*/ | |
module.exports.handler = async event => { | |
try { | |
if (event && event.Records && event.Records[0] && event.Records[0].Sns) { | |
var body = JSON.parse(event.Records[0].Sns.Message) | |
console.log('Body : ', body) | |
} | |
} catch (e) { | |
console.log(e) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment