interface CustomVocabularyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.CustomVocabularyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_CustomVocabularyProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.CustomVocabularyProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
custom | IResolvable | IResolvable | Custom [] | Specifies a list of words that you expect to be used during a conversation with your bot. |
customVocabularyItems
Type:
IResolvable
|
IResolvable
|
Custom
[]
Specifies a list of words that you expect to be used during a conversation with your bot.