#[non_exhaustive]pub struct AwsWafRegionalRateBasedRuleDetails { /* private fields */ }Expand description
contains details about a rate-based rule for Regional 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 AwsWafRegionalRateBasedRuleDetails
impl AwsWafRegionalRateBasedRuleDetails
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<&[AwsWafRegionalRateBasedRuleMatchPredicate]>
pub fn match_predicates(
&self
) -> Option<&[AwsWafRegionalRateBasedRuleMatchPredicate]>
The predicates to include in the rate-based rule.
sourceimpl AwsWafRegionalRateBasedRuleDetails
impl AwsWafRegionalRateBasedRuleDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsWafRegionalRateBasedRuleDetails.
Trait Implementations
sourceimpl Clone for AwsWafRegionalRateBasedRuleDetails
impl Clone for AwsWafRegionalRateBasedRuleDetails
sourcefn clone(&self) -> AwsWafRegionalRateBasedRuleDetails
fn clone(&self) -> AwsWafRegionalRateBasedRuleDetails
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 PartialEq<AwsWafRegionalRateBasedRuleDetails> for AwsWafRegionalRateBasedRuleDetails
impl PartialEq<AwsWafRegionalRateBasedRuleDetails> for AwsWafRegionalRateBasedRuleDetails
sourcefn eq(&self, other: &AwsWafRegionalRateBasedRuleDetails) -> bool
fn eq(&self, other: &AwsWafRegionalRateBasedRuleDetails) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for AwsWafRegionalRateBasedRuleDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsWafRegionalRateBasedRuleDetails
impl Send for AwsWafRegionalRateBasedRuleDetails
impl Sync for AwsWafRegionalRateBasedRuleDetails
impl Unpin for AwsWafRegionalRateBasedRuleDetails
impl UnwindSafe for AwsWafRegionalRateBasedRuleDetails
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