Module Values.ResponseInspectionJsonSource

Configures inspection of the response JSON. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet. Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Sourcetype nonrec t = {
  1. identifier : FieldIdentifier.t;
    (*

    The identifier for the value to match against in the JSON. The identifier must be an exact match, including case. JSON examples: "Identifier": [ "/login/success" ] and "Identifier": [ "/sign-up/success" ]

    *)
  2. successValues : ResponseInspectionJsonSuccessValues.t;
    (*

    Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values. JSON example: "SuccessValues": [ "True", "Succeeded" ]

    *)
  3. failureValues : ResponseInspectionJsonFailureValues.t;
    (*

    Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values. JSON example: "FailureValues": [ "False", "Failed" ]

    *)
}
Sourceval context_ : string
Sourceval make : identifier:FieldIdentifier.t -> successValues:ResponseInspectionJsonSuccessValues.t -> failureValues:ResponseInspectionJsonFailureValues.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of SuccessValue.t ] list | `String of FieldIdentifier.t ]) 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