diff --git a/packages/aws-cdk-lib/aws-appsync/lib/code.ts b/packages/aws-cdk-lib/aws-appsync/lib/code.ts index d38a2ee672f1f..5db2501251a09 100644 --- a/packages/aws-cdk-lib/aws-appsync/lib/code.ts +++ b/packages/aws-cdk-lib/aws-appsync/lib/code.ts @@ -35,7 +35,7 @@ export abstract class Code { /** * Inline code for AppSync function * @returns `InlineCode` with inline code. - * @param code The actual handler code (limited to 4KiB) + * @param code The actual handler code (the resulting zip file cannot exceed 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code); diff --git a/packages/aws-cdk-lib/aws-lambda/lib/code.ts b/packages/aws-cdk-lib/aws-lambda/lib/code.ts index 443b48dfa396c..83991d2d613bf 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/code.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/code.ts @@ -45,7 +45,7 @@ export abstract class Code { /** * Inline code for Lambda handler * @returns `LambdaInlineCode` with inline code. - * @param code The actual handler code (limited to 4KiB) + * @param code The actual handler code (the resulting zip file cannot exceed 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code);