aws-cdk-lib.aws_wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty

interface ResponseInspectionStatusCodeProperty

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

Configures inspection of the response status code. 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 responseInspectionStatusCodeProperty: wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty = {
  failureCodes: [123],
  successCodes: [123],
};

Properties

NameTypeDescription
failureCodesnumber[] | IResolvableStatus codes in the response that indicate a failed login attempt.
successCodesnumber[] | IResolvableStatus codes in the response that indicate a successful login attempt.

failureCodes

Type: number[] | IResolvable

Status codes in the response that indicate a failed login attempt.

To be counted as a failed login, 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

Type: number[] | IResolvable

Status codes in the response that indicate a successful login attempt.

To be counted as a successful login, 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 ]