the-ldk
Version:
Welcome to the LDK! A collection of custom AWS CDK constructs to help you build serverless applications faster.
18 lines (15 loc) • 529 B
text/typescript
import { NodejsFunctionProps } from 'aws-cdk-lib/aws-lambda-nodejs';
import { z as zod } from 'zod';
export const LambdaFunctionPropsSchema = zod.object({
serviceName: zod.string(),
stage: zod.string(),
entryPath: zod.string(),
handlerName: zod.string().optional(),
tsConfigPath: zod.string(),
functionName: zod.string().optional(),
customOptions: zod.object({}).optional(),
});
export interface LambdaFunctionProps
extends zod.infer<typeof LambdaFunctionPropsSchema> {
customOptions?: NodejsFunctionProps;
}