Skip to content

CloudWatchLoggingConfiguration

Source code in docs_src/capo_emr_serverless/types/cloud_watch_logging_configuration.py
class CloudWatchLoggingConfiguration(TypedDict, closed=True):
    enabled: "bool"
    """<p>Enables CloudWatch logging.</p>"""
    log_group_name: NotRequired["capo_emr_serverless.types.log_group_name.LogGroupName"]
    """<p>The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.</p>"""
    log_stream_name_prefix: NotRequired[
        "capo_emr_serverless.types.log_stream_name_prefix.LogStreamNamePrefix"
    ]
    """<p>Prefix for the CloudWatch log stream name.</p>"""
    encryption_key_arn: NotRequired[
        "capo_emr_serverless.types.encryption_key_arn.EncryptionKeyArn"
    ]
    """<p>The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.</p>"""
    log_types: NotRequired["capo_emr_serverless.types.log_type_map.LogTypeMap"]
    """<p>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 <a href="https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/logging.html#jobs-log-storage-cw">Logging for EMR Serverless with CloudWatch</a>.</p> <ul> <li> <p> <b>Key Valid Values</b>: <code>SPARK_DRIVER</code>, <code>SPARK_EXECUTOR</code>, <code>HIVE_DRIVER</code>, <code>TEZ_TASK</code> </p> </li> <li> <p> <b>Array Members Valid Values</b>: <code>STDOUT</code>, <code>STDERR</code>, <code>HIVE_LOG</code>, <code>TEZ_AM</code>, <code>SYSTEM_LOGS</code> </p> </li> </ul>"""

enabled instance-attribute

enabled: bool

Enables CloudWatch logging.

encryption_key_arn instance-attribute

encryption_key_arn: NotRequired[EncryptionKeyArn]

The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.

log_group_name instance-attribute

log_group_name: NotRequired[LogGroupName]

The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.

log_stream_name_prefix instance-attribute

log_stream_name_prefix: NotRequired[LogStreamNamePrefix]

Prefix for the CloudWatch log stream name.

log_types instance-attribute

log_types: NotRequired[LogTypeMap]

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