Class CfnWebACL.SingleHeaderProperty
Inspect one of the headers in the web request, identified by name, for example, User-Agent
or Referer
.
Inheritance
System.Object
CfnWebACL.SingleHeaderProperty
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class SingleHeaderProperty : Object, CfnWebACL.ISingleHeaderProperty
Syntax (vb)
Public Class SingleHeaderProperty
Inherits Object
Implements CfnWebACL.ISingleHeaderProperty
Remarks
The name isn't case sensitive.
You can filter and inspect all headers with the FieldToMatch
setting Headers
.
This is used to indicate the web request component to inspect, in the FieldToMatch
specification.
Example JSON: "SingleHeader": { "Name": "haystack" }
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 singleHeaderProperty = new SingleHeaderProperty {
Name = "name"
};
Synopsis
Constructors
SingleHeaderProperty() |
Properties
Name | The name of the query header to inspect. |
Constructors
SingleHeaderProperty()
public SingleHeaderProperty()
Properties
Name
The name of the query header to inspect.
public string Name { get; set; }
Property Value
System.String