aws-cdk-lib.aws_wafv2.CfnRuleGroup.BlockProperty

interface BlockProperty

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

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 blockProperty: wafv2.CfnRuleGroup.BlockProperty = {
  customResponse: {
    responseCode: 123,

    // the properties below are optional
    customResponseBodyKey: 'customResponseBodyKey',
    responseHeaders: [{
      name: 'name',
      value: 'value',
    }],
  },
};

Properties

NameTypeDescription
customResponse?IResolvable | CustomResponsePropertyCfnRuleGroup.BlockProperty.CustomResponse.

customResponse?

Type: IResolvable | CustomResponseProperty (optional)

CfnRuleGroup.BlockProperty.CustomResponse.