Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets a list of slots that match the specified criteria.
Synopsis
- data ListSlots = ListSlots' {}
- newListSlots :: Text -> Text -> Text -> Text -> ListSlots
- listSlots_filters :: Lens' ListSlots (Maybe (NonEmpty SlotFilter))
- listSlots_maxResults :: Lens' ListSlots (Maybe Natural)
- listSlots_nextToken :: Lens' ListSlots (Maybe Text)
- listSlots_sortBy :: Lens' ListSlots (Maybe SlotSortBy)
- listSlots_botId :: Lens' ListSlots Text
- listSlots_botVersion :: Lens' ListSlots Text
- listSlots_localeId :: Lens' ListSlots Text
- listSlots_intentId :: Lens' ListSlots Text
- data ListSlotsResponse = ListSlotsResponse' {
- botId :: Maybe Text
- botVersion :: Maybe Text
- intentId :: Maybe Text
- localeId :: Maybe Text
- nextToken :: Maybe Text
- slotSummaries :: Maybe [SlotSummary]
- httpStatus :: Int
- newListSlotsResponse :: Int -> ListSlotsResponse
- listSlotsResponse_botId :: Lens' ListSlotsResponse (Maybe Text)
- listSlotsResponse_botVersion :: Lens' ListSlotsResponse (Maybe Text)
- listSlotsResponse_intentId :: Lens' ListSlotsResponse (Maybe Text)
- listSlotsResponse_localeId :: Lens' ListSlotsResponse (Maybe Text)
- listSlotsResponse_nextToken :: Lens' ListSlotsResponse (Maybe Text)
- listSlotsResponse_slotSummaries :: Lens' ListSlotsResponse (Maybe [SlotSummary])
- listSlotsResponse_httpStatus :: Lens' ListSlotsResponse Int
Creating a Request
See: newListSlots
smart constructor.
ListSlots' | |
|
Instances
Create a value of ListSlots
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:filters:ListSlots'
, listSlots_filters
- 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.
$sel:maxResults:ListSlots'
, listSlots_maxResults
- 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.
ListSlots
, listSlots_nextToken
- If the response from the ListSlots
operation contains more results
than specified in the maxResults
parameter, a token is returned in the
response. Use that token in the nextToken
parameter to return the next
page of results.
$sel:sortBy:ListSlots'
, listSlots_sortBy
- Determines the sort order for the response from the ListSlots
operation. You can choose to sort by the slot name or last updated date
in either ascending or descending order.
ListSlots
, listSlots_botId
- The identifier of the bot that contains the slot.
ListSlots
, listSlots_botVersion
- The version of the bot that contains the slot.
ListSlots
, listSlots_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.
ListSlots
, listSlots_intentId
- The unique identifier of the intent that contains the slot.
Request Lenses
listSlots_filters :: Lens' ListSlots (Maybe (NonEmpty SlotFilter)) Source #
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.
listSlots_maxResults :: Lens' ListSlots (Maybe Natural) Source #
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.
listSlots_nextToken :: Lens' ListSlots (Maybe Text) Source #
If the response from the ListSlots
operation contains more results
than specified in the maxResults
parameter, a token is returned in the
response. Use that token in the nextToken
parameter to return the next
page of results.
listSlots_sortBy :: Lens' ListSlots (Maybe SlotSortBy) Source #
Determines the sort order for the response from the ListSlots
operation. You can choose to sort by the slot name or last updated date
in either ascending or descending order.
listSlots_localeId :: Lens' ListSlots Text Source #
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.
listSlots_intentId :: Lens' ListSlots Text Source #
The unique identifier of the intent that contains the slot.
Destructuring the Response
data ListSlotsResponse Source #
See: newListSlotsResponse
smart constructor.
ListSlotsResponse' | |
|
Instances
Create a value of ListSlotsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListSlots
, listSlotsResponse_botId
- The identifier of the bot that contains the slots.
ListSlots
, listSlotsResponse_botVersion
- The version of the bot that contains the slots.
ListSlots
, listSlotsResponse_intentId
- The identifier of the intent that contains the slots.
ListSlots
, listSlotsResponse_localeId
- The language and locale of the slots in the list.
ListSlots
, listSlotsResponse_nextToken
- A token that indicates whether there are more results to return in a
response to the ListSlots
operation. If the nextToken
field is
present, you send the contents as the nextToken
parameter of a
ListSlots
operation request to get the next page of results.
$sel:slotSummaries:ListSlotsResponse'
, listSlotsResponse_slotSummaries
- Summary information for the slots that meet the filter criteria
specified in the request. The length of the list is specified in the
maxResults
parameter of the request. If there are more slots
available, the nextToken
field contains a token to get the next page
of results.
$sel:httpStatus:ListSlotsResponse'
, listSlotsResponse_httpStatus
- The response's http status code.
Response Lenses
listSlotsResponse_botId :: Lens' ListSlotsResponse (Maybe Text) Source #
The identifier of the bot that contains the slots.
listSlotsResponse_botVersion :: Lens' ListSlotsResponse (Maybe Text) Source #
The version of the bot that contains the slots.
listSlotsResponse_intentId :: Lens' ListSlotsResponse (Maybe Text) Source #
The identifier of the intent that contains the slots.
listSlotsResponse_localeId :: Lens' ListSlotsResponse (Maybe Text) Source #
The language and locale of the slots in the list.
listSlotsResponse_nextToken :: Lens' ListSlotsResponse (Maybe Text) Source #
A token that indicates whether there are more results to return in a
response to the ListSlots
operation. If the nextToken
field is
present, you send the contents as the nextToken
parameter of a
ListSlots
operation request to get the next page of results.
listSlotsResponse_slotSummaries :: Lens' ListSlotsResponse (Maybe [SlotSummary]) Source #
Summary information for the slots that meet the filter criteria
specified in the request. The length of the list is specified in the
maxResults
parameter of the request. If there are more slots
available, the nextToken
field contains a token to get the next page
of results.
listSlotsResponse_httpStatus :: Lens' ListSlotsResponse Int Source #
The response's http status code.