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 ==.