Show / Hide Table of Contents

Class CfnWebACL.BlockActionProperty

Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.

Inheritance
object
CfnWebACL.BlockActionProperty
Implements
CfnWebACL.IBlockActionProperty
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 CfnWebACL.BlockActionProperty : CfnWebACL.IBlockActionProperty
Syntax (vb)
Public Class CfnWebACL.BlockActionProperty Implements CfnWebACL.IBlockActionProperty
Remarks

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.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 blockActionProperty = new BlockActionProperty {
                 CustomResponse = new CustomResponseProperty {
                     ResponseCode = 123,

                     // the properties below are optional
                     CustomResponseBodyKey = "customResponseBodyKey",
                     ResponseHeaders = new [] { new CustomHTTPHeaderProperty {
                         Name = "name",
                         Value = "value"
                     } }
                 }
             };

Synopsis

Constructors

BlockActionProperty()

Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.

Properties

CustomResponse

Defines a custom response for the web request.

Constructors

BlockActionProperty()

Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.

public BlockActionProperty()
Remarks

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.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 blockActionProperty = new BlockActionProperty {
                 CustomResponse = new CustomResponseProperty {
                     ResponseCode = 123,

                     // the properties below are optional
                     CustomResponseBodyKey = "customResponseBodyKey",
                     ResponseHeaders = new [] { new CustomHTTPHeaderProperty {
                         Name = "name",
                         Value = "value"
                     } }
                 }
             };

Properties

CustomResponse

Defines a custom response for the web request.

public object? CustomResponse { get; set; }
Property Value

object

Remarks

For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .

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

Type union: either IResolvable or CfnWebACL.ICustomResponseProperty

Implements

CfnWebACL.IBlockActionProperty
Back to top Generated by DocFX