Interface CfnApplication.CloudWatchLoggingConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.CloudWatchLoggingConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
@Stability(Stable)
public static interface CfnApplication.CloudWatchLoggingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The Amazon CloudWatch configuration for monitoring logs.
You can configure your jobs to send log information to CloudWatch.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emrserverless.*;
CloudWatchLoggingConfigurationProperty cloudWatchLoggingConfigurationProperty = CloudWatchLoggingConfigurationProperty.builder()
.enabled(false)
.encryptionKeyArn("encryptionKeyArn")
.logGroupName("logGroupName")
.logStreamNamePrefix("logStreamNamePrefix")
.logTypeMap(List.of(LogTypeMapKeyValuePairProperty.builder()
.key("key")
.value(List.of("value"))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplication.CloudWatchLoggingConfigurationPropertystatic final classAn implementation forCfnApplication.CloudWatchLoggingConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectEnables CloudWatch logging.default StringThe AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.default StringThe name of the log group in Amazon CloudWatch Logs where you want to publish your logs.default StringPrefix for the CloudWatch log stream name.default ObjectThe specific log-streams which need to be uploaded to CloudWatch.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnabled
Enables CloudWatch logging.Returns union: either
BooleanorIResolvableDefault: - false
- See Also:
-
getEncryptionKeyArn
The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.- See Also:
-
getLogGroupName
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.- See Also:
-
getLogStreamNamePrefix
Prefix for the CloudWatch log stream name.- See Also:
-
getLogTypeMap
The specific log-streams which need to be uploaded to CloudWatch.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.LogTypeMapKeyValuePairProperty>- See Also:
-
builder
-