Skip to content

GetRecoveryPointRestoreMetadata

Source: src/AWS/Backup/GetRecoveryPointRestoreMetadata.ts

Runtime binding for the GetRecoveryPointRestoreMetadata operation (IAM action backup:GetRecoveryPointRestoreMetadata).

Returns the restore metadata for a recovery point in the bound BackupVault — the key/value set passed to StartRestoreJob as its Metadata. Provide the implementation with Effect.provide(AWS.Backup.GetRecoveryPointRestoreMetadataHttp).

const getRestoreMetadata =
yield* AWS.Backup.GetRecoveryPointRestoreMetadata(vault);
const startRestoreJob = yield* AWS.Backup.StartRestoreJob(role);
const { RestoreMetadata } = yield* getRestoreMetadata({
RecoveryPointArn: recoveryPointArn,
});
yield* startRestoreJob({
RecoveryPointArn: recoveryPointArn,
Metadata: RestoreMetadata!,
});