Skip to content
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

Feature request: implement built in schemas #1787

Closed
1 of 2 tasks
am29d opened this issue Nov 10, 2023 · 3 comments · Fixed by #1788
Closed
1 of 2 tasks

Feature request: implement built in schemas #1787

am29d opened this issue Nov 10, 2023 · 3 comments · Fixed by #1788
Assignees
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility parser This item relates to the Parser Utility

Comments

@am29d
Copy link
Contributor

am29d commented Nov 10, 2023

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.

@am29d am29d added triage This item has not been triaged by a maintainer, please wait feature-request This item refers to a feature request for an existing or new utility labels Nov 10, 2023
@am29d am29d added this to the Parser - Beta Release milestone Nov 10, 2023
@am29d am29d self-assigned this Nov 10, 2023
@am29d am29d added feature PRs that introduce new features or minor changes parser This item relates to the Parser Utility and removed feature PRs that introduce new features or minor changes labels Nov 10, 2023
@dreamorosi dreamorosi added confirmed The scope is clear, ready for implementation and removed triage This item has not been triaged by a maintainer, please wait labels Nov 10, 2023
@dreamorosi dreamorosi linked a pull request Nov 14, 2023 that will close this issue
29 tasks
@github-actions github-actions bot added pending-release This item has been merged and will be released soon and removed confirmed The scope is clear, ready for implementation labels Nov 20, 2023
@am29d am29d closed this as completed Nov 21, 2023
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (TypeScript) Nov 21, 2023
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

This comment was marked as off-topic.

@github-actions github-actions bot added completed This item is complete and has been merged/shipped and removed pending-release This item has been merged and will be released soon labels Nov 24, 2023
@dreamorosi dreamorosi moved this from Coming soon to Shipped in Powertools for AWS Lambda (TypeScript) Nov 24, 2023
@dreamorosi
Copy link
Contributor

This is now released under v2.1.0 version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility parser This item relates to the Parser Utility
Projects
Development

Successfully merging a pull request may close this issue.

2 participants