feat: Support asynchronous shareable test events#8373
Merged
Conversation
This feature was added recently to the Lambda console. It works by storing event metadata as an `x-metadata` OpenAPI extension on the schema's example. Here we support putting an event with a desired `--invocation-type` and passing that to a remote invoke (with an explicitly provided invocation type `--parameter` taking precedence).
reedham-aws
approved these changes
Oct 30, 2025
seshubaws
approved these changes
Oct 30, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This feature was added recently to the Lambda console. It works by storing event metadata as an
x-metadataOpenAPI extension on the schema's example.Here we support putting an event with a desired
--invocation-typeand passing that to a remote invoke (with an explicitly provided invocation type--parametertaking precedence).Which issue(s) does this change fix?
None.
Why is this change necessary?
To support shareable test events with a saved invocation type.
How does it address the issue?
See above commit message.
What side effects does this change have?
If any shareable test events saved in the console with an
Eventinvocation type were being used forsam remote invoke, they will now start to send Event invokes as if--parameter InvocationType=RequestResponsewere passed.Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changed (N/A)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.