What is the format of structured notification messages sent by Amazon SNS?


What is the format of structured notification messages sent by Amazon SNS?

A.
An XML object containing MessageId, UnsubscribeURL, Subject, Message and other
values

B.
An JSON object containing MessageId, DuplicateFlag, Message and other values

C.
An XML object containing MessageId, DuplicateFlag, Message and other values

D.
An JSON object containing MessageId, unsubscribeURL, Subject, Message and other
values



Discussion

8 Responses to “What is the format of structured notification messages sent by Amazon SNS?”

  1. Brian Smith says:

    D

  2. mr_tienvu says:

    I have the same idea. D

  3. D says:

    Q: What is the format of structured notification messages sent by Amazon SNS?

    The notification message sent by Amazon SNS for deliveries over HTTP, HTTPS, Email-JSON and SQS transport protocols will consist of a simple JSON object, which will include the following information:

    MessageId: A Universally Unique Identifier, unique for each notification published.
    Timestamp: The time (in GMT) at which the notification was published.
    TopicArn: The topic to which this message was published
    Type: The type of the delivery message, set to “Notification” for notification deliveries.
    UnsubscribeURL: A link to unsubscribe the end-point from this topic, and prevent receiving any further notifications.
    Message: The payload (body) of the message, as received from the publisher.
    Subject: The Subject field – if one was included as an optional parameter to the publish API call along with the message.
    Signature: Base64-encoded “SHA1withRSA” signature of the Message, MessageId, Subject (if present), Type, Timestamp, and Topic values.
    SignatureVersion: Version of the Amazon SNS signature used.
    Notification messages sent over the “Email” transport only contain the payload (message body) as received from the publisher.

  4. BDA says:

    D

    I set up a topic, subscribed my email and sent some messages, XML is not an option. but message will have
    Subject
    Message
    UnsubscribeURL and more

Post a Comment