getApproximateCreationDateTime() API 不适用于 DynamoDB StreamRecord 对象

getApproximateCreationDateTime() API not available with DynamoDB StreamRecord object

我正在围绕 DynamoDB Streams 进行 POC,并且正在关注此 documentation

我通过调用 Record.getDynamodb() 方法获得的 StreamRecord 对象似乎没有 ApproximateCreationDateTime 属性,如 javadocs 此处所述。

我想知道这个字段是否已被弃用并且文档没有更新,或者我是否在其他地方出错了。

请更新您的SDK版本。 SDK 版本 1.10.5 introduced Streams to the API, and SDK version 1.11.7 added approximateCreationDateTime 到 StreamRecord class.