Skip to content
v2.277.0

ModuleLoggingConfigurationProperty Struct ​

Defines the type of logs to send for the Apache Airflow log type (e.g. DagProcessingLogs ).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mwaa as mwaa } from 'aws-cdk-lib';
const moduleLoggingConfigurationProperty: mwaa.CfnEnvironment.ModuleLoggingConfigurationProperty = {
  cloudWatchLogGroupArn: 'cloudWatchLogGroupArn',
  enabled: false,
  logLevel: 'logLevel',
};
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_mwaa as mwaa

module_logging_configuration_property = mwaa.CfnEnvironment.ModuleLoggingConfigurationProperty(
    cloud_watch_log_group_arn="cloudWatchLogGroupArn",
    enabled=False,
    log_level="logLevel"
)
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.mwaa.*;

ModuleLoggingConfigurationProperty moduleLoggingConfigurationProperty = ModuleLoggingConfigurationProperty.builder()
        .cloudWatchLogGroupArn("cloudWatchLogGroupArn")
        .enabled(false)
        .logLevel("logLevel")
        .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.MWAA;

var moduleLoggingConfigurationProperty = new ModuleLoggingConfigurationProperty {
    CloudWatchLogGroupArn = "cloudWatchLogGroupArn",
    Enabled = false,
    LogLevel = "logLevel"
};
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"

moduleLoggingConfigurationProperty := &ModuleLoggingConfigurationProperty{
	CloudWatchLogGroupArn: jsii.String("cloudWatchLogGroupArn"),
	Enabled: jsii.Boolean(false),
	LogLevel: jsii.String("logLevel"),
}

Properties ​

cloudWatchLogGroupArnoptionalstringcloud_watch_log_group_arnoptionalstrcloudWatchLogGroupArnoptionalStringCloudWatchLogGroupArnoptionalstringCloudWatchLogGroupArnoptional*string #
The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.
notes

CloudWatchLogGroupArn is available only as a return value, accessible when specified as an attribute in the Fn:GetAtt intrinsic function. Any value you provide for CloudWatchLogGroupArn is discarded by Amazon MWAA.

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs.
logLeveloptionalstringlog_leveloptionalstrlogLeveloptionalStringLogLeveloptionalstringLogLeveloptional*string #
Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs.