Module Values.AsnMatchStatementSource

A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address. For additional details, see ASN match rule statement in the WAF Developer Guide.

Sourcetype nonrec t = {
  1. asnList : AsnList.t;
    (*

    Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.

    *)
  2. forwardedIPConfig : ForwardedIPConfig.t option;
    (*

    The configuration for inspecting IP addresses to match against an ASN 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.

    *)
}
Sourceval context_ : string
Sourceval make : ?forwardedIPConfig:??? -> asnList:AsnList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Long of ASN.t ] list | `Structure of (string * [> `Enum of string | `String of ForwardedIPHeaderName.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t