aws-cdk-lib.aws_lex.CfnBot.CustomVocabularyItemProperty

interface CustomVocabularyItemProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.CustomVocabularyItemProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_CustomVocabularyItemProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.CustomVocabularyItemProperty
Pythonaws_cdk.aws_lex.CfnBot.CustomVocabularyItemProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » 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 { aws_lex as lex } from 'aws-cdk-lib';
const customVocabularyItemProperty: lex.CfnBot.CustomVocabularyItemProperty = {
  phrase: 'phrase',

  // the properties below are optional
  displayAs: 'displayAs',
  weight: 123,
};

Properties

NameTypeDescription
phrasestringSpecifies 1 - 4 words that should be recognized.
displayAs?stringThe DisplayAs value for the custom vocabulary item from the custom vocabulary list.
weight?numberSpecifies the degree to which the phrase recognition is boosted.

phrase

Type: string

Specifies 1 - 4 words that should be recognized.


displayAs?

Type: string (optional)

The DisplayAs value for the custom vocabulary item from the custom vocabulary list.


weight?

Type: number (optional)

Specifies the degree to which the phrase recognition is boosted.

The default value is 1.