list_intents
async
¶
list_intents(
bot_id: Id,
bot_version: BotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = 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/async_lex_models_v2.py
5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 | |