Package software.amazon.awssdk.services.sns
Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see the Amazon SNS product page. For detailed information about Amazon SNS features and their associated API calls, see the Amazon SNS Developer Guide.
For information on the permissions you need to use this API, see Identity and access management in Amazon SNS in the Amazon SNS Developer Guide.
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, retrying requests, and handling error responses. For a list of available SDKs, go to Tools for Amazon Web Services.
Code Examples
For code examples demonstrating how to use this service with the AWS SDK for Java v2, see:
Getting Started
API Actions
- Use GetTopicAttributes
- Use ListSubscriptions
- Use ListTopics
- Use GetSMSAttributes
- Use ConfirmSubscription
- Use CheckIfPhoneNumberIsOptedOut
- Use TagResource
- Use CreateTopic
- Use DeleteTopic
- Use ListPhoneNumbersOptedOut
- Use Publish
- Use SetSMSAttributes
- Use SetSubscriptionAttributes
- Use SetTopicAttributes
- Use Subscribe
- Use Unsubscribe
Scenarios
- Create a photo asset management application that lets users manage photos using labels
- Build a publish and subscription application that translates messages
- Build an application to submit data to a DynamoDB table
- Use API Gateway to invoke a Lambda function
- Use scheduled events to invoke a Lambda function
- Detect people and objects in a video with Amazon Rekognition using an AWS SDK
- Publish Amazon SNS messages to Amazon SQS queues using an AWS SDK
- Publish an Amazon SNS SMS text message using an AWS SDK
- Create and publish to a FIFO Amazon SNS topic using an AWS SDK
- Create a platform endpoint for Amazon SNS push notifications using an AWS SDK
- Publish SMS messages to an Amazon SNS topic using an AWS SDK
Serverless Examples
-
ClassDescriptionService client for accessing Amazon SNS asynchronously.A builder for creating an instance of
SnsAsyncClient.This includes configuration specific to Amazon SNS that is supported by bothSnsClientBuilderandSnsAsyncClientBuilder.Service client for accessing Amazon SNS.A builder for creating an instance ofSnsClient.Class to expose the service client settings to the user.A builder for creating aSnsServiceClientConfiguration