list_training_sessions
async
¶
list_training_sessions(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
name_contains: Optional[NameContains] = None,
status_equals: Optional[TrainingSessionStatus] = None,
) -> ListTrainingSessionsResponse
Lists training sessions in your account. You can filter results by creation time, name, and status. The operation paginates results. To retrieve additional results, use the NextToken parameter.
The following operations are related to ListTrainingSessions:
-
CreateTrainingSession -
DescribeTrainingSession
Parameters:
-
next_token(Optional[NextToken], default:None) –If the response was truncated, use the token returned in the previous response to retrieve the next page of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of training sessions to return in the response.
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only training sessions created after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only training sessions created before the specified time.
-
name_contains(Optional[NameContains], default:None) –A string in the training session name to filter results. Only sessions whose name contains the specified string are returned.
-
status_equals(Optional[TrainingSessionStatus], default:None) –A filter that returns only training sessions 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
26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 | |