MonitoringConfigurationProperty Struct
Contains CloudWatch log configuration metadata and settings.
| 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_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
# 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
// 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();
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" } }
}
}
};
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
cloudWatchLogConfigurationoptionalIResolvable | CfnCluster.cloud_watch_log_configurationoptionaltyping.Union[IResolvable, CloudWatchLogConfigurationProperty]cloudWatchLogConfigurationoptionalIResolvableCloudWatchLogConfigurationoptionalIResolvableCloudWatchLogConfigurationoptionalinterface{} #Holds CloudWatch log configuration settings and metadata that specify settings like log files to monitor and where to send them.