Module aws_lambda_powertools.event_handler.router
Expand source code
from aws_lambda_powertools.event_handler.api_gateway import Router
from aws_lambda_powertools.utilities.data_classes import (
ALBEvent,
APIGatewayProxyEvent,
APIGatewayProxyEventV2,
LambdaFunctionUrlEvent,
)
class APIGatewayRouter(Router):
"""Specialized Router class that exposes current_event as an APIGatewayProxyEvent"""
current_event: APIGatewayProxyEvent
class APIGatewayHttpRouter(Router):
"""Specialized Router class that exposes current_event as an APIGatewayProxyEventV2"""
current_event: APIGatewayProxyEventV2
class LambdaFunctionUrlRouter(Router):
"""Specialized Router class that exposes current_event as a LambdaFunctionUrlEvent"""
current_event: LambdaFunctionUrlEvent
class ALBRouter(Router):
"""Specialized Router class that exposes current_event as an ALBEvent"""
current_event: ALBEvent
Classes
class ALBRouter
-
Specialized Router class that exposes current_event as an ALBEvent
Expand source code
class ALBRouter(Router): """Specialized Router class that exposes current_event as an ALBEvent""" current_event: ALBEvent
Ancestors
- Router
- BaseRouter
- abc.ABC
Class variables
var current_event : ALBEvent
Inherited members
class APIGatewayHttpRouter
-
Specialized Router class that exposes current_event as an APIGatewayProxyEventV2
Expand source code
class APIGatewayHttpRouter(Router): """Specialized Router class that exposes current_event as an APIGatewayProxyEventV2""" current_event: APIGatewayProxyEventV2
Ancestors
- Router
- BaseRouter
- abc.ABC
Class variables
var current_event : APIGatewayProxyEventV2
Inherited members
class APIGatewayRouter
-
Specialized Router class that exposes current_event as an APIGatewayProxyEvent
Expand source code
class APIGatewayRouter(Router): """Specialized Router class that exposes current_event as an APIGatewayProxyEvent""" current_event: APIGatewayProxyEvent
Ancestors
- Router
- BaseRouter
- abc.ABC
Class variables
var current_event : APIGatewayProxyEvent
Inherited members
class LambdaFunctionUrlRouter
-
Specialized Router class that exposes current_event as a LambdaFunctionUrlEvent
Expand source code
class LambdaFunctionUrlRouter(Router): """Specialized Router class that exposes current_event as a LambdaFunctionUrlEvent""" current_event: LambdaFunctionUrlEvent
Ancestors
- Router
- BaseRouter
- abc.ABC
Class variables
var current_event : LambdaFunctionUrlEvent
Inherited members