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.
49 lines (48 loc) • 1.5 kB
TypeScript
import type { Runner } from "../index";
import type { ChildProcessWithoutNullStreams } from "child_process";
import type { FSWatcher } from "fs";
export declare class PythonRunner implements Runner {
invoke: Runner["invoke"];
mount: Runner["mount"];
unmount: Runner["unmount"];
name: string;
outName: string;
timeout: number;
memorySize: number;
environment: {
[key: string]: any;
};
handlerPath: string;
pyModulePath: string;
handlerDir: string;
handlerName: string;
runtime: string;
bin?: string;
python?: ChildProcessWithoutNullStreams;
isMounted: boolean;
watchers: FSWatcher[];
filesTime: Map<string, number>;
watcherListener: (event: "rename" | "change", filename: string | Buffer) => void;
emitRebuild: Function;
static wrapper: string;
static DELIMITER: string;
static DELIMITEREND: string;
static ERR_RESPONSE: string;
static WATCH: string;
static WATCHEND: string;
constructor({ name, outName, timeout, memorySize, environment, handlerPath, handlerName, runtime, }: {
name: string;
outName: string;
handlerPath: string;
handlerName: string;
runtime: string;
timeout: number;
memorySize: number;
environment: {
[key: string]: any;
};
}, emitRebuild: Function);
setWatchFiles: (data: string) => Promise<void>;
load: () => void;
onComplete: (awsRequestId: string) => void;
}