list_slots
¶
list_slots(
bot_id: Id,
bot_version: BotVersion,
locale_id: LocaleId,
intent_id: Id,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = 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/lex_models_v2.py
5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 | |