Skip to main content

backup_vaults

Creates, updates, deletes or gets a backup_vault resource or lists backup_vaults in a region

Overview

Namebackup_vaults
TypeResource
DescriptionResource Type definition for AWS::Backup::BackupVault
Idaws.backup.backup_vaults

Fields

NameDatatypeDescription
access_policyobject
backup_vault_namestring
backup_vault_tagsobject
encryption_key_arnstring
notificationsobject
lock_configurationobject
backup_vault_arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTBackupVaultName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all backup_vaults in a region.

SELECT
region,
access_policy,
backup_vault_name,
backup_vault_tags,
encryption_key_arn,
notifications,
lock_configuration,
backup_vault_arn
FROM aws.backup.backup_vaults
WHERE region = 'us-east-1';

Gets all properties from an individual backup_vault.

SELECT
region,
access_policy,
backup_vault_name,
backup_vault_tags,
encryption_key_arn,
notifications,
lock_configuration,
backup_vault_arn
FROM aws.backup.backup_vaults
WHERE region = 'us-east-1' AND data__Identifier = '<BackupVaultName>';

INSERT example

Use the following StackQL query and manifest file to create a new backup_vault resource, using stack-deploy.

/*+ create */
INSERT INTO aws.backup.backup_vaults (
BackupVaultName,
region
)
SELECT
'{{ BackupVaultName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.backup.backup_vaults
WHERE data__Identifier = '<BackupVaultName>'
AND region = 'us-east-1';

Permissions

To operate on the backup_vaults resource, the following permissions are required:

Create

backup:TagResource,
backup:CreateBackupVault,
backup:PutBackupVaultAccessPolicy,
backup:PutBackupVaultNotifications,
backup:PutBackupVaultLockConfiguration,
backup-storage:Mount,
backup-storage:MountCapsule,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt,
kms:RetireGrant,
kms:DescribeKey

Read

backup:DescribeBackupVault,
backup:GetBackupVaultNotifications,
backup:GetBackupVaultAccessPolicy,
backup:ListTags

Update

backup:DescribeBackupVault,
backup:DeleteBackupVaultAccessPolicy,
backup:DeleteBackupVaultNotifications,
backup:DeleteBackupVaultLockConfiguration,
backup:ListTags,
backup:TagResource,
backup:UntagResource,
backup:PutBackupVaultAccessPolicy,
backup:PutBackupVaultNotifications,
backup:PutBackupVaultLockConfiguration

Delete

backup:DeleteBackupVault

List

backup:ListBackupVaults