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
6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 | |