@aws-sdk/client-wafv2 3.299.0 → 3.301.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist-types/commands/AssociateWebACLCommand.d.ts +4 -0
  2. package/dist-types/commands/CheckCapacityCommand.d.ts +740 -0
  3. package/dist-types/commands/CreateIPSetCommand.d.ts +15 -0
  4. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +16 -0
  5. package/dist-types/commands/CreateRuleGroupCommand.d.ts +760 -0
  6. package/dist-types/commands/CreateWebACLCommand.d.ts +760 -0
  7. package/dist-types/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +4 -0
  8. package/dist-types/commands/DeleteIPSetCommand.d.ts +6 -0
  9. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +3 -0
  10. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +3 -0
  11. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +6 -0
  12. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +6 -0
  13. package/dist-types/commands/DeleteWebACLCommand.d.ts +6 -0
  14. package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +6 -0
  15. package/dist-types/commands/DisassociateWebACLCommand.d.ts +3 -0
  16. package/dist-types/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +4 -0
  17. package/dist-types/commands/GetIPSetCommand.d.ts +5 -0
  18. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +3 -0
  19. package/dist-types/commands/GetManagedRuleSetCommand.d.ts +5 -0
  20. package/dist-types/commands/GetMobileSdkReleaseCommand.d.ts +4 -0
  21. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +3 -0
  22. package/dist-types/commands/GetRateBasedStatementManagedKeysCommand.d.ts +7 -0
  23. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +5 -0
  24. package/dist-types/commands/GetRuleGroupCommand.d.ts +6 -0
  25. package/dist-types/commands/GetSampledRequestsCommand.d.ts +10 -0
  26. package/dist-types/commands/GetWebACLCommand.d.ts +5 -0
  27. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +3 -0
  28. package/dist-types/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +7 -0
  29. package/dist-types/commands/ListAvailableManagedRuleGroupsCommand.d.ts +5 -0
  30. package/dist-types/commands/ListIPSetsCommand.d.ts +5 -0
  31. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +5 -0
  32. package/dist-types/commands/ListManagedRuleSetsCommand.d.ts +5 -0
  33. package/dist-types/commands/ListMobileSdkReleasesCommand.d.ts +5 -0
  34. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +5 -0
  35. package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +4 -0
  36. package/dist-types/commands/ListRuleGroupsCommand.d.ts +5 -0
  37. package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -0
  38. package/dist-types/commands/ListWebACLsCommand.d.ts +5 -0
  39. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +82 -0
  40. package/dist-types/commands/PutManagedRuleSetVersionsCommand.d.ts +13 -0
  41. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +4 -0
  42. package/dist-types/commands/TagResourceCommand.d.ts +9 -0
  43. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  44. package/dist-types/commands/UpdateIPSetCommand.d.ts +10 -0
  45. package/dist-types/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +8 -0
  46. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +12 -0
  47. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +755 -0
  48. package/dist-types/commands/UpdateWebACLCommand.d.ts +756 -0
  49. package/package.json +8 -8
@@ -37,6 +37,746 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
37
37
  * import { WAFV2Client, CheckCapacityCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
38
38
  * // const { WAFV2Client, CheckCapacityCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
39
39
  * const client = new WAFV2Client(config);
40
+ * const input = { // CheckCapacityRequest
41
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
42
+ * Rules: [ // Rules // required
43
+ * { // Rule
44
+ * Name: "STRING_VALUE", // required
45
+ * Priority: Number("int"), // required
46
+ * Statement: { // Statement
47
+ * ByteMatchStatement: { // ByteMatchStatement
48
+ * SearchString: "BLOB_VALUE", // required
49
+ * FieldToMatch: { // FieldToMatch
50
+ * SingleHeader: { // SingleHeader
51
+ * Name: "STRING_VALUE", // required
52
+ * },
53
+ * SingleQueryArgument: { // SingleQueryArgument
54
+ * Name: "STRING_VALUE", // required
55
+ * },
56
+ * AllQueryArguments: {},
57
+ * UriPath: {},
58
+ * QueryString: {},
59
+ * Body: { // Body
60
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
61
+ * },
62
+ * Method: {},
63
+ * JsonBody: { // JsonBody
64
+ * MatchPattern: { // JsonMatchPattern
65
+ * All: {},
66
+ * IncludedPaths: [ // JsonPointerPaths
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * },
70
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
71
+ * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
72
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
73
+ * },
74
+ * Headers: { // Headers
75
+ * MatchPattern: { // HeaderMatchPattern
76
+ * All: {},
77
+ * IncludedHeaders: [ // HeaderNames
78
+ * "STRING_VALUE",
79
+ * ],
80
+ * ExcludedHeaders: [
81
+ * "STRING_VALUE",
82
+ * ],
83
+ * },
84
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
85
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
86
+ * },
87
+ * Cookies: { // Cookies
88
+ * MatchPattern: { // CookieMatchPattern
89
+ * All: {},
90
+ * IncludedCookies: [ // CookieNames
91
+ * "STRING_VALUE",
92
+ * ],
93
+ * ExcludedCookies: [
94
+ * "STRING_VALUE",
95
+ * ],
96
+ * },
97
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
98
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
99
+ * },
100
+ * },
101
+ * TextTransformations: [ // TextTransformations // required
102
+ * { // TextTransformation
103
+ * Priority: Number("int"), // required
104
+ * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
105
+ * },
106
+ * ],
107
+ * PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
108
+ * },
109
+ * SqliMatchStatement: { // SqliMatchStatement
110
+ * FieldToMatch: {
111
+ * SingleHeader: {
112
+ * Name: "STRING_VALUE", // required
113
+ * },
114
+ * SingleQueryArgument: {
115
+ * Name: "STRING_VALUE", // required
116
+ * },
117
+ * AllQueryArguments: {},
118
+ * UriPath: {},
119
+ * QueryString: {},
120
+ * Body: {
121
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
122
+ * },
123
+ * Method: {},
124
+ * JsonBody: {
125
+ * MatchPattern: {
126
+ * All: {},
127
+ * IncludedPaths: [
128
+ * "STRING_VALUE",
129
+ * ],
130
+ * },
131
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
132
+ * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
133
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
134
+ * },
135
+ * Headers: {
136
+ * MatchPattern: {
137
+ * All: {},
138
+ * IncludedHeaders: [
139
+ * "STRING_VALUE",
140
+ * ],
141
+ * ExcludedHeaders: [
142
+ * "STRING_VALUE",
143
+ * ],
144
+ * },
145
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
146
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
147
+ * },
148
+ * Cookies: {
149
+ * MatchPattern: {
150
+ * All: "<All>",
151
+ * IncludedCookies: [
152
+ * "STRING_VALUE",
153
+ * ],
154
+ * ExcludedCookies: [
155
+ * "STRING_VALUE",
156
+ * ],
157
+ * },
158
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
159
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
160
+ * },
161
+ * },
162
+ * TextTransformations: [ // required
163
+ * {
164
+ * Priority: Number("int"), // required
165
+ * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
166
+ * },
167
+ * ],
168
+ * SensitivityLevel: "LOW" || "HIGH",
169
+ * },
170
+ * XssMatchStatement: { // XssMatchStatement
171
+ * FieldToMatch: {
172
+ * SingleHeader: {
173
+ * Name: "STRING_VALUE", // required
174
+ * },
175
+ * SingleQueryArgument: {
176
+ * Name: "STRING_VALUE", // required
177
+ * },
178
+ * AllQueryArguments: {},
179
+ * UriPath: {},
180
+ * QueryString: {},
181
+ * Body: {
182
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
183
+ * },
184
+ * Method: {},
185
+ * JsonBody: {
186
+ * MatchPattern: {
187
+ * All: "<All>",
188
+ * IncludedPaths: [
189
+ * "STRING_VALUE",
190
+ * ],
191
+ * },
192
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
193
+ * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
194
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
195
+ * },
196
+ * Headers: {
197
+ * MatchPattern: {
198
+ * All: "<All>",
199
+ * IncludedHeaders: [
200
+ * "STRING_VALUE",
201
+ * ],
202
+ * ExcludedHeaders: "<HeaderNames>",
203
+ * },
204
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
205
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
206
+ * },
207
+ * Cookies: {
208
+ * MatchPattern: {
209
+ * All: "<All>",
210
+ * IncludedCookies: [
211
+ * "STRING_VALUE",
212
+ * ],
213
+ * ExcludedCookies: "<CookieNames>",
214
+ * },
215
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
216
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
217
+ * },
218
+ * },
219
+ * TextTransformations: [ // required
220
+ * {
221
+ * Priority: Number("int"), // required
222
+ * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
223
+ * },
224
+ * ],
225
+ * },
226
+ * SizeConstraintStatement: { // SizeConstraintStatement
227
+ * FieldToMatch: {
228
+ * SingleHeader: {
229
+ * Name: "STRING_VALUE", // required
230
+ * },
231
+ * SingleQueryArgument: {
232
+ * Name: "STRING_VALUE", // required
233
+ * },
234
+ * AllQueryArguments: {},
235
+ * UriPath: {},
236
+ * QueryString: {},
237
+ * Body: {
238
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
239
+ * },
240
+ * Method: {},
241
+ * JsonBody: {
242
+ * MatchPattern: {
243
+ * All: "<All>",
244
+ * IncludedPaths: [
245
+ * "STRING_VALUE",
246
+ * ],
247
+ * },
248
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
249
+ * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
250
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
251
+ * },
252
+ * Headers: {
253
+ * MatchPattern: {
254
+ * All: "<All>",
255
+ * IncludedHeaders: "<HeaderNames>",
256
+ * ExcludedHeaders: "<HeaderNames>",
257
+ * },
258
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
259
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
260
+ * },
261
+ * Cookies: {
262
+ * MatchPattern: {
263
+ * All: "<All>",
264
+ * IncludedCookies: "<CookieNames>",
265
+ * ExcludedCookies: "<CookieNames>",
266
+ * },
267
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
268
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
269
+ * },
270
+ * },
271
+ * ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
272
+ * Size: Number("long"), // required
273
+ * TextTransformations: [ // required
274
+ * {
275
+ * Priority: Number("int"), // required
276
+ * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
277
+ * },
278
+ * ],
279
+ * },
280
+ * GeoMatchStatement: { // GeoMatchStatement
281
+ * CountryCodes: [ // CountryCodes
282
+ * "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
283
+ * ],
284
+ * ForwardedIPConfig: { // ForwardedIPConfig
285
+ * HeaderName: "STRING_VALUE", // required
286
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
287
+ * },
288
+ * },
289
+ * RuleGroupReferenceStatement: { // RuleGroupReferenceStatement
290
+ * ARN: "STRING_VALUE", // required
291
+ * ExcludedRules: [ // ExcludedRules
292
+ * { // ExcludedRule
293
+ * Name: "STRING_VALUE", // required
294
+ * },
295
+ * ],
296
+ * RuleActionOverrides: [ // RuleActionOverrides
297
+ * { // RuleActionOverride
298
+ * Name: "STRING_VALUE", // required
299
+ * ActionToUse: { // RuleAction
300
+ * Block: { // BlockAction
301
+ * CustomResponse: { // CustomResponse
302
+ * ResponseCode: Number("int"), // required
303
+ * CustomResponseBodyKey: "STRING_VALUE",
304
+ * ResponseHeaders: [ // CustomHTTPHeaders
305
+ * { // CustomHTTPHeader
306
+ * Name: "STRING_VALUE", // required
307
+ * Value: "STRING_VALUE", // required
308
+ * },
309
+ * ],
310
+ * },
311
+ * },
312
+ * Allow: { // AllowAction
313
+ * CustomRequestHandling: { // CustomRequestHandling
314
+ * InsertHeaders: [ // required
315
+ * {
316
+ * Name: "STRING_VALUE", // required
317
+ * Value: "STRING_VALUE", // required
318
+ * },
319
+ * ],
320
+ * },
321
+ * },
322
+ * Count: { // CountAction
323
+ * CustomRequestHandling: {
324
+ * InsertHeaders: [ // required
325
+ * {
326
+ * Name: "STRING_VALUE", // required
327
+ * Value: "STRING_VALUE", // required
328
+ * },
329
+ * ],
330
+ * },
331
+ * },
332
+ * Captcha: { // CaptchaAction
333
+ * CustomRequestHandling: {
334
+ * InsertHeaders: [ // required
335
+ * {
336
+ * Name: "STRING_VALUE", // required
337
+ * Value: "STRING_VALUE", // required
338
+ * },
339
+ * ],
340
+ * },
341
+ * },
342
+ * Challenge: { // ChallengeAction
343
+ * CustomRequestHandling: {
344
+ * InsertHeaders: [ // required
345
+ * {
346
+ * Name: "STRING_VALUE", // required
347
+ * Value: "STRING_VALUE", // required
348
+ * },
349
+ * ],
350
+ * },
351
+ * },
352
+ * },
353
+ * },
354
+ * ],
355
+ * },
356
+ * IPSetReferenceStatement: { // IPSetReferenceStatement
357
+ * ARN: "STRING_VALUE", // required
358
+ * IPSetForwardedIPConfig: { // IPSetForwardedIPConfig
359
+ * HeaderName: "STRING_VALUE", // required
360
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
361
+ * Position: "FIRST" || "LAST" || "ANY", // required
362
+ * },
363
+ * },
364
+ * RegexPatternSetReferenceStatement: { // RegexPatternSetReferenceStatement
365
+ * ARN: "STRING_VALUE", // required
366
+ * FieldToMatch: {
367
+ * SingleHeader: {
368
+ * Name: "STRING_VALUE", // required
369
+ * },
370
+ * SingleQueryArgument: {
371
+ * Name: "STRING_VALUE", // required
372
+ * },
373
+ * AllQueryArguments: {},
374
+ * UriPath: {},
375
+ * QueryString: {},
376
+ * Body: {
377
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
378
+ * },
379
+ * Method: {},
380
+ * JsonBody: {
381
+ * MatchPattern: {
382
+ * All: "<All>",
383
+ * IncludedPaths: [
384
+ * "STRING_VALUE",
385
+ * ],
386
+ * },
387
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
388
+ * InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
389
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
390
+ * },
391
+ * Headers: {
392
+ * MatchPattern: {
393
+ * All: "<All>",
394
+ * IncludedHeaders: "<HeaderNames>",
395
+ * ExcludedHeaders: "<HeaderNames>",
396
+ * },
397
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
398
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
399
+ * },
400
+ * Cookies: {
401
+ * MatchPattern: {
402
+ * All: "<All>",
403
+ * IncludedCookies: "<CookieNames>",
404
+ * ExcludedCookies: "<CookieNames>",
405
+ * },
406
+ * MatchScope: "ALL" || "KEY" || "VALUE", // required
407
+ * OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
408
+ * },
409
+ * },
410
+ * TextTransformations: [ // required
411
+ * {
412
+ * Priority: Number("int"), // required
413
+ * Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
414
+ * },
415
+ * ],
416
+ * },
417
+ * RateBasedStatement: { // RateBasedStatement
418
+ * Limit: Number("long"), // required
419
+ * AggregateKeyType: "IP" || "FORWARDED_IP", // required
420
+ * ScopeDownStatement: {
421
+ * ByteMatchStatement: {
422
+ * SearchString: "BLOB_VALUE", // required
423
+ * FieldToMatch: "<FieldToMatch>", // required
424
+ * TextTransformations: "<TextTransformations>", // required
425
+ * PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
426
+ * },
427
+ * SqliMatchStatement: {
428
+ * FieldToMatch: "<FieldToMatch>", // required
429
+ * TextTransformations: "<TextTransformations>", // required
430
+ * SensitivityLevel: "LOW" || "HIGH",
431
+ * },
432
+ * XssMatchStatement: {
433
+ * FieldToMatch: "<FieldToMatch>", // required
434
+ * TextTransformations: "<TextTransformations>", // required
435
+ * },
436
+ * SizeConstraintStatement: {
437
+ * FieldToMatch: "<FieldToMatch>", // required
438
+ * ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
439
+ * Size: Number("long"), // required
440
+ * TextTransformations: "<TextTransformations>", // required
441
+ * },
442
+ * GeoMatchStatement: {
443
+ * CountryCodes: [
444
+ * "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
445
+ * ],
446
+ * ForwardedIPConfig: {
447
+ * HeaderName: "STRING_VALUE", // required
448
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
449
+ * },
450
+ * },
451
+ * RuleGroupReferenceStatement: {
452
+ * ARN: "STRING_VALUE", // required
453
+ * ExcludedRules: [
454
+ * {
455
+ * Name: "STRING_VALUE", // required
456
+ * },
457
+ * ],
458
+ * RuleActionOverrides: [
459
+ * {
460
+ * Name: "STRING_VALUE", // required
461
+ * ActionToUse: {
462
+ * Block: {
463
+ * CustomResponse: {
464
+ * ResponseCode: Number("int"), // required
465
+ * CustomResponseBodyKey: "STRING_VALUE",
466
+ * ResponseHeaders: "<CustomHTTPHeaders>",
467
+ * },
468
+ * },
469
+ * Allow: {
470
+ * CustomRequestHandling: {
471
+ * InsertHeaders: "<CustomHTTPHeaders>", // required
472
+ * },
473
+ * },
474
+ * Count: {
475
+ * CustomRequestHandling: "<CustomRequestHandling>",
476
+ * },
477
+ * Captcha: {
478
+ * CustomRequestHandling: "<CustomRequestHandling>",
479
+ * },
480
+ * Challenge: {
481
+ * CustomRequestHandling: "<CustomRequestHandling>",
482
+ * },
483
+ * },
484
+ * },
485
+ * ],
486
+ * },
487
+ * IPSetReferenceStatement: {
488
+ * ARN: "STRING_VALUE", // required
489
+ * IPSetForwardedIPConfig: {
490
+ * HeaderName: "STRING_VALUE", // required
491
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
492
+ * Position: "FIRST" || "LAST" || "ANY", // required
493
+ * },
494
+ * },
495
+ * RegexPatternSetReferenceStatement: {
496
+ * ARN: "STRING_VALUE", // required
497
+ * FieldToMatch: "<FieldToMatch>", // required
498
+ * TextTransformations: "<TextTransformations>", // required
499
+ * },
500
+ * RateBasedStatement: {
501
+ * Limit: Number("long"), // required
502
+ * AggregateKeyType: "IP" || "FORWARDED_IP", // required
503
+ * ScopeDownStatement: "<Statement>",
504
+ * ForwardedIPConfig: {
505
+ * HeaderName: "STRING_VALUE", // required
506
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
507
+ * },
508
+ * },
509
+ * AndStatement: { // AndStatement
510
+ * Statements: [ // Statements // required
511
+ * "<Statement>",
512
+ * ],
513
+ * },
514
+ * OrStatement: { // OrStatement
515
+ * Statements: [ // required
516
+ * "<Statement>",
517
+ * ],
518
+ * },
519
+ * NotStatement: { // NotStatement
520
+ * Statement: "<Statement>", // required
521
+ * },
522
+ * ManagedRuleGroupStatement: { // ManagedRuleGroupStatement
523
+ * VendorName: "STRING_VALUE", // required
524
+ * Name: "STRING_VALUE", // required
525
+ * Version: "STRING_VALUE",
526
+ * ExcludedRules: [
527
+ * {
528
+ * Name: "STRING_VALUE", // required
529
+ * },
530
+ * ],
531
+ * ScopeDownStatement: "<Statement>",
532
+ * ManagedRuleGroupConfigs: [ // ManagedRuleGroupConfigs
533
+ * { // ManagedRuleGroupConfig
534
+ * LoginPath: "STRING_VALUE",
535
+ * PayloadType: "JSON" || "FORM_ENCODED",
536
+ * UsernameField: { // UsernameField
537
+ * Identifier: "STRING_VALUE", // required
538
+ * },
539
+ * PasswordField: { // PasswordField
540
+ * Identifier: "STRING_VALUE", // required
541
+ * },
542
+ * AWSManagedRulesBotControlRuleSet: { // AWSManagedRulesBotControlRuleSet
543
+ * InspectionLevel: "COMMON" || "TARGETED", // required
544
+ * },
545
+ * AWSManagedRulesATPRuleSet: { // AWSManagedRulesATPRuleSet
546
+ * LoginPath: "STRING_VALUE", // required
547
+ * RequestInspection: { // RequestInspection
548
+ * PayloadType: "JSON" || "FORM_ENCODED", // required
549
+ * UsernameField: {
550
+ * Identifier: "STRING_VALUE", // required
551
+ * },
552
+ * PasswordField: {
553
+ * Identifier: "STRING_VALUE", // required
554
+ * },
555
+ * },
556
+ * ResponseInspection: { // ResponseInspection
557
+ * StatusCode: { // ResponseInspectionStatusCode
558
+ * SuccessCodes: [ // ResponseInspectionStatusCodeSuccessCodes // required
559
+ * Number("int"),
560
+ * ],
561
+ * FailureCodes: [ // ResponseInspectionStatusCodeFailureCodes // required
562
+ * Number("int"),
563
+ * ],
564
+ * },
565
+ * Header: { // ResponseInspectionHeader
566
+ * Name: "STRING_VALUE", // required
567
+ * SuccessValues: [ // ResponseInspectionHeaderSuccessValues // required
568
+ * "STRING_VALUE",
569
+ * ],
570
+ * FailureValues: [ // ResponseInspectionHeaderFailureValues // required
571
+ * "STRING_VALUE",
572
+ * ],
573
+ * },
574
+ * BodyContains: { // ResponseInspectionBodyContains
575
+ * SuccessStrings: [ // ResponseInspectionBodyContainsSuccessStrings // required
576
+ * "STRING_VALUE",
577
+ * ],
578
+ * FailureStrings: [ // ResponseInspectionBodyContainsFailureStrings // required
579
+ * "STRING_VALUE",
580
+ * ],
581
+ * },
582
+ * Json: { // ResponseInspectionJson
583
+ * Identifier: "STRING_VALUE", // required
584
+ * SuccessValues: [ // ResponseInspectionJsonSuccessValues // required
585
+ * "STRING_VALUE",
586
+ * ],
587
+ * FailureValues: [ // ResponseInspectionJsonFailureValues // required
588
+ * "STRING_VALUE",
589
+ * ],
590
+ * },
591
+ * },
592
+ * },
593
+ * },
594
+ * ],
595
+ * RuleActionOverrides: [
596
+ * {
597
+ * Name: "STRING_VALUE", // required
598
+ * ActionToUse: {
599
+ * Block: {
600
+ * CustomResponse: {
601
+ * ResponseCode: Number("int"), // required
602
+ * CustomResponseBodyKey: "STRING_VALUE",
603
+ * ResponseHeaders: "<CustomHTTPHeaders>",
604
+ * },
605
+ * },
606
+ * Allow: {
607
+ * CustomRequestHandling: "<CustomRequestHandling>",
608
+ * },
609
+ * Count: {
610
+ * CustomRequestHandling: "<CustomRequestHandling>",
611
+ * },
612
+ * Captcha: {
613
+ * CustomRequestHandling: "<CustomRequestHandling>",
614
+ * },
615
+ * Challenge: {
616
+ * CustomRequestHandling: "<CustomRequestHandling>",
617
+ * },
618
+ * },
619
+ * },
620
+ * ],
621
+ * },
622
+ * LabelMatchStatement: { // LabelMatchStatement
623
+ * Scope: "LABEL" || "NAMESPACE", // required
624
+ * Key: "STRING_VALUE", // required
625
+ * },
626
+ * RegexMatchStatement: { // RegexMatchStatement
627
+ * RegexString: "STRING_VALUE", // required
628
+ * FieldToMatch: "<FieldToMatch>", // required
629
+ * TextTransformations: "<TextTransformations>", // required
630
+ * },
631
+ * },
632
+ * ForwardedIPConfig: {
633
+ * HeaderName: "STRING_VALUE", // required
634
+ * FallbackBehavior: "MATCH" || "NO_MATCH", // required
635
+ * },
636
+ * },
637
+ * AndStatement: {
638
+ * Statements: [ // required
639
+ * "<Statement>",
640
+ * ],
641
+ * },
642
+ * OrStatement: {
643
+ * Statements: [ // required
644
+ * "<Statement>",
645
+ * ],
646
+ * },
647
+ * NotStatement: {
648
+ * Statement: "<Statement>", // required
649
+ * },
650
+ * ManagedRuleGroupStatement: {
651
+ * VendorName: "STRING_VALUE", // required
652
+ * Name: "STRING_VALUE", // required
653
+ * Version: "STRING_VALUE",
654
+ * ExcludedRules: [
655
+ * {
656
+ * Name: "STRING_VALUE", // required
657
+ * },
658
+ * ],
659
+ * ScopeDownStatement: "<Statement>",
660
+ * ManagedRuleGroupConfigs: [
661
+ * {
662
+ * LoginPath: "STRING_VALUE",
663
+ * PayloadType: "JSON" || "FORM_ENCODED",
664
+ * UsernameField: "<UsernameField>",
665
+ * PasswordField: "<PasswordField>",
666
+ * AWSManagedRulesBotControlRuleSet: {
667
+ * InspectionLevel: "COMMON" || "TARGETED", // required
668
+ * },
669
+ * AWSManagedRulesATPRuleSet: {
670
+ * LoginPath: "STRING_VALUE", // required
671
+ * RequestInspection: {
672
+ * PayloadType: "JSON" || "FORM_ENCODED", // required
673
+ * UsernameField: "<UsernameField>", // required
674
+ * PasswordField: "<PasswordField>", // required
675
+ * },
676
+ * ResponseInspection: {
677
+ * StatusCode: {
678
+ * SuccessCodes: [ // required
679
+ * Number("int"),
680
+ * ],
681
+ * FailureCodes: [ // required
682
+ * Number("int"),
683
+ * ],
684
+ * },
685
+ * Header: {
686
+ * Name: "STRING_VALUE", // required
687
+ * SuccessValues: [ // required
688
+ * "STRING_VALUE",
689
+ * ],
690
+ * FailureValues: [ // required
691
+ * "STRING_VALUE",
692
+ * ],
693
+ * },
694
+ * BodyContains: {
695
+ * SuccessStrings: [ // required
696
+ * "STRING_VALUE",
697
+ * ],
698
+ * FailureStrings: [ // required
699
+ * "STRING_VALUE",
700
+ * ],
701
+ * },
702
+ * Json: {
703
+ * Identifier: "STRING_VALUE", // required
704
+ * SuccessValues: [ // required
705
+ * "STRING_VALUE",
706
+ * ],
707
+ * FailureValues: [ // required
708
+ * "STRING_VALUE",
709
+ * ],
710
+ * },
711
+ * },
712
+ * },
713
+ * },
714
+ * ],
715
+ * RuleActionOverrides: [
716
+ * {
717
+ * Name: "STRING_VALUE", // required
718
+ * ActionToUse: {
719
+ * Block: {
720
+ * CustomResponse: {
721
+ * ResponseCode: Number("int"), // required
722
+ * CustomResponseBodyKey: "STRING_VALUE",
723
+ * ResponseHeaders: "<CustomHTTPHeaders>",
724
+ * },
725
+ * },
726
+ * Allow: {
727
+ * CustomRequestHandling: "<CustomRequestHandling>",
728
+ * },
729
+ * Count: {
730
+ * CustomRequestHandling: "<CustomRequestHandling>",
731
+ * },
732
+ * Captcha: {
733
+ * CustomRequestHandling: "<CustomRequestHandling>",
734
+ * },
735
+ * Challenge: {
736
+ * CustomRequestHandling: "<CustomRequestHandling>",
737
+ * },
738
+ * },
739
+ * },
740
+ * ],
741
+ * },
742
+ * LabelMatchStatement: {
743
+ * Scope: "LABEL" || "NAMESPACE", // required
744
+ * Key: "STRING_VALUE", // required
745
+ * },
746
+ * RegexMatchStatement: {
747
+ * RegexString: "STRING_VALUE", // required
748
+ * FieldToMatch: "<FieldToMatch>", // required
749
+ * TextTransformations: "<TextTransformations>", // required
750
+ * },
751
+ * },
752
+ * Action: "<RuleAction>",
753
+ * OverrideAction: { // OverrideAction
754
+ * Count: "<CountAction>",
755
+ * None: {},
756
+ * },
757
+ * RuleLabels: [ // Labels
758
+ * { // Label
759
+ * Name: "STRING_VALUE", // required
760
+ * },
761
+ * ],
762
+ * VisibilityConfig: { // VisibilityConfig
763
+ * SampledRequestsEnabled: true || false, // required
764
+ * CloudWatchMetricsEnabled: true || false, // required
765
+ * MetricName: "STRING_VALUE", // required
766
+ * },
767
+ * CaptchaConfig: { // CaptchaConfig
768
+ * ImmunityTimeProperty: { // ImmunityTimeProperty
769
+ * ImmunityTime: Number("long"), // required
770
+ * },
771
+ * },
772
+ * ChallengeConfig: { // ChallengeConfig
773
+ * ImmunityTimeProperty: {
774
+ * ImmunityTime: Number("long"), // required
775
+ * },
776
+ * },
777
+ * },
778
+ * ],
779
+ * };
40
780
  * const command = new CheckCapacityCommand(input);
41
781
  * const response = await client.send(command);
42
782
  * ```