Skip to content

DeleteBackup

Source: src/AWS/DynamoDB/DeleteBackup.ts

Runtime binding for dynamodb:DeleteBackup.

Bind this operation to a Table inside a function runtime to get a callable that deletes one of the bound table’s on-demand backups by ARN. The IAM grant covers every backup of the bound table ({tableArn}/backup/*). Provide the DeleteBackupHttp layer on the Function to satisfy the binding.

const deleteBackup = yield* AWS.DynamoDB.DeleteBackup(table);
const response = yield* deleteBackup({ BackupArn: backupArn });
const status = response.BackupDescription?.BackupDetails?.BackupStatus;