Closed
Description
Use case
Using zod schema, implement a selection of the popular Lambda events, similar to models from powertools python.
Use the test events from powertools python so we can test our schema against the same examples.
This feature only provides the built in schemas which we will use later for envelope parsing in decorators and middleware.
This should include:
- ALB
- API GW
- API GW v2
- CFN custom resource
- CloudWatch
- DynamoDB
- EventBridge
- Kafka
- Kinesis
- Kinesis Firehose
- Kinesis Firehose SQS
- Lambda function URL
- S3
- S3 event notification
- S3 object event
- SES
- SNS
- SQS
- VPC lattice
- VPC lattice v2
Solution/User Experience
The schemas should be in a dedicated folder with no index export, so each schema can be imported individually.
import { EventBridgeSchema } from '@aws-lambda-powertools/parser/schemas/eventbridge';
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped