Interface CfnWebACL.IResponseInspectionHeaderProperty
Configures inspection of the response header. 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 CfnWebACL.IResponseInspectionHeaderProperty
Syntax (vb)
Public Interface CfnWebACL.IResponseInspectionHeaderProperty
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 responseInspectionHeaderProperty = new ResponseInspectionHeaderProperty {
FailureValues = new [] { "failureValues" },
Name = "name",
SuccessValues = new [] { "successValues" }
};
Synopsis
Properties
| FailureValues | Values in the response header with the specified name that indicate a failed login or account creation attempt. |
| Name | The name of the header to match against. The name must be an exact match, including case. |
| SuccessValues | Values in the response header with the specified name that indicate a successful login or account creation attempt. |
Properties
FailureValues
Values in the response header with the specified name that indicate a failed login or account creation attempt.
string[] FailureValues { get; }
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 examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]
Name
The name of the header to match against. The name must be an exact match, including case.
string Name { get; }
Property Value
Remarks
JSON example: "Name": [ "RequestResult" ]
SuccessValues
Values in the response header with the specified name that indicate a successful login or account creation attempt.
string[] SuccessValues { get; }
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 examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]