Skip to content
v2.278.0

CloudWatchLoggingConfigurationProperty Struct ​

Configuration settings for delivering logs to Amazon CloudWatch log groups.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_athena as athena } from 'aws-cdk-lib';
const cloudWatchLoggingConfigurationProperty: athena.CfnWorkGroup.CloudWatchLoggingConfigurationProperty = {
  enabled: false,
  logGroup: 'logGroup',
  logStreamNamePrefix: 'logStreamNamePrefix',
  logTypes: {
    logTypesKey: ['logTypes'],
  },
};
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_athena as athena

cloud_watch_logging_configuration_property = athena.CfnWorkGroup.CloudWatchLoggingConfigurationProperty(
    enabled=False,
    log_group="logGroup",
    log_stream_name_prefix="logStreamNamePrefix",
    log_types={
        "log_types_key": ["logTypes"]
    }
)
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.athena.*;

CloudWatchLoggingConfigurationProperty cloudWatchLoggingConfigurationProperty = CloudWatchLoggingConfigurationProperty.builder()
        .enabled(false)
        .logGroup("logGroup")
        .logStreamNamePrefix("logStreamNamePrefix")
        .logTypes(Map.of(
                "logTypesKey", List.of("logTypes")))
        .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.Athena;

var cloudWatchLoggingConfigurationProperty = new CloudWatchLoggingConfigurationProperty {
    Enabled = false,
    LogGroup = "logGroup",
    LogStreamNamePrefix = "logStreamNamePrefix",
    LogTypes = new Dictionary<string, string[]> {
        { "logTypesKey", new [] { "logTypes" } }
    }
};
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"

cloudWatchLoggingConfigurationProperty := &CloudWatchLoggingConfigurationProperty{
	Enabled: jsii.Boolean(false),
	LogGroup: jsii.String("logGroup"),
	LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
	LogTypes: map[string][]*string{
		"logTypesKey": []*string{
			jsii.String("logTypes"),
		},
	},
}

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Enables CloudWatch logging.
logGroupoptionalstringlog_groupoptionalstrlogGroupoptionalStringLogGroupoptionalstringLogGroupoptional*string #
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
logStreamNamePrefixoptionalstringlog_stream_name_prefixoptionalstrlogStreamNamePrefixoptionalStringLogStreamNamePrefixoptionalstringLogStreamNamePrefixoptional*string #
Prefix for the CloudWatch log stream name.
logTypesoptionalIResolvable | { [key: string]: string[] }log_typesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.List[str]]]logTypesoptionalIResolvableLogTypesoptionalIResolvableLogTypesoptionalinterface{} #
The types of logs that you want to publish to CloudWatch.