Skip to content

Commit ac8255f

Browse files
committed
docs: docstrings to signal v1/v2
1 parent a633991 commit ac8255f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: aws_lambda_powertools/event_handler/api_gateway.py

+3
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ def __init__(
743743
serializer: Optional[Callable[[Dict], str]] = None,
744744
strip_prefixes: Optional[List[str]] = None,
745745
):
746+
"""Amazon API Gateway REST and HTTP API v1 payload resolver"""
746747
super().__init__(ProxyEventType.APIGatewayProxyEvent, cors, debug, serializer, strip_prefixes)
747748

748749

@@ -756,6 +757,7 @@ def __init__(
756757
serializer: Optional[Callable[[Dict], str]] = None,
757758
strip_prefixes: Optional[List[str]] = None,
758759
):
760+
"""Amazon API Gateway HTTP API v2 payload resolver"""
759761
super().__init__(ProxyEventType.APIGatewayProxyEventV2, cors, debug, serializer, strip_prefixes)
760762

761763

@@ -769,4 +771,5 @@ def __init__(
769771
serializer: Optional[Callable[[Dict], str]] = None,
770772
strip_prefixes: Optional[List[str]] = None,
771773
):
774+
"""Amazon Application Load Balancer (ALB) resolver"""
772775
super().__init__(ProxyEventType.ALBEvent, cors, debug, serializer, strip_prefixes)

0 commit comments

Comments
 (0)