Skip to main content

protected_resources_by_backup_vaults

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

Overview

Nameprotected_resources_by_backup_vaults
TypeResource
Idaws.backup.protected_resources_by_backup_vaults

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_backup_timestring (date-time)The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
last_backup_vault_arnstringThe ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
last_recovery_point_arnstringThe ARN (Amazon Resource Name) of the most recent recovery point.
resource_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
resource_namestringThe non-unique name of the resource that belongs to the specified backup.
resource_typestringThe type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2. (pattern: <code>^[a-zA-Z0-9-_.]{1,50}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_protected_resources_by_backup_vaultselectbackup_vault_name, regionbackupVaultAccountId, nextToken, maxResultsThis request lists the protected resources corresponding to each 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 list of protected resources by backup vault within the vault(s) you specify by name.
regionstringAWS region (default: us-east-1)
backupVaultAccountIdstringThe list of protected resources by backup vault within the vault(s) you specify by account ID.
maxResultsintegerThe maximum number of items to be returned.
nextTokenstringThe next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

SELECT examples

This request lists the protected resources corresponding to each backup vault.

SELECT
last_backup_time,
last_backup_vault_arn,
last_recovery_point_arn,
resource_arn,
resource_name,
resource_type
FROM aws.backup.protected_resources_by_backup_vaults
WHERE backup_vault_name = '{{ backup_vault_name }}' -- required
AND region = '{{ region }}' -- required
AND backupVaultAccountId = '{{ backupVaultAccountId }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;