aws-cdk-lib.aws_wafv2.CfnRuleGroup.CustomHTTPHeaderProperty

interface CustomHTTPHeaderProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnRuleGroup.CustomHTTPHeaderProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnRuleGroup_CustomHTTPHeaderProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomHTTPHeaderProperty
Pythonaws_cdk.aws_wafv2.CfnRuleGroup.CustomHTTPHeaderProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnRuleGroup » CustomHTTPHeaderProperty

A custom header for custom request and response handling.

This is used in CustomResponse and CustomRequestHandling

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

Properties

NameTypeDescription
namestringThe name of the custom header.
valuestringThe value of the custom header.

name

Type: string

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

Type: string

The value of the custom header.