aws / aws/aws-lambda-rust-runtime

Event definitions for AppSync Events

未关闭
#940 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.6k
派生
396
PR 合并指标
30 天内没有已合并 PR

描述

There are currently no event definitions for the relatively new AWS AppSync Event service. Going through the [AWS docs](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-welcome.html), I've collected the following list of events that could be added:

1. ~~[onPublish](https://docs.aws.amazon.com/appsync/latest/eventapi/channel-namespace-handlers.html#event-handler-onpublish)~~
2. ~~[onSubscribe](https://docs.aws.amazon.com/appsync/latest/eventapi/channel-namespace-handlers.html#event-handler-onpublish)~~
3. [Lambda authorization ](https://docs.aws.amazon.com/appsync/latest/eventapi/configure-event-api-auth.html#aws-lambda-authorization), consisting of a `authorizationRequest`, `authorizationContext` and a `authorizationReponse`.
4. Optionally/debatable definitions for the [event API websocket protocol messages](https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-websocket-protocol.html#realtime-websocket-operations).

I'm open to adding these myself, since I'm currently developing a system that will use AppSync Event, so I need to write them regardless.

Should these definitions live in `aws_lambda_events::events::appsync` (potentially in a sub-module) or in a new module `aws_lambda_events::events::appsync_events` ?

Edit: I've just realized that `onPublish` and `onSubscribe` only supports javascript handlers - so scratch that...

贡献指南

打开贡献指南

调研方向

阅读 issue 中链接的 AWS AppSync Events 文档,然后检查现有的 aws_lambda_events::events::appsync 模块,将其组织方式与所请求的定义进行比较。确定 Lambda 授权和 websocket 协议消息是否在范围内,以及它们应属于 appsync 还是子模块。完成的标准是,已达成一致的 AppSync Event 定义能够与现有事件模块保持一致地表示。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, rust
领域
api, backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。