@Stability(value=Stable)
public static interface CfnWebACL.CustomHTTPHeaderProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebACL.CustomHTTPHeaderProperty.Builder
A builder for
CfnWebACL.CustomHTTPHeaderProperty |
static class |
CfnWebACL.CustomHTTPHeaderProperty.Jsii$Proxy
An implementation for
CfnWebACL.CustomHTTPHeaderProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebACL.CustomHTTPHeaderProperty.Builder |
builder() |
String |
getName()
The name of the custom header.
|
String |
getValue()
The value of the custom header.
|
@Stability(value=Stable) @NotNull String getName()
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 .
@Stability(value=Stable) @NotNull String getValue()
@Stability(value=Stable) static CfnWebACL.CustomHTTPHeaderProperty.Builder builder()
Copyright © 2022. All rights reserved.