list_slots
async
¶
list_slots(
bot_id: Id,
bot_version: BotVersion,
locale_id: LocaleId,
intent_id: Id,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
sort_by: Optional[SlotSortBy] = None,
filters: Optional[SlotFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListSlotsResponse
Gets a list of slots that match the specified criteria.
Parameters:
-
bot_id(Id) –The identifier of the bot that contains the slot.
-
bot_version(BotVersion) –The version of the bot that contains the slot.
-
locale_id(LocaleId) –The identifier of the language and locale of the slots to list. The string must match one of the supported locales. For more information, see Supported languages.
-
intent_id(Id) –The unique identifier of the intent that contains the slot.
-
sort_by(Optional[SlotSortBy], default:None) –Determines the sort order for the response from the
ListSlotsoperation. You can choose to sort by the slot name or last updated date in either ascending or descending order. -
filters(Optional[SlotFilters], default:None) –Provides the specification of a filter used to limit the slots in the response to only those that match the filter specification. You can only specify one filter and only one string to filter on.
-
max_results(Optional[MaxResults], default:None) –The maximum number of slots 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
ListSlotsoperation contains more results than specified in themaxResultsparameter, a token is returned in the response. Use that token in 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
6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 | |