Skip to content

ExportTableToPointInTime

Source: src/AWS/DynamoDB/ExportTableToPointInTime.ts

Runtime binding for dynamodb:ExportTableToPointInTime.

Bind this operation to a Table and a destination S3 Bucket inside a function runtime to get a callable that starts a point-in-time export of the table to the bucket, automatically injecting the table ARN and bucket name. The table must have point-in-time recovery enabled. The deploy-time half grants the export action on the table plus the S3 write permissions the export requires on the bucket. Provide the ExportTableToPointInTimeHttp layer on the Function to satisfy the binding.

const exportTable = yield* AWS.DynamoDB.ExportTableToPointInTime(
table,
bucket,
);
const response = yield* exportTable({ ExportFormat: "DYNAMODB_JSON" });
const exportArn = response.ExportDescription?.ExportArn;