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<SeverityLevel> for SeverityLevel
impl PartialEq<SeverityLevel> 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 ==
.