-
Notifications
You must be signed in to change notification settings - Fork 26
chore: Feature/appsync events #858
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
Conversation
…registration methods
…proved class structure. Unauthorized exception and null subscribe responses
…rename event classes
…roved serialization
…ation. Fix nullabel fields
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #858 +/- ##
===========================================
- Coverage 75.88% 75.77% -0.11%
===========================================
Files 233 249 +16
Lines 9422 9875 +453
Branches 1031 1073 +42
===========================================
+ Hits 7150 7483 +333
- Misses 1953 2055 +102
- Partials 319 337 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issue number: #859
Summary
Changes
Add Event Handler AppSync Events feature
This pull request introduces a new
AWS.Lambda.Powertools.EventHandler
package to the solution, focusing on handling AWS AppSync events. The changes include adding the project to the solution file, implementing various classes and utilities to support AppSync event handling, and introducing an internal LRU cache for route resolutions. Below is a summary of the most important changes:Solution and Project Setup:
AWS.Lambda.Powertools.EventHandler
project and its corresponding test project to the solution fileAWS.Lambda.Powertools.sln
. Configured build and debug settings for the new projects. [1] [2] [3]Core Event Handling Implementation:
AWS.Lambda.Powertools.EventHandler
project with itscsproj
file, targeting.NET 8.0
and including a dependency onAmazon.Lambda.Core
.AppSyncEvent
,AppSyncEventsRequest
,AppSyncEventsResponse
, andAppSyncEventsOperation
. These classes provide structured representations of AppSync event payloads and operations. [1] [2] [3] [4]AppSync Identity Models:
AppSyncCognitoIdentity
,AppSyncIamIdentity
,AppSyncLambdaIdentity
, andAppSyncOidcIdentity
. These classes encapsulate identity-specific details for different authorization modes. [1] [2] [3] [4]Supporting Structures:
Channel
,ChannelNamespace
,Information
, andRequestContext
to provide detailed contextual information about AppSync events and operations. [1] [2] [3] [4] [5]Internal Utilities:
LRUCache
class for caching route resolutions, implementing a basic least-recently-used cache mechanism. This utility is designed for internal use within the event handler package.User experience
Checklist
Please leave checklist items unchecked if they do not apply to your change.
Is this a breaking change?
RFC issue number:
Checklist:
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.