From 5521931260efdc3cf59500858f215547b44f6c57 Mon Sep 17 00:00:00 2001 From: Ahmed Kamel Date: Mon, 25 Nov 2024 16:23:03 +0000 Subject: [PATCH] update README --- packages/aws-cdk-lib/aws-lambda-event-sources/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-lambda-event-sources/README.md b/packages/aws-cdk-lib/aws-lambda-event-sources/README.md index a30962d936f57..efcee64a60462 100644 --- a/packages/aws-cdk-lib/aws-lambda-event-sources/README.md +++ b/packages/aws-cdk-lib/aws-lambda-event-sources/README.md @@ -257,7 +257,7 @@ import * as kinesis from 'aws-cdk-lib/aws-kinesis'; import { KinesisConsumerEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const stream = new kinesis.Stream(this, 'MyStream'); -const streamConsumer = new kinesis.Stream(this, 'MyStreamConsumer', { +const streamConsumer = new kinesis.StreamConsumer(this, 'MyStreamConsumer', { stream, streamConsumerName: 'MyStreamConsumer', });