Struct aws_sdk_securityhub::types::AwsWafRuleDetails
source · #[non_exhaustive]pub struct AwsWafRuleDetails {
pub metric_name: Option<String>,
pub name: Option<String>,
pub predicate_list: Option<Vec<AwsWafRulePredicateListDetails>>,
pub rule_id: Option<String>,
}
Expand description
Provides information about a WAF rule. This rule specifies the web requests that you want to allow, block, or count.
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.metric_name: Option<String>
The name of the metrics for this rule.
name: Option<String>
A descriptive name for the rule.
predicate_list: Option<Vec<AwsWafRulePredicateListDetails>>
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
rule_id: Option<String>
The ID of the WAF rule.
Implementations§
source§impl AwsWafRuleDetails
impl AwsWafRuleDetails
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the metrics for this rule.
sourcepub fn predicate_list(&self) -> &[AwsWafRulePredicateListDetails]
pub fn predicate_list(&self) -> &[AwsWafRulePredicateListDetails]
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .predicate_list.is_none()
.
source§impl AwsWafRuleDetails
impl AwsWafRuleDetails
sourcepub fn builder() -> AwsWafRuleDetailsBuilder
pub fn builder() -> AwsWafRuleDetailsBuilder
Creates a new builder-style object to manufacture AwsWafRuleDetails
.
Trait Implementations§
source§impl Clone for AwsWafRuleDetails
impl Clone for AwsWafRuleDetails
source§fn clone(&self) -> AwsWafRuleDetails
fn clone(&self) -> AwsWafRuleDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsWafRuleDetails
impl Debug for AwsWafRuleDetails
source§impl PartialEq for AwsWafRuleDetails
impl PartialEq for AwsWafRuleDetails
source§fn eq(&self, other: &AwsWafRuleDetails) -> bool
fn eq(&self, other: &AwsWafRuleDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsWafRuleDetails
Auto Trait Implementations§
impl Freeze for AwsWafRuleDetails
impl RefUnwindSafe for AwsWafRuleDetails
impl Send for AwsWafRuleDetails
impl Sync for AwsWafRuleDetails
impl Unpin for AwsWafRuleDetails
impl UnwindSafe for AwsWafRuleDetails
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