[ aws . lexv2-models ]
Gets a list of slots that match the specified criteria.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
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 | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--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 https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html .
--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 theListSlots
operation should return only aliases that equal the specified value. SpecifyCO
when theListSlots
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 themaxResults
parameter, a token is returned in the response. Use that token in thenextToken
parameter to return the next page of results.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those 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. This may not be specified along with --cli-input-yaml
.
--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
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. 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.
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, thenextToken
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 resonse 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 thenextToken
field is present, you send the contents as thenextToken
parameter of aListSlots
operation request to get the next page of results.