Skip to content

List Slot Types

lexmodelsv2_list_slot_types R Documentation

Gets a list of slot types that match the specified criteria

Description

Gets a list of slot types that match the specified criteria.

Usage

lexmodelsv2_list_slot_types(botId, botVersion, localeId, sortBy,
  filters, maxResults, nextToken)

Arguments

botId

[required] The unique identifier of the bot that contains the slot types.

botVersion

[required] The version of the bot that contains the slot type.

localeId

[required] The identifier of the language and locale of the slot types to list. The string must match one of the supported locales. For more information, see Supported languages.

sortBy

Determines the sort order for the response from the list_slot_types operation. You can choose to sort by the slot type name or last updated date in either ascending or descending order.

filters

Provides the specification of a filter used to limit the slot types 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

The maximum number of slot types 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

If the response from the list_slot_types 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.

Value

A list with the following syntax:

list(
  botId = "string",
  botVersion = "string",
  localeId = "string",
  slotTypeSummaries = list(
    list(
      slotTypeId = "string",
      slotTypeName = "string",
      description = "string",
      parentSlotTypeSignature = "string",
      lastUpdatedDateTime = as.POSIXct(
        "2015-01-01"
      ),
      slotTypeCategory = "Custom"|"Extended"|"ExternalGrammar"|"Composite"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_slot_types(
  botId = "string",
  botVersion = "string",
  localeId = "string",
  sortBy = list(
    attribute = "SlotTypeName"|"LastUpdatedDateTime",
    order = "Ascending"|"Descending"
  ),
  filters = list(
    list(
      name = "SlotTypeName"|"ExternalSourceType",
      values = list(
        "string"
      ),
      operator = "CO"|"EQ"
    )
  ),
  maxResults = 123,
  nextToken = "string"
)