interface ResponseInspectionStatusCodeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins.CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafv2/mixins#CfnWebACLPropsMixin_ResponseInspectionStatusCodeProperty |
Java | software.amazon.awscdk.mixins.preview.services.wafv2.mixins.CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty |
Python | aws_cdk.mixins_preview.aws_wafv2.mixins.CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wafv2 » mixins » CfnWebACLPropsMixin » ResponseInspectionStatusCodeProperty |
Configures inspection of the response status code. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet .
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 { mixins as wafv2_mixins } from '@aws-cdk/mixins-preview/aws-wafv2';
const responseInspectionStatusCodeProperty: wafv2_mixins.CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty = {
failureCodes: [123],
successCodes: [123],
};
Properties
| Name | Type | Description |
|---|---|---|
| failure | number[] | IResolvable | Status codes in the response that indicate a failed login or account creation attempt. |
| success | number[] | IResolvable | Status codes in the response that indicate a successful login or account creation attempt. |
failureCodes?
Type:
number[] | IResolvable
(optional)
Status codes in the response that indicate a failed login or account creation attempt.
To be counted as a failure, 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
(optional)
Status codes in the response that indicate a successful login or account creation attempt.
To be counted as a success, 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 ]

.NET
Go
Java
Python
TypeScript