Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . lexv2-models ]

list-slots

Description

Gets a list of slots that match the specified criteria.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  list-slots
--bot-id <value>
--bot-version <value>
--locale-id <value>
--intent-id <value>
[--sort-by <value>]
[--filters <value>]
[--max-results <value>]
[--next-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--bot-id (string)

The identifier of the bot that contains the slot.

--bot-version (string)

The version of the bot that contains the slot.

--locale-id (string)

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 (string)

The unique identifier of the intent that contains the slot.

--sort-by (structure)

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.

attribute -> (string)

The attribute to use to sort the list.

order -> (string)

The order to sort the list. You can choose ascending or descending.

Shorthand Syntax:

attribute=string,order=string

JSON Syntax:

{
  "attribute": "SlotName"|"LastUpdatedDateTime",
  "order": "Ascending"|"Descending"
}

--filters (list)

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.

(structure)

Filters the response from the ListSlots operation.

name -> (string)

The name of the field to use for filtering.

values -> (list)

The value to use to filter the response.

(string)

operator -> (string)

The operator to use for the filter. Specify EQ when the ListSlots operation should return only aliases that equal the specified value. Specify CO when the ListSlots operation should return aliases that contain the specified value.

Shorthand Syntax:

name=string,values=string,string,operator=string ...

JSON Syntax:

[
  {
    "name": "SlotName",
    "values": ["string", ...],
    "operator": "CO"|"EQ"
  }
  ...
]

--max-results (integer)

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 (string)

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.

--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. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--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.

See 'aws help' for descriptions of global parameters.

Output

botId -> (string)

The identifier of the bot that contains the slots.

botVersion -> (string)

The version of the bot that contains the slots.

localeId -> (string)

The language and locale of the slots in the list.

intentId -> (string)

The identifier of the intent that contains the slots.

slotSummaries -> (list)

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.

(structure)

Summary information about a slot, a value that the bot elicits from the user.

slotId -> (string)

The unique identifier of the slot.

slotName -> (string)

The name given to the slot.

description -> (string)

The description of the slot.

slotConstraint -> (string)

Whether the slot is required or optional. An intent is complete when all required slots are filled.

slotTypeId -> (string)

The unique identifier for the slot type that defines the values for the slot.

valueElicitationPromptSpecification -> (structure)

Prompts that are sent to the user to elicit a value for the slot.

messageGroups -> (list)

A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.

(structure)

Provides one or more messages that Amazon Lex should send to the user.

message -> (structure)

The primary message that Amazon Lex should send to the user.

plainTextMessage -> (structure)

A message in plain text format.

value -> (string)

The message to send to the user.

customPayload -> (structure)

A message in a custom format defined by the client application.

value -> (string)

The string that is sent to your application.

ssmlMessage -> (structure)

A message in Speech Synthesis Markup Language (SSML).

value -> (string)

The SSML text that defines the prompt.

imageResponseCard -> (structure)

A message that defines a response card that the client application can show to the user.

title -> (string)

The title to display on the response card. The format of the title is determined by the platform displaying the response card.

subtitle -> (string)

The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.

imageUrl -> (string)

The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.

buttons -> (list)

A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

(structure)

Describes a button to use on a response card used to gather slot values from a user.

text -> (string)

The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

value -> (string)

The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.

variations -> (list)

Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

(structure)

The object that provides message text and it's type.

plainTextMessage -> (structure)

A message in plain text format.

value -> (string)

The message to send to the user.

customPayload -> (structure)

A message in a custom format defined by the client application.

value -> (string)

The string that is sent to your application.

ssmlMessage -> (structure)

A message in Speech Synthesis Markup Language (SSML).

value -> (string)

The SSML text that defines the prompt.

imageResponseCard -> (structure)

A message that defines a response card that the client application can show to the user.

title -> (string)

The title to display on the response card. The format of the title is determined by the platform displaying the response card.

subtitle -> (string)

The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.

imageUrl -> (string)

The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.

buttons -> (list)

A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

(structure)

Describes a button to use on a response card used to gather slot values from a user.

text -> (string)

The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

value -> (string)

The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.

maxRetries -> (integer)

The maximum number of times the bot tries to elicit a response from the user using this prompt.

allowInterrupt -> (boolean)

Indicates whether the user can interrupt a speech prompt from the bot.

lastUpdatedDateTime -> (timestamp)

The timestamp of the last date and time that the slot was updated.

nextToken -> (string)

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.