Class CfnWebACL.ResponseInspectionHeaderProperty
Configures inspection of the response header. This is part of the ResponseInspection
configuration for AWSManagedRulesATPRuleSet
and AWSManagedRulesACFPRuleSet
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResponseInspectionHeaderProperty : Object, CfnWebACL.IResponseInspectionHeaderProperty
Syntax (vb)
Public Class ResponseInspectionHeaderProperty
Inherits Object
Implements 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
Constructors
ResponseInspectionHeaderProperty() |
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. |
Constructors
ResponseInspectionHeaderProperty()
public ResponseInspectionHeaderProperty()
Properties
FailureValues
Values in the response header with the specified name that indicate a failed login or account creation attempt.
public string[] FailureValues { get; set; }
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 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.
public string Name { get; set; }
Property Value
System.String
Remarks
JSON example: "Name": [ "RequestResult" ]
SuccessValues
Values in the response header with the specified name that indicate a successful login or account creation attempt.
public string[] SuccessValues { get; set; }
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 examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]