interface CloudWatchLogConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EMR.CfnCluster.CloudWatchLogConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnCluster_CloudWatchLogConfigurationProperty |
Java | software.amazon.awscdk.services.emr.CfnCluster.CloudWatchLogConfigurationProperty |
Python | aws_cdk.aws_emr.CfnCluster.CloudWatchLogConfigurationProperty |
TypeScript | aws-cdk-lib » aws_emr » CfnCluster » CloudWatchLogConfigurationProperty |
Holds CloudWatch log configuration settings and metadata that specify settings like log files to monitor and where to send them.
Example
// 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 cloudWatchLogConfigurationProperty: emr.CfnCluster.CloudWatchLogConfigurationProperty = {
enabled: false,
// the properties below are optional
encryptionKeyArn: 'encryptionKeyArn',
logGroupName: 'logGroupName',
logStreamNamePrefix: 'logStreamNamePrefix',
logTypes: {
logTypesKey: ['logTypes'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| enabled | boolean | IResolvable | Specifies if CloudWatch logging is enabled. |
| encryption | string | The ARN of the encryption key used to encrypt the logs. |
| log | string | The name of the CloudWatch log group where logs are published. |
| log | string | The prefix of the log stream name. |
| log | IResolvable | { [string]: string[] } | A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. |
enabled
Type:
boolean | IResolvable
Specifies if CloudWatch logging is enabled.
encryptionKeyArn?
Type:
string
(optional)
The ARN of the encryption key used to encrypt the logs.
logGroupName?
Type:
string
(optional)
The name of the CloudWatch log group where logs are published.
logStreamNamePrefix?
Type:
string
(optional)
The prefix of the log stream name.
logTypes?
Type:
IResolvable | { [string]: string[] }
(optional)
A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch.
Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR.

.NET
Go
Java
Python
TypeScript