简体   繁体   中英

Subscribe an Amazon SNS topic using AWS Lambda function?

我们可以使用AWS Lambda函数订阅Amazon SNS主题吗?

Yes. With help of sns.subscribe()

Please keep in mind: dont forget to confirm it sns.confirmSubscription()

If you mean can you use a message from a SNS topic as the trigger for a lambda function, then the answer is yes.

If you mean can you write a lambda function that adds a subscription to an SNS topic then the answer is yes. Towards the bottom are links for the language-specific AWS SDKs. Your Lambda function would need to have the appropriate permissions to be able to add a subscription as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM