I'm trying to understand how SNS will transmit a single notification for multiple recipients. The Amazon SES docs state:
For a given notification type, you might receive one Amazon SNS notification for multiple recipients, or you might receive a single Amazon SNS notification per recipient.
but does not give an example.
Let's use an abbreviated delivery notification as an example:
{
"Message": {
"notificationType":"Delivery",
"mail":{
"timestamp":"2017-06-22T17:15:53.980Z",
"messageId":"123",
"destination":["john@example.com"],
},
"delivery":{
"timestamp":"2017-06-22T17:15:54.873Z",
"recipients":["john@example.com"],
},
},
"Type": "Notification"
}
How does Amazon provide info for multiple recipients in a single notification? The structure of the JSON object seems specific to a single event and does not seem adaptable for providing info about multiple recipients. For example, there is only one "delivery" with one "timestamp". How could you report deliveries to two people?
The bounce and complaint notifications also don't seem compatible with providing info for multiple recipients.