interface CustomVocabularyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.CustomVocabularyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_CustomVocabularyProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.CustomVocabularyProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.CustomVocabularyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » 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 { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
const customVocabularyProperty: lex_mixins.CfnBotPropsMixin.CustomVocabularyProperty = {
customVocabularyItems: [{
displayAs: 'displayAs',
phrase: 'phrase',
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)[]
(optional)
Specifies a list of words that you expect to be used during a conversation with your bot.

.NET
Go
Java
Python
TypeScript