list_agentic_contexts
async
¶
list_agentic_contexts(
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
context_type: Optional[AgenticContextType] = None,
max_results: Optional[Limit100] = None,
next_token: Optional[PaginationToken] = None,
) -> ListAgenticContextsResult
Lists the agentic contexts in your account. This operation is paginated. To get the next page, pass the NextToken from the previous response.
Parameters:
-
context_type(Optional[AgenticContextType], default:None) –If you specify this field, the operation returns only contexts of this type. Omit it to return contexts of every type. When you filter by type, a page can contain fewer than
MaxResultsitems, or none, even when more results are available. Continue to call the operation until the response doesn't include aNextToken. -
max_results(Optional[Limit100], default:None) –The maximum number of items to return. Valid range: 1–100.
-
next_token(Optional[PaginationToken], default:None) –If you received a
NextTokenfrom a previous call that was paginated, provide this token to receive the next set of results.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
ThrottlingException–The request was throttled. Retry the request with exponential backoff.
-
ValidationException–Your request failed validation. Check the error message for the parameter that isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example – Listing steering contexts The following example lists the steering contexts in the account.
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 | |