aws-cdk-lib.aws_wafv2.CfnWebACL.ResponseInspectionHeaderProperty

interface ResponseInspectionHeaderProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnWebACL.ResponseInspectionHeaderProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnWebACL_ResponseInspectionHeaderProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionHeaderProperty
Pythonaws_cdk.aws_wafv2.CfnWebACL.ResponseInspectionHeaderProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnWebACL » ResponseInspectionHeaderProperty

Configures inspection of the response header. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet .

Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const responseInspectionHeaderProperty: wafv2.CfnWebACL.ResponseInspectionHeaderProperty = {
  failureValues: ['failureValues'],
  name: 'name',
  successValues: ['successValues'],
};

Properties

NameTypeDescription
failureValuesstring[]Values in the response header with the specified name that indicate a failed login attempt.
namestringThe name of the header to match against. The name must be an exact match, including case.
successValuesstring[]Values in the response header with the specified name that indicate a successful login attempt.

failureValues

Type: string[]

Values in the response header with the specified name that indicate a failed login attempt.

To be counted as a failed login, the value must be an exact match, including case. Each value must be unique among the success and failure values.

JSON example: "FailureValues": [ "LoginFailed", "Failed login" ]


name

Type: string

The name of the header to match against. The name must be an exact match, including case.

JSON example: "Name": [ "LoginResult" ]


successValues

Type: string[]

Values in the response header with the specified name that indicate a successful login attempt.

To be counted as a successful login, the value must be an exact match, including case. Each value must be unique among the success and failure values.

JSON example: "SuccessValues": [ "LoginPassed", "Successful login" ]