Skip to content

fix(event_source): Added missing properties in APIGatewayWebSocketEvent class #6411

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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@
def multi_value_headers(self) -> dict[str, list[str]]:
return CaseInsensitiveDict(self.get("multiValueHeaders"))

@property
def query_string_parameters(self) -> dict[str, str]:
return CaseInsensitiveDict(self.get("queryStringParameters"))

Check warning on line 128 in aws_lambda_powertools/utilities/data_classes/api_gateway_websocket_event.py

View check run for this annotation

Codecov / codecov/patch

aws_lambda_powertools/utilities/data_classes/api_gateway_websocket_event.py#L128

Added line #L128 was not covered by tests

@property
def multi_value_query_string_parameters(self) -> dict[str, list[str]]:
return CaseInsensitiveDict(self.get("multiValueQueryStringParameters"))

Check warning on line 132 in aws_lambda_powertools/utilities/data_classes/api_gateway_websocket_event.py

View check run for this annotation

Codecov / codecov/patch

aws_lambda_powertools/utilities/data_classes/api_gateway_websocket_event.py#L132

Added line #L132 was not covered by tests

@property
def request_context(self) -> APIGatewayWebSocketEventRequestContext:
return APIGatewayWebSocketEventRequestContext(self["requestContext"])
Loading