Struct aws_sdk_wafv2::types::FirewallManagerRuleGroup
source · #[non_exhaustive]pub struct FirewallManagerRuleGroup {
pub name: String,
pub priority: i32,
pub firewall_manager_statement: Option<FirewallManagerStatement>,
pub override_action: Option<OverrideAction>,
pub visibility_config: Option<VisibilityConfig>,
}
Expand description
A rule group that's defined for an Firewall Manager WAF policy.
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.name: String
The name of the rule group. You cannot change the name of a rule group after you create it.
priority: i32
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
firewall_manager_statement: Option<FirewallManagerStatement>
The processing guidance for an Firewall Manager rule. This is like a regular rule Statement
, but it can only contain a rule group reference.
override_action: Option<OverrideAction>
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
visibility_config: Option<VisibilityConfig>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
Implementations§
source§impl FirewallManagerRuleGroup
impl FirewallManagerRuleGroup
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the rule group. You cannot change the name of a rule group after you create it.
sourcepub fn priority(&self) -> i32
pub fn priority(&self) -> i32
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
sourcepub fn firewall_manager_statement(&self) -> Option<&FirewallManagerStatement>
pub fn firewall_manager_statement(&self) -> Option<&FirewallManagerStatement>
The processing guidance for an Firewall Manager rule. This is like a regular rule Statement
, but it can only contain a rule group reference.
sourcepub fn override_action(&self) -> Option<&OverrideAction>
pub fn override_action(&self) -> Option<&OverrideAction>
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
sourcepub fn visibility_config(&self) -> Option<&VisibilityConfig>
pub fn visibility_config(&self) -> Option<&VisibilityConfig>
Defines and enables Amazon CloudWatch metrics and web request sample collection.
source§impl FirewallManagerRuleGroup
impl FirewallManagerRuleGroup
sourcepub fn builder() -> FirewallManagerRuleGroupBuilder
pub fn builder() -> FirewallManagerRuleGroupBuilder
Creates a new builder-style object to manufacture FirewallManagerRuleGroup
.
Trait Implementations§
source§impl Clone for FirewallManagerRuleGroup
impl Clone for FirewallManagerRuleGroup
source§fn clone(&self) -> FirewallManagerRuleGroup
fn clone(&self) -> FirewallManagerRuleGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallManagerRuleGroup
impl Debug for FirewallManagerRuleGroup
source§impl PartialEq for FirewallManagerRuleGroup
impl PartialEq for FirewallManagerRuleGroup
source§fn eq(&self, other: &FirewallManagerRuleGroup) -> bool
fn eq(&self, other: &FirewallManagerRuleGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallManagerRuleGroup
Auto Trait Implementations§
impl Freeze for FirewallManagerRuleGroup
impl RefUnwindSafe for FirewallManagerRuleGroup
impl Send for FirewallManagerRuleGroup
impl Sync for FirewallManagerRuleGroup
impl Unpin for FirewallManagerRuleGroup
impl UnwindSafe for FirewallManagerRuleGroup
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