Skip to main content

backup_vault_notifications

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

Overview

Namebackup_vault_notifications
TypeResource
Idaws.backup.backup_vault_notifications

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_eventsarrayAn array of events that indicate the status of jobs to back up resources to the backup vault.
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>)
sns_topic_arnstringAn ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic; for example, arn:aws:sns:us-west-2:111122223333:MyTopic.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_backup_vault_notificationsselectbackup_vault_name, regionReturns event notifications for the specified backup vault.
put_backup_vault_notificationsreplacebackup_vault_name, region, SNSTopicArn, BackupVaultEventsTurns on notifications on a backup vault for the specified topic and events.
delete_backup_vault_notificationsdeletebackup_vault_name, regionDeletes event notifications for the specified 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 Region where they are created.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns event notifications for the specified backup vault.

SELECT
backup_vault_arn,
backup_vault_events,
backup_vault_name,
sns_topic_arn
FROM aws.backup.backup_vault_notifications
WHERE backup_vault_name = '{{ backup_vault_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Turns on notifications on a backup vault for the specified topic and events.

REPLACE aws.backup.backup_vault_notifications
SET
SNSTopicArn = '{{ SNSTopicArn }}',
BackupVaultEvents = '{{ BackupVaultEvents }}'
WHERE
backup_vault_name = '{{ backup_vault_name }}' --required
AND region = '{{ region }}' --required
AND SNSTopicArn = '{{ SNSTopicArn }}' --required
AND BackupVaultEvents = '{{ BackupVaultEvents }}' --required;

DELETE examples

Deletes event notifications for the specified backup vault.

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