Skip to content

Docs: Document how to return a empty response for Appsync Events #3923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Jimmy89 opened this issue May 13, 2025 · 3 comments · Fixed by #3924
Closed
1 task done

Docs: Document how to return a empty response for Appsync Events #3923

Jimmy89 opened this issue May 13, 2025 · 3 comments · Fixed by #3924
Assignees
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation event-handler This item relates to the Event Handler Utility

Comments

@Jimmy89
Copy link

Jimmy89 commented May 13, 2025

What were you searching in the docs?

Currently, all examples within the Appsync Events documentation are 1:1 request & response mappings.
I would like to know how/what to return if for example propagate: true and:

  1. I do not want to send a response at all (for example if the message can be ignored)
  2. I want to send fewer responses than inserted requests.

This is not shown in the examples and I'm wondering whether I need to return something in a specific format for 'correct' handling.

Is this related to an existing documentation section?

No response

How can we improve?

Stated above

Got a suggestion in mind?

No response

Acknowledgment

  • I understand the final update might be different from my proposed suggestion, or refused.
@Jimmy89 Jimmy89 added documentation Improvements or additions to documentation triage This item has not been triaged by a maintainer, please wait labels May 13, 2025
@dreamorosi
Copy link
Contributor

Hi, thank you for opening this issue.

You are right, we don't show how to do this in the docs, but we should.

When using aggregate: true you can either omit one or more events from the response array to exclude them, or return an empty array [] to drop all of them.

I'm adding this section to the docs, with an example:

Image

@dreamorosi dreamorosi moved this from Triage to Working on it in Powertools for AWS Lambda (TypeScript) May 13, 2025
@dreamorosi dreamorosi added confirmed The scope is clear, ready for implementation event-handler This item relates to the Event Handler Utility and removed triage This item has not been triaged by a maintainer, please wait labels May 13, 2025
@dreamorosi dreamorosi self-assigned this May 13, 2025
@github-actions github-actions bot added pending-release This item has been merged and will be released soon and removed confirmed The scope is clear, ready for implementation labels May 13, 2025
@dreamorosi dreamorosi linked a pull request May 13, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (TypeScript) May 13, 2025
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Copy link
Contributor

This is now released under v2.20.0 version!

@github-actions github-actions bot added completed This item is complete and has been merged/shipped and removed pending-release This item has been merged and will be released soon labels May 20, 2025
@dreamorosi dreamorosi moved this from Coming soon to Shipped in Powertools for AWS Lambda (TypeScript) May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation event-handler This item relates to the Event Handler Utility
Projects
2 participants