官术网_书友最值得收藏!

Triggering Lambdas

In your first Lambda, the way that we tested it was by triggering it with a test. To make Lambdas useful, we need to be able to trigger it from different places.

In the Lambda Console, near the top, there is a Designer section. This section allows you to change how the Lambda interacts with other services and therefore the user. On the left of the section is an Add triggers menu with a selection of options. Each of these is a system of services that you can set up to trigger the function. These are not all of the ways to trigger a Lambda and we'll be using other methods in the future.

The most important ones for us are API Gateway and Alexa Skill Kit, but the other triggers can be very useful for other projects. API Gateway is the way to expose the Lambda to the outside world. You create an API endpoint, and anyone can hit that endpoint and that data will be processed by your Lambda. We'll be creating an API in Chapter 7, Publishing Your Chatbot to Facebook, Slack, Twilio and HTTP. The Alexa Skill Kit is a service for building Alexa Skills and these can trigger Lambdas too, and we'll be doing this in the next chapter.

主站蜘蛛池模板: 教育| 云林县| 甘肃省| 无棣县| 修武县| 平昌县| 金阳县| 江川县| 湘阴县| 屏东县| 华阴市| 潼南县| 镶黄旗| 离岛区| 康乐县| 三亚市| 福清市| 乌拉特中旗| 象山县| 亳州市| 柘荣县| 延川县| 福鼎市| 清水县| 玉山县| 墨脱县| 望江县| 中江县| 拉孜县| 宜春市| 汨罗市| 白沙| 法库县| 睢宁县| 尚志市| 金溪县| 衡南县| 柳州市| 隆子县| 扶余县| 奈曼旗|