Interface CfnWebACL.ResponseInspectionBodyContainsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.ResponseInspectionBodyContainsProperty.Jsii$Proxy
- Enclosing class:
CfnWebACL
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWebACL.ResponseInspectionBodyContainsPropertystatic final classAn implementation forCfnWebACL.ResponseInspectionBodyContainsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Strings in the body of the response that indicate a failed login or account creation attempt.Strings in the body of the response that indicate a successful login or account creation attempt.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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" ]- See Also:
-
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!" ]- See Also:
-
builder
-