Class CfnBotPropsMixin.SlotTypeProperty
Describes a slot type.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBotPropsMixin.SlotTypeProperty : CfnBotPropsMixin.ISlotTypeProperty
Syntax (vb)
Public Class CfnBotPropsMixin.SlotTypeProperty Implements CfnBotPropsMixin.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.Mixins.Preview.AWS.Lex.Mixins;
var slotTypeProperty = new SlotTypeProperty {
CompositeSlotTypeSetting = new CompositeSlotTypeSettingProperty {
SubSlots = new [] { new SubSlotTypeCompositionProperty {
Name = "name",
SlotTypeId = "slotTypeId"
} }
},
Description = "description",
ExternalSourceSetting = new ExternalSourceSettingProperty {
GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
Source = new GrammarSlotTypeSourceProperty {
KmsKeyArn = "kmsKeyArn",
S3BucketName = "s3BucketName",
S3ObjectKey = "s3ObjectKey"
}
}
},
Name = "name",
ParentSlotTypeSignature = "parentSlotTypeSignature",
SlotTypeValues = new [] { new SlotTypeValueProperty {
SampleValue = new SampleValueProperty {
Value = "value"
},
Synonyms = new [] { new SampleValueProperty {
Value = "value"
} }
} },
ValueSelectionSetting = new SlotValueSelectionSettingProperty {
AdvancedRecognitionSetting = new AdvancedRecognitionSettingProperty {
AudioRecognitionStrategy = "audioRecognitionStrategy"
},
RegexFilter = new SlotValueRegexFilterProperty {
Pattern = "pattern"
},
ResolutionStrategy = "resolutionStrategy"
}
};
Synopsis
Constructors
| SlotTypeProperty() | Describes a slot type. |
Properties
| CompositeSlotTypeSetting | Describes a slot type. |
| 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()
Describes a slot type.
public SlotTypeProperty()
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.Mixins.Preview.AWS.Lex.Mixins;
var slotTypeProperty = new SlotTypeProperty {
CompositeSlotTypeSetting = new CompositeSlotTypeSettingProperty {
SubSlots = new [] { new SubSlotTypeCompositionProperty {
Name = "name",
SlotTypeId = "slotTypeId"
} }
},
Description = "description",
ExternalSourceSetting = new ExternalSourceSettingProperty {
GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
Source = new GrammarSlotTypeSourceProperty {
KmsKeyArn = "kmsKeyArn",
S3BucketName = "s3BucketName",
S3ObjectKey = "s3ObjectKey"
}
}
},
Name = "name",
ParentSlotTypeSignature = "parentSlotTypeSignature",
SlotTypeValues = new [] { new SlotTypeValueProperty {
SampleValue = new SampleValueProperty {
Value = "value"
},
Synonyms = new [] { new SampleValueProperty {
Value = "value"
} }
} },
ValueSelectionSetting = new SlotValueSelectionSettingProperty {
AdvancedRecognitionSetting = new AdvancedRecognitionSettingProperty {
AudioRecognitionStrategy = "audioRecognitionStrategy"
},
RegexFilter = new SlotValueRegexFilterProperty {
Pattern = "pattern"
},
ResolutionStrategy = "resolutionStrategy"
}
};
Properties
CompositeSlotTypeSetting
Describes a slot type.
public object? CompositeSlotTypeSetting { get; set; }
Property Value
Remarks
Description
A description of the slot type.
public string? Description { get; set; }
Property Value
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
Remarks
Name
The name of the slot type.
public string? Name { get; set; }
Property Value
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
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
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.
Type union: either IResolvable or (either IResolvable or CfnBotPropsMixin.ISlotTypeValueProperty)[]
ValueSelectionSetting
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
public object? ValueSelectionSetting { get; set; }
Property Value
Remarks
The field can be set to one of the following values:
If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE .
Type union: either IResolvable or CfnBotPropsMixin.ISlotValueSelectionSettingProperty