Struct aws_sdk_wafv2::model::IpSetReferenceStatement
source · [−]#[non_exhaustive]pub struct IpSetReferenceStatement {
pub arn: Option<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: Option<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
sourceimpl IpSetReferenceStatement
impl IpSetReferenceStatement
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&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.
sourceimpl IpSetReferenceStatement
impl IpSetReferenceStatement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpSetReferenceStatement
Trait Implementations
sourceimpl Clone for IpSetReferenceStatement
impl Clone for IpSetReferenceStatement
sourcefn clone(&self) -> IpSetReferenceStatement
fn clone(&self) -> IpSetReferenceStatement
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 Debug for IpSetReferenceStatement
impl Debug for IpSetReferenceStatement
sourceimpl PartialEq<IpSetReferenceStatement> for IpSetReferenceStatement
impl PartialEq<IpSetReferenceStatement> for IpSetReferenceStatement
sourcefn eq(&self, other: &IpSetReferenceStatement) -> bool
fn eq(&self, other: &IpSetReferenceStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &IpSetReferenceStatement) -> bool
fn ne(&self, other: &IpSetReferenceStatement) -> bool
This method tests for !=.
impl StructuralPartialEq for IpSetReferenceStatement
Auto Trait Implementations
impl RefUnwindSafe for IpSetReferenceStatement
impl Send for IpSetReferenceStatement
impl Sync for IpSetReferenceStatement
impl Unpin for IpSetReferenceStatement
impl UnwindSafe for IpSetReferenceStatement
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