IntentSlotArgs

data class IntentSlotArgs(val description: Output<String>? = null, val name: Output<String>, val priority: Output<Int>? = null, val responseCard: Output<String>? = null, val sampleUtterances: Output<List<String>>? = null, val slotConstraint: Output<String>, val slotType: Output<String>, val slotTypeVersion: Output<String>? = null, val valueElicitationPrompt: Output<IntentSlotValueElicitationPromptArgs>? = null) : ConvertibleToJava<IntentSlotArgs>

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>, priority: Output<Int>? = null, responseCard: Output<String>? = null, sampleUtterances: Output<List<String>>? = null, slotConstraint: Output<String>, slotType: Output<String>, slotTypeVersion: Output<String>? = null, valueElicitationPrompt: Output<IntentSlotValueElicitationPromptArgs>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A description of the bot. Must be less than or equal to 200 characters in length.

Link copied to clipboard
val name: Output<String>

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

Link copied to clipboard
val priority: Output<Int>? = null

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

Link copied to clipboard
val responseCard: Output<String>? = null

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

Link copied to clipboard
val sampleUtterances: Output<List<String>>? = null

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

Link copied to clipboard
val slotConstraint: Output<String>

Specifies whether the slot is required or optional.

Link copied to clipboard
val slotType: Output<String>

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

Link copied to clipboard
val slotTypeVersion: Output<String>? = null

The version of the slot type. Must be less than or equal to 64 characters in length.

Link copied to clipboard

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

Functions

Link copied to clipboard
open override fun toJava(): IntentSlotArgs