Search code examples
amazon-dynamodbaws-sdkamazon-dynamodb-streams

getApproximateCreationDateTime() API not available with DynamoDB StreamRecord object


I'm working on a POC around DynamoDB Streams and was following this documentation.

The StreamRecord object I get from calling Record.getDynamodb() method, doesn't seem to have the ApproximateCreationDateTime attribute, as mentioned in the javadocs here.

I was wondering if this field has been deprecated and the docs have not been updated or if I'm going wrong else where.


Solution

  • Please update your SDK version. SDK version 1.10.5 introduced Streams to the API, and SDK version 1.11.7 added approximateCreationDateTime to the StreamRecord class.