Struct aws_sdk_appsync::types::LogConfig
source · #[non_exhaustive]pub struct LogConfig {
pub field_log_level: FieldLogLevel,
pub cloud_watch_logs_role_arn: String,
pub exclude_verbose_content: bool,
}Expand description
The Amazon CloudWatch Logs configuration.
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.field_log_level: FieldLogLevelThe field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.
-
NONE: No field-level logs are captured.
-
ERROR: Logs the following information only for the fields that are in the error category:
-
The error section in the server response.
-
Field-level errors.
-
The generated request/response functions that got resolved for error fields.
-
-
INFO: Logs the following information only for the fields that are in the info and error categories:
-
Info-level messages.
-
The user messages sent through
$util.log.infoandconsole.log. -
Field-level tracing and mapping logs are not shown.
-
-
DEBUG: Logs the following information only for the fields that are in the debug, info, and error categories:
-
Debug-level messages.
-
The user messages sent through
$util.log.info,$util.log.debug,console.log, andconsole.debug. -
Field-level tracing and mapping logs are not shown.
-
-
ALL: The following information is logged for all fields in the query:
-
Field-level tracing information.
-
The generated request/response functions that were resolved for each field.
-
cloud_watch_logs_role_arn: StringThe service role that AppSync assumes to publish to CloudWatch logs in your account.
exclude_verbose_content: boolSet to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
Implementations§
source§impl LogConfig
impl LogConfig
sourcepub fn field_log_level(&self) -> &FieldLogLevel
pub fn field_log_level(&self) -> &FieldLogLevel
The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.
-
NONE: No field-level logs are captured.
-
ERROR: Logs the following information only for the fields that are in the error category:
-
The error section in the server response.
-
Field-level errors.
-
The generated request/response functions that got resolved for error fields.
-
-
INFO: Logs the following information only for the fields that are in the info and error categories:
-
Info-level messages.
-
The user messages sent through
$util.log.infoandconsole.log. -
Field-level tracing and mapping logs are not shown.
-
-
DEBUG: Logs the following information only for the fields that are in the debug, info, and error categories:
-
Debug-level messages.
-
The user messages sent through
$util.log.info,$util.log.debug,console.log, andconsole.debug. -
Field-level tracing and mapping logs are not shown.
-
-
ALL: The following information is logged for all fields in the query:
-
Field-level tracing information.
-
The generated request/response functions that were resolved for each field.
-
sourcepub fn cloud_watch_logs_role_arn(&self) -> &str
pub fn cloud_watch_logs_role_arn(&self) -> &str
The service role that AppSync assumes to publish to CloudWatch logs in your account.
sourcepub fn exclude_verbose_content(&self) -> bool
pub fn exclude_verbose_content(&self) -> bool
Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
Trait Implementations§
impl StructuralPartialEq for LogConfig
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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