list_contexts
¶
list_contexts(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
source_uri: Optional[SourceUri] = None,
context_type: Optional[String256] = None,
created_after: Optional[Timestamp] = None,
created_before: Optional[Timestamp] = None,
sort_by: Optional[SortContextsBy] = None,
sort_order: Optional[SortOrder] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListContextsResponse
Lists the contexts in your account and their properties.
Parameters:
-
source_uri(Optional[SourceUri], default:None) –A filter that returns only contexts with the specified source URI.
-
context_type(Optional[String256], default:None) –A filter that returns only contexts of the specified type.
-
created_after(Optional[Timestamp], default:None) –A filter that returns only contexts created on or after the specified time.
-
created_before(Optional[Timestamp], default:None) –A filter that returns only contexts created on or before the specified time.
-
sort_by(Optional[SortContextsBy], default:None) –The property used to sort results. The default value is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order. The default value is
Descending. -
next_token(Optional[NextToken], default:None) –If the previous call to
ListContextsdidn't return the full set of contexts, the call returns a token for getting the next set of contexts. -
max_results(Optional[MaxResults], default:None) –The maximum number of contexts to return in the response. The default value is 10.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 | |