interface SlotProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.SlotProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_SlotProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.SlotProperty |
Python | aws_cdk.aws_lex.CfnBot.SlotProperty |
TypeScript | aws-cdk-lib » aws_lex » CfnBot » SlotProperty |
Specifies the definition of a slot.
Amazon Lex elicits slot values from uses to fulfill the user's intent.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slot.html
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
Name | Type | Description |
---|---|---|
name | string | The name given to the slot. |
slot | string | The name of the slot type that this slot is based on. |
value | IResolvable | Slot | Determines the slot resolution strategy that Amazon Lex uses to return slot type values. |
description? | string | The description of the slot. |
multiple | IResolvable | Multiple | Indicates whether a slot can return multiple values. |
obfuscation | IResolvable | Obfuscation | Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. |
name
Type:
string
The name given to the slot.
slotTypeName
Type:
string
The name of the slot type that this slot is based on.
The slot type defines the acceptable values for the slot.
valueElicitationSetting
Type:
IResolvable
|
Slot
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 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
.
description?
Type:
string
(optional)
The description of the slot.
multipleValuesSetting?
Type:
IResolvable
|
Multiple
(optional)
Indicates whether a slot can return multiple values.
obfuscationSetting?
Type:
IResolvable
|
Obfuscation
(optional)
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.