amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.ListSlots

Description

Gets a list of slots that match the specified criteria.

Synopsis

Creating a Request

data ListSlots Source #

See: newListSlots smart constructor.

Constructors

ListSlots' 

Fields

  • filters :: Maybe (NonEmpty SlotFilter)

    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.

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

    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.

  • sortBy :: Maybe SlotSortBy

    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.

  • botId :: Text

    The identifier of the bot that contains the slot.

  • botVersion :: Text

    The version of the bot that contains the slot.

  • localeId :: Text

    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.

  • intentId :: Text

    The unique identifier of the intent that contains the slot.

Instances

Instances details
ToJSON ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

ToHeaders ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Methods

toHeaders :: ListSlots -> [Header] #

ToPath ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

ToQuery ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

AWSRequest ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Associated Types

type AWSResponse ListSlots #

Generic ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Associated Types

type Rep ListSlots :: Type -> Type #

Read ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Show ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

NFData ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Methods

rnf :: ListSlots -> () #

Eq ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Hashable ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

type AWSResponse ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

type Rep ListSlots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

newListSlots Source #

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_botId :: Lens' ListSlots Text Source #

The identifier of the bot that contains the slot.

listSlots_botVersion :: Lens' ListSlots Text Source #

The version of the bot that contains the slot.

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.

Constructors

ListSlotsResponse' 

Fields

  • botId :: Maybe Text

    The identifier of the bot that contains the slots.

  • botVersion :: Maybe Text

    The version of the bot that contains the slots.

  • intentId :: Maybe Text

    The identifier of the intent that contains the slots.

  • localeId :: Maybe Text

    The language and locale of the slots in the list.

  • nextToken :: Maybe Text

    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.

  • slotSummaries :: Maybe [SlotSummary]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Associated Types

type Rep ListSlotsResponse :: Type -> Type #

Read ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Show ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

NFData ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

Methods

rnf :: ListSlotsResponse -> () #

Eq ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

type Rep ListSlotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListSlots

newListSlotsResponse Source #

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.