如果创建项目,是否可以让 DynamoDB 有条件地保存时间戳?
看起来 AWS Java SDK 通过 @DynamoDBAutoGeneratedTimestamp 提供了这个功能注释。
请您参考如下方法:
您可以编写/使用 DynamoDB 触发器(一个 AWS Lambda 函数)来为您执行此操作:
https://aws.amazon.com/dynamodb/faqs/
** Q. How does DynamoDB Triggers work? ** The custom logic for a DynamoDB trigger is stored in an AWS Lambda function as code. To create a trigger for a given table, you can associate an AWS Lambda function to the stream (via DynamoDB Streams) on a DynamoDB table. When the table is updated, the updates are published to DynamoDB Streams. In turn, AWS Lambda reads the updates from the associated stream and executes the code in the function.
