list_bot_locales
async
¶
list_bot_locales(
bot_id: Id,
bot_version: BotVersion,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = 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/async_lex_models_v2.py
4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 | |