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.
28 lines (27 loc) • 930 B
TypeScript
import { S3LocalService } from "./localAction";
import type { IncomingHttpHeaders, ServerResponse } from "http";
import type { LocalS3Object } from "./localAction";
export declare const checkS3Conditions: ({ ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince }: {
ifMatch?: string;
ifNoneMatch?: string;
ifModifiedSince?: number;
ifUnmodifiedSince?: number;
}, { ETag, LastModified }: LocalS3Object) => 200 | {
statusCode: number;
Code: string;
Condition: string;
};
export declare class GetObjectAction extends S3LocalService {
bucketPath: string;
bucket: string;
key: string;
versionId: string | null;
partNumber: number | null;
range?: [number, number];
ifMatch?: string;
ifNoneMatch?: string;
ifModifiedSince?: number;
ifUnmodifiedSince?: number;
constructor(url: URL, headers: IncomingHttpHeaders);
exec(res: ServerResponse): Promise<void>;
}