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
18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 | |