Skip to content

Feature request: introduce ALBRouter, etc. to set the type of current_event in the REST API Router #1781

Closed
@kmkhr

Description

@kmkhr

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

Metadata

Metadata

Assignees

Labels

typingStatic typing definition related issues (mypy, pyright, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions