Class CfnRuleGroup.HeaderMatchPatternProperty
The filter to use to identify the subset of headers to inspect in a web request.
Inheritance
System.Object
CfnRuleGroup.HeaderMatchPatternProperty
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HeaderMatchPatternProperty : Object, CfnRuleGroup.IHeaderMatchPatternProperty
Syntax (vb)
Public Class HeaderMatchPatternProperty
Inherits Object
Implements CfnRuleGroup.IHeaderMatchPatternProperty
Remarks
You must specify exactly one setting: either All
, IncludedHeaders
, or ExcludedHeaders
.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
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() |
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()
public HeaderMatchPatternProperty()
Properties
All
Inspect all headers.
public object All { get; set; }
Property Value
System.Object
Remarks
ExcludedHeaders
Inspect only the headers whose keys don't match any of the strings specified here.
public string[] ExcludedHeaders { get; set; }
Property Value
System.String[]
Remarks
IncludedHeaders
Inspect only the headers that have a key that matches one of the strings specified here.
public string[] IncludedHeaders { get; set; }
Property Value
System.String[]