list_imports
¶
list_imports(
*,
config_overrides: Optional[LexModelsV2ClientConfig] = 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/lex_models_v2.py
5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 | |