#[non_exhaustive]pub struct CloudWatchLoggingConfiguration {
pub enabled: Option<bool>,
pub log_group_name: Option<String>,
pub log_stream_name_prefix: Option<String>,
pub encryption_key_arn: Option<String>,
pub log_types: Option<HashMap<String, Vec<String>>>,
}
Expand description
The Amazon CloudWatch configuration for monitoring logs. You can configure your jobs to send log information to CloudWatch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.enabled: Option<bool>
Enables CloudWatch logging.
log_group_name: Option<String>
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
log_stream_name_prefix: Option<String>
Prefix for the CloudWatch log stream name.
encryption_key_arn: Option<String>
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
log_types: Option<HashMap<String, Vec<String>>>
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
Implementations§
source§impl CloudWatchLoggingConfiguration
impl CloudWatchLoggingConfiguration
sourcepub fn log_group_name(&self) -> Option<&str>
pub fn log_group_name(&self) -> Option<&str>
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
sourcepub fn log_stream_name_prefix(&self) -> Option<&str>
pub fn log_stream_name_prefix(&self) -> Option<&str>
Prefix for the CloudWatch log stream name.
sourcepub fn encryption_key_arn(&self) -> Option<&str>
pub fn encryption_key_arn(&self) -> Option<&str>
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
sourcepub fn log_types(&self) -> Option<&HashMap<String, Vec<String>>>
pub fn log_types(&self) -> Option<&HashMap<String, Vec<String>>>
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
source§impl CloudWatchLoggingConfiguration
impl CloudWatchLoggingConfiguration
sourcepub fn builder() -> CloudWatchLoggingConfigurationBuilder
pub fn builder() -> CloudWatchLoggingConfigurationBuilder
Creates a new builder-style object to manufacture CloudWatchLoggingConfiguration
.
Trait Implementations§
source§impl Clone for CloudWatchLoggingConfiguration
impl Clone for CloudWatchLoggingConfiguration
source§fn clone(&self) -> CloudWatchLoggingConfiguration
fn clone(&self) -> CloudWatchLoggingConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<CloudWatchLoggingConfiguration> for CloudWatchLoggingConfiguration
impl PartialEq<CloudWatchLoggingConfiguration> for CloudWatchLoggingConfiguration
source§fn eq(&self, other: &CloudWatchLoggingConfiguration) -> bool
fn eq(&self, other: &CloudWatchLoggingConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.