@Stability(value=Stable)
public static interface CfnWebACL.JsonMatchPatternProperty
extends software.amazon.jsii.JsiiSerializable
AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the FieldToMatch option JsonBody .
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;
JsonMatchPatternProperty jsonMatchPatternProperty = JsonMatchPatternProperty.builder()
.all(all)
.includedPaths(List.of("includedPaths"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebACL.JsonMatchPatternProperty.Builder
A builder for
CfnWebACL.JsonMatchPatternProperty |
static class |
CfnWebACL.JsonMatchPatternProperty.Jsii$Proxy
An implementation for
CfnWebACL.JsonMatchPatternProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebACL.JsonMatchPatternProperty.Builder |
builder() |
default Object |
getAll()
Match all of the elements.
|
default List<String> |
getIncludedPaths()
Match only the specified include paths.
|
@Stability(value=Stable) @Nullable default Object getAll()
You must specify either this setting or the IncludedPaths setting, but not both.
@Stability(value=Stable) @Nullable default List<String> getIncludedPaths()
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"] . For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .
You must specify either this setting or the All setting, but not both.
Don't use this option to include all paths. Instead, use the
Allsetting.
@Stability(value=Stable) static CfnWebACL.JsonMatchPatternProperty.Builder builder()
Copyright © 2022. All rights reserved.