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: 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: 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) -> i32
pub fn priority(&self) -> 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<AwsWafv2RulesDetails> for AwsWafv2RulesDetails
impl PartialEq<AwsWafv2RulesDetails> 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 ==
.