スキップしてコンテンツを表示

Typo in the code AppSync - onsubscribe code sample

0

There is a typo error in the onsubscibe code sample in https://docs.aws.amazon.com/appsync/latest/eventapi/built-in-modules.html.

Typo

質問済み 1年前132ビュー

2回答
0

Thanks for the details. I have submitted the document feedback.

回答済み 1年前

-1

For onSubscribe handlers in AWS AppSync Events, the Lambda function should return one of two things:

  1. A payload containing an error message if the subscription fails
  2. null to indicate a successful subscription

The correct response type for an onSubscribe handler should look like this:

type LambdaAppSyncEventResponse = {
error: string
} | null

If there is indeed a typo in the documentation you're referring to, it's always helpful to report such issues to AWS support or through their documentation feedback channels. AWS regularly updates their documentation based on user feedback to ensure accuracy and clarity.
Sources
Writing event handlers - AWS AppSync Events

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ