diff --git a/packages/aws-cdk-lib/aws-lambda/README.md b/packages/aws-cdk-lib/aws-lambda/README.md index 480e1bc9955a0..bf78d75090b26 100644 --- a/packages/aws-cdk-lib/aws-lambda/README.md +++ b/packages/aws-cdk-lib/aws-lambda/README.md @@ -162,7 +162,7 @@ import { ILogGroup } from 'aws-cdk-lib/aws-logs'; declare const logGroup: ILogGroup; -new lambda.Function(stack, 'Lambda', { +new lambda.Function(this, 'Lambda', { code: new lambda.InlineCode('foo'), handler: 'index.handler', runtime: lambda.Runtime.NODEJS_18_X,