Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . lex-models ]



Returns slot type information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all slot types that contain the specified string.
  • If you don't specify the nameContains field, returns information about the $LATEST version of all slot types.

The operation requires permission for the lex:GetSlotTypes action.

See also: AWS API Documentation


[--next-token <value>]
[--max-results <value>]
[--name-contains <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--next-token (string)

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.

--max-results (integer)

The maximum number of slot types to return in the response. The default is 10.

--name-contains (string)

Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.


slotTypes -> (list)

An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.


Provides information about a slot type..

name -> (string)

The name of the slot type.

description -> (string)

A description of the slot type.

lastUpdatedDate -> (timestamp)

The date that the slot type was updated. When you create a resource, the creation date and last updated date are the same.

createdDate -> (timestamp)

The date that the slot type was created.

version -> (string)

The version of the slot type.

nextToken -> (string)

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.