Class: Aws::LexModelsV2::Types::SlotValueSelectionSetting

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb

Overview

Note:

When making an API call, you may pass SlotValueSelectionSetting data as a hash:

{
  resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
  regex_filter: {
    pattern: "RegexPattern", # required
  },
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#regex_filterTypes::SlotValueRegexFilter

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



7635
7636
7637
7638
7639
7640
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 7635

class SlotValueSelectionSetting < Struct.new(
  :resolution_strategy,
  :regex_filter)
  SENSITIVE = []
  include Aws::Structure
end

#resolution_strategyString

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.

Returns:

  • (String)


7635
7636
7637
7638
7639
7640
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 7635

class SlotValueSelectionSetting < Struct.new(
  :resolution_strategy,
  :regex_filter)
  SENSITIVE = []
  include Aws::Structure
end