Class CfnRuleGroup.BlockProperty
Block traffic towards application.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.BlockProperty : CfnRuleGroup.IBlockProperty
Syntax (vb)
Public Class CfnRuleGroup.BlockProperty Implements CfnRuleGroup.IBlockProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var blockProperty = new BlockProperty {
CustomResponse = new CustomResponseProperty {
ResponseCode = 123,
// the properties below are optional
CustomResponseBodyKey = "customResponseBodyKey",
ResponseHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
}
};
Synopsis
Constructors
| BlockProperty() | Block traffic towards application. |
Properties
| CustomResponse | Custom response. |
Constructors
BlockProperty()
Block traffic towards application.
public BlockProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var blockProperty = new BlockProperty {
CustomResponse = new CustomResponseProperty {
ResponseCode = 123,
// the properties below are optional
CustomResponseBodyKey = "customResponseBodyKey",
ResponseHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
}
};
Properties
CustomResponse
Custom response.
public object? CustomResponse { get; set; }