Interface CfnWebACL.ICustomHTTPHeaderProperty
A custom header for custom request and response handling.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICustomHTTPHeaderProperty
Syntax (vb)
Public Interface ICustomHTTPHeaderProperty
Remarks
This is used in CustomResponse
and CustomRequestHandling
.
ExampleMetadata: fixture=_generated
Examples
// 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 customHTTPHeaderProperty = new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
};
Synopsis
Properties
Name | The name of the custom header. |
Value | The value of the custom header. |
Properties
Name
The name of the custom header.
string Name { get; }
Property Value
System.
Remarks
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
The value of the custom header.
string Value { get; }
Property Value
System.