Class AWS::SNS::Message
In: lib/aws/sns/message.rb
Parent: Object

Represents a single SNS message.

See also docs.amazonwebservices.com/sns/latest/gsg/json-formats.html

Originators

Originators are sources of SNS messages. {FromAutoScaling} is one. {Message} can be extended by originators if their applicable? method returns true when passed the raw message. Originator modules must implement `applicable? sns` module function. If an originator is applicable, it should set the `@origin` accessor to denote itself.

Methods

Constants

SIGNABLE_KEYS = [ 'Message', 'MessageId', 'Subject', 'SubscribeURL', 'Timestamp', 'Token', 'TopicArn', 'Type', ].freeze

Attributes

origin  [RW] 
raw  [R] 

Public Class methods

@return {Message} Constructs a new {Message} from the raw SNS, sets origin

Public Instance methods

@param [String] key Indexer into raw SNS JSON message. @return [String] the value of the SNS’ field

@return [Boolean] true when the {Message} is authentic:

  SigningCert is hosted at amazonaws.com, on https
  correctly cryptographically signed by sender
  nothing went wrong during authenticating the {Message}

See docs.amazonwebservices.com/sns/latest/gsg/SendMessageToHttp.verify.signature.html

@return[Symbol] the message type

Protected Instance methods

[Validate]