#[non_exhaustive]pub struct RateBasedStatementManagedKeysIpSet {
pub ip_address_version: Option<IpAddressVersion>,
pub addresses: Option<Vec<String>>,
}
Expand description
The set of IP addresses that are currently blocked for a RateBasedStatement
. This is only available for rate-based rules that aggregate on just the IP address, with the AggregateKeyType
set to IP
or FORWARDED_IP
.
A rate-based rule applies its rule action to requests from IP addresses that are in the rule's managed keys list and that match the rule's scope-down statement. When a rule has no scope-down statement, it applies the action to all requests from the IP addresses that are in the list. The rule applies its rule action to rate limit the matching requests. The action is usually Block but it can be any valid rule action except for Allow.
The maximum number of IP addresses that can be rate limited by a single rate-based rule instance is 10,000. If more than 10,000 addresses exceed the rate limit, WAF limits those with the highest rates.
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.ip_address_version: Option<IpAddressVersion>
The version of the IP addresses, either IPV4
or IPV6
.
addresses: Option<Vec<String>>
The IP addresses that are currently blocked.
Implementations§
source§impl RateBasedStatementManagedKeysIpSet
impl RateBasedStatementManagedKeysIpSet
sourcepub fn ip_address_version(&self) -> Option<&IpAddressVersion>
pub fn ip_address_version(&self) -> Option<&IpAddressVersion>
The version of the IP addresses, either IPV4
or IPV6
.
source§impl RateBasedStatementManagedKeysIpSet
impl RateBasedStatementManagedKeysIpSet
sourcepub fn builder() -> RateBasedStatementManagedKeysIpSetBuilder
pub fn builder() -> RateBasedStatementManagedKeysIpSetBuilder
Creates a new builder-style object to manufacture RateBasedStatementManagedKeysIpSet
.
Trait Implementations§
source§impl Clone for RateBasedStatementManagedKeysIpSet
impl Clone for RateBasedStatementManagedKeysIpSet
source§fn clone(&self) -> RateBasedStatementManagedKeysIpSet
fn clone(&self) -> RateBasedStatementManagedKeysIpSet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RateBasedStatementManagedKeysIpSet
impl PartialEq for RateBasedStatementManagedKeysIpSet
source§fn eq(&self, other: &RateBasedStatementManagedKeysIpSet) -> bool
fn eq(&self, other: &RateBasedStatementManagedKeysIpSet) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RateBasedStatementManagedKeysIpSet
Auto Trait Implementations§
impl Freeze for RateBasedStatementManagedKeysIpSet
impl RefUnwindSafe for RateBasedStatementManagedKeysIpSet
impl Send for RateBasedStatementManagedKeysIpSet
impl Sync for RateBasedStatementManagedKeysIpSet
impl Unpin for RateBasedStatementManagedKeysIpSet
impl UnwindSafe for RateBasedStatementManagedKeysIpSet
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