Skip to content

Commit

Permalink
docs(aws-lambda): fix Lambda addEventSource filter example (#23085)
Browse files Browse the repository at this point in the history
----

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*
  • Loading branch information
Lewis Richardson committed Nov 25, 2022
1 parent 49d5c3a commit 80b8025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/README.md
Expand Up @@ -648,7 +648,7 @@ const table = new dynamodb.Table(this, 'Table', {
});
fn.addEventSource(new eventsources.DynamoEventSource(table, {
startingPosition: lambda.StartingPosition.LATEST,
filters: [{ eventName: lambda.FilterRule.isEqual('INSERT') }],
filters: [lambda.FilterCriteria.filter({ eventName: lambda.FilterRule.isEqual('INSERT') })],
}));
```

Expand Down

0 comments on commit 80b8025

Please sign in to comment.