# CustomVocabularyProperty

Struct · External

Specifies a custom vocabulary.

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// 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,
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

custom_vocabulary_property = lex.CfnBot.CustomVocabularyProperty(
    custom_vocabulary_items=[lex.CfnBot.CustomVocabularyItemProperty(
        phrase="phrase",

        # the properties below are optional
        display_as="displayAs",
        weight=123
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

CustomVocabularyProperty customVocabularyProperty = CustomVocabularyProperty.builder()
        .customVocabularyItems(List.of(CustomVocabularyItemProperty.builder()
                .phrase("phrase")

                // the properties below are optional
                .displayAs("displayAs")
                .weight(123)
                .build()))
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;

var customVocabularyProperty = new CustomVocabularyProperty {
    CustomVocabularyItems = new [] { new CustomVocabularyItemProperty {
        Phrase = "phrase",

        // the properties below are optional
        DisplayAs = "displayAs",
        Weight = 123
    } }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customVocabularyProperty := &CustomVocabularyProperty{
	CustomVocabularyItems: []interface{}{
		&CustomVocabularyItemProperty{
			Phrase: jsii.String("phrase"),

			// the properties below are optional
			DisplayAs: jsii.String("displayAs"),
			Weight: jsii.Number(123),
		},
	},
}
```

## Properties

- `customVocabularyItems`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.CustomVocabularyItemProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.CustomVocabularyItemProperty.html)[] (required) — Specifies a list of words that you expect to be used during a conversation with your bot.
