amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Description

 
Synopsis

Documentation

data SlotValueSelectionSetting Source #

Contains settings used by Amazon Lex to select a slot value.

See: newSlotValueSelectionSetting smart constructor.

Constructors

SlotValueSelectionSetting' 

Fields

  • advancedRecognitionSetting :: Maybe AdvancedRecognitionSetting

    Provides settings that enable advanced recognition settings for slot values.

  • regexFilter :: Maybe SlotValueRegexFilter

    A regular expression used to validate the value of a slot.

  • resolutionStrategy :: SlotValueResolutionStrategy

    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.

Instances

Instances details
FromJSON SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

ToJSON SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Generic SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Associated Types

type Rep SlotValueSelectionSetting :: Type -> Type #

Read SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Show SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

NFData SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Eq SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

Hashable SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

type Rep SlotValueSelectionSetting Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.SlotValueSelectionSetting

type Rep SlotValueSelectionSetting = D1 ('MetaData "SlotValueSelectionSetting" "Amazonka.LexV2Models.Types.SlotValueSelectionSetting" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "SlotValueSelectionSetting'" 'PrefixI 'True) (S1 ('MetaSel ('Just "advancedRecognitionSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AdvancedRecognitionSetting)) :*: (S1 ('MetaSel ('Just "regexFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlotValueRegexFilter)) :*: S1 ('MetaSel ('Just "resolutionStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SlotValueResolutionStrategy))))

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.