interface BotLocaleProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.BotLocaleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_BotLocaleProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.BotLocaleProperty |
Python | aws_cdk.aws_lex.CfnBot.BotLocaleProperty |
TypeScript | aws-cdk-lib » aws_lex » CfnBot » BotLocaleProperty |
Provides configuration information for a locale.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-botlocale.html
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
Name | Type | Description |
---|---|---|
locale | string | The identifier of the language and locale that the bot will be used in. |
nlu | number | Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent , AMAZON.KendraSearchIntent , or both when returning alternative intents. You must configure an AMAZON.FallbackIntent . AMAZON.KendraSearchIntent is only inserted if it is configured for the bot. |
custom | IResolvable | Custom | Specifies a custom vocabulary to use with a specific locale. |
description? | string | A description of the bot locale. |
intents? | IResolvable | IResolvable | Intent [] | One or more intents defined for the locale. |
slot | IResolvable | IResolvable | Slot [] | One or more slot types defined for the locale. |
voice | IResolvable | Voice | Defines settings for using an Amazon Polly voice to communicate with a user. |
localeId
Type:
string
The identifier of the language and locale that the bot will be used in.
The string must match one of the supported locales.
nluConfidenceThreshold
Type:
number
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
, AMAZON.KendraSearchIntent
, or both when returning alternative intents. You must configure an AMAZON.FallbackIntent
. AMAZON.KendraSearchIntent
is only inserted if it is configured for the bot.
customVocabulary?
Type:
IResolvable
|
Custom
(optional)
Specifies a custom vocabulary to use with a specific locale.
description?
Type:
string
(optional)
A description of the bot locale.
Use this to help identify the bot locale in lists.
intents?
Type:
IResolvable
|
IResolvable
|
Intent
[]
(optional)
One or more intents defined for the locale.
slotTypes?
Type:
IResolvable
|
IResolvable
|
Slot
[]
(optional)
One or more slot types defined for the locale.
voiceSettings?
Type:
IResolvable
|
Voice
(optional)
Defines settings for using an Amazon Polly voice to communicate with a user.
Valid values include:
standard
neural
long-form
generative