View a markdown version of this page

Amazon SNS topic target - Amazon EventBridge
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon SNS topic target

To deliver to an Amazon SNS topic, set TargetArn to the topic ARN and add SnsParameters. For a FIFO topic, set MessageGroupId, usually {% $events.SystemMetadata.EventGroupId %}.

Parameters

ParameterWhat it sets
MessageGroupIdThe topic message group. Required for a FIFO topic
MessageDeduplicationIdThe deduplication identifier for a FIFO topic without content-based deduplication. Derive it from the event
SubjectThe message subject, for email subscriptions
MessageStructureSet to json to send a different message per protocol
MessageAttributesMessage attributes to attach

Delivery role

The role needs sns:Publish on the topic. If the topic is encrypted with a customer managed key, the role also needs kms:GenerateDataKey and kms:Decrypt on that key.

Batching and payload

EventBridge calls PublishBatch, so one target call carries up to 10 events, and each topic message carries one event. See Batching deliveries to a target.