Interface LambdaRoute<TResult>

Lambda route definition for multiple Lambdas.

interface LambdaRoute<TResult> {
    enableCors?: boolean;
    handler: Handler<APIGatewayProxyEvent, TResult>;
    path: string;
}

Type Parameters

  • TResult extends APIGatewayProxyResult = APIGatewayProxyResult

Properties

enableCors?: boolean

Enable CORS headers for this route (default: true)

handler: Handler<APIGatewayProxyEvent, TResult>

Lambda handler for this path

path: string

Path to serve, e.g., '/users'