Interface CfnWebACL.ResponseInspectionJsonProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnWebACL.ResponseInspectionJsonProperty.Jsii$Proxy
Enclosing class:
CfnWebACL

@Stability(Stable) public static interface CfnWebACL.ResponseInspectionJsonProperty extends software.amazon.jsii.JsiiSerializable
Configures inspection of the response JSON.

AWS 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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.wafv2.*;
 ResponseInspectionJsonProperty responseInspectionJsonProperty = ResponseInspectionJsonProperty.builder()
         .failureValues(List.of("failureValues"))
         .identifier("identifier")
         .successValues(List.of("successValues"))
         .build();
 
  • Method Details

    • getFailureValues

      @Stability(Stable) @NotNull List<String> getFailureValues()
      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" ]

    • getIdentifier

      @Stability(Stable) @NotNull String getIdentifier()
      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" ]

    • getSuccessValues

      @Stability(Stable) @NotNull List<String> getSuccessValues()
      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" ]

    • builder

      @Stability(Stable) static CfnWebACL.ResponseInspectionJsonProperty.Builder builder()
      Returns:
      a CfnWebACL.ResponseInspectionJsonProperty.Builder of CfnWebACL.ResponseInspectionJsonProperty