@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
21 lines (20 loc) • 538 B
TypeScript
import type { Handler } from "aws-lambda";
export type APIGatewayProxyEvent = {
resource: string;
httpMethod: string;
headers: Record<string, string | undefined>;
queryStringParameters?: Record<string, string>;
pathParameters?: Record<string, string>;
requestContext?: {
identity?: {
sourceIp?: string;
};
};
body?: string;
};
export type SQSEvent = {
Records: Array<{
body: string;
}>;
};
export declare function createLambdaWrapper(handler: Handler): Handler;