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

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.

主站蜘蛛池模板: 吉木乃县| 中江县| 新乐市| 阜新市| 肥东县| 云霄县| 绵竹市| 宁明县| 丹棱县| 原阳县| 乌拉特中旗| 阿拉善左旗| 文水县| 昂仁县| 阆中市| 邹城市| 济宁市| 晋中市| 清流县| 青海省| 资阳市| 迁西县| 衡南县| 海兴县| 岳西县| 凤凰县| 志丹县| 岳普湖县| 天台县| 织金县| 岚皋县| 苗栗市| 黎城县| 永昌县| 科尔| 惠水县| 宁乡县| 界首市| 库伦旗| 长阳| 浦北县|