serverless-offline-edge-lambda
Version:
A plugin for the Serverless Framework that simulates the behavior of AWS CloudFront Edge Lambdas while developing offline.
10 lines (9 loc) • 378 B
TypeScript
import { CloudFrontOrigin } from 'aws-lambda';
import { CFDistribution } from '../types';
/**
* Extracts the lambda@edge event origin based on the current path pattern and CF details
* @param targetPathPattern
* @param resource
* @returns
*/
export declare function getOriginFromCfDistribution(targetPathPattern: string, resource: CFDistribution): CloudFrontOrigin | null;