Skip to content

Commit 1f07f8e

Browse files
committed
fix(cdk): deprecated pointInTimeRecovery flag
1 parent 5da0cbf commit 1f07f8e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/cdk/resources/Tables.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export class Tables extends Construct {
152152
tableName: prescriptionStatusUpdatesTableName,
153153
partitionKey: {name: "PrescriptionID", type: AttributeType.STRING},
154154
sortKey: {name: "TaskID", type: AttributeType.STRING},
155-
pointInTimeRecovery: true,
155+
pointInTimeRecoverySpecification: {
156+
pointInTimeRecoveryEnabled: true
157+
},
156158
encryption: TableEncryption.CUSTOMER_MANAGED,
157159
encryptionKey: prescriptionStatusUpdatesKey,
158160
timeToLiveAttribute: "ExpiryTime",
@@ -469,7 +471,9 @@ export class Tables extends Construct {
469471
tableName: prescriptionNotificationStatesTableName,
470472
partitionKey: {name: "NHSNumber", type: AttributeType.STRING},
471473
sortKey: {name: "RequestId", type: AttributeType.STRING},
472-
pointInTimeRecovery: true,
474+
pointInTimeRecoverySpecification: {
475+
pointInTimeRecoveryEnabled: true
476+
},
473477
encryption: TableEncryption.CUSTOMER_MANAGED,
474478
encryptionKey: prescriptionNotificationStatesKey,
475479
timeToLiveAttribute: "ExpiryTime",

0 commit comments

Comments
 (0)