Description
This is essentially the same issue as aws/aws-lambda-dotnet#839, but without crashing deserialization, which I'm guessing is due to the use of float64
that avoids overflowing with the larger value to deserialize. The relevant points of discussion are:
- DynamoDB events have milliseconds, not seconds, in their timestamps which crashes deserialization aws-lambda-dotnet#839 (comment)
- DynamoDB events have milliseconds, not seconds, in their timestamps which crashes deserialization aws-lambda-dotnet#839 (comment)
It seems that the value of ApproximateCreationDateTime will be in seconds when coming from a DynamoDB Stream, but in milliseconds when coming from a Kinesis Stream:
- DynamoDB Streams - https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html
The approximate date and time when the stream record was created, in UNIX epoch time format and rounded down to the closest second
ApproximateCreationDateTime indicates the time of the modification in milliseconds.
There appears to be an internal ticket that's being tracked, so I wanted to open an issue here as well for AWS to monitor and hopefully resolve in the near future. Thanks!