Class CfnWebACL.CustomHTTPHeaderProperty
A custom header for custom request and response handling.
Inheritance
System.Object
CfnWebACL.CustomHTTPHeaderProperty
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class CustomHTTPHeaderProperty : Object, CfnWebACL.ICustomHTTPHeaderProperty
Syntax (vb)
Public Class CustomHTTPHeaderProperty
Inherits Object
Implements CfnWebACL.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
Constructors
CustomHTTPHeaderProperty() |
Properties
Name | The name of the custom header. |
Value | The value of the custom header. |
Constructors
CustomHTTPHeaderProperty()
public CustomHTTPHeaderProperty()
Properties
Name
The name of the custom header.
public string Name { get; set; }
Property Value
System.String
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.
public string Value { get; set; }
Property Value
System.String