Amazon Simple Notification Service (Amazon SNS) is a web service that coordinates and manages the delivery or sending of messages to subscribing endpoints or clients. In Amazon SNS, there are two types of clients—publishers and subscribers—also referred to as producers and consumers. Publishers communicate asynchronously with subscribers by producing and sending a message to a topic, which is a logical access point and communication channel. Subscribers (i.e., web servers, email addresses, Amazon SQS queues) consume or receive the message or notification over one of the supported protocols (i.e., Amazon SQS, HTTP/S, email, SMS) when they are subscribed to the topic.
When using Amazon SNS, you (as the owner) create a topic and control access to it by defining policies that determine which publishers and subscribers can communicate with the topic. A publisher sends messages to topics that they have created or to topics they have permission to publish to. Instead of including a specific destination address in each message, a publisher sends a message to the topic. Amazon SNS matches the topic to a list of subscribers who have subscribed to that topic, and delivers the message to each of those subscribers. Each topic has a unique name that identifies the Amazon SNS endpoint for publishers to post messages and subscribers to register for notifications. Subscribers receive all messages published to the topics to which they subscribe, and all subscribers to a topic receive the same messages.
If you are a first-time user of Amazon SNS, we recommend that you begin by reading the following sections:
What is Amazon SNS – The rest of this section includes a video that introduces Amazon SNS and walks you through the example presented in Getting Started with Amazon Simple Notification Service, and presents common use-case scenarios.
Getting Started – The Getting Started with Amazon Simple Notification Service section walks you through creating a topic, subscribing to it, publishing a message to it, unsubscribing from it, and finally, deleting the topic.
The following video introduces Amazon SNS and walks you through the example presented in Getting Started with Amazon Simple Notification Service.
Beyond the getting started section, you'll probably want to learn more about Amazon SNS operations. The following sections provide detailed information about working with Amazon SNS:
You have detailed control over which endpoints a topic allows, who is able to publish to a topic, and under what conditions. This section shows you how to control access through the use of access control policies.
Amazon SNS and CloudWatch are integrated so you can collect, view, and analyze metrics for every active Amazon SNS topic.
You can use Amazon SNS to send messages to one or more Amazon SQS queues.
You can use Amazon Simple Notification Service (Amazon SNS) to send SMS notifications to SMS-enabled mobile phones and smart phones.
You can use Amazon SNS to send notification messages to one or more HTTP or HTTPS endpoints.
You can access Amazon SNS using the AWS Management Console, the command line interface (CLI)—http://aws.amazon.com/developertools/3688), and by writing code directly to the Amazon SNS Query API—, see Amazon Simple Notification Service API Reference.
We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:
Cryptographically signing your service requests
Handling error responses
For a list of available SDKs, go to Tools for Amazon Web Services