aws-cdk-lib.aws_wafv2.CfnWebACL.CountActionProperty

interface CountActionProperty

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

Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

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 countActionProperty: wafv2.CfnWebACL.CountActionProperty = {
  customRequestHandling: {
    insertHeaders: [{
      name: 'name',
      value: 'value',
    }],
  },
};

Properties

NameTypeDescription
customRequestHandling?IResolvable | CustomRequestHandlingPropertyDefines custom handling for the web request.

customRequestHandling?

Type: IResolvable | CustomRequestHandlingProperty (optional)

Defines custom handling for the web request.

For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .