Skip to content

feat(parser): add AppSync Events models #6999

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 4 commits into from
Jul 17, 2025

Conversation

leandrodamascena
Copy link
Contributor

@leandrodamascena leandrodamascena commented Jul 17, 2025

Issue number: #6648

Summary

Changes

This PR introduces a new parser model called AppSyncEventsModel to help customers when working with AppSync Events integration with Lambda.

User experience

from aws_lambda_powertools.utilities.parser import event_parser
from aws_lambda_powertools.utilities.parser.models import AppSyncEventsModel

@event_parser(model=AppSyncEventsModel)
def lambda_handler(event: AppSyncEventsModel, context):
    return {"statusCode": 200, "body": f"Hello {event.events}"}

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

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.

@leandrodamascena leandrodamascena requested a review from a team as a code owner July 17, 2025 10:41
@boring-cyborg boring-cyborg bot added the tests label Jul 17, 2025
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 17, 2025
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jul 17, 2025
@github-actions github-actions bot added the feature New feature or functionality label Jul 17, 2025
@leandrodamascena leandrodamascena self-assigned this Jul 17, 2025
@leandrodamascena leandrodamascena linked an issue Jul 17, 2025 that may be closed by this pull request
2 tasks
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jul 17, 2025
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jul 17, 2025
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jul 17, 2025
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (9978a6c) to head (7248006).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6999   +/-   ##
========================================
  Coverage    96.25%   96.25%           
========================================
  Files          274      275    +1     
  Lines        12860    12884   +24     
  Branches       950      950           
========================================
+ Hits         12378    12402   +24     
  Misses         377      377           
  Partials       105      105           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leandrodamascena leandrodamascena requested review from dreamorosi and removed request for anafalcao July 17, 2025 11:02
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jul 17, 2025
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jul 17, 2025
Copy link

@leandrodamascena leandrodamascena merged commit 69b1eab into develop Jul 17, 2025
14 checks passed
@leandrodamascena leandrodamascena deleted the feature/add-appsync-parser-models branch July 17, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or functionality size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: add models for AppSync Events in Parser
2 participants