interface BotAliasLocaleSettingsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBotAlias.BotAliasLocaleSettingsProperty |
Java | software.amazon.awscdk.services.lex.CfnBotAlias.BotAliasLocaleSettingsProperty |
Python | aws_cdk.aws_lex.CfnBotAlias.BotAliasLocaleSettingsProperty |
TypeScript | @aws-cdk/aws-lex » CfnBotAlias » BotAliasLocaleSettingsProperty |
Specifies settings that are unique to a locale.
For example, you can use different Lambda function depending on the bot's locale.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lex from '@aws-cdk/aws-lex';
const botAliasLocaleSettingsProperty: lex.CfnBotAlias.BotAliasLocaleSettingsProperty = {
enabled: false,
// the properties below are optional
codeHookSpecification: {
lambdaCodeHook: {
codeHookInterfaceVersion: 'codeHookInterfaceVersion',
lambdaArn: 'lambdaArn',
},
},
};
Properties
Name | Type | Description |
---|---|---|
enabled | boolean | IResolvable | Determines whether the locale is enabled for the bot. |
code | IResolvable | Code | Specifies the Lambda function that should be used in the locale. |
enabled
Type:
boolean |
IResolvable
Determines whether the locale is enabled for the bot.
If the value is false
, the locale isn't available for use.
codeHookSpecification?
Type:
IResolvable
|
Code
(optional)
Specifies the Lambda function that should be used in the locale.