Class CfnApplication.CloudWatchLoggingConfigurationProperty
The Amazon CloudWatch configuration for monitoring logs.
Inheritance
Namespace: Amazon.CDK.AWS.EMRServerless
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CloudWatchLoggingConfigurationProperty : Object, CfnApplication.ICloudWatchLoggingConfigurationProperty
Syntax (vb)
Public Class CloudWatchLoggingConfigurationProperty
Inherits Object
Implements CfnApplication.ICloudWatchLoggingConfigurationProperty
Remarks
You can configure your jobs to send log information to CloudWatch .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMRServerless;
var cloudWatchLoggingConfigurationProperty = new CloudWatchLoggingConfigurationProperty {
Enabled = false,
EncryptionKeyArn = "encryptionKeyArn",
LogGroupName = "logGroupName",
LogStreamNamePrefix = "logStreamNamePrefix",
LogTypeMap = new [] { new LogTypeMapKeyValuePairProperty {
Key = "key",
Value = new [] { "value" }
} }
};
Synopsis
Constructors
CloudWatchLoggingConfigurationProperty() |
Properties
Enabled | Enables CloudWatch logging. |
EncryptionKeyArn | The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs . |
LogGroupName | The name of the log group in Amazon CloudWatch Logs where you want to publish your logs. |
LogStreamNamePrefix | Prefix for the CloudWatch log stream name. |
LogTypeMap | The specific log-streams which need to be uploaded to CloudWatch. |
Constructors
CloudWatchLoggingConfigurationProperty()
public CloudWatchLoggingConfigurationProperty()
Properties
Enabled
Enables CloudWatch logging.
public object Enabled { get; set; }
Property Value
System.Object
Remarks
EncryptionKeyArn
The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs .
public string EncryptionKeyArn { get; set; }
Property Value
System.String
Remarks
LogGroupName
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
public string LogGroupName { get; set; }
Property Value
System.String
Remarks
LogStreamNamePrefix
Prefix for the CloudWatch log stream name.
public string LogStreamNamePrefix { get; set; }
Property Value
System.String
Remarks
LogTypeMap
The specific log-streams which need to be uploaded to CloudWatch.
public object LogTypeMap { get; set; }
Property Value
System.Object