lambda-sns-event-message
v1.0.2
Published
Utility function for returning the `Message:` portion of an SNS invocation of lambda
Downloads
19
Maintainers
Readme
lambda-sns-event-message
Utility function for returning the Message:
portion of an SNS invocation of lambda
Install
$ npm install --save lambda-sns-event-message
Usage
For when you just need the message portion of an SNS event:
Pass in the SNS event
:
var parseSNSMessage = require('lambda-sns-event-message');
exports.handler = function(event, context) {
var snsMessage = parseSNSMessage(event);
};