#[non_exhaustive]pub struct CloudWatchLoggingConfigurationBuilder { /* private fields */ }
Expand description
A builder for CloudWatchLoggingConfiguration
.
Implementations§
source§impl CloudWatchLoggingConfigurationBuilder
impl CloudWatchLoggingConfigurationBuilder
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Enables CloudWatch logging.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Enables CloudWatch logging.
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
sourcepub fn log_stream_name_prefix(self, input: impl Into<String>) -> Self
pub fn log_stream_name_prefix(self, input: impl Into<String>) -> Self
Prefix for the CloudWatch log stream name.
sourcepub fn set_log_stream_name_prefix(self, input: Option<String>) -> Self
pub fn set_log_stream_name_prefix(self, input: Option<String>) -> Self
Prefix for the CloudWatch log stream name.
sourcepub fn get_log_stream_name_prefix(&self) -> &Option<String>
pub fn get_log_stream_name_prefix(&self) -> &Option<String>
Prefix for the CloudWatch log stream name.
sourcepub fn encryption_key_arn(self, input: impl Into<String>) -> Self
pub fn encryption_key_arn(self, input: impl Into<String>) -> Self
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
sourcepub fn set_encryption_key_arn(self, input: Option<String>) -> Self
pub fn set_encryption_key_arn(self, input: Option<String>) -> Self
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
sourcepub fn get_encryption_key_arn(&self) -> &Option<String>
pub fn get_encryption_key_arn(&self) -> &Option<String>
The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
sourcepub fn log_types(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn log_types(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to log_types
.
To override the contents of this collection use set_log_types
.
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
sourcepub fn set_log_types(self, input: Option<HashMap<String, Vec<String>>>) -> Self
pub fn set_log_types(self, input: Option<HashMap<String, Vec<String>>>) -> Self
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
sourcepub fn get_log_types(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_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
sourcepub fn build(self) -> Result<CloudWatchLoggingConfiguration, BuildError>
pub fn build(self) -> Result<CloudWatchLoggingConfiguration, BuildError>
Consumes the builder and constructs a CloudWatchLoggingConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CloudWatchLoggingConfigurationBuilder
impl Clone for CloudWatchLoggingConfigurationBuilder
source§fn clone(&self) -> CloudWatchLoggingConfigurationBuilder
fn clone(&self) -> CloudWatchLoggingConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CloudWatchLoggingConfigurationBuilder
impl Default for CloudWatchLoggingConfigurationBuilder
source§fn default() -> CloudWatchLoggingConfigurationBuilder
fn default() -> CloudWatchLoggingConfigurationBuilder
source§impl PartialEq for CloudWatchLoggingConfigurationBuilder
impl PartialEq for CloudWatchLoggingConfigurationBuilder
source§fn eq(&self, other: &CloudWatchLoggingConfigurationBuilder) -> bool
fn eq(&self, other: &CloudWatchLoggingConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.