We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb2c27 commit 1d2c19eCopy full SHA for 1d2c19e
packages/aws-cdk-lib/aws-ecr/README.md
@@ -217,7 +217,7 @@ You can publish repository events to a CloudWatch event rule with `onEvent`:
217
import * as lambda from 'aws-cdk-lib/aws-lambda';
218
219
const repo = new ecr.Repository(this, 'Repo');
220
-const lambdaFunction = new lambda.Function(stack, 'LambdaFunction', {
+const lambdaFunction = new lambda.Function(this, 'LambdaFunction', {
221
runtime: lambda.Runtime.PYTHON_3_12,
222
code: lambda.Code.fromInline('# dummy func'),
223
handler: 'index.handler',
0 commit comments