list_bot_locales
¶
list_bot_locales(
bot_id: Id,
bot_version: BotVersion,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
sort_by: Optional[BotLocaleSortBy] = None,
filters: Optional[BotLocaleFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListBotLocalesResponse
Gets a list of locales for the specified bot.
Parameters:
-
bot_id(Id) –The identifier of the bot to list locales for.
-
bot_version(BotVersion) –The version of the bot to list locales for.
-
sort_by(Optional[BotLocaleSortBy], default:None) –Specifies sorting parameters for the list of locales. You can sort by locale name in ascending or descending order.
-
filters(Optional[BotLocaleFilters], default:None) –Provides the specification for a filter used to limit the response to only those locales that match the filter specification. You can only specify one filter and one value to filter on.
-
max_results(Optional[MaxResults], default:None) –The maximum number of aliases 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
ListBotLocalesoperation contains more results than specified in themaxResultsparameter, a token is returned in the response. Use that token as 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
4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 | |