list_bots
async
¶
list_bots(
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
sort_by: Optional[BotSortBy] = None,
filters: Optional[BotFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListBotsResponse
Gets a list of available bots.
Parameters:
-
sort_by(Optional[BotSortBy], default:None) –Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order.
-
filters(Optional[BotFilters], 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 bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.
-
next_token(Optional[NextToken], default:None) –If the response from the
ListBotsoperation contains more results than specified in themaxResultsparameter, a token is returned in the response.Use the returned token in the
nextTokenparameter of aListBotsrequest to return the next page of results. For a complete set of results, call theListBotsoperation until thenextTokenreturned in the response is null.
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.