Interface CfnWebACL.IResponseInspectionStatusCodeProperty
Configures inspection of the response status code. This is part of the ResponseInspection
configuration for AWSManagedRulesATPRuleSet
and AWSManagedRulesACFPRuleSet
.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IResponseInspectionStatusCodeProperty
Syntax (vb)
Public Interface IResponseInspectionStatusCodeProperty
Remarks
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 responseInspectionStatusCodeProperty = new ResponseInspectionStatusCodeProperty {
FailureCodes = new [] { 123 },
SuccessCodes = new [] { 123 }
};
Synopsis
Properties
Failure |
Status codes in the response that indicate a failed login or account creation attempt. |
Success |
Status codes in the response that indicate a successful login or account creation attempt. |
Properties
FailureCodes
Status codes in the response that indicate a failed login or account creation attempt.
object FailureCodes { get; }
Property Value
System.
Remarks
To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
SuccessCodes
Status codes in the response that indicate a successful login or account creation attempt.
object SuccessCodes { get; }
Property Value
System.
Remarks
To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]