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 ==
.