Interface CloudWatchLoggingConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudWatchLoggingConfiguration.Builder,CloudWatchLoggingConfiguration>
,SdkBuilder<CloudWatchLoggingConfiguration.Builder,CloudWatchLoggingConfiguration>
,SdkPojo
- Enclosing class:
- CloudWatchLoggingConfiguration
public static interface CloudWatchLoggingConfiguration.Builder extends SdkPojo, CopyableBuilder<CloudWatchLoggingConfiguration.Builder,CloudWatchLoggingConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudWatchLoggingConfiguration.Builder
enabled(Boolean enabled)
Enables CloudWatch logging.CloudWatchLoggingConfiguration.Builder
encryptionKeyArn(String encryptionKeyArn)
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.CloudWatchLoggingConfiguration.Builder
logGroupName(String logGroupName)
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.CloudWatchLoggingConfiguration.Builder
logStreamNamePrefix(String logStreamNamePrefix)
Prefix for the CloudWatch log stream name.CloudWatchLoggingConfiguration.Builder
logTypes(Map<String,? extends Collection<String>> logTypes)
The types of logs that you want to publish to CloudWatch.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
enabled
CloudWatchLoggingConfiguration.Builder enabled(Boolean enabled)
Enables CloudWatch logging.
- Parameters:
enabled
- Enables CloudWatch logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupName
CloudWatchLoggingConfiguration.Builder logGroupName(String logGroupName)
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
- Parameters:
logGroupName
- The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logStreamNamePrefix
CloudWatchLoggingConfiguration.Builder logStreamNamePrefix(String logStreamNamePrefix)
Prefix for the CloudWatch log stream name.
- Parameters:
logStreamNamePrefix
- Prefix for the CloudWatch log stream name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKeyArn
CloudWatchLoggingConfiguration.Builder encryptionKeyArn(String encryptionKeyArn)
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
- Parameters:
encryptionKeyArn
- The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logTypes
CloudWatchLoggingConfiguration.Builder logTypes(Map<String,? extends Collection<String>> logTypes)
The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. For more information including the supported worker types for Hive and Spark, see Logging for EMR Serverless with CloudWatch.
-
Key Valid Values:
SPARK_DRIVER
,SPARK_EXECUTOR
,HIVE_DRIVER
,TEZ_TASK
-
Array Members Valid Values:
STDOUT
,STDERR
,HIVE_LOG
,TEZ_AM
,SYSTEM_LOGS
- Parameters:
logTypes
- The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. For more information including the supported worker types for Hive and Spark, see Logging for EMR Serverless with CloudWatch.-
Key Valid Values:
SPARK_DRIVER
,SPARK_EXECUTOR
,HIVE_DRIVER
,TEZ_TASK
-
Array Members Valid Values:
STDOUT
,STDERR
,HIVE_LOG
,TEZ_AM
,SYSTEM_LOGS
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-