aws.backup.list_restore_jobs_by_protected_resource
Example SQL Queries
SELECT * FROMaws.backup.list_restore_jobs_by_protected_resourceWHERE"resource_arn" = 'VALUE';Description
This returns restore jobs that contain the specified protected resource.
You must include ResourceArn. You can optionally include NextToken, ByStatus, MaxResults, ByRecoveryPointCreationDateAfter , and ByRecoveryPointCreationDateBefore.
Table Definition
| Column Name | Column Data Type |
|---|---|
| resource_arn Required Input Column Returns only restore jobs that match the specified resource Amazon Resource Name (ARN). | VARCHAR |
| by_recovery_point_creation_date_after Input Column Returns only restore jobs of recovery points that were created after the specified date. | TIMESTAMP_S |
| by_recovery_point_creation_date_before Input Column Returns only restore jobs of recovery points that were created before the specified date. | TIMESTAMP_S |
| by_status Input Column Returns only restore jobs associated with the specified job status. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| account_id The account ID that owns the restore job. | VARCHAR |
| backup_size_in_bytes The size, in bytes, of the restored resource. | BIGINT |
| completion_date The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. | TIMESTAMP_S |
| created_by Contains identifying information about the creation of a restore job. | STRUCT( |
Show child fields
| |
| created_resource_arn An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type. | VARCHAR |
| creation_date The date and time a restore job 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. | TIMESTAMP_S |
| deletion_status This notes the status of the data generated by the restore test. The status may be Deleting, Failed, or Successful. | VARCHAR |
| deletion_status_message This describes the restore job deletion status. | VARCHAR |
| expected_completion_time_minutes The amount of time in minutes that a job restoring a recovery point is expected to take. | BIGINT |
| iam_role_arn Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. | VARCHAR |
| percent_done Contains an estimated percentage complete of a job at the time the job status was queried. | VARCHAR |
| recovery_point_arn An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. | VARCHAR |
| recovery_point_creation_date The date on which a recovery point was created. | TIMESTAMP_S |
| resource_type The resource type of the listed restore jobs; 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. | VARCHAR |
| restore_job_id Uniquely identifies the job that restores a recovery point. | VARCHAR |
| status A status code specifying the state of the job initiated by Backup to restore a recovery point. | VARCHAR |
| status_message A detailed message explaining the status of the job to restore a recovery point. | VARCHAR |
| validation_status This is the status of validation run on the indicated restore job. | VARCHAR |
| validation_status_message This describes the status of validation run on the indicated restore job. | VARCHAR |