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