aws-cdk-lib.aws_wafv2.CfnWebACL.ResponseInspectionJsonProperty

interface ResponseInspectionJsonProperty

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

Configures inspection of the response JSON.

AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. 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 responseInspectionJsonProperty: wafv2.CfnWebACL.ResponseInspectionJsonProperty = {
  failureValues: ['failureValues'],
  identifier: 'identifier',
  successValues: ['successValues'],
};

Properties

NameTypeDescription
failureValuesstring[]Values for the specified identifier in the response JSON that indicate a failed login attempt.
identifierstringThe identifier for the value to match against in the JSON.
successValuesstring[]Values for the specified identifier in the response JSON that indicate a successful login attempt.

failureValues

Type: string[]

Values for the specified identifier in the response JSON 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": [ "False", "Failed" ]


identifier

Type: string

The identifier for the value to match against in the JSON.

The identifier must be an exact match, including case.

JSON example: "Identifier": [ "/login/success" ]


successValues

Type: string[]

Values for the specified identifier in the response JSON 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": [ "True", "Succeeded" ]