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

Class variables

var current_eventALBEvent

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

Class variables

var current_eventAPIGatewayProxyEventV2

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

Class variables

var current_eventAPIGatewayProxyEvent

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

Class variables

var current_eventLambdaFunctionUrlEvent

Inherited members