Interface CfnWebACL.HeaderMatchPatternProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.HeaderMatchPatternProperty.Jsii$Proxy
- Enclosing class:
CfnWebACL
@Stability(Stable)
public static interface CfnWebACL.HeaderMatchPatternProperty
extends software.amazon.jsii.JsiiSerializable
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" ] }
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.*;
Object all;
HeaderMatchPatternProperty headerMatchPatternProperty = HeaderMatchPatternProperty.builder()
.all(all)
.excludedHeaders(List.of("excludedHeaders"))
.includedHeaders(List.of("includedHeaders"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWebACL.HeaderMatchPatternPropertystatic final classAn implementation forCfnWebACL.HeaderMatchPatternProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAll
Inspect all headers.- See Also:
-
getExcludedHeaders
Inspect only the headers whose keys don't match any of the strings specified here.- See Also:
-
getIncludedHeaders
Inspect only the headers that have a key that matches one of the strings specified here.- See Also:
-
builder
-