Closed
Description
Use case
In #761, APIGatewayRestResolver
, APIGatewayHttpResolver
, ALBResolver
, and LambdaFunctionUrlResolver
were created to access all properties from current_event
.
I would like to access all properties from current_event
in router as well.
Solution/User Experience
router = ALBRouter()
@router.get("/todos")
def get_todos():
router.current_event.request_context.elb_target_group_arn
Alternative solutions
No response
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript