serverless-aws-lambda
Version:
AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.
30 lines (29 loc) • 798 B
TypeScript
import type { HttpMethod } from "../server/handlers";
interface IAlbQuery {
Key?: string;
Value: string;
}
type query = IAlbQuery[];
export interface LambdaEndpoint {
kind: "alb" | "apg" | "url";
proxy?: "url" | "http" | "httpApi";
paths: string[];
pathsRegex: RegExp[];
methods: HttpMethod[];
async?: boolean;
multiValueHeaders?: boolean;
version?: 1 | 2;
header?: {
name: string;
values: string[];
}[];
query?: query[];
headers?: string[];
querystrings?: string[];
requestPaths?: string[];
stream?: boolean;
private?: boolean;
schema?: any;
}
export declare const parseEndpoints: (event: any, httpApiPayload: LambdaEndpoint["version"], provider: Record<string, any>) => LambdaEndpoint | null;
export {};