list_bot_versions
¶
list_bot_versions(
bot_id: Id,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
sort_by: Optional[BotVersionSortBy] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListBotVersionsResponse
Gets information about all of the versions of a bot.
The ListBotVersions operation returns a summary of each version of a bot. For example, if a bot has three numbered versions, the ListBotVersions operation returns for summaries, one for each numbered version and one for the DRAFT version.
The ListBotVersions operation always returns at least one version, the DRAFT version.
Parameters:
-
bot_id(Id) –The identifier of the bot to list versions for.
-
sort_by(Optional[BotVersionSortBy], default:None) –Specifies sorting parameters for the list of versions. You can specify that the list be sorted by version name in either ascending or descending order.
-
max_results(Optional[MaxResults], default:None) –The maximum number of versions 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 to the
ListBotVersionoperation contains more results than specified in themaxResultsparameter, a token is returned in the response. Use that token in thenextTokenparameter to return the next page of results.
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
4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 | |