Interface CfnWebACL.IResponseInspectionJsonProperty
Configures inspection of the response JSON.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public interface IResponseInspectionJsonProperty
Syntax (vb)
Public Interface IResponseInspectionJsonProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var responseInspectionJsonProperty = new ResponseInspectionJsonProperty {
FailureValues = new [] { "failureValues" },
Identifier = "identifier",
SuccessValues = new [] { "successValues" }
};
Synopsis
Properties
FailureValues | Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. |
Identifier | The identifier for the value to match against in the JSON. |
SuccessValues | Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. |
Properties
FailureValues
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt.
string[] FailureValues { get; }
Property Value
System.String[]
Remarks
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" ]
Identifier
The identifier for the value to match against in the JSON.
string Identifier { get; }
Property Value
System.String
Remarks
The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
SuccessValues
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt.
string[] SuccessValues { get; }
Property Value
System.String[]
Remarks
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" ]