Skip to content

IPSetReferenceStatement

Source code in docs_src/capo_wafv2/types/ip_set_reference_statement.py
class IPSetReferenceStatement(TypedDict, closed=True):
    arn: "capo_wafv2.types.resource_arn.ResourceArn"
    """<p>The Amazon Resource Name (ARN) of the <a>IPSet</a> that this statement references.</p>"""
    ip_set_forwarded_ip_config: NotRequired[
        "capo_wafv2.types.ip_set_forwarded_ip_config.IPSetForwardedIPConfig"
    ]
    """<p>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. </p> <note> <p>If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.</p> </note>"""

arn instance-attribute

The Amazon Resource Name (ARN) of the IPSet that this statement references.

ip_set_forwarded_ip_config instance-attribute

ip_set_forwarded_ip_config: NotRequired[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.