# SingleHeaderProperty

Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .

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" }`

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const singleHeaderProperty: wafv2.CfnLoggingConfiguration.SingleHeaderProperty = {
  name: 'name',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

single_header_property = wafv2.CfnLoggingConfiguration.SingleHeaderProperty(
    name="name"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;

SingleHeaderProperty singleHeaderProperty = SingleHeaderProperty.builder()
        .name("name")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleHeaderProperty := &SingleHeaderProperty{
	Name: jsii.String("name"),
}
```

## Properties

- `name`: string (required) — The name of the query header to inspect.
