Interface CfnWebACL.CustomHTTPHeaderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.CustomHTTPHeaderProperty.Jsii$Proxy
- Enclosing class:
- CfnWebACL
@Stability(Stable)
public static interface CfnWebACL.CustomHTTPHeaderProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.wafv2.*; CustomHTTPHeaderProperty customHTTPHeaderProperty = CustomHTTPHeaderProperty.builder() .name("name") .value("value") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACL.CustomHTTPHeaderProperty
static final class
An implementation forCfnWebACL.CustomHTTPHeaderProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
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 namesample
, AWS WAF inserts the headerx-amzn-waf-sample
. -
getValue
The value of the custom header. -
builder
-