Struct aws_sdk_wafv2::types::IpSetReferenceStatement
source · #[non_exhaustive]pub struct IpSetReferenceStatement {
pub arn: String,
pub ip_set_forwarded_ip_config: Option<IpSetForwardedIpConfig>,
}
Expand description
A rule statement used to detect web requests coming from particular IP addresses or address ranges. To use this, create an IPSet
that specifies the addresses you want to detect, then use the ARN of that set in this statement. To create an IP set, see CreateIPSet
.
Each IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF automatically updates all rules that reference it.
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.arn: String
The Amazon Resource Name (ARN) of the IPSet
that this statement references.
ip_set_forwarded_ip_config: Option<IpSetForwardedIpConfig>
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
Implementations§
source§impl IpSetReferenceStatement
impl IpSetReferenceStatement
sourcepub fn arn(&self) -> &str
pub fn arn(&self) -> &str
The Amazon Resource Name (ARN) of the IPSet
that this statement references.
sourcepub fn ip_set_forwarded_ip_config(&self) -> Option<&IpSetForwardedIpConfig>
pub fn ip_set_forwarded_ip_config(&self) -> Option<&IpSetForwardedIpConfig>
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
source§impl IpSetReferenceStatement
impl IpSetReferenceStatement
sourcepub fn builder() -> IpSetReferenceStatementBuilder
pub fn builder() -> IpSetReferenceStatementBuilder
Creates a new builder-style object to manufacture IpSetReferenceStatement
.
Trait Implementations§
source§impl Clone for IpSetReferenceStatement
impl Clone for IpSetReferenceStatement
source§fn clone(&self) -> IpSetReferenceStatement
fn clone(&self) -> IpSetReferenceStatement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpSetReferenceStatement
impl Debug for IpSetReferenceStatement
source§impl PartialEq for IpSetReferenceStatement
impl PartialEq for IpSetReferenceStatement
source§fn eq(&self, other: &IpSetReferenceStatement) -> bool
fn eq(&self, other: &IpSetReferenceStatement) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpSetReferenceStatement
Auto Trait Implementations§
impl Freeze for IpSetReferenceStatement
impl RefUnwindSafe for IpSetReferenceStatement
impl Send for IpSetReferenceStatement
impl Sync for IpSetReferenceStatement
impl Unpin for IpSetReferenceStatement
impl UnwindSafe for IpSetReferenceStatement
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