Skip to content

Feature request: Missing Querystring values from WebSocket data classes #6409

Closed
@dave-dotnet-overall

Description

@dave-dotnet-overall

Use case

The recent data classes introduced in #6287 do not expose queryStringParameters or multiValueQueryStringParameters properties

Solution/User Experience

`
from aws_lambda_powertools.utilities.data_classes import (
APIGatewayWebSocketEvent,
event_source,
)

@event_source(data_class=APIGatewayWebSocketEvent)
def lambda_handler(event: APIGatewayWebSocketEvent, context):
qs1 = event.queryString["param1"]

Alternative solutions

Acknowledgment

  • This feature request meets Powertools for AWS Lambda (Python) Tenets
    Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET

Activity

leandrodamascena

leandrodamascena commented on Apr 5, 2025

@leandrodamascena
Contributor

Hey @dave-dotnet-overall! Thanks for opening this here. Do you want to send a PR to fix this?

added
event_sourcesEvent Source Data Class utility
and removed
triagePending triage from maintainers
on Apr 5, 2025
dave-dotnet-overall

dave-dotnet-overall commented on Apr 6, 2025

@dave-dotnet-overall
ContributorAuthor
moved this from Backlog to Working on it in Powertools for AWS Lambda (Python)on Apr 6, 2025
github-actions

github-actions commented on Apr 7, 2025

@github-actions
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

    Participants

    @leandrodamascena@dave-dotnet-overall

    Issue actions

      Feature request: Missing Querystring values from WebSocket data classes · Issue #6409 · aws-powertools/powertools-lambda-python