Skip to content
v2.277.0

TextLogSettingProperty Struct ​

Defines settings to enable text conversation logs.

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 textLogSettingProperty: lex.CfnBot.TextLogSettingProperty = {
  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

text_log_setting_property = 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.*;

TextLogSettingProperty textLogSettingProperty = TextLogSettingProperty.builder()
        .destination(TextLogDestinationProperty.builder()
                .cloudWatch(CloudWatchLogGroupLogDestinationProperty.builder()
                        .cloudWatchLogGroupArn("cloudWatchLogGroupArn")
                        .logPrefix("logPrefix")
                        .build())
                .build())
        .enabled(false)
        .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 textLogSettingProperty = 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"

textLogSettingProperty := &TextLogSettingProperty{
	Destination: &TextLogDestinationProperty{
		CloudWatch: &CloudWatchLogGroupLogDestinationProperty{
			CloudWatchLogGroupArn: jsii.String("cloudWatchLogGroupArn"),
			LogPrefix: jsii.String("logPrefix"),
		},
	},
	Enabled: jsii.Boolean(false),
}

Properties ​

destinationIResolvable | CfnBot.TextLogDestinationPropertydestinationtyping.Union[IResolvable, TextLogDestinationProperty]destinationIResolvableDestinationIResolvableDestinationinterface{}required#
Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{}required#
Determines whether conversation logs should be stored for an alias.