describe_jobs
async
¶
describe_jobs(
*,
config_overrides: Optional[AsyncdrsClientConfig] = None,
filters: Optional[DescribeJobsRequestFilters] = None,
max_results: Optional[StrictlyPositiveInteger] = None,
next_token: Optional[PaginationToken] = None,
) -> DescribeJobsResponse
Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.
Parameters:
-
filters(Optional[DescribeJobsRequestFilters], default:None) –A set of filters by which to return Jobs.
-
max_results(Optional[StrictlyPositiveInteger], default:None) –Maximum number of Jobs to retrieve.
-
next_token(Optional[PaginationToken], default:None) –The token of the next Job to retrieve.
Raises:
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ThrottlingException–The request was denied due to request throttling.
-
UninitializedAccountException–The account performing the request has not been initialized.
-
ValidationException–The input fails to satisfy the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_drs/_services/async_drs.py
2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 | |