interface CustomVocabularyItemProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.CustomVocabularyItemProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_CustomVocabularyItemProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.CustomVocabularyItemProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.CustomVocabularyItemProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » CustomVocabularyItemProperty |
Specifies an entry in a custom vocabulary.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
const customVocabularyItemProperty: lex_mixins.CfnBotPropsMixin.CustomVocabularyItemProperty = {
displayAs: 'displayAs',
phrase: 'phrase',
weight: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| display | string | The DisplayAs value for the custom vocabulary item from the custom vocabulary list. |
| phrase? | string | Specifies 1 - 4 words that should be recognized. |
| weight? | number | Specifies the degree to which the phrase recognition is boosted. |
displayAs?
Type:
string
(optional)
The DisplayAs value for the custom vocabulary item from the custom vocabulary list.
phrase?
Type:
string
(optional)
Specifies 1 - 4 words that should be recognized.
weight?
Type:
number
(optional)
Specifies the degree to which the phrase recognition is boosted.
The default value is 1.

.NET
Go
Java
Python
TypeScript