如何通过 API 启用 PITR 创建 table?

How can I create table with PITR enabled through API?

如何在 java 中通过 API 创建启用 PITR 的发电机数据库 table?

这是我的创建 table 请求

CreateTableRequest createTableRequest = new CreateTableRequest()
                .withTableName(properties.get(TABLE_NAME).textValue())
                .withKeySchema(this.buildKeySchema(properties))
                .withAttributeDefinitions(this.buildAttributeDefinitions(properties))
                .withProvisionedThroughput(this.buildProvisionedThroughput(properties))
                .withGlobalSecondaryIndexes(this.buildGlobalSecondaryIndex(properties))
                .withBillingMode(properties.get(BILLING_MODE).textValue());

我想添加 PITR 启用

使用单独的 api 调用 UpdateContinuousBackupsRequest.

启用 PITR

Java 调用映射到 UpdateContinuousBackups AWS API。