# ModuleLoggingConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `cloudWatchLogGroupArn`: string — The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.

  > `CloudWatchLogGroupArn` is available only as a return value, accessible when specified as an attribute in the [`Fn:GetAtt`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#aws-resource-mwaa-environment-return-values) intrinsic function. Any value you provide for `CloudWatchLogGroupArn` is discarded by Amazon MWAA.

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs.

- `logLevel`: string — Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs.
