ConversationLogSettingsProperty Struct
Configures conversation logging that saves audio, text, and metadata for the conversations with your users.
| Source | |
|---|---|
| Type last changed |
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';
const conversationLogSettingsProperty: lex.CfnBot.ConversationLogSettingsProperty = {
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,
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
conversation_log_settings_property = lex.CfnBot.ConversationLogSettingsProperty(
audio_log_settings=[lex.CfnBot.AudioLogSettingProperty(
destination=lex.CfnBot.AudioLogDestinationProperty(
s3_bucket=lex.CfnBot.S3BucketLogDestinationProperty(
log_prefix="logPrefix",
s3_bucket_arn="s3BucketArn",
# the properties below are optional
kms_key_arn="kmsKeyArn"
)
),
enabled=False
)],
text_log_settings=[lex.CfnBot.TextLogSettingProperty(
destination=lex.CfnBot.TextLogDestinationProperty(
cloud_watch=lex.CfnBot.CloudWatchLogGroupLogDestinationProperty(
cloud_watch_log_group_arn="cloudWatchLogGroupArn",
log_prefix="logPrefix"
)
),
enabled=False
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
ConversationLogSettingsProperty conversationLogSettingsProperty = ConversationLogSettingsProperty.builder()
.audioLogSettings(List.of(AudioLogSettingProperty.builder()
.destination(AudioLogDestinationProperty.builder()
.s3Bucket(S3BucketLogDestinationProperty.builder()
.logPrefix("logPrefix")
.s3BucketArn("s3BucketArn")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.enabled(false)
.build()))
.textLogSettings(List.of(TextLogSettingProperty.builder()
.destination(TextLogDestinationProperty.builder()
.cloudWatch(CloudWatchLogGroupLogDestinationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.logPrefix("logPrefix")
.build())
.build())
.enabled(false)
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 conversationLogSettingsProperty = 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
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
conversationLogSettingsProperty := &ConversationLogSettingsProperty{
AudioLogSettings: []interface{}{
&AudioLogSettingProperty{
Destination: &AudioLogDestinationProperty{
S3Bucket: &S3BucketLogDestinationProperty{
LogPrefix: jsii.String("logPrefix"),
S3BucketArn: jsii.String("s3BucketArn"),
// the properties below are optional
KmsKeyArn: jsii.String("kmsKeyArn"),
},
},
Enabled: jsii.Boolean(false),
},
},
TextLogSettings: []interface{}{
&TextLogSettingProperty{
Destination: &TextLogDestinationProperty{
CloudWatch: &CloudWatchLogGroupLogDestinationProperty{
CloudWatchLogGroupArn: jsii.String("cloudWatchLogGroupArn"),
LogPrefix: jsii.String("logPrefix"),
},
},
Enabled: jsii.Boolean(false),
},
},
}
Properties
audioLogSettingsoptionalIResolvable | IResolvable | CfnBot.AudioLogSettingProperty[]audio_log_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AudioLogSettingProperty]]]audioLogSettingsoptionalIResolvableAudioLogSettingsoptionalIResolvableAudioLogSettingsoptionalinterface{} #The Amazon S3 settings for logging audio to an S3 bucket.
textLogSettingsoptionalIResolvable | IResolvable | CfnBot.TextLogSettingProperty[]text_log_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TextLogSettingProperty]]]textLogSettingsoptionalIResolvableTextLogSettingsoptionalIResolvableTextLogSettingsoptionalinterface{} #The Amazon CloudWatch Logs settings for logging text and metadata.