list_restore_jobs_by_protected_resource
async
¶
list_restore_jobs_by_protected_resource(
resource_arn: ARN,
*,
config_overrides: Optional[AsyncBackupClientConfig] = 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/async_backup.py
6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 | |