Code examples for Amazon SNS using Amazon SDKs
The following code examples show how to use Amazon SNS with an Amazon software development kit (SDK).
Actions are code excerpts that show you how to call individual service functions.
Scenarios are code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
Cross-service examples are sample applications that work across multiple Amazon Web Services.
For a complete list of Amazon SDK developer guides and code examples, see Using Amazon SNS with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.
Code examples
- Actions
- 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
- Scenarios
- Cross-service examples
- Build an app to submit data to a DynamoDB table
- Building an Amazon SNS application
- Create a serverless application to manage photos
- Create an Amazon Textract explorer application
- Detect people and objects in a video
- Use API Gateway to invoke a Lambda function
- Use scheduled events to invoke a Lambda function