Skip to main content

recovery_points_by_resources

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

Overview

Namerecovery_points_by_resources
TypeResource
Idaws.backup.recovery_points_by_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aggregated_scan_resultobjectContains the latest scanning results against the recovery point and currently include FailedScan, Findings, LastComputed.
backup_size_bytesinteger (int64)The size, in bytes, of a backup.
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 Amazon Web Services Region where they are created. (pattern: <code>^[a-zA-Z0-9-_]{2,50}$</code>)
creation_datestring (date-time)The date and time a recovery point is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
encryption_key_arnstringThe server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.
encryption_key_typestringThe type of encryption key used for the recovery point. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys. (AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY)
index_statusstringThis is the current status for the backup index associated with the specified recovery point. Statuses are: PENDING | ACTIVE | FAILED | DELETING A recovery point with an index that has the status of ACTIVE can be included in a search. (PENDING, ACTIVE, FAILED, DELETING)
index_status_messagestringA string in the form of a detailed message explaining the status of a backup index associated with the recovery point.
is_parentbooleanThis is a boolean value indicating this is a parent (composite) recovery point.
parent_recovery_point_arnstringThe Amazon Resource Name (ARN) of the parent (composite) recovery point.
recovery_point_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
resource_namestringThe non-unique name of the resource that belongs to the specified backup.
statusstringA status code specifying the state of the recovery point. (COMPLETED, PARTIAL, DELETING, EXPIRED, AVAILABLE, STOPPED, CREATING)
status_messagestringA message explaining the current status of the recovery point.
vault_typestringThe type of vault in which the described recovery point is stored. (BACKUP_VAULT, LOGICALLY_AIR_GAPPED_BACKUP_VAULT, RESTORE_ACCESS_BACKUP_VAULT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_recovery_points_by_resourceselectresource_arn, regionnextToken, maxResults, managedByAWSBackupOnlyThe information about the recovery points of the type specified by a resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup.

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 ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
managedByAWSBackupOnlybooleanThis attribute filters recovery points based on ownership. If this is set to TRUE, the response will contain recovery points associated with the selected resources that are managed by Backup. If this is set to FALSE, the response will contain all recovery points associated with the selected resource, except for EBS snapshots copied within the same Region and account. Type: Boolean
maxResultsintegerThe maximum number of items to be returned. Amazon RDS requires a value of at least 20.
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

The information about the recovery points of the type specified by a resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup.

SELECT
aggregated_scan_result,
backup_size_bytes,
backup_vault_name,
creation_date,
encryption_key_arn,
encryption_key_type,
index_status,
index_status_message,
is_parent,
parent_recovery_point_arn,
recovery_point_arn,
resource_name,
status,
status_message,
vault_type
FROM aws.backup.recovery_points_by_resources
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND managedByAWSBackupOnly = '{{ managedByAWSBackupOnly }}'
;