Struct aws_sdk_lambda::types::builders::LoggingConfigBuilder
source · #[non_exhaustive]pub struct LoggingConfigBuilder { /* private fields */ }
Expand description
A builder for LoggingConfig
.
Implementations§
source§impl LoggingConfigBuilder
impl LoggingConfigBuilder
sourcepub fn log_format(self, input: LogFormat) -> Self
pub fn log_format(self, input: LogFormat) -> Self
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
sourcepub fn set_log_format(self, input: Option<LogFormat>) -> Self
pub fn set_log_format(self, input: Option<LogFormat>) -> Self
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
sourcepub fn get_log_format(&self) -> &Option<LogFormat>
pub fn get_log_format(&self) -> &Option<LogFormat>
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
sourcepub fn application_log_level(self, input: ApplicationLogLevel) -> Self
pub fn application_log_level(self, input: ApplicationLogLevel) -> Self
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE
is the highest level and FATAL
is the lowest.
sourcepub fn set_application_log_level(
self,
input: Option<ApplicationLogLevel>
) -> Self
pub fn set_application_log_level( self, input: Option<ApplicationLogLevel> ) -> Self
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE
is the highest level and FATAL
is the lowest.
sourcepub fn get_application_log_level(&self) -> &Option<ApplicationLogLevel>
pub fn get_application_log_level(&self) -> &Option<ApplicationLogLevel>
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE
is the highest level and FATAL
is the lowest.
sourcepub fn system_log_level(self, input: SystemLogLevel) -> Self
pub fn system_log_level(self, input: SystemLogLevel) -> Self
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG
is the highest level and WARN
is the lowest.
sourcepub fn set_system_log_level(self, input: Option<SystemLogLevel>) -> Self
pub fn set_system_log_level(self, input: Option<SystemLogLevel>) -> Self
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG
is the highest level and WARN
is the lowest.
sourcepub fn get_system_log_level(&self) -> &Option<SystemLogLevel>
pub fn get_system_log_level(&self) -> &Option<SystemLogLevel>
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG
is the highest level and WARN
is the lowest.
sourcepub fn log_group(self, input: impl Into<String>) -> Self
pub fn log_group(self, input: impl Into<String>) -> Self
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/
. To use a different log group, enter an existing log group or enter a new log group name.
sourcepub fn set_log_group(self, input: Option<String>) -> Self
pub fn set_log_group(self, input: Option<String>) -> Self
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/
. To use a different log group, enter an existing log group or enter a new log group name.
sourcepub fn get_log_group(&self) -> &Option<String>
pub fn get_log_group(&self) -> &Option<String>
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/
. To use a different log group, enter an existing log group or enter a new log group name.
sourcepub fn build(self) -> LoggingConfig
pub fn build(self) -> LoggingConfig
Consumes the builder and constructs a LoggingConfig
.
Trait Implementations§
source§impl Clone for LoggingConfigBuilder
impl Clone for LoggingConfigBuilder
source§fn clone(&self) -> LoggingConfigBuilder
fn clone(&self) -> LoggingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoggingConfigBuilder
impl Debug for LoggingConfigBuilder
source§impl Default for LoggingConfigBuilder
impl Default for LoggingConfigBuilder
source§fn default() -> LoggingConfigBuilder
fn default() -> LoggingConfigBuilder
source§impl PartialEq for LoggingConfigBuilder
impl PartialEq for LoggingConfigBuilder
source§fn eq(&self, other: &LoggingConfigBuilder) -> bool
fn eq(&self, other: &LoggingConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.