interface BlockProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.WAFv2.CfnRuleGroup.BlockProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnRuleGroup_BlockProperty |
Java | software.amazon.awscdk.services.wafv2.CfnRuleGroup.BlockProperty |
Python | aws_cdk.aws_wafv2.CfnRuleGroup.BlockProperty |
TypeScript | aws-cdk-lib » aws_wafv2 » CfnRuleGroup » BlockProperty |
Block traffic towards application.
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
Name | Type | Description |
---|---|---|
custom | IResolvable | Custom | Custom response. |
customResponse?
Type:
IResolvable
|
Custom
(optional)
Custom response.