aws / aws/aws-lambda-rust-runtime

Event definitions for AppSync Events

Đang mở
#940 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
3.6k
Fork
396
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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...

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Đọc tài liệu AWS AppSync Events được liên kết trong issue, sau đó kiểm tra module aws_lambda_events::events::appsync hiện có để so sánh cách tổ chức của module này với các định nghĩa được yêu cầu. Xác định liệu việc ủy quyền Lambda và các thông báo của giao thức websocket có nằm trong phạm vi hay không, đồng thời xác định chúng thuộc appsync hay một submodule. Được xem là hoàn tất khi các định nghĩa AppSync Event đã thống nhất được thể hiện nhất quán với các module sự kiện hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, rust
Lĩnh vực
api, backend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.