CustomVocabularyItemProperty
Struct External
Specifies an entry in a custom vocabulary.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const customVocabularyItemProperty: lex.CfnBot.CustomVocabularyItemProperty = {
phrase: 'phrase',
// the properties below are optional
displayAs: 'displayAs',
weight: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
custom_vocabulary_item_property = lex.CfnBot.CustomVocabularyItemProperty(
phrase="phrase",
# the properties below are optional
display_as="displayAs",
weight=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
CustomVocabularyItemProperty customVocabularyItemProperty = CustomVocabularyItemProperty.builder()
.phrase("phrase")
// the properties below are optional
.displayAs("displayAs")
.weight(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 customVocabularyItemProperty = new CustomVocabularyItemProperty {
Phrase = "phrase",
// the properties below are optional
DisplayAs = "displayAs",
Weight = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
customVocabularyItemProperty := &CustomVocabularyItemProperty{
Phrase: jsii.String("phrase"),
// the properties below are optional
DisplayAs: jsii.String("displayAs"),
Weight: jsii.Number(123),
}
Properties
displayAsoptionalstringdisplay_asoptionalstrdisplayAsoptionalStringDisplayAsoptionalstringDisplayAsoptional*string #The DisplayAs value for the custom vocabulary item from the custom vocabulary list.
Specifies 1 - 4 words that should be recognized.
weightoptionalnumberweightoptionalint | floatweightoptionalNumberWeightoptionaldoubleWeightoptional*float64 #Specifies the degree to which the phrase recognition is boosted.
The default value is 1.