Skip to content

Bug: Remove get_lambda function from API Gateway proxy event #3453

Closed
@leandrodamascena

Description

@leandrodamascena

Expected Behaviour

The API Gateway v2 payload doesn´t have any field called lambda and we should not have this in our Data Class.

Current Behaviour

Unecessary get_lambda function.

Code snippet

No code snippet

Possible Solution

Remove this and adjust tests/payload

@property
def get_lambda(self) -> Optional[Dict[str, Any]]:
    """Lambda authorization context details"""
    return self.get("lambda")

Steps to Reproduce

No necessary

Powertools for AWS Lambda (Python) version

latest

AWS Lambda function runtime

3.10

Packaging format used

PyPi

Debugging logs

No response

Metadata

Metadata

Labels

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions