list_jobs
async
¶
list_jobs(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
job_category: Optional[JobCategory] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
last_modified_time_after: Optional[Timestamp] = None,
last_modified_time_before: Optional[Timestamp] = None,
name_contains: Optional[NameContains] = None,
sort_by: Optional[SortBy] = None,
sort_order: Optional[SortOrder] = None,
status_equals: Optional[JobStatus] = None,
) -> ListJobsResponse
Lists jobs in a specified category. You can filter results by creation time, last modified time, name, and status. Results are sorted by the field you specify in SortBy. Use pagination to retrieve large result sets efficiently.
The following operations are related to ListJobs:
-
CreateJob -
DescribeJob
Parameters:
-
job_category(Optional[JobCategory], default:None) –The category of jobs to list.
-
next_token(Optional[NextToken], default:None) –If the previous response was truncated, this token retrieves the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of jobs to return in the response. The default value is 50.
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs created after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs created before the specified time.
-
last_modified_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs modified after the specified time.
-
last_modified_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs modified before the specified time.
-
name_contains(Optional[NameContains], default:None) –A string in the job name to filter results. Only jobs whose name contains the specified string are returned.
-
sort_by(Optional[SortBy], default:None) –The field to sort results by.
-
sort_order(Optional[SortOrder], default:None) –The sort order for results. Valid values are
AscendingandDescending. -
status_equals(Optional[JobStatus], default:None) –A filter that returns only jobs with the specified status.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 | |