Skip to content

CreateBackup

Source: src/AWS/DynamoDB/CreateBackup.ts

Runtime binding for dynamodb:CreateBackup.

Bind this operation to a Table inside a function runtime to get a callable that creates an on-demand backup of the bound table, automatically injecting the table name. Provide the CreateBackupHttp layer on the Function to satisfy the binding.

const createBackup = yield* AWS.DynamoDB.CreateBackup(table);
const response = yield* createBackup({ BackupName: "nightly" });
const backupArn = response.BackupDetails?.BackupArn;