Skip to main content

protected_resources

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

Overview

Nameprotected_resources
TypeResource
Idaws.backup.protected_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_backup_timestring (date-time)The date and time that 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.
latest_restore_execution_time_minutesinteger (int64)The time, in minutes, that the most recent restore job took to complete.
latest_restore_job_creation_datestring (date-time)The creation date of the most recent restore job.
latest_restore_recovery_point_creation_datestring (date-time)The date the most recent recovery point was created.
resource_arnstringAn ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
resource_namestringThe name of the resource that belongs to the specified backup.
resource_typestringThe type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database. (pattern: <code>^[a-zA-Z0-9-_.]{1,50}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_protected_resourceselectresource_arn, regionReturns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the Amazon Web Services service type of the saved resource.
list_protected_resourcesselectregionnextToken, maxResultsReturns an array of resources with recovery points created by Backup (regardless of the recovery point's status), including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

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
regionstringAWS region (default: us-east-1)
resource_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
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

Returns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the Amazon Web Services service type of the saved resource.

SELECT
last_backup_time,
last_backup_vault_arn,
last_recovery_point_arn,
latest_restore_execution_time_minutes,
latest_restore_job_creation_date,
latest_restore_recovery_point_creation_date,
resource_arn,
resource_name,
resource_type
FROM aws.backup.protected_resources
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;