public static interface CfnWebACL.CustomHTTPHeaderProperty
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() |
java.lang.String |
getName()
The name of the custom header.
|
java.lang.String |
getValue()
The value of the custom header.
|
java.lang.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
.
java.lang.String getValue()
static CfnWebACL.CustomHTTPHeaderProperty.Builder builder()