public static interface Headers.Builder extends SdkPojo, CopyableBuilder<Headers.Builder,Headers>
| Modifier and Type | Method and Description |
|---|---|
default Headers.Builder |
matchPattern(Consumer<HeaderMatchPattern.Builder> matchPattern)
The filter to use to identify the subset of headers to inspect in a web request.
|
Headers.Builder |
matchPattern(HeaderMatchPattern matchPattern)
The filter to use to identify the subset of headers to inspect in a web request.
|
Headers.Builder |
matchScope(MapMatchScope matchScope)
The parts of the headers to match with the rule inspection criteria.
|
Headers.Builder |
matchScope(String matchScope)
The parts of the headers to match with the rule inspection criteria.
|
Headers.Builder |
oversizeHandling(OversizeHandling oversizeHandling)
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect.
|
Headers.Builder |
oversizeHandling(String oversizeHandling)
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHeaders.Builder matchPattern(HeaderMatchPattern matchPattern)
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All, IncludedHeaders, or
ExcludedHeaders.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
matchPattern - The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All, IncludedHeaders, or
ExcludedHeaders.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
default Headers.Builder matchPattern(Consumer<HeaderMatchPattern.Builder> matchPattern)
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All, IncludedHeaders, or
ExcludedHeaders.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
HeaderMatchPattern.Builder avoiding the
need to create one manually via HeaderMatchPattern.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to matchPattern(HeaderMatchPattern).
matchPattern - a consumer that will call methods on HeaderMatchPattern.BuildermatchPattern(HeaderMatchPattern)Headers.Builder matchScope(String matchScope)
The parts of the headers to match with the rule inspection criteria. If you specify All, WAF
inspects both keys and values.
matchScope - The parts of the headers to match with the rule inspection criteria. If you specify All,
WAF inspects both keys and values.MapMatchScope,
MapMatchScopeHeaders.Builder matchScope(MapMatchScope matchScope)
The parts of the headers to match with the rule inspection criteria. If you specify All, WAF
inspects both keys and values.
matchScope - The parts of the headers to match with the rule inspection criteria. If you specify All,
WAF inspects both keys and values.MapMatchScope,
MapMatchScopeHeaders.Builder oversizeHandling(String oversizeHandling)
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.
The options for oversize handling are the following:
CONTINUE - Inspect the available headers normally, according to the rule inspection criteria.
MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the
request.
NO_MATCH - Treat the web request as not matching the rule statement.
oversizeHandling - What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF
does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes)
or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB
of header contents to WAF.
The options for oversize handling are the following:
CONTINUE - Inspect the available headers normally, according to the rule inspection
criteria.
MATCH - Treat the web request as matching the rule statement. WAF applies the rule action
to the request.
NO_MATCH - Treat the web request as not matching the rule statement.
OversizeHandling,
OversizeHandlingHeaders.Builder oversizeHandling(OversizeHandling oversizeHandling)
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.
The options for oversize handling are the following:
CONTINUE - Inspect the available headers normally, according to the rule inspection criteria.
MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the
request.
NO_MATCH - Treat the web request as not matching the rule statement.
oversizeHandling - What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF
does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes)
or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB
of header contents to WAF.
The options for oversize handling are the following:
CONTINUE - Inspect the available headers normally, according to the rule inspection
criteria.
MATCH - Treat the web request as matching the rule statement. WAF applies the rule action
to the request.
NO_MATCH - Treat the web request as not matching the rule statement.
OversizeHandling,
OversizeHandlingCopyright © 2023. All rights reserved.