UNPKG

@routineless/cdk

Version:
18 lines (17 loc) 816 B
import { Code } from 'aws-cdk-lib/aws-lambda'; type LambdaCodeContext = { projectName?: string; filePath?: string; }; /** * This function will try to resolve lambda code for cdk lambda by provided context. * If project name was provided it will define it by retrieving project build output path from project graph. * If filePath was provided it will try to resolve project by provided path replacing '-infra' postfix to '-runtime' * and retrieve project build output path from project graph. * If lambda code context was not provided if will use calling file path for resolution. * * @param lambdaCodeContext object with project name or file path * @returns {@link Code} object with lambda code */ export declare const getLambdaCode: (lambdaCodeContext?: LambdaCodeContext) => Code; export {};