Interface CfnBot.ISlotTypeProperty
Describes a slot type.
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public interface ISlotTypeProperty
Syntax (vb)
Public Interface ISlotTypeProperty
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var slotTypeProperty = new SlotTypeProperty {
Name = "name",
// the properties below are optional
Description = "description",
ExternalSourceSetting = new ExternalSourceSettingProperty {
GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
Source = new GrammarSlotTypeSourceProperty {
S3BucketName = "s3BucketName",
S3ObjectKey = "s3ObjectKey",
// the properties below are optional
KmsKeyArn = "kmsKeyArn"
}
}
},
ParentSlotTypeSignature = "parentSlotTypeSignature",
SlotTypeValues = new [] { new SlotTypeValueProperty {
SampleValue = new SampleValueProperty {
Value = "value"
},
// the properties below are optional
Synonyms = new [] { new SampleValueProperty {
Value = "value"
} }
} },
ValueSelectionSetting = new SlotValueSelectionSettingProperty {
ResolutionStrategy = "resolutionStrategy",
// the properties below are optional
AdvancedRecognitionSetting = new AdvancedRecognitionSettingProperty {
AudioRecognitionStrategy = "audioRecognitionStrategy"
},
RegexFilter = new SlotValueRegexFilterProperty {
Pattern = "pattern"
}
}
};
Synopsis
Properties
Description | A description of the slot type. |
ExternalSourceSetting | Sets the type of external information used to create the slot type. |
Name | The name of the slot type. |
ParentSlotTypeSignature | The built-in slot type used as a parent of this slot type. |
SlotTypeValues | A list of SlotTypeValue objects that defines the values that the slot type can take. |
ValueSelectionSetting | Determines the slot resolution strategy that Amazon Lex uses to return slot type values. |
Properties
Description
A description of the slot type.
virtual string Description { get; }
Property Value
System.String
Remarks
Use the description to help identify the slot type in lists.
ExternalSourceSetting
Sets the type of external information used to create the slot type.
virtual object ExternalSourceSetting { get; }
Property Value
System.Object
Remarks
Name
The name of the slot type.
string Name { get; }
Property Value
System.String
Remarks
A slot type name must be unique withing the account.
ParentSlotTypeSignature
The built-in slot type used as a parent of this slot type.
virtual string ParentSlotTypeSignature { get; }
Property Value
System.String
Remarks
When you define a parent slot type, the new slot type has the configuration of the parent lot type.
Only AMAZON.AlphaNumeric
is supported.
SlotTypeValues
A list of SlotTypeValue objects that defines the values that the slot type can take.
virtual object SlotTypeValues { get; }
Property Value
System.Object
Remarks
Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for the slot.
ValueSelectionSetting
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
virtual object ValueSelectionSetting { get; }
Property Value
System.Object
Remarks
The field can be set to one of the following values:
If you don't specify the valueSelectionStrategy
, the default is ORIGINAL_VALUE
.