list_contexts
async
¶
list_contexts(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 | |