PublishBatchRequestEntry
Contains the details of a single Amazon SNS message along with an Id
that identifies a message within the batch.
Types
Properties
Each message attribute consists of a Name
, Type
, and Value
. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.
This parameter applies only to FIFO (first-in-first-out) topics.
FIFO topics: The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId
values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion. You must associate a non-empty MessageGroupId
with a message. If you do not provide a MessageGroupId
, the action fails.
Set MessageStructure
to json
if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set MessageStructure
to json
, the value of the Message
parameter must: