import { Code, Function as BaseFunction, FunctionProps as BaseFunctionProps } from "aws-cdk-lib/aws-lambda"; import { Construct } from "constructs"; export interface FunctionProps extends Omit { /** * The source code of your Lambda function. You can point to a file in an * Amazon Simple Storage Service (Amazon S3) bucket or specify your source * code as inline text. */ code: Code | Promise; } /** * Deploys a file from inside the construct library as a function. * * The supplied file is subject to the 4096 bytes limit of being embedded in a * CloudFormation template. * * The construct includes an associated role with the lambda. * * This construct does not yet reproduce all features from the underlying resource * library. */ export declare class Function extends BaseFunction { constructor(scope: Construct, id: string, properties: FunctionProps); }