aws-cdk-lib.aws_lex.CfnBot.BotAliasLocaleSettingsProperty

interface BotAliasLocaleSettingsProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.BotAliasLocaleSettingsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_BotAliasLocaleSettingsProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.BotAliasLocaleSettingsProperty
Pythonaws_cdk.aws_lex.CfnBot.BotAliasLocaleSettingsProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » 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 { aws_lex as lex } from 'aws-cdk-lib';
const botAliasLocaleSettingsProperty: lex.CfnBot.BotAliasLocaleSettingsProperty = {
  enabled: false,

  // the properties below are optional
  codeHookSpecification: {
    lambdaCodeHook: {
      codeHookInterfaceVersion: 'codeHookInterfaceVersion',
      lambdaArn: 'lambdaArn',
    },
  },
};

Properties

NameTypeDescription
enabledboolean | IResolvableDetermines whether the locale is enabled for the bot.
codeHookSpecification?IResolvable | CodeHookSpecificationPropertySpecifies 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 | CodeHookSpecificationProperty (optional)

Specifies the Lambda function that should be used in the locale.