Class CfnBotAliasProps
Properties for defining a CfnBotAlias
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class CfnBotAliasProps : Object, ICfnBotAliasProps
Syntax (vb)
Public Class CfnBotAliasProps
Inherits Object
Implements ICfnBotAliasProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lex-botalias.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var sentimentAnalysisSettings;
var cfnBotAliasProps = new CfnBotAliasProps {
BotAliasName = "botAliasName",
BotId = "botId",
// the properties below are optional
BotAliasLocaleSettings = new [] { new BotAliasLocaleSettingsItemProperty {
BotAliasLocaleSetting = new BotAliasLocaleSettingsProperty {
Enabled = false,
// the properties below are optional
CodeHookSpecification = new CodeHookSpecificationProperty {
LambdaCodeHook = new LambdaCodeHookProperty {
CodeHookInterfaceVersion = "codeHookInterfaceVersion",
LambdaArn = "lambdaArn"
}
}
},
LocaleId = "localeId"
} },
BotAliasTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
BotVersion = "botVersion",
ConversationLogSettings = new ConversationLogSettingsProperty {
AudioLogSettings = new [] { new AudioLogSettingProperty {
Destination = new AudioLogDestinationProperty {
S3Bucket = new S3BucketLogDestinationProperty {
LogPrefix = "logPrefix",
S3BucketArn = "s3BucketArn",
// the properties below are optional
KmsKeyArn = "kmsKeyArn"
}
},
Enabled = false
} },
TextLogSettings = new [] { new TextLogSettingProperty {
Destination = new TextLogDestinationProperty {
CloudWatch = new CloudWatchLogGroupLogDestinationProperty {
CloudWatchLogGroupArn = "cloudWatchLogGroupArn",
LogPrefix = "logPrefix"
}
},
Enabled = false
} }
},
Description = "description",
SentimentAnalysisSettings = sentimentAnalysisSettings
};
Synopsis
Constructors
CfnBotAliasProps() |
Properties
BotAliasLocaleSettings | Specifies settings that are unique to a locale. |
BotAliasName | The name of the bot alias. |
BotAliasTags | An array of key-value pairs to apply to this resource. |
BotId | The unique identifier of the bot. |
BotVersion | The version of the bot that the bot alias references. |
ConversationLogSettings | Specifies whether Amazon Lex logs text and audio for conversations with the bot. |
Description | The description of the bot alias. |
SentimentAnalysisSettings | Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances. |
Constructors
CfnBotAliasProps()
public CfnBotAliasProps()
Properties
BotAliasLocaleSettings
Specifies settings that are unique to a locale.
public object BotAliasLocaleSettings { get; set; }
Property Value
System.Object
Remarks
For example, you can use different Lambda function depending on the bot's locale.
BotAliasName
The name of the bot alias.
public string BotAliasName { get; set; }
Property Value
System.String
Remarks
BotAliasTags
An array of key-value pairs to apply to this resource.
public object BotAliasTags { get; set; }
Property Value
System.Object
Remarks
You can only add tags when you specify an alias.
For more information, see Tag .
BotId
The unique identifier of the bot.
public string BotId { get; set; }
Property Value
System.String
Remarks
BotVersion
The version of the bot that the bot alias references.
public string BotVersion { get; set; }
Property Value
System.String
Remarks
ConversationLogSettings
Specifies whether Amazon Lex logs text and audio for conversations with the bot.
public object ConversationLogSettings { get; set; }
Property Value
System.Object
Remarks
When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch logs. Audio logs store input in Amazon S3 .
Description
The description of the bot alias.
public string Description { get; set; }
Property Value
System.String
Remarks
SentimentAnalysisSettings
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
public object SentimentAnalysisSettings { get; set; }
Property Value
System.Object