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 ==
.impl StructuralPartialEq for LoggingConfigBuilder
Auto Trait Implementations§
impl Freeze for LoggingConfigBuilder
impl RefUnwindSafe for LoggingConfigBuilder
impl Send for LoggingConfigBuilder
impl Sync for LoggingConfigBuilder
impl Unpin for LoggingConfigBuilder
impl UnwindSafe for LoggingConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more