aws-cdk-lib.aws_lex.CfnBot.CustomVocabularyProperty

interface CustomVocabularyProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.CustomVocabularyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_CustomVocabularyProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.CustomVocabularyProperty
Pythonaws_cdk.aws_lex.CfnBot.CustomVocabularyProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » CustomVocabularyProperty

Specifies a custom vocabulary.

A custom vocabulary is a list of words that you expect to be used during a conversation with your bot.

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 customVocabularyProperty: lex.CfnBot.CustomVocabularyProperty = {
  customVocabularyItems: [{
    phrase: 'phrase',

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

Properties

NameTypeDescription
customVocabularyItemsIResolvable | IResolvable | CustomVocabularyItemProperty[]Specifies a list of words that you expect to be used during a conversation with your bot.

customVocabularyItems

Type: IResolvable | IResolvable | CustomVocabularyItemProperty[]

Specifies a list of words that you expect to be used during a conversation with your bot.