Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

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 @@ -195,6 +195,11 @@ def route_key(self) -> Optional[str]:
"""The selected route key."""
return self["requestContext"].get("routeKey")

@property
def operation_name(self) -> Optional[str]:
"""The name of the operation being performed"""
return self["requestContext"].get("operationName")


class APIGatewayProxyEvent(BaseProxyEvent):
"""AWS Lambda proxy V1
Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_lambda_trigger_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ def test_api_gateway_proxy_event():
assert request_context.message_direction is None
assert request_context.message_id is None
assert request_context.route_key is None
assert request_context.operation_name is None
assert identity.api_key is None
assert identity.api_key_id is None

Expand Down