@Stability(value=Stable)
public static interface CfnRuleGroup.HeaderMatchPatternProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.HeaderMatchPatternProperty.Builder
A builder for
CfnRuleGroup.HeaderMatchPatternProperty |
static class |
CfnRuleGroup.HeaderMatchPatternProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.HeaderMatchPatternProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.HeaderMatchPatternProperty.Builder |
builder() |
default Object |
getAll()
Inspect all headers.
|
default List<String> |
getExcludedHeaders()
Inspect only the headers whose keys don't match any of the strings specified here.
|
default List<String> |
getIncludedHeaders()
Inspect only the headers that have a key that matches one of the strings specified here.
|
@Stability(value=Stable) @Nullable default Object getAll()
@Stability(value=Stable) @Nullable default List<String> getExcludedHeaders()
@Stability(value=Stable) @Nullable default List<String> getIncludedHeaders()
@Stability(value=Stable) static CfnRuleGroup.HeaderMatchPatternProperty.Builder builder()
Copyright © 2022. All rights reserved.