list_exports
async
¶
list_exports(
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
bot_id: Optional[Id] = None,
bot_version: Optional[BotVersion] = None,
sort_by: Optional[ExportSortBy] = None,
filters: Optional[ExportFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
locale_id: Optional[LocaleId] = None,
) -> ListExportsResponse
Lists the exports for a bot, bot locale, or custom vocabulary. Exports 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[BotVersion], default:None) –The version of the bot to list exports for.
-
sort_by(Optional[ExportSortBy], default:None) –Determines the field that the list of exports is sorted by. You can sort by the
LastUpdatedDateTimefield in ascending or descending order. -
filters(Optional[ExportFilters], default:None) –Provides the specification of a filter used to limit the exports 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 exports 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
ListExportsoperation contains more results that specified in themaxResultsparameter, a token is returned in the response.Use the returned token in the
nextTokenparameter of aListExportsrequest to return the next page of results. For a complete set of results, call theListExportsoperation until thenextTokenreturned in the response is null. -
locale_id(Optional[LocaleId], default:None) –Specifies the resources that should be exported. If you don't specify a resource type in the
filtersparameter, both bot locales and custom vocabularies are exported.
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
5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 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 | |