list_restore_jobs_by_protected_resource
¶
list_restore_jobs_by_protected_resource(
resource_arn: ARN,
*,
config_overrides: Optional[BackupClientConfig] = None,
by_status: Optional[RestoreJobStatus] = None,
by_recovery_point_creation_date_after: Optional[timestamp] = None,
by_recovery_point_creation_date_before: Optional[timestamp] = None,
next_token: Optional[string] = None,
max_results: Optional[MaxResults] = None,
) -> ListRestoreJobsByProtectedResourceOutput
This returns restore jobs that contain the specified protected resource.
You must include ResourceArn. You can optionally include NextToken, ByStatus, MaxResults, ByRecoveryPointCreationDateAfter , and ByRecoveryPointCreationDateBefore.
Parameters:
-
resource_arn(ARN) –Returns only restore jobs that match the specified resource Amazon Resource Name (ARN).
-
by_status(Optional[RestoreJobStatus], default:None) –Returns only restore jobs associated with the specified job status.
-
by_recovery_point_creation_date_after(Optional[timestamp], default:None) –Returns only restore jobs of recovery points that were created after the specified date.
-
by_recovery_point_creation_date_before(Optional[timestamp], default:None) –Returns only restore jobs of recovery points that were created before the specified date.
-
next_token(Optional[string], default:None) –The next item following a partial list of returned items. For example, if a request ismade to return
MaxResultsnumber of items,NextTokenallows you to return more items in your list starting at the location pointed to by the next token. -
max_results(Optional[MaxResults], default:None) –The maximum number of items to be returned.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/backup.py
6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 | |