2

How can I create a dynamo db table with PITR enabled through API in java??

This is my create table request

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());

I want to add PITR enabled

swarnim gupta
  • 213
  • 1
  • 5

1 Answers1

2

PITR is enabled using seprate api call UpdateContinuousBackupsRequest.

The Java call maps to UpdateContinuousBackups AWS API.

Marcin
  • 215,873
  • 14
  • 235
  • 294