list_imports
async
¶
list_imports(
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
bot_id: Optional[Id] = None,
bot_version: Optional[DraftBotVersion] = None,
sort_by: Optional[ImportSortBy] = None,
filters: Optional[ImportFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
locale_id: Optional[LocaleId] = None,
) -> ListImportsResponse
Lists the imports for a bot, bot locale, or custom vocabulary. Imports are kept in the list for 7 days.
Parameters:
-
bot_id(Optional[Id], default:None) –The unique identifier that Amazon Lex assigned to the bot.
-
bot_version(Optional[DraftBotVersion], default:None) –The version of the bot to list imports for.
-
sort_by(Optional[ImportSortBy], default:None) –Determines the field that the list of imports is sorted by. You can sort by the
LastUpdatedDateTimefield in ascending or descending order. -
filters(Optional[ImportFilters], default:None) –Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.
-
max_results(Optional[MaxResults], default:None) –The maximum number of imports 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
ListImportsoperation contains more results than specified in themaxResultsparameter, a token is returned in the response.Use the returned token in the
nextTokenparameter of aListImportsrequest to return the next page of results. For a complete set of results, call theListImportsoperation until thenextTokenreturned in the response is null. -
locale_id(Optional[LocaleId], default:None) –Specifies the locale that should be present in the list. If you don't specify a resource type in the
filtersparameter, the list contains both bot locales and custom vocabularies.
Raises:
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
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
5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 | |