Skip to main content

backup_vault_access_policies

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

Overview

Namebackup_vault_access_policies
TypeResource
Idaws.backup.backup_vault_access_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
backup_vault_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.
backup_vault_namestringThe name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. (pattern: <code>^[a-zA-Z0-9-_]{2,50}$</code>)
policystringThe backup vault access policy document in JSON format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_backup_vault_access_policyselectbackup_vault_name, regionReturns the access policy document that is associated with the named backup vault.
put_backup_vault_access_policyreplacebackup_vault_name, regionSets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.
delete_backup_vault_access_policydeletebackup_vault_name, regionDeletes the policy document that manages permissions on a backup 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 a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the access policy document that is associated with the named backup vault.

SELECT
backup_vault_arn,
backup_vault_name,
policy
FROM aws.backup.backup_vault_access_policies
WHERE backup_vault_name = '{{ backup_vault_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Sets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.

REPLACE aws.backup.backup_vault_access_policies
SET
Policy = '{{ Policy }}'
WHERE
backup_vault_name = '{{ backup_vault_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the policy document that manages permissions on a backup vault.

DELETE FROM aws.backup.backup_vault_access_policies
WHERE backup_vault_name = '{{ backup_vault_name }}' --required
AND region = '{{ region }}' --required
;