Skip to main content

restore_access_backup_vaults

Creates, updates, deletes, gets or lists a restore_access_backup_vaults resource.

Overview

Namerestore_access_backup_vaults
TypeResource
Idaws.backup.restore_access_backup_vaults

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
approval_datestring (date-time)The date and time when the restore access backup vault was approved.
creation_datestring (date-time)The date and time when the restore access backup vault was created.
latest_revoke_requestobjectInformation about the latest request to revoke access to this backup vault.
restore_access_backup_vault_arnstringThe ARN of the restore access backup vault.
vault_statestringThe current state of the restore access backup vault. (CREATING, AVAILABLE, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_restore_access_backup_vaultsselectbackup_vault_name, regionnextToken, maxResultsReturns a list of restore access backup vaults associated with a specified backup vault.
create_restore_access_backup_vaultinsertregion, SourceBackupVaultArnCreates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval.
revoke_restore_access_backup_vaultupdatebackup_vault_name, restore_access_backup_vault_arn, regionrequesterCommentRevokes access to a restore access backup vault, removing the ability to restore from its recovery points and permanently deleting the vault.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
backup_vault_namestringThe name of the source backup vault associated with the restore access backup vault to be revoked.
regionstringAWS region (default: us-east-1)
restore_access_backup_vault_arnstringThe ARN of the restore access backup vault to revoke.
maxResultsintegerThe maximum number of items to return in the response.
nextTokenstringThe pagination token from a previous request to retrieve the next set of results.
requesterCommentstringA comment explaining the reason for revoking access to the restore access backup vault.

SELECT examples

Returns a list of restore access backup vaults associated with a specified backup vault.

SELECT
approval_date,
creation_date,
latest_revoke_request,
restore_access_backup_vault_arn,
vault_state
FROM aws.backup.restore_access_backup_vaults
WHERE backup_vault_name = '{{ backup_vault_name }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Creates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval.

INSERT INTO aws.backup.restore_access_backup_vaults (
SourceBackupVaultArn,
BackupVaultName,
BackupVaultTags,
CreatorRequestId,
RequesterComment,
region
)
SELECT
'{{ SourceBackupVaultArn }}' /* required */,
'{{ BackupVaultName }}',
'{{ BackupVaultTags }}',
'{{ CreatorRequestId }}',
'{{ RequesterComment }}',
'{{ region }}'
RETURNING
creation_date,
restore_access_backup_vault_arn,
restore_access_backup_vault_name,
vault_state
;

UPDATE examples

Revokes access to a restore access backup vault, removing the ability to restore from its recovery points and permanently deleting the vault.

UPDATE aws.backup.restore_access_backup_vaults
SET
-- No updatable properties
WHERE
backup_vault_name = '{{ backup_vault_name }}' --required
AND restore_access_backup_vault_arn = '{{ restore_access_backup_vault_arn }}' --required
AND region = '{{ region }}' --required
AND requesterComment = '{{ requesterComment}}';