UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

37 lines (36 loc) 1.15 kB
import { LambdaResource } from '../types/resourcesDiscovery.js'; import { IFramework } from './iFrameworks.js'; import { LldConfigBase } from '../types/lldConfig.js'; /** * Support for AWS SAM framework */ export declare class SamFramework implements IFramework { /** * Framework name */ get name(): string; /** * Can this class handle the current project * @returns */ canHandle(config: LldConfigBase): Promise<boolean>; /** * Get configuration files * @param config Configuration * @returns Configuration files */ private getConfigFiles; /** * Get Lambda functions * @param config Configuration * @returns Lambda functions */ getLambdas(config: LldConfigBase): Promise<LambdaResource[]>; /** * Recursively parse templates to find all Lambda functions, including nested stacks * @param templatePath The path to the CloudFormation/SAM template file * @param stackName The name of the stack this template belongs to (for nested stacks) */ private parseLambdasFromTemplate; } export declare const samFramework: SamFramework;