Skip to content

Commit

Permalink
Update README.md (aws#4727)
Browse files Browse the repository at this point in the history
I found two instances of wrong enums
  • Loading branch information
corydozen authored and mergify[bot] committed Nov 5, 2019
1 parent b43f3f4 commit df6fc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda-event-sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ import { DynamoEventSource } from '@aws-cdk/aws-lambda-event-sources';

const table = new dynamodb.Table(..., {
partitionKey: ...,
stream: dynamodb.StreamViewType.NewImage // make sure stream is configured
stream: dynamodb.StreamViewType.NEW_IMAGE // make sure stream is configured
});

const function = new lambda.Function(...);
function.addEventSource(new DynamoEventSource(table, {
startingPosition: lambda.StartingPosition.TrimHorizon
startingPosition: lambda.StartingPosition.TRIM_HORIZON
}));
```
Expand Down

0 comments on commit df6fc58

Please sign in to comment.