aws / aws/aws-lambda-rust-runtime

Event definitions for AppSync Events

Offen
#940 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
3.6k
Forks
396
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Lesen Sie die im Issue verlinkte AWS AppSync Events-Dokumentation und prüfen Sie anschließend das vorhandene Modul aws_lambda_events::events::appsync, um seine Organisation mit den angeforderten Definitionen zu vergleichen. Klären Sie, ob die Lambda-Autorisierung und Websocket-Protokollnachrichten im Umfang enthalten sind und ob sie in appsync oder einem Untermodul gehören. Als abgeschlossen gilt die Aufgabe, wenn die vereinbarten AppSync Event-Definitionen konsistent mit den vorhandenen Event-Modulen dargestellt sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, rust
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.