Skip to content

docs(event-handler): add examples on how to drop messages #3924

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

Merged
merged 2 commits into from
May 13, 2025

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR adds a new paragraph and code snippet to the Event Handler AppSync Events resolver docs to show how to drop one or more events - or the entire batch - when using aggregated processing.

443184828-6f3fa2ed-e68c-4df0-99e2-ddeaa9205785

The PR also updates the type that was modified in #3922 to include Record<string, unknown> for easier usage and updates one of the snippets for unauthorized errors to have a more realistic example.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: #3923


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this May 13, 2025
@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation event-handler This item relates to the Event Handler Utility labels May 13, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label May 13, 2025
@leandrodamascena
Copy link
Contributor

Pls fix Sonar Cloud issues before I review.

@dreamorosi dreamorosi merged commit 34a4654 into main May 13, 2025
41 checks passed
@dreamorosi dreamorosi deleted the docs/appsync_events branch May 13, 2025 12:53
@dreamorosi dreamorosi linked an issue May 13, 2025 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation event-handler This item relates to the Event Handler Utility size/M PR between 30-99 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Document how to return a empty response for Appsync Events
2 participants