Struct aws_sdk_macie2::types::SeverityLevel
source · #[non_exhaustive]pub struct SeverityLevel {
pub occurrences_threshold: Option<i64>,
pub severity: Option<DataIdentifierSeverity>,
}
Expand description
Specifies a severity level for findings that a custom data identifier produces. A severity level determines which severity is assigned to the findings, based on the number of occurrences of text that match the custom data identifier's detection criteria.
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.occurrences_threshold: Option<i64>
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
severity: Option<DataIdentifierSeverity>
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
Implementations§
source§impl SeverityLevel
impl SeverityLevel
sourcepub fn occurrences_threshold(&self) -> Option<i64>
pub fn occurrences_threshold(&self) -> Option<i64>
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
sourcepub fn severity(&self) -> Option<&DataIdentifierSeverity>
pub fn severity(&self) -> Option<&DataIdentifierSeverity>
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
source§impl SeverityLevel
impl SeverityLevel
sourcepub fn builder() -> SeverityLevelBuilder
pub fn builder() -> SeverityLevelBuilder
Creates a new builder-style object to manufacture SeverityLevel
.
Trait Implementations§
source§impl Clone for SeverityLevel
impl Clone for SeverityLevel
source§fn clone(&self) -> SeverityLevel
fn clone(&self) -> SeverityLevel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SeverityLevel
impl Debug for SeverityLevel
source§impl PartialEq for SeverityLevel
impl PartialEq for SeverityLevel
source§fn eq(&self, other: &SeverityLevel) -> bool
fn eq(&self, other: &SeverityLevel) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SeverityLevel
Auto Trait Implementations§
impl Freeze for SeverityLevel
impl RefUnwindSafe for SeverityLevel
impl Send for SeverityLevel
impl Sync for SeverityLevel
impl Unpin for SeverityLevel
impl UnwindSafe for SeverityLevel
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> 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