Values.CreateSlotRequestSourceCreates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an OrderPizza intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user.
type nonrec t = {slotName : Name.t;The name of the slot. Slot names must be unique within the bot that contains the slot.
*)description : Description.t option;A description of the slot. Use this to help identify the slot in lists.
*)slotTypeId : BuiltInOrCustomSlotTypeId.t option;The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.
*)valueElicitationSetting : SlotValueElicitationSetting.t;Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
*)obfuscationSetting : ObfuscationSetting.t option;Determines how slot values are used in Amazon CloudWatch logs. If the value of the obfuscationSetting parameter is DefaultObfuscation, slot values are obfuscated in the log output. If the value is None, the actual value is present in the log output. The default is to obfuscate values in the CloudWatch logs.
*)botId : Id.t;The identifier of the bot associated with the slot.
*)botVersion : DraftBotVersion.t;The version of the bot associated with the slot.
*)localeId : LocaleId.t;The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.
*)intentId : Id.t;The identifier of the intent that contains the slot.
*)multipleValuesSetting : MultipleValuesSetting.t option;Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException. If the multipleValuesSetting is not set, the default value is false.
*)subSlotSetting : SubSlotSetting.t option;Specifications for the constituent sub slots and the expression for the composite slot.
*)}val make :
?description:??? ->
?slotTypeId:??? ->
?obfuscationSetting:??? ->
?multipleValuesSetting:??? ->
?subSlotSetting:??? ->
slotName:Name.t ->
valueElicitationSetting:SlotValueElicitationSetting.t ->
botId:Id.t ->
botVersion:DraftBotVersion.t ->
localeId:LocaleId.t ->
intentId:Id.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `String of Name.t
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `List of
[> `Structure of (string * [> `String of Utterance.t ]) list ]
list
| `Map of
([> `String of Name.t ]
* [> `Structure of
(string
* [> `String of BuiltInOrCustomSlotTypeId.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `String of Utterance.t ])
list ]
list
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `Integer of PromptMaxRetries.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `String of
SlotDefaultValueString.t
| `Structure of
(string
* [> `Structure of
(string
* [> `List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `Enum of string ]
* [> `Structure of
(string
* [> `Boolean of
BoxedBoolean.t
| `Structure of
(string
* [> `Boolean of
BoxedBoolean.t
| `Integer of
TimeInMilliSeconds.t
| `Structure of
(string
* [> `Integer of
TimeInMilliSeconds.t
| `String of
DTMFCharacter.t ])
list ])
list ])
list ])
list
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Integer of
StillWaitingResponseFrequency.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [>
`Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
* [>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list ])
list ])
list ])
list ])
list ])
list
| `String of SubSlotExpression.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `Integer of PromptMaxRetries.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `String of SlotDefaultValueString.t
| `Structure of
(string
* [> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `String of
ButtonText.t ])
list ]
list
| `String of PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `Enum of string ]
* [> `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Integer of TimeInMilliSeconds.t
| `Structure of
(string
* [> `Integer of TimeInMilliSeconds.t
| `String of DTMFCharacter.t ])
list ])
list ])
list ])
list
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Integer of StillWaitingResponseFrequency.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `List of
[> `Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `String of Name.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
* [> `List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `String of String_.t ])
list
| `String of ConditionExpression.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `String of
ButtonText.t ])
list ]
list
| `Map of
([> `String of Name.t ]
* Awso.Botodata.value)
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `String of String_.t ])
list
| `String of Name.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `Map of
([> `String of Name.t ] * Awso.Botodata.value)
list
| `String of Name.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
* [>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `String of Name.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
*
[>
`Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `String of
NonEmptyString.t ]
* [> `String of String_.t ])
list
| `String of
ConditionExpression.t
| `Structure of
(string
* [> `Boolean of
BoxedBoolean.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `String of
ButtonText.t ])
list ]
list
| `Map of
([> `String of Name.t ]
* Awso.Botodata.value)
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `String of String_.t ])
list
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `Map of
([> `String of Name.t ]
* Awso.Botodata.value)
list
| `String of Name.t
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [>
`Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
* [>
`List of
[>
`Structure of
(string
*
[>
`String of
ButtonText.t ])
list ]
list
| `String of
PlainTextMessageValue.t ])
list ])
list ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `String of String_.t ])
list
| `Structure of
(string
* [> `Boolean of BoxedBoolean.t
| `Enum of string
| `Map of
([> `String of Name.t ]
* Awso.Botodata.value)
list
| `String of Name.t ])
list ])
list ])
list ])
list ])
list ])
list ])
list ])
list ])
list ]