Module Values.ResponseInspectionHeaderSource

Configures inspection of the response header. 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. name : ResponseInspectionHeaderName.t;
    (*

    The name of the header to match against. The name must be an exact match, including case. JSON example: "Name": [ "RequestResult" ]

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

    Values in the response header with the specified name 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 examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]

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

    Values in the response header with the specified name 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 examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]

    *)
}
Sourceval context_ : string
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of SuccessValue.t ] list | `String of ResponseInspectionHeaderName.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