protected_resources_by_backup_vaults
Creates, updates, deletes, gets or lists a protected_resources_by_backup_vaults resource.
Overview
| Name | protected_resources_by_backup_vaults |
| Type | Resource |
| Id | aws.backup.protected_resources_by_backup_vaults |
Fields
The following fields are returned by SELECT queries:
- list_protected_resources_by_backup_vault
| Name | Datatype | Description |
|---|---|---|
last_backup_time | string (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_arn | string | The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point. |
last_recovery_point_arn | string | The ARN (Amazon Resource Name) of the most recent recovery point. |
resource_arn | string | An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type. |
resource_name | string | The non-unique name of the resource that belongs to the specified backup. |
resource_type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_protected_resources_by_backup_vault | select | backup_vault_name, region | backupVaultAccountId, nextToken, maxResults | This 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.
| Name | Datatype | Description |
|---|---|---|
backup_vault_name | string | The list of protected resources by backup vault within the vault(s) you specify by name. |
region | string | AWS region (default: us-east-1) |
backupVaultAccountId | string | The list of protected resources by backup vault within the vault(s) you specify by account ID. |
maxResults | integer | The maximum number of items to be returned. |
nextToken | string | The 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
- list_protected_resources_by_backup_vault
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 }}'
;