Show / Hide Table of Contents

Class CfnRuleGroup.BlockProperty

Block traffic towards application.

Inheritance
object
CfnRuleGroup.BlockProperty
Implements
CfnRuleGroup.IBlockProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-block.html

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-block.html

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; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-block.html#cfn-wafv2-rulegroup-block-customresponse

Type union: either IResolvable or CfnRuleGroup.ICustomResponseProperty

Implements

CfnRuleGroup.IBlockProperty
Back to top Generated by DocFX