Interface CfnWebACL.ResponseInspectionBodyContainsProperty

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

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

AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body. 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.*;
 ResponseInspectionBodyContainsProperty responseInspectionBodyContainsProperty = ResponseInspectionBodyContainsProperty.builder()
         .failureStrings(List.of("failureStrings"))
         .successStrings(List.of("successStrings"))
         .build();
 
  • Method Details

    • getFailureStrings

      @Stability(Stable) @NotNull List<String> getFailureStrings()
      Strings in the body of the response that indicate a failed login or account creation attempt.

      To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.

      JSON example: "FailureStrings": [ "Request failed" ]

    • getSuccessStrings

      @Stability(Stable) @NotNull List<String> getSuccessStrings()
      Strings in the body of the response that indicate a successful login or account creation attempt.

      To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.

      JSON examples: "SuccessStrings": [ "Login successful" ] and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]

    • builder

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