Actions for Amazon SNS using Amazon SDKs
The following code examples demonstrate how to perform individual Amazon SNS actions with Amazon SDKs. These excerpts call the Amazon SNS API and are code excerpts from larger programs that must be run in context. Each example includes a link to GitHub, where you can find instructions for setting up and running the code.
The following examples include only the most commonly used actions. For a complete list, see the Amazon Simple Notification Service (Amazon SNS) API Reference.
Examples
- Add tags to a topic
- Check whether a phone number is opted out
- Confirm an endpoint owner wants to receive messages
- Create a topic
- Delete a subscription
- Delete a topic
- Get the properties of a topic
- Get the settings for sending SMS messages
- List opted out phone numbers
- List the subscribers of a topic
- List topics
- Publish a message with an attribute
- Publish an SMS text message
- Publish to a topic
- Set a dead-letter queue for a subscription
- Set a filter policy
- Set the default settings for sending SMS messages
- Set topic attributes
- Subscribe a Lambda function to a topic
- Subscribe a mobile application to a topic
- Subscribe an HTTP endpoint to a topic
- Subscribe an SQS queue to a topic
- Subscribe an email address to a topic
- Subscribe with a filter to a topic