Skip to content

Commit 80b8025

Browse files
author
Lewis Richardson
authored
docs(aws-lambda): fix Lambda addEventSource filter example (#23085)
---- fixes #23057 ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 49d5c3a commit 80b8025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ const table = new dynamodb.Table(this, 'Table', {
648648
});
649649
fn.addEventSource(new eventsources.DynamoEventSource(table, {
650650
startingPosition: lambda.StartingPosition.LATEST,
651-
filters: [{ eventName: lambda.FilterRule.isEqual('INSERT') }],
651+
filters: [lambda.FilterCriteria.filter({ eventName: lambda.FilterRule.isEqual('INSERT') })],
652652
}));
653653
```
654654

0 commit comments

Comments
 (0)