aws-cdk-lib.aws_lex.CfnBot.SlotValueSelectionSettingProperty

interface SlotValueSelectionSettingProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.SlotValueSelectionSettingProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_SlotValueSelectionSettingProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.SlotValueSelectionSettingProperty
Pythonaws_cdk.aws_lex.CfnBot.SlotValueSelectionSettingProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » SlotValueSelectionSettingProperty

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

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const slotValueSelectionSettingProperty: lex.CfnBot.SlotValueSelectionSettingProperty = {
  resolutionStrategy: 'resolutionStrategy',

  // the properties below are optional
  advancedRecognitionSetting: {
    audioRecognitionStrategy: 'audioRecognitionStrategy',
  },
  regexFilter: {
    pattern: 'pattern',
  },
};

Properties

NameTypeDescription
resolutionStrategystringDetermines the slot resolution strategy that Amazon Lex uses to return slot type values.
advancedRecognitionSetting?IResolvable | AdvancedRecognitionSettingPropertyProvides settings that enable advanced recognition settings for slot values.
regexFilter?IResolvable | SlotValueRegexFilterPropertyA regular expression used to validate the value of a slot.

resolutionStrategy

Type: string

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:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.
  • TOP_RESOLUTION - 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 ORIGINAL_VALUE .


advancedRecognitionSetting?

Type: IResolvable | AdvancedRecognitionSettingProperty (optional)

Provides settings that enable advanced recognition settings for slot values.

You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.


regexFilter?

Type: IResolvable | SlotValueRegexFilterProperty (optional)

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