# MonitoringConfigurationProperty

Contains CloudWatch log configuration metadata and settings.

- Source: Generated at build time
- Type last changed: v2.247.0 · 2 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const monitoringConfigurationProperty: emr.CfnCluster.MonitoringConfigurationProperty = {
  cloudWatchLogConfiguration: {
    enabled: false,

    // the properties below are optional
    encryptionKeyArn: 'encryptionKeyArn',
    logGroupName: 'logGroupName',
    logStreamNamePrefix: 'logStreamNamePrefix',
    logTypes: {
      logTypesKey: ['logTypes'],
    },
  },
};
```

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_emr as emr

monitoring_configuration_property = emr.CfnCluster.MonitoringConfigurationProperty(
    cloud_watch_log_configuration=emr.CfnCluster.CloudWatchLogConfigurationProperty(
        enabled=False,

        # the properties below are optional
        encryption_key_arn="encryptionKeyArn",
        log_group_name="logGroupName",
        log_stream_name_prefix="logStreamNamePrefix",
        log_types={
            "log_types_key": ["logTypes"]
        }
    )
)
```

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.emr.*;

MonitoringConfigurationProperty monitoringConfigurationProperty = MonitoringConfigurationProperty.builder()
        .cloudWatchLogConfiguration(CloudWatchLogConfigurationProperty.builder()
                .enabled(false)

                // the properties below are optional
                .encryptionKeyArn("encryptionKeyArn")
                .logGroupName("logGroupName")
                .logStreamNamePrefix("logStreamNamePrefix")
                .logTypes(Map.of(
                        "logTypesKey", List.of("logTypes")))
                .build())
        .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.EMR;

var monitoringConfigurationProperty = new MonitoringConfigurationProperty {
    CloudWatchLogConfiguration = new CloudWatchLogConfigurationProperty {
        Enabled = false,

        // the properties below are optional
        EncryptionKeyArn = "encryptionKeyArn",
        LogGroupName = "logGroupName",
        LogStreamNamePrefix = "logStreamNamePrefix",
        LogTypes = new Dictionary<string, string[]> {
            { "logTypesKey", new [] { "logTypes" } }
        }
    }
};
```

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"

monitoringConfigurationProperty := &MonitoringConfigurationProperty{
	CloudWatchLogConfiguration: &CloudWatchLogConfigurationProperty{
		Enabled: jsii.Boolean(false),

		// the properties below are optional
		EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		LogGroupName: jsii.String("logGroupName"),
		LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
		LogTypes: map[string][]*string{
			"logTypesKey": []*string{
				jsii.String("logTypes"),
			},
		},
	},
}
```

## Properties

- `cloudWatchLogConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.CloudWatchLogConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnCluster.CloudWatchLogConfigurationProperty.html) — Holds CloudWatch log configuration settings and metadata that specify settings like log files to monitor and where to send them.
