| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.LexModels.Types.Slot
Description
Synopsis
- data Slot = Slot' {
- defaultValueSpec :: Maybe SlotDefaultValueSpec
 - description :: Maybe Text
 - obfuscationSetting :: Maybe ObfuscationSetting
 - priority :: Maybe Natural
 - responseCard :: Maybe Text
 - sampleUtterances :: Maybe [Text]
 - slotType :: Maybe Text
 - slotTypeVersion :: Maybe Text
 - valueElicitationPrompt :: Maybe Prompt
 - name :: Text
 - slotConstraint :: SlotConstraint
 
 - newSlot :: Text -> SlotConstraint -> Slot
 - slot_defaultValueSpec :: Lens' Slot (Maybe SlotDefaultValueSpec)
 - slot_description :: Lens' Slot (Maybe Text)
 - slot_obfuscationSetting :: Lens' Slot (Maybe ObfuscationSetting)
 - slot_priority :: Lens' Slot (Maybe Natural)
 - slot_responseCard :: Lens' Slot (Maybe Text)
 - slot_sampleUtterances :: Lens' Slot (Maybe [Text])
 - slot_slotType :: Lens' Slot (Maybe Text)
 - slot_slotTypeVersion :: Lens' Slot (Maybe Text)
 - slot_valueElicitationPrompt :: Lens' Slot (Maybe Prompt)
 - slot_name :: Lens' Slot Text
 - slot_slotConstraint :: Lens' Slot SlotConstraint
 
Documentation
Identifies the version of a specific slot.
See: newSlot smart constructor.
Constructors
| Slot' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> SlotConstraint | |
| -> Slot | 
Create a value of Slot with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:defaultValueSpec:Slot', slot_defaultValueSpec - A list of default values for the slot. Default values are used when
 Amazon Lex hasn't determined a value for a slot. You can specify
 default values from context variables, session attributes, and defined
 values.
$sel:description:Slot', slot_description - A description of the slot.
$sel:obfuscationSetting:Slot', slot_obfuscationSetting - Determines whether a slot is obfuscated in conversation logs and stored
 utterances. When you obfuscate a slot, the value is replaced by the slot
 name in curly braces ({}). For example, if the slot name is
 "full_name", obfuscated values are replaced with "{full_name}". For
 more information, see
 Slot Obfuscation
 .
$sel:priority:Slot', slot_priority - Directs Amazon 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 Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
Slot, slot_responseCard - A set of possible responses for the slot type used by text-based
 clients. A user chooses an option from the response card, instead of
 using text to reply.
$sel:sampleUtterances:Slot', slot_sampleUtterances - 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.
$sel:slotType:Slot', slot_slotType - The type of the slot, either a custom slot type that you defined or one
 of the built-in slot types.
$sel:slotTypeVersion:Slot', slot_slotTypeVersion - The version of the slot type.
$sel:valueElicitationPrompt:Slot', slot_valueElicitationPrompt - The prompt that Amazon Lex uses to elicit the slot value from the user.
$sel:name:Slot', slot_name - The name of the slot.
$sel:slotConstraint:Slot', slot_slotConstraint - Specifies whether the slot is required or optional.
slot_defaultValueSpec :: Lens' Slot (Maybe SlotDefaultValueSpec) Source #
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
slot_obfuscationSetting :: Lens' Slot (Maybe ObfuscationSetting) Source #
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
slot_priority :: Lens' Slot (Maybe Natural) Source #
Directs Amazon 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 Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
slot_responseCard :: Lens' Slot (Maybe Text) Source #
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
slot_sampleUtterances :: Lens' Slot (Maybe [Text]) Source #
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.
slot_slotType :: Lens' Slot (Maybe Text) Source #
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
slot_valueElicitationPrompt :: Lens' Slot (Maybe Prompt) Source #
The prompt that Amazon Lex uses to elicit the slot value from the user.
slot_slotConstraint :: Lens' Slot SlotConstraint Source #
Specifies whether the slot is required or optional.