UNPKG

@cpmech/az-cdk

Version:
22 lines (21 loc) 676 B
import { Construct, Duration } from '@aws-cdk/core'; import { Runtime } from '@aws-cdk/aws-lambda'; import { Iany } from '@cpmech/basic'; export interface ILambdaProps { filenameKey: string; handlerName: string; envars?: Iany; timeout?: Duration; memorySize?: number; runtime?: Runtime; dirDist?: string; layerArns?: string[]; extraPermissions?: string[]; accessDynamoTables?: string[]; accessBuckets?: string[]; } export declare class LambdaConstruct extends Construct { readonly functionName: string; readonly functionArn: string; constructor(scope: Construct, id: string, props: ILambdaProps); }