aws-cdk-lib.aws_lex.CfnBot.TestBotAliasSettingsProperty

interface TestBotAliasSettingsProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.TestBotAliasSettingsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_TestBotAliasSettingsProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.TestBotAliasSettingsProperty
Pythonaws_cdk.aws_lex.CfnBot.TestBotAliasSettingsProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » TestBotAliasSettingsProperty

Specifies configuration settings for the alias used to test the bot.

If the TestBotAliasSettings property is not specified, the settings are configured with default values.

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';

declare const sentimentAnalysisSettings: any;
const testBotAliasSettingsProperty: lex.CfnBot.TestBotAliasSettingsProperty = {
  botAliasLocaleSettings: [{
    botAliasLocaleSetting: {
      enabled: false,

      // the properties below are optional
      codeHookSpecification: {
        lambdaCodeHook: {
          codeHookInterfaceVersion: 'codeHookInterfaceVersion',
          lambdaArn: 'lambdaArn',
        },
      },
    },
    localeId: 'localeId',
  }],
  conversationLogSettings: {
    audioLogSettings: [{
      destination: {
        s3Bucket: {
          logPrefix: 'logPrefix',
          s3BucketArn: 's3BucketArn',

          // the properties below are optional
          kmsKeyArn: 'kmsKeyArn',
        },
      },
      enabled: false,
    }],
    textLogSettings: [{
      destination: {
        cloudWatch: {
          cloudWatchLogGroupArn: 'cloudWatchLogGroupArn',
          logPrefix: 'logPrefix',
        },
      },
      enabled: false,
    }],
  },
  description: 'description',
  sentimentAnalysisSettings: sentimentAnalysisSettings,
};

Properties

NameTypeDescription
botAliasLocaleSettings?IResolvable | IResolvable | BotAliasLocaleSettingsItemProperty[]Specifies settings that are unique to a locale.
conversationLogSettings?IResolvable | ConversationLogSettingsPropertySpecifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.
description?stringSpecifies a description for the test bot alias.
sentimentAnalysisSettings?anySpecifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.

botAliasLocaleSettings?

Type: IResolvable | IResolvable | BotAliasLocaleSettingsItemProperty[] (optional)

Specifies settings that are unique to a locale.

For example, you can use a different Lambda function depending on the bot's locale.


conversationLogSettings?

Type: IResolvable | ConversationLogSettingsProperty (optional)

Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.


description?

Type: string (optional)

Specifies a description for the test bot alias.


sentimentAnalysisSettings?

Type: any (optional)

Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.