AWS Lambda Invoke and Path
We can put the path parameters in the event. Lambda which provide service can use this path as router to route to different methods.
For example
const response = await lambdaInvoke(get_group_settings_lambda, { "body": { "uuid": groupUUID }, path: "group/getsettingsinfo" });
Finally the path will be in the target event.
References:
http://sillycat.iteye.com/blog/2421922
We can put the path parameters in the event. Lambda which provide service can use this path as router to route to different methods.
For example
const response = await lambdaInvoke(get_group_settings_lambda, { "body": { "uuid": groupUUID }, path: "group/getsettingsinfo" });
Finally the path will be in the target event.
References:
http://sillycat.iteye.com/blog/2421922

本文介绍如何在 AWS Lambda 中使用路径参数进行路由。通过将路径参数放入事件中,Lambda 服务可以作为路由器,根据不同的路径参数调用相应的处理方法。例如,可以通过指定路径 'group/getsettingsinfo' 来获取特定组的设置信息。
349

被折叠的 条评论
为什么被折叠?



