Interface CfnWebACL.ResponseInspectionHeaderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.ResponseInspectionHeaderProperty.Jsii$Proxy
- Enclosing class:
- CfnWebACL
@Stability(Stable)
public static interface CfnWebACL.ResponseInspectionHeaderProperty
extends software.amazon.jsii.JsiiSerializable
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.
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.*; ResponseInspectionHeaderProperty responseInspectionHeaderProperty = ResponseInspectionHeaderProperty.builder() .failureValues(List.of("failureValues")) .name("name") .successValues(List.of("successValues")) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACL.ResponseInspectionHeaderProperty
static final class
An implementation forCfnWebACL.ResponseInspectionHeaderProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Values in the response header with the specified name that indicate a failed login or account creation attempt.getName()
The name of the header to match against.Values in the response header with the specified name that indicate a successful login or account creation attempt.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFailureValues
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" ]
-
getName
The name of the header to match against. The name must be an exact match, including case.JSON example:
"Name": [ "RequestResult" ]
-
getSuccessValues
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" ]
-
builder
-