-
Notifications
You must be signed in to change notification settings - Fork 361
Add support for Direct Lambda Resolver event format #1015
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
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
16106ca
feat(event): add AppSyncResolverEvent structure and example payload
46ki75 582ddec
fix: remove `groups` field from AppSyncCognitoIdentity to avoid semve…
46ki75 ee5290d
fix: apply serde annotations and generic types to align with existing…
46ki75 d3ec7e4
refactor: rename AppSyncResolverEvent to AppSyncDirectResolverEvent
46ki75 6ce1e4f
fix: update doc comment to reflect AppSyncDirectResolverEvent rename
46ki75 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
lambda-events/src/fixtures/example-appsync-direct-resolver.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"arguments": { | ||
"input": "foo" | ||
}, | ||
"identity": { | ||
"sourceIp": [ | ||
"x.x.x.x" | ||
], | ||
"userArn": "arn:aws:iam::123456789012:user/appsync", | ||
"accountId": "666666666666", | ||
"user": "AIDAAAAAAAAAAAAAAAAAA" | ||
}, | ||
"info": { | ||
"fieldName": "greet", | ||
"parentTypeName": "Query", | ||
"selectionSetGraphQL": "", | ||
"selectionSetList": [], | ||
"variables": { | ||
"inputVar": "foo" | ||
} | ||
}, | ||
"prev": null, | ||
"request": { | ||
"domainName": null, | ||
"headers": { | ||
"accept": "application/json, text/plain, */*", | ||
"accept-encoding": "gzip, deflate, br, zstd", | ||
"accept-language": "en-US,en;q=0.9,ja;q=0.8,en-GB;q=0.7", | ||
"cloudfront-forwarded-proto": "https", | ||
"cloudfront-is-desktop-viewer": "true", | ||
"cloudfront-is-mobile-viewer": "false", | ||
"cloudfront-is-smarttv-viewer": "false", | ||
"cloudfront-is-tablet-viewer": "false", | ||
"cloudfront-viewer-asn": "17676", | ||
"cloudfront-viewer-country": "JP", | ||
"content-length": "40", | ||
"content-type": "application/json", | ||
"host": "2ojpkjk2ejb57l7stgad5o4qiq.appsync-api.ap-northeast-1.amazonaws.com", | ||
"origin": "https://ap-northeast-1.console.aws.amazon.com", | ||
"priority": "u=1, i", | ||
"referer": "https://ap-northeast-1.console.aws.amazon.com/", | ||
"sec-ch-ua": "\"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"138\", \"Microsoft Edge\";v=\"138\"", | ||
"sec-ch-ua-mobile": "?0", | ||
"sec-ch-ua-platform": "\"Windows\"", | ||
"sec-fetch-dest": "empty", | ||
"sec-fetch-mode": "cors", | ||
"sec-fetch-site": "cross-site", | ||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0", | ||
"via": "2.0 ee337d4db5c7ebfdc8ec0798a1ede776.cloudfront.net (CloudFront)", | ||
"x-amz-cf-id": "O3ZflUCq6_TzxjouyYB3zg7-kl7Ze-gXbniM2jJ3hAOfDFpPMGRu3Q==", | ||
"x-amz-user-agent": "AWS-Console-AppSync/", | ||
"x-amzn-appsync-is-vpce-request": "false", | ||
"x-amzn-remote-ip": "x.x.x.x", | ||
"x-amzn-requestid": "7ada8740-bbf4-49e8-bf45-f10b3d67159b", | ||
"x-amzn-trace-id": "Root=1-68713e21-7a03739120ad60703e794b22", | ||
"x-api-key": "***", | ||
"x-forwarded-for": "***", | ||
"x-forwarded-port": "443", | ||
"x-forwarded-proto": "https" | ||
} | ||
}, | ||
"source": null, | ||
"stash": {} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.