Struct aws_sdk_wafv2::types::RateLimitForwardedIp
source · #[non_exhaustive]pub struct RateLimitForwardedIp {}
Expand description
Specifies the first IP address in an HTTP header as an aggregate key for a rate-based rule. Each distinct forwarded IP address contributes to the aggregation instance.
This setting is used only in the RateBasedStatementCustomKey
specification of a rate-based rule statement. When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the forwarded IP address by specifying FORWARDED_IP
in your rate-based statement's AggregateKeyType
.
This data type supports using the forwarded IP address in the web request aggregation for a rate-based rule, in RateBasedStatementCustomKey
. The JSON specification for using the forwarded IP address doesn't explicitly use this data type.
JSON specification: "ForwardedIP": {}
When you use this specification, you must also configure the forwarded IP address in the rate-based statement's ForwardedIPConfig
.
Implementations§
source§impl RateLimitForwardedIp
impl RateLimitForwardedIp
sourcepub fn builder() -> RateLimitForwardedIpBuilder
pub fn builder() -> RateLimitForwardedIpBuilder
Creates a new builder-style object to manufacture RateLimitForwardedIp
.
Trait Implementations§
source§impl Clone for RateLimitForwardedIp
impl Clone for RateLimitForwardedIp
source§fn clone(&self) -> RateLimitForwardedIp
fn clone(&self) -> RateLimitForwardedIp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RateLimitForwardedIp
impl Debug for RateLimitForwardedIp
source§impl PartialEq for RateLimitForwardedIp
impl PartialEq for RateLimitForwardedIp
source§fn eq(&self, other: &RateLimitForwardedIp) -> bool
fn eq(&self, other: &RateLimitForwardedIp) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RateLimitForwardedIp
Auto Trait Implementations§
impl Freeze for RateLimitForwardedIp
impl RefUnwindSafe for RateLimitForwardedIp
impl Send for RateLimitForwardedIp
impl Sync for RateLimitForwardedIp
impl Unpin for RateLimitForwardedIp
impl UnwindSafe for RateLimitForwardedIp
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