#[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
sourceimpl 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.
sourceimpl AwsWafRateBasedRuleDetails
impl AwsWafRateBasedRuleDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsWafRateBasedRuleDetails
.
Trait Implementations
sourceimpl Clone for AwsWafRateBasedRuleDetails
impl Clone for AwsWafRateBasedRuleDetails
sourcefn clone(&self) -> AwsWafRateBasedRuleDetails
fn clone(&self) -> AwsWafRateBasedRuleDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AwsWafRateBasedRuleDetails
impl Debug for AwsWafRateBasedRuleDetails
sourceimpl PartialEq<AwsWafRateBasedRuleDetails> for AwsWafRateBasedRuleDetails
impl PartialEq<AwsWafRateBasedRuleDetails> for AwsWafRateBasedRuleDetails
sourcefn eq(&self, other: &AwsWafRateBasedRuleDetails) -> bool
fn eq(&self, other: &AwsWafRateBasedRuleDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AwsWafRateBasedRuleDetails) -> bool
fn ne(&self, other: &AwsWafRateBasedRuleDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for AwsWafRateBasedRuleDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsWafRateBasedRuleDetails
impl Send for AwsWafRateBasedRuleDetails
impl Sync for AwsWafRateBasedRuleDetails
impl Unpin for AwsWafRateBasedRuleDetails
impl UnwindSafe for AwsWafRateBasedRuleDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more