-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for DynamodbEvent.DynamodbStreamRecord serialization (#455)
Add support for DynamodbEvent.DynamodbStreamRecord serialization
- Loading branch information
Showing
5 changed files
with
78 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
aws-lambda-java-tests/src/test/resources/ddb/dynamo_ddb_stream_record.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"eventID": "c81e728d9d4c2f636f067f89cc14862c", | ||
"eventName": "MODIFY", | ||
"eventVersion": "1.1", | ||
"eventSource": "aws:dynamodb", | ||
"awsRegion": "eu-central-1", | ||
"dynamodb": { | ||
"Keys": { | ||
"Id": { | ||
"N": "101" | ||
} | ||
}, | ||
"NewImage": { | ||
"Message": { | ||
"S": "This item has changed" | ||
}, | ||
"Id": { | ||
"N": "101" | ||
} | ||
}, | ||
"OldImage": { | ||
"Message": { | ||
"S": "New item!" | ||
}, | ||
"Id": { | ||
"N": "101" | ||
} | ||
}, | ||
"ApproximateCreationDateTime": 1.635734407123456789E9, | ||
"SequenceNumber": "4421584500000000017450439092", | ||
"SizeBytes": 59, | ||
"StreamViewType": "NEW_AND_OLD_IMAGES" | ||
}, | ||
"eventSourceARN": "arn:aws:dynamodb:eu-central-1:123456789012:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters