Amazon SNS supports multiple protocols such as HTTP
, HTTPS
, Email
, Email-JSON
, Amazon SQ
S, Application
, AWS Lambda
, and SMS
. SNS subscribers can receive the message or notification over one of the supported protocols. Apart from the protocols, SNS also provides topic policy, which can be used to control who can subscribe or publish to a topic. The subsequent point describes when to use the topic policy for access control over an SNS topic.
The access control policy helps to define the way to control access to an SNS topic. There can be a number of scenarios where you may need to use the access control policy for an SNS topic. Here are some examples:
- You can use access control policy when you want to allow an IAM user to publish a message to one or more SNS topics. This IAM user can be in the same or a different AWS account.
- SNS topics allows subscribers to use multiple supported protocols. With the help of the access control policy...