Struct aws_sdk_securityhub::types::AwsWafv2RulesDetails
source · #[non_exhaustive]pub struct AwsWafv2RulesDetails {
pub action: Option<AwsWafv2RulesActionDetails>,
pub name: Option<String>,
pub override_action: Option<String>,
pub priority: Option<i32>,
pub visibility_config: Option<AwsWafv2VisibilityConfigDetails>,
}
Expand description
Provides details about rules in a rule group. A rule identifies web requests that you want to allow, block, or count. Each rule includes one top-level Statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.
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.action: Option<AwsWafv2RulesActionDetails>
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
name: Option<String>
The name of the rule.
override_action: Option<String>
The action to use in the place of the action that results from the rule group evaluation.
priority: Option<i32>
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
visibility_config: Option<AwsWafv2VisibilityConfigDetails>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
Implementations§
source§impl AwsWafv2RulesDetails
impl AwsWafv2RulesDetails
sourcepub fn action(&self) -> Option<&AwsWafv2RulesActionDetails>
pub fn action(&self) -> Option<&AwsWafv2RulesActionDetails>
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
sourcepub fn override_action(&self) -> Option<&str>
pub fn override_action(&self) -> Option<&str>
The action to use in the place of the action that results from the rule group evaluation.
sourcepub fn priority(&self) -> Option<i32>
pub fn priority(&self) -> Option<i32>
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
sourcepub fn visibility_config(&self) -> Option<&AwsWafv2VisibilityConfigDetails>
pub fn visibility_config(&self) -> Option<&AwsWafv2VisibilityConfigDetails>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
source§impl AwsWafv2RulesDetails
impl AwsWafv2RulesDetails
sourcepub fn builder() -> AwsWafv2RulesDetailsBuilder
pub fn builder() -> AwsWafv2RulesDetailsBuilder
Creates a new builder-style object to manufacture AwsWafv2RulesDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2RulesDetails
impl Clone for AwsWafv2RulesDetails
source§fn clone(&self) -> AwsWafv2RulesDetails
fn clone(&self) -> AwsWafv2RulesDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsWafv2RulesDetails
impl Debug for AwsWafv2RulesDetails
source§impl PartialEq for AwsWafv2RulesDetails
impl PartialEq for AwsWafv2RulesDetails
source§fn eq(&self, other: &AwsWafv2RulesDetails) -> bool
fn eq(&self, other: &AwsWafv2RulesDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsWafv2RulesDetails
Auto Trait Implementations§
impl Freeze for AwsWafv2RulesDetails
impl RefUnwindSafe for AwsWafv2RulesDetails
impl Send for AwsWafv2RulesDetails
impl Sync for AwsWafv2RulesDetails
impl Unpin for AwsWafv2RulesDetails
impl UnwindSafe for AwsWafv2RulesDetails
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