Class CfnWebACL.ResponseInspectionJsonProperty
Configures inspection of the response JSON.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACL.ResponseInspectionJsonProperty : CfnWebACL.IResponseInspectionJsonProperty
Syntax (vb)
Public Class CfnWebACL.ResponseInspectionJsonProperty Implements CfnWebACL.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
Constructors
| ResponseInspectionJsonProperty() | Configures inspection of the response JSON. |
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. |
Constructors
ResponseInspectionJsonProperty()
Configures inspection of the response JSON.
public ResponseInspectionJsonProperty()
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" }
};
Properties
FailureValues
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt.
public string[] FailureValues { get; set; }
Property Value
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.
public string Identifier { get; set; }
Property Value
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.
public string[] SuccessValues { get; set; }
Property Value
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" ]