diff --git a/lib/authenticated-api/authenticated-api-function-props.ts b/lib/authenticated-api/authenticated-api-function-props.ts index 35e9996..61cbe96 100644 --- a/lib/authenticated-api/authenticated-api-function-props.ts +++ b/lib/authenticated-api/authenticated-api-function-props.ts @@ -1,5 +1,6 @@ import * as cdk from "aws-cdk-lib"; import { aws_ec2 as ec2 } from "aws-cdk-lib"; +import { BundlingOptions } from "aws-cdk-lib/aws-lambda-nodejs"; export interface AuthenticatedApiFunctionProps { name: string; @@ -11,4 +12,5 @@ export interface AuthenticatedApiFunctionProps { vpcSubnets?: ec2.SubnetSelection; securityGroups?: Array; memorySize?: number; + bundling?: BundlingOptions; } diff --git a/lib/authenticated-api/authenticated-api-function.ts b/lib/authenticated-api/authenticated-api-function.ts index 70f9f6b..8bcac53 100644 --- a/lib/authenticated-api/authenticated-api-function.ts +++ b/lib/authenticated-api/authenticated-api-function.ts @@ -37,6 +37,7 @@ export class AuthenticatedApiFunction extends lambdaNode.NodejsFunction { securityGroups: props.securityGroups, vpc: props.vpc, vpcSubnets: props.vpcSubnets, + bundling: props.bundling, }); } }