# CustomHTTPHeaderProperty

A custom header for custom request and response handling.

This is used in `CustomResponse` and `CustomRequestHandling` .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```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 customHTTPHeaderProperty: wafv2.CfnWebACL.CustomHTTPHeaderProperty = {
  name: 'name',
  value: 'value',
};
```

## Properties

- `name`: string (required) — The name of the custom header.

  For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-` , to avoid confusion with the headers that are already in the request. For example, for the header name `sample` , AWS WAF inserts the header `x-amzn-waf-sample` .

- `value`: string (required) — The value of the custom header.
