aws-cdk-lib.aws_wafv2.CfnLoggingConfiguration.SingleHeaderProperty

interface SingleHeaderProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnLoggingConfiguration.SingleHeaderProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnLoggingConfiguration_SingleHeaderProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.SingleHeaderProperty
Pythonaws_cdk.aws_wafv2.CfnLoggingConfiguration.SingleHeaderProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnLoggingConfiguration » 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" }

Example

// 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',
};

Properties

NameTypeDescription
namestringThe name of the query header to inspect.

name

Type: string

The name of the query header to inspect.