Skip to content

Feature request: implement built in schemas #1787

Closed
@am29d

Description

@am29d

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

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityparserThis item relates to the Parser Utility

Type

No type

Projects

Status

Shipped

Relationships

None yet

Development

No branches or pull requests

Issue actions