Class CfnBot.SlotTypeProperty
Describes a slot type.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SlotTypeProperty : Object, CfnBot.ISlotTypeProperty
Syntax (vb)
Public Class SlotTypeProperty
Inherits Object
Implements CfnBot.ISlotTypeProperty
Remarks
See: 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
Constructors
SlotTypeProperty() |
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. |
Constructors
SlotTypeProperty()
public SlotTypeProperty()
Properties
Description
A description of the slot type.
public string Description { get; set; }
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.
public object ExternalSourceSetting { get; set; }
Property Value
System.Object
Remarks
Name
The name of the slot type.
public string Name { get; set; }
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.
public string ParentSlotTypeSignature { get; set; }
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.
public object SlotTypeValues { get; set; }
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.
public object ValueSelectionSetting { get; set; }
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
.