#[non_exhaustive]pub struct AwsWafRateBasedRuleDetails { /* private fields */ }
Expand description
Details about a rate-based rule for global resources. A rate-based rule provides settings to indicate when to allow, block, or count a request. Rate-based rules include the number of requests that arrive over a specified period of time.
Implementations§
source§impl AwsWafRateBasedRuleDetails
impl AwsWafRateBasedRuleDetails
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the metrics for the rate-based rule.
sourcepub fn rate_key(&self) -> Option<&str>
pub fn rate_key(&self) -> Option<&str>
The field that WAF uses to determine whether requests are likely arriving from single source and are subject to rate monitoring.
sourcepub fn rate_limit(&self) -> i64
pub fn rate_limit(&self) -> i64
The maximum number of requests that have an identical value for the field specified in RateKey
that are allowed within a five-minute period. If the number of requests exceeds RateLimit
and the other predicates specified in the rule are met, WAF triggers the action for the rule.
sourcepub fn match_predicates(&self) -> Option<&[AwsWafRateBasedRuleMatchPredicate]>
pub fn match_predicates(&self) -> Option<&[AwsWafRateBasedRuleMatchPredicate]>
The predicates to include in the rate-based rule.
source§impl AwsWafRateBasedRuleDetails
impl AwsWafRateBasedRuleDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsWafRateBasedRuleDetails
.
Trait Implementations§
source§impl Clone for AwsWafRateBasedRuleDetails
impl Clone for AwsWafRateBasedRuleDetails
source§fn clone(&self) -> AwsWafRateBasedRuleDetails
fn clone(&self) -> AwsWafRateBasedRuleDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsWafRateBasedRuleDetails
impl Debug for AwsWafRateBasedRuleDetails
source§impl PartialEq<AwsWafRateBasedRuleDetails> for AwsWafRateBasedRuleDetails
impl PartialEq<AwsWafRateBasedRuleDetails> for AwsWafRateBasedRuleDetails
source§fn eq(&self, other: &AwsWafRateBasedRuleDetails) -> bool
fn eq(&self, other: &AwsWafRateBasedRuleDetails) -> bool
self
and other
values to be equal, and is used
by ==
.