interface TestBotAliasSettingsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.TestBotAliasSettingsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_TestBotAliasSettingsProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.TestBotAliasSettingsProperty |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| bot | IResolvable | (IResolvable | Bot)[] | Specifies settings that are unique to a locale. |
| conversation | IResolvable | Conversation | 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. |
| sentiment | any | Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances. |
botAliasLocaleSettings?
Type:
IResolvable | (IResolvable | Bot)[]
(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 | Conversation
(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.

.NET
Go
Java
Python
TypeScript