Show / Hide Table of Contents

Class CfnWebACL.HeaderMatchPatternProperty

The filter to use to identify the subset of headers to inspect in a web request.

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

You must specify exactly one setting: either All , IncludedHeaders , or ExcludedHeaders .

Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.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 all;

             var headerMatchPatternProperty = new HeaderMatchPatternProperty {
                 All = all,
                 ExcludedHeaders = new [] { "excludedHeaders" },
                 IncludedHeaders = new [] { "includedHeaders" }
             };

Synopsis

Constructors

HeaderMatchPatternProperty()

The filter to use to identify the subset of headers to inspect in a web request.

Properties

All

Inspect all headers.

ExcludedHeaders

Inspect only the headers whose keys don't match any of the strings specified here.

IncludedHeaders

Inspect only the headers that have a key that matches one of the strings specified here.

Constructors

HeaderMatchPatternProperty()

The filter to use to identify the subset of headers to inspect in a web request.

public HeaderMatchPatternProperty()
Remarks

You must specify exactly one setting: either All , IncludedHeaders , or ExcludedHeaders .

Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.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 all;

             var headerMatchPatternProperty = new HeaderMatchPatternProperty {
                 All = all,
                 ExcludedHeaders = new [] { "excludedHeaders" },
                 IncludedHeaders = new [] { "includedHeaders" }
             };

Properties

All

Inspect all headers.

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

object

Remarks

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

ExcludedHeaders

Inspect only the headers whose keys don't match any of the strings specified here.

public string[]? ExcludedHeaders { get; set; }
Property Value

string[]

Remarks

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

IncludedHeaders

Inspect only the headers that have a key that matches one of the strings specified here.

public string[]? IncludedHeaders { get; set; }
Property Value

string[]

Remarks

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

Implements

CfnWebACL.IHeaderMatchPatternProperty
Back to top Generated by DocFX