You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the example events, the SNS object is JSON. However, the Message property in each event should actually be a string, and thus should be "stringified" JSON if it contains a nested object. When reading the SNS event, every lambda example I am reading indicates to JSON.parse(event.Records[0].Sns.Message) to get the inner object before processing the content.
I understand that you are trying to document the entire structure from the SNS to the inner message object, but it makes the example events harder to use in (say) the "Test" facility of the AWS Lambda page.
Perhaps you can separate the SNS event example and the inner object examples?
Pete
The text was updated successfully, but these errors were encountered:
Within the example events, the SNS object is JSON. However, the Message property in each event should actually be a string, and thus should be "stringified" JSON if it contains a nested object. When reading the SNS event, every lambda example I am reading indicates to
JSON.parse(event.Records[0].Sns.Message)
to get the inner object before processing the content.I understand that you are trying to document the entire structure from the SNS to the inner message object, but it makes the example events harder to use in (say) the "Test" facility of the AWS Lambda page.
Perhaps you can separate the SNS event example and the inner object examples?
Pete
The text was updated successfully, but these errors were encountered: