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 not intended to be run in isolation. Each example includes a link to GitHub, where you can find instructions on how to set up and run the code in context.
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 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 email address to a topic