SlotProperty Struct
Specifies the definition of a slot.
Amazon Lex elicits slot values from uses to fulfill the user's intent.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
python
java
csharp
// Install: dotnet add package Amazon.CDK.Lib
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the slot.
multipleValuesSettingoptionalIResolvable | CfnBot.multiple_values_settingoptionaltyping.Union[IResolvable, MultipleValuesSettingProperty]multipleValuesSettingoptionalIResolvableMultipleValuesSettingoptionalIResolvableMultipleValuesSettingoptionalinterface{} #Indicates whether a slot can return multiple values.
The name given to the slot.
obfuscationSettingoptionalIResolvable | CfnBot.obfuscation_settingoptionaltyping.Union[IResolvable, ObfuscationSettingProperty]obfuscationSettingoptionalIResolvableObfuscationSettingoptionalIResolvableObfuscationSettingoptionalinterface{} #Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs.
Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
slotTypeNamestringslot_type_namestrslotTypeNameStringSlotTypeNamestringSlotTypeName*string required #The name of the slot type that this slot is based on.
The slot type defines the acceptable values for the slot.
subSlotSettingoptionalIResolvable | CfnBot.SubSlotSettingPropertysub_slot_settingoptionaltyping.Union[IResolvable, SubSlotSettingProperty]subSlotSettingoptionalIResolvableSubSlotSettingoptionalIResolvableSubSlotSettingoptionalinterface{} #valueElicitationSettingIResolvable | CfnBot.value_elicitation_settingtyping.Union[IResolvable, SlotValueElicitationSettingProperty]valueElicitationSettingIResolvableValueElicitationSettingIResolvableValueElicitationSettinginterface{} required #Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
notes
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 a 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 .