MonitoringConfigurationProperty Struct
Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.
| 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_athena as athena } from 'aws-cdk-lib';
const monitoringConfigurationProperty: athena.CfnWorkGroup.MonitoringConfigurationProperty = {
cloudWatchLoggingConfiguration: {
enabled: false,
logGroup: 'logGroup',
logStreamNamePrefix: 'logStreamNamePrefix',
logTypes: {
logTypesKey: ['logTypes'],
},
},
managedLoggingConfiguration: {
enabled: false,
kmsKey: 'kmsKey',
},
s3LoggingConfiguration: {
enabled: false,
kmsKey: 'kmsKey',
logLocation: 'logLocation',
},
};
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
monitoring_configuration_property = athena.CfnWorkGroup.MonitoringConfigurationProperty(
cloud_watch_logging_configuration=athena.CfnWorkGroup.CloudWatchLoggingConfigurationProperty(
enabled=False,
log_group="logGroup",
log_stream_name_prefix="logStreamNamePrefix",
log_types={
"log_types_key": ["logTypes"]
}
),
managed_logging_configuration=athena.CfnWorkGroup.ManagedLoggingConfigurationProperty(
enabled=False,
kms_key="kmsKey"
),
s3_logging_configuration=athena.CfnWorkGroup.S3LoggingConfigurationProperty(
enabled=False,
kms_key="kmsKey",
log_location="logLocation"
)
)
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.*;
MonitoringConfigurationProperty monitoringConfigurationProperty = MonitoringConfigurationProperty.builder()
.cloudWatchLoggingConfiguration(CloudWatchLoggingConfigurationProperty.builder()
.enabled(false)
.logGroup("logGroup")
.logStreamNamePrefix("logStreamNamePrefix")
.logTypes(Map.of(
"logTypesKey", List.of("logTypes")))
.build())
.managedLoggingConfiguration(ManagedLoggingConfigurationProperty.builder()
.enabled(false)
.kmsKey("kmsKey")
.build())
.s3LoggingConfiguration(S3LoggingConfigurationProperty.builder()
.enabled(false)
.kmsKey("kmsKey")
.logLocation("logLocation")
.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.Athena;
var monitoringConfigurationProperty = new MonitoringConfigurationProperty {
CloudWatchLoggingConfiguration = new CloudWatchLoggingConfigurationProperty {
Enabled = false,
LogGroup = "logGroup",
LogStreamNamePrefix = "logStreamNamePrefix",
LogTypes = new Dictionary<string, string[]> {
{ "logTypesKey", new [] { "logTypes" } }
}
},
ManagedLoggingConfiguration = new ManagedLoggingConfigurationProperty {
Enabled = false,
KmsKey = "kmsKey"
},
S3LoggingConfiguration = new S3LoggingConfigurationProperty {
Enabled = false,
KmsKey = "kmsKey",
LogLocation = "logLocation"
}
};
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"
monitoringConfigurationProperty := &MonitoringConfigurationProperty{
CloudWatchLoggingConfiguration: &CloudWatchLoggingConfigurationProperty{
Enabled: jsii.Boolean(false),
LogGroup: jsii.String("logGroup"),
LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
LogTypes: map[string][]*string{
"logTypesKey": []*string{
jsii.String("logTypes"),
},
},
},
ManagedLoggingConfiguration: &ManagedLoggingConfigurationProperty{
Enabled: jsii.Boolean(false),
KmsKey: jsii.String("kmsKey"),
},
S3LoggingConfiguration: &S3LoggingConfigurationProperty{
Enabled: jsii.Boolean(false),
KmsKey: jsii.String("kmsKey"),
LogLocation: jsii.String("logLocation"),
},
}
Properties
cloudWatchLoggingConfigurationoptionalIResolvable | CfnWorkGroup.cloud_watch_logging_configurationoptionaltyping.Union[IResolvable, CloudWatchLoggingConfigurationProperty]cloudWatchLoggingConfigurationoptionalIResolvableCloudWatchLoggingConfigurationoptionalIResolvableCloudWatchLoggingConfigurationoptionalinterface{} #Configuration settings for delivering logs to Amazon CloudWatch log groups.
managedLoggingConfigurationoptionalIResolvable | CfnWorkGroup.managed_logging_configurationoptionaltyping.Union[IResolvable, ManagedLoggingConfigurationProperty]managedLoggingConfigurationoptionalIResolvableManagedLoggingConfigurationoptionalIResolvableManagedLoggingConfigurationoptionalinterface{} #Configuration settings for managed log persistence.
s3LoggingConfigurationoptionalIResolvable | CfnWorkGroup.s3_logging_configurationoptionaltyping.Union[IResolvable, S3LoggingConfigurationProperty]s3LoggingConfigurationoptionalIResolvableS3LoggingConfigurationoptionalIResolvableS3LoggingConfigurationoptionalinterface{} #Configuration settings for delivering logs to Amazon S3 buckets.