Class CfnRuleGroup.BlockProperty
Block traffic towards application.
Inheritance
System.Object
CfnRuleGroup.BlockProperty
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BlockProperty : Object, CfnRuleGroup.IBlockProperty
Syntax (vb)
Public Class BlockProperty
Inherits Object
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() |
Properties
CustomResponse | Custom response. |
Constructors
BlockProperty()
public BlockProperty()
Properties
CustomResponse
Custom response.
public object CustomResponse { get; set; }
Property Value
System.Object