list_intents
¶
list_intents(
bot_id: Id,
bot_version: BotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
sort_by: Optional[IntentSortBy] = None,
filters: Optional[IntentFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListIntentsResponse
Get a list of intents that meet the specified criteria.
Parameters:
-
bot_id(Id) –The unique identifier of the bot that contains the intent.
-
bot_version(BotVersion) –The version of the bot that contains the intent.
-
locale_id(LocaleId) –The identifier of the language and locale of the intents to list. The string must match one of the supported locales. For more information, see Supported languages.
-
sort_by(Optional[IntentSortBy], default:None) –Determines the sort order for the response from the
ListIntentsoperation. You can choose to sort by the intent name or last updated date in either ascending or descending order. -
filters(Optional[IntentFilters], default:None) –Provides the specification of a filter used to limit the intents in the response to only those that match the filter specification. You can only specify one filter and only one string to filter on.
-
max_results(Optional[MaxResults], default:None) –The maximum number of intents to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.
-
next_token(Optional[NextToken], default:None) –If the response from the
ListIntentsoperation contains more results than specified in themaxResultsparameter, a token is returned in the response.Use the returned token in the
nextTokenparameter of aListIntentsrequest to return the next page of results. For a complete set of results, call theListIntentsoperation until thenextTokenreturned in the response is null.
Raises:
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/lex_models_v2.py
5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 | |