Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

JsonMatchPattern

import type { JsonMatchPattern } from "https://aws-api.deno.dev/v0.4/services/wafv2.ts?docs=full";

The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the "FieldToMatch" option JsonBody.

interface JsonMatchPattern {
All?: All | null;
IncludedPaths?: string[] | null;
}

§Properties

§
All?: All | null
[src]

Match all of the elements. See also MatchScope in "JsonBody".

You must specify either this setting or the IncludedPaths setting, but not both.

§
IncludedPaths?: string[] | null
[src]

Match only the specified include paths. See also MatchScope in "JsonBody".

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.

Note: Don't use this option to include all paths. Instead, use the All setting.