# 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.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

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

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

- `botAliasLocaleSettings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.BotAliasLocaleSettingsItemProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.BotAliasLocaleSettingsItemProperty.html)[] — Specifies settings that are unique to a locale.

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

- `conversationLogSettings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.ConversationLogSettingsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.ConversationLogSettingsProperty.html) — Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.

- `description`: string — Specifies a description for the test bot alias.

- `sentimentAnalysisSettings`: any — Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
