Skip to content

Commit

Permalink
chore(parser): add workaround to make API GW test button work (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Mar 1, 2023
1 parent 8296945 commit af7f760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws_lambda_powertools/utilities/parser/models/apigw.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class APIGatewayEventIdentity(BaseModel):
cognitoIdentityId: Optional[str]
cognitoIdentityPoolId: Optional[str]
principalOrgId: Optional[str]
sourceIp: IPvAnyNetwork
# see #1562, temp workaround until API Gateway fixes it the Test button payload
# removing it will not be considered a regression in the future
sourceIp: Union[IPvAnyNetwork, Literal["test-invoke-source-ip"]]
user: Optional[str]
userAgent: Optional[str]
userArn: Optional[str]
Expand Down

0 comments on commit af7f760

Please sign in to comment.