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 |
Synopsis
- data SlotValueSelectionSetting = SlotValueSelectionSetting' {}
- newSlotValueSelectionSetting :: SlotValueResolutionStrategy -> SlotValueSelectionSetting
- slotValueSelectionSetting_advancedRecognitionSetting :: Lens' SlotValueSelectionSetting (Maybe AdvancedRecognitionSetting)
- slotValueSelectionSetting_regexFilter :: Lens' SlotValueSelectionSetting (Maybe SlotValueRegexFilter)
- slotValueSelectionSetting_resolutionStrategy :: Lens' SlotValueSelectionSetting SlotValueResolutionStrategy
Documentation
data SlotValueSelectionSetting Source #
Contains settings used by Amazon Lex to select a slot value.
See: newSlotValueSelectionSetting
smart constructor.
SlotValueSelectionSetting' | |
|
Instances
newSlotValueSelectionSetting Source #
Create a value of SlotValueSelectionSetting
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:advancedRecognitionSetting:SlotValueSelectionSetting'
, slotValueSelectionSetting_advancedRecognitionSetting
- Provides settings that enable advanced recognition settings for slot
values.
$sel:regexFilter:SlotValueSelectionSetting'
, slotValueSelectionSetting_regexFilter
- A regular expression used to validate the value of a slot.
$sel:resolutionStrategy:SlotValueSelectionSetting'
, slotValueSelectionSetting_resolutionStrategy
- Determines the slot resolution strategy that Amazon Lex uses to return
slot type values. The field can be set to one of the following values:
- OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
- TopResolution - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the valueSelectionStrategy, the default is OriginalValue.
slotValueSelectionSetting_advancedRecognitionSetting :: Lens' SlotValueSelectionSetting (Maybe AdvancedRecognitionSetting) Source #
Provides settings that enable advanced recognition settings for slot values.
slotValueSelectionSetting_regexFilter :: Lens' SlotValueSelectionSetting (Maybe SlotValueRegexFilter) Source #
A regular expression used to validate the value of a slot.
slotValueSelectionSetting_resolutionStrategy :: Lens' SlotValueSelectionSetting SlotValueResolutionStrategy Source #
Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
- OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
- TopResolution - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the valueSelectionStrategy, the default is OriginalValue.