您可以从Amazon AWS中的lambda函数发送SNS推送通知吗? [英] Can you send SNS push notification from lambda function in Amazon AWS?

查看:224
本文介绍了您可以从Amazon AWS中的lambda函数发送SNS推送通知吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Amazon AWS开发一个应用程序,我想要实现的是将lambda函数附加到DynamoDB表,因此在添加新行之后,将触发lambda函数. 在上面提到的lambda函数中,我想添加使用Amazon SNS服务发送推送通知的功能,但是如果可能的话,我在他们的文档中找不到任何信息,如果可以的话,究竟需要做些什么来获取它.在职的?我在他们的文档中发现,您可以将lambda函数触发器附加到SNS主题,这意味着在推送通知之后,将调用该函数,但是我感兴趣的是直接从lambda函数发送推送通知.如果有人为我阐明了这个话题,我将不胜感激.

I am developing an application with Amazon AWS and what I am trying to achieve is to attach a lambda function to DynamoDB table, so after a new row is added ,the lambda function is triggered. In the above mentioned lambda function I want to add the functionality to send a push notification with Amazon SNS service, but I could not find any information in their documentation if that is possible and if it is, what exactly needs to be done to get it working? What I found in their documentation is that you can attach lambda function trigger to a SNS topic, which means that after a notification is pushed then the function is called, but what I am interested in is to send a push notification directly from lambda function. I would appreciate if someone shed some light on this topic for me.

推荐答案

是的,您可以从Lambda调用任何API函数.也许,如果您发布了一些代码并且发现了错误,那么您可以获得更具体的帮助.

Yes, you can call any of the API functions from Lambda. Perhaps if you posted some code and the errors you are getting you could get more specific help.

这篇关于您可以从Amazon AWS中的lambda函数发送SNS推送通知吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆