get_bot_aliases
¶
get_bot_aliases(
bot_name: BotName,
*,
config_overrides: Optional[LexModelBuildingServiceClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[AliasName] = None,
) -> GetBotAliasesResponse
Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the lex:GetBotAliases action.
Parameters:
-
bot_name(BotName) –The name of the bot.
-
next_token(Optional[NextToken], default:None) –A pagination token for fetching the next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.
-
max_results(Optional[MaxResults], default:None) –The maximum number of aliases to return in the response. The default is 50. .
-
name_contains(Optional[AliasName], default:None) –Substring to match in bot alias names. An alias will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."
Raises:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.
-
InternalFailureException–An internal Amazon Lex error occurred. Try your request again.
-
LimitExceededException–The request exceeded a limit. Try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_model_building_service/_services/lex_model_building_service.py
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 | |