Skill 3.3.1
Create application test events (for example, JSON payloads for testing AWS Lambda, API Gateway, AWS SAM resources)
Key Concepts
Each event source has its own event structure: an API Gateway proxy event contains the path, method, headers and body, an S3 event contains Records with bucket and key, and an SQS event contains Records with message bodies. sam local generate-event produces these templates, which you then edit and save alongside your tests.
Saved events can be used by sam local invoke -e, by unit tests, and as shareable test events in the Lambda console so the whole team uses the same payloads. Keeping them in the repository makes them part of the automated test suite.