Skip to content

Commit 59489e2

Browse files
Merge pull request #73 from rangerthegood/apigw_operation_name
added optional operationName
2 parents be59a26 + 4e88335 commit 59489e2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws-lambda-typing"
3-
version = "2.16.0"
3+
version = "2.16.1"
44
description = "A package that provides type hints for AWS Lambda event, context and response objects"
55
authors = ["Mousa Zeid Baker"]
66
license = "MIT"

src/aws_lambda_typing/events/api_gateway_proxy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ class RequestContextV1(TypedDict, total=False):
9595
9696
identity: :py:class:`RequestContextIdentity`
9797
98+
operationName: str
99+
98100
path: str
99101
100102
protocol: str
@@ -120,6 +122,7 @@ class RequestContextV1(TypedDict, total=False):
120122
extendedRequestId: Optional[str]
121123
httpMethod: str
122124
identity: RequestContextIdentity
125+
operationName: Optional[str]
123126
path: str
124127
protocol: str
125128
requestId: str

tests/events/test_api_gateway_proxy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_api_gateway_proxy_event_v1() -> None:
5959
"requestTime": "10/Mar/2020:00:03:59 +0000",
6060
"path": "/Prod/",
6161
"accountId": "123456789012",
62+
"operationName": "SomeOperation",
6263
"protocol": "HTTP/1.1",
6364
"stage": "Prod",
6465
"domainPrefix": "70ixmpl4fl",

0 commit comments

Comments
 (0)