interface CustomHTTPHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins.CfnWebACLPropsMixin.CustomHTTPHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafv2/mixins#CfnWebACLPropsMixin_CustomHTTPHeaderProperty |
Java | software.amazon.awscdk.mixins.preview.services.wafv2.mixins.CfnWebACLPropsMixin.CustomHTTPHeaderProperty |
Python | aws_cdk.mixins_preview.aws_wafv2.mixins.CfnWebACLPropsMixin.CustomHTTPHeaderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wafv2 » mixins » CfnWebACLPropsMixin » 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 { mixins as wafv2_mixins } from '@aws-cdk/mixins-preview/aws-wafv2';
const customHTTPHeaderProperty: wafv2_mixins.CfnWebACLPropsMixin.CustomHTTPHeaderProperty = {
name: 'name',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| name? | string | The name of the custom header. |
| value? | string | The value of the custom header. |
name?
Type:
string
(optional)
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
(optional)
The value of the custom header.

.NET
Go
Java
Python
TypeScript