#[non_exhaustive]pub enum LogSourceResource {
AwsLogSource(AwsLogSourceResource),
CustomLogSource(CustomLogSourceResource),
Unknown,
}
Expand description
The supported source types from which logs and events are collected in Amazon Security Lake. For a list of supported Amazon Web Services, see the Amazon Security Lake User Guide.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AwsLogSource(AwsLogSourceResource)
Amazon Security Lake supports log and event collection for natively supported Amazon Web Services. For more information, see the Amazon Security Lake User Guide.
CustomLogSource(CustomLogSourceResource)
Amazon Security Lake supports custom source types. For more information, see the Amazon Security Lake User Guide.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl LogSourceResource
impl LogSourceResource
sourcepub fn as_aws_log_source(&self) -> Result<&AwsLogSourceResource, &Self>
pub fn as_aws_log_source(&self) -> Result<&AwsLogSourceResource, &Self>
Tries to convert the enum instance into AwsLogSource
, extracting the inner AwsLogSourceResource
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_aws_log_source(&self) -> bool
pub fn is_aws_log_source(&self) -> bool
Returns true if this is a AwsLogSource
.
sourcepub fn as_custom_log_source(&self) -> Result<&CustomLogSourceResource, &Self>
pub fn as_custom_log_source(&self) -> Result<&CustomLogSourceResource, &Self>
Tries to convert the enum instance into CustomLogSource
, extracting the inner CustomLogSourceResource
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_custom_log_source(&self) -> bool
pub fn is_custom_log_source(&self) -> bool
Returns true if this is a CustomLogSource
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for LogSourceResource
impl Clone for LogSourceResource
source§fn clone(&self) -> LogSourceResource
fn clone(&self) -> LogSourceResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LogSourceResource
impl Debug for LogSourceResource
source§impl PartialEq for LogSourceResource
impl PartialEq for LogSourceResource
source§fn eq(&self, other: &LogSourceResource) -> bool
fn eq(&self, other: &LogSourceResource) -> bool
self
and other
values to be equal, and is used
by ==
.