@aws-sdk/client-waf-regional 3.315.0 → 3.319.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.
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AssociateWebACLCommand, } from "./commands/AssociateWebACLCommand";
2
3
  import { CreateByteMatchSetCommand, } from "./commands/CreateByteMatchSetCommand";
3
4
  import { CreateGeoMatchSetCommand, } from "./commands/CreateGeoMatchSetCommand";
@@ -80,1139 +81,89 @@ import { UpdateSqlInjectionMatchSetCommand, } from "./commands/UpdateSqlInjectio
80
81
  import { UpdateWebACLCommand, } from "./commands/UpdateWebACLCommand";
81
82
  import { UpdateXssMatchSetCommand, } from "./commands/UpdateXssMatchSetCommand";
82
83
  import { WAFRegionalClient } from "./WAFRegionalClient";
84
+ const commands = {
85
+ AssociateWebACLCommand,
86
+ CreateByteMatchSetCommand,
87
+ CreateGeoMatchSetCommand,
88
+ CreateIPSetCommand,
89
+ CreateRateBasedRuleCommand,
90
+ CreateRegexMatchSetCommand,
91
+ CreateRegexPatternSetCommand,
92
+ CreateRuleCommand,
93
+ CreateRuleGroupCommand,
94
+ CreateSizeConstraintSetCommand,
95
+ CreateSqlInjectionMatchSetCommand,
96
+ CreateWebACLCommand,
97
+ CreateWebACLMigrationStackCommand,
98
+ CreateXssMatchSetCommand,
99
+ DeleteByteMatchSetCommand,
100
+ DeleteGeoMatchSetCommand,
101
+ DeleteIPSetCommand,
102
+ DeleteLoggingConfigurationCommand,
103
+ DeletePermissionPolicyCommand,
104
+ DeleteRateBasedRuleCommand,
105
+ DeleteRegexMatchSetCommand,
106
+ DeleteRegexPatternSetCommand,
107
+ DeleteRuleCommand,
108
+ DeleteRuleGroupCommand,
109
+ DeleteSizeConstraintSetCommand,
110
+ DeleteSqlInjectionMatchSetCommand,
111
+ DeleteWebACLCommand,
112
+ DeleteXssMatchSetCommand,
113
+ DisassociateWebACLCommand,
114
+ GetByteMatchSetCommand,
115
+ GetChangeTokenCommand,
116
+ GetChangeTokenStatusCommand,
117
+ GetGeoMatchSetCommand,
118
+ GetIPSetCommand,
119
+ GetLoggingConfigurationCommand,
120
+ GetPermissionPolicyCommand,
121
+ GetRateBasedRuleCommand,
122
+ GetRateBasedRuleManagedKeysCommand,
123
+ GetRegexMatchSetCommand,
124
+ GetRegexPatternSetCommand,
125
+ GetRuleCommand,
126
+ GetRuleGroupCommand,
127
+ GetSampledRequestsCommand,
128
+ GetSizeConstraintSetCommand,
129
+ GetSqlInjectionMatchSetCommand,
130
+ GetWebACLCommand,
131
+ GetWebACLForResourceCommand,
132
+ GetXssMatchSetCommand,
133
+ ListActivatedRulesInRuleGroupCommand,
134
+ ListByteMatchSetsCommand,
135
+ ListGeoMatchSetsCommand,
136
+ ListIPSetsCommand,
137
+ ListLoggingConfigurationsCommand,
138
+ ListRateBasedRulesCommand,
139
+ ListRegexMatchSetsCommand,
140
+ ListRegexPatternSetsCommand,
141
+ ListResourcesForWebACLCommand,
142
+ ListRuleGroupsCommand,
143
+ ListRulesCommand,
144
+ ListSizeConstraintSetsCommand,
145
+ ListSqlInjectionMatchSetsCommand,
146
+ ListSubscribedRuleGroupsCommand,
147
+ ListTagsForResourceCommand,
148
+ ListWebACLsCommand,
149
+ ListXssMatchSetsCommand,
150
+ PutLoggingConfigurationCommand,
151
+ PutPermissionPolicyCommand,
152
+ TagResourceCommand,
153
+ UntagResourceCommand,
154
+ UpdateByteMatchSetCommand,
155
+ UpdateGeoMatchSetCommand,
156
+ UpdateIPSetCommand,
157
+ UpdateRateBasedRuleCommand,
158
+ UpdateRegexMatchSetCommand,
159
+ UpdateRegexPatternSetCommand,
160
+ UpdateRuleCommand,
161
+ UpdateRuleGroupCommand,
162
+ UpdateSizeConstraintSetCommand,
163
+ UpdateSqlInjectionMatchSetCommand,
164
+ UpdateWebACLCommand,
165
+ UpdateXssMatchSetCommand,
166
+ };
83
167
  export class WAFRegional extends WAFRegionalClient {
84
- associateWebACL(args, optionsOrCb, cb) {
85
- const command = new AssociateWebACLCommand(args);
86
- if (typeof optionsOrCb === "function") {
87
- this.send(command, optionsOrCb);
88
- }
89
- else if (typeof cb === "function") {
90
- if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
- this.send(command, optionsOrCb || {}, cb);
93
- }
94
- else {
95
- return this.send(command, optionsOrCb);
96
- }
97
- }
98
- createByteMatchSet(args, optionsOrCb, cb) {
99
- const command = new CreateByteMatchSetCommand(args);
100
- if (typeof optionsOrCb === "function") {
101
- this.send(command, optionsOrCb);
102
- }
103
- else if (typeof cb === "function") {
104
- if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
- this.send(command, optionsOrCb || {}, cb);
107
- }
108
- else {
109
- return this.send(command, optionsOrCb);
110
- }
111
- }
112
- createGeoMatchSet(args, optionsOrCb, cb) {
113
- const command = new CreateGeoMatchSetCommand(args);
114
- if (typeof optionsOrCb === "function") {
115
- this.send(command, optionsOrCb);
116
- }
117
- else if (typeof cb === "function") {
118
- if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
- this.send(command, optionsOrCb || {}, cb);
121
- }
122
- else {
123
- return this.send(command, optionsOrCb);
124
- }
125
- }
126
- createIPSet(args, optionsOrCb, cb) {
127
- const command = new CreateIPSetCommand(args);
128
- if (typeof optionsOrCb === "function") {
129
- this.send(command, optionsOrCb);
130
- }
131
- else if (typeof cb === "function") {
132
- if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
- this.send(command, optionsOrCb || {}, cb);
135
- }
136
- else {
137
- return this.send(command, optionsOrCb);
138
- }
139
- }
140
- createRateBasedRule(args, optionsOrCb, cb) {
141
- const command = new CreateRateBasedRuleCommand(args);
142
- if (typeof optionsOrCb === "function") {
143
- this.send(command, optionsOrCb);
144
- }
145
- else if (typeof cb === "function") {
146
- if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
- this.send(command, optionsOrCb || {}, cb);
149
- }
150
- else {
151
- return this.send(command, optionsOrCb);
152
- }
153
- }
154
- createRegexMatchSet(args, optionsOrCb, cb) {
155
- const command = new CreateRegexMatchSetCommand(args);
156
- if (typeof optionsOrCb === "function") {
157
- this.send(command, optionsOrCb);
158
- }
159
- else if (typeof cb === "function") {
160
- if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
- this.send(command, optionsOrCb || {}, cb);
163
- }
164
- else {
165
- return this.send(command, optionsOrCb);
166
- }
167
- }
168
- createRegexPatternSet(args, optionsOrCb, cb) {
169
- const command = new CreateRegexPatternSetCommand(args);
170
- if (typeof optionsOrCb === "function") {
171
- this.send(command, optionsOrCb);
172
- }
173
- else if (typeof cb === "function") {
174
- if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
- this.send(command, optionsOrCb || {}, cb);
177
- }
178
- else {
179
- return this.send(command, optionsOrCb);
180
- }
181
- }
182
- createRule(args, optionsOrCb, cb) {
183
- const command = new CreateRuleCommand(args);
184
- if (typeof optionsOrCb === "function") {
185
- this.send(command, optionsOrCb);
186
- }
187
- else if (typeof cb === "function") {
188
- if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
- this.send(command, optionsOrCb || {}, cb);
191
- }
192
- else {
193
- return this.send(command, optionsOrCb);
194
- }
195
- }
196
- createRuleGroup(args, optionsOrCb, cb) {
197
- const command = new CreateRuleGroupCommand(args);
198
- if (typeof optionsOrCb === "function") {
199
- this.send(command, optionsOrCb);
200
- }
201
- else if (typeof cb === "function") {
202
- if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
- this.send(command, optionsOrCb || {}, cb);
205
- }
206
- else {
207
- return this.send(command, optionsOrCb);
208
- }
209
- }
210
- createSizeConstraintSet(args, optionsOrCb, cb) {
211
- const command = new CreateSizeConstraintSetCommand(args);
212
- if (typeof optionsOrCb === "function") {
213
- this.send(command, optionsOrCb);
214
- }
215
- else if (typeof cb === "function") {
216
- if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
- this.send(command, optionsOrCb || {}, cb);
219
- }
220
- else {
221
- return this.send(command, optionsOrCb);
222
- }
223
- }
224
- createSqlInjectionMatchSet(args, optionsOrCb, cb) {
225
- const command = new CreateSqlInjectionMatchSetCommand(args);
226
- if (typeof optionsOrCb === "function") {
227
- this.send(command, optionsOrCb);
228
- }
229
- else if (typeof cb === "function") {
230
- if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
- this.send(command, optionsOrCb || {}, cb);
233
- }
234
- else {
235
- return this.send(command, optionsOrCb);
236
- }
237
- }
238
- createWebACL(args, optionsOrCb, cb) {
239
- const command = new CreateWebACLCommand(args);
240
- if (typeof optionsOrCb === "function") {
241
- this.send(command, optionsOrCb);
242
- }
243
- else if (typeof cb === "function") {
244
- if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
- this.send(command, optionsOrCb || {}, cb);
247
- }
248
- else {
249
- return this.send(command, optionsOrCb);
250
- }
251
- }
252
- createWebACLMigrationStack(args, optionsOrCb, cb) {
253
- const command = new CreateWebACLMigrationStackCommand(args);
254
- if (typeof optionsOrCb === "function") {
255
- this.send(command, optionsOrCb);
256
- }
257
- else if (typeof cb === "function") {
258
- if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
- this.send(command, optionsOrCb || {}, cb);
261
- }
262
- else {
263
- return this.send(command, optionsOrCb);
264
- }
265
- }
266
- createXssMatchSet(args, optionsOrCb, cb) {
267
- const command = new CreateXssMatchSetCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- }
271
- else if (typeof cb === "function") {
272
- if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
- this.send(command, optionsOrCb || {}, cb);
275
- }
276
- else {
277
- return this.send(command, optionsOrCb);
278
- }
279
- }
280
- deleteByteMatchSet(args, optionsOrCb, cb) {
281
- const command = new DeleteByteMatchSetCommand(args);
282
- if (typeof optionsOrCb === "function") {
283
- this.send(command, optionsOrCb);
284
- }
285
- else if (typeof cb === "function") {
286
- if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
- this.send(command, optionsOrCb || {}, cb);
289
- }
290
- else {
291
- return this.send(command, optionsOrCb);
292
- }
293
- }
294
- deleteGeoMatchSet(args, optionsOrCb, cb) {
295
- const command = new DeleteGeoMatchSetCommand(args);
296
- if (typeof optionsOrCb === "function") {
297
- this.send(command, optionsOrCb);
298
- }
299
- else if (typeof cb === "function") {
300
- if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- }
304
- else {
305
- return this.send(command, optionsOrCb);
306
- }
307
- }
308
- deleteIPSet(args, optionsOrCb, cb) {
309
- const command = new DeleteIPSetCommand(args);
310
- if (typeof optionsOrCb === "function") {
311
- this.send(command, optionsOrCb);
312
- }
313
- else if (typeof cb === "function") {
314
- if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
- this.send(command, optionsOrCb || {}, cb);
317
- }
318
- else {
319
- return this.send(command, optionsOrCb);
320
- }
321
- }
322
- deleteLoggingConfiguration(args, optionsOrCb, cb) {
323
- const command = new DeleteLoggingConfigurationCommand(args);
324
- if (typeof optionsOrCb === "function") {
325
- this.send(command, optionsOrCb);
326
- }
327
- else if (typeof cb === "function") {
328
- if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
- this.send(command, optionsOrCb || {}, cb);
331
- }
332
- else {
333
- return this.send(command, optionsOrCb);
334
- }
335
- }
336
- deletePermissionPolicy(args, optionsOrCb, cb) {
337
- const command = new DeletePermissionPolicyCommand(args);
338
- if (typeof optionsOrCb === "function") {
339
- this.send(command, optionsOrCb);
340
- }
341
- else if (typeof cb === "function") {
342
- if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
- this.send(command, optionsOrCb || {}, cb);
345
- }
346
- else {
347
- return this.send(command, optionsOrCb);
348
- }
349
- }
350
- deleteRateBasedRule(args, optionsOrCb, cb) {
351
- const command = new DeleteRateBasedRuleCommand(args);
352
- if (typeof optionsOrCb === "function") {
353
- this.send(command, optionsOrCb);
354
- }
355
- else if (typeof cb === "function") {
356
- if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
- this.send(command, optionsOrCb || {}, cb);
359
- }
360
- else {
361
- return this.send(command, optionsOrCb);
362
- }
363
- }
364
- deleteRegexMatchSet(args, optionsOrCb, cb) {
365
- const command = new DeleteRegexMatchSetCommand(args);
366
- if (typeof optionsOrCb === "function") {
367
- this.send(command, optionsOrCb);
368
- }
369
- else if (typeof cb === "function") {
370
- if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
- this.send(command, optionsOrCb || {}, cb);
373
- }
374
- else {
375
- return this.send(command, optionsOrCb);
376
- }
377
- }
378
- deleteRegexPatternSet(args, optionsOrCb, cb) {
379
- const command = new DeleteRegexPatternSetCommand(args);
380
- if (typeof optionsOrCb === "function") {
381
- this.send(command, optionsOrCb);
382
- }
383
- else if (typeof cb === "function") {
384
- if (typeof optionsOrCb !== "object")
385
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
- this.send(command, optionsOrCb || {}, cb);
387
- }
388
- else {
389
- return this.send(command, optionsOrCb);
390
- }
391
- }
392
- deleteRule(args, optionsOrCb, cb) {
393
- const command = new DeleteRuleCommand(args);
394
- if (typeof optionsOrCb === "function") {
395
- this.send(command, optionsOrCb);
396
- }
397
- else if (typeof cb === "function") {
398
- if (typeof optionsOrCb !== "object")
399
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
- this.send(command, optionsOrCb || {}, cb);
401
- }
402
- else {
403
- return this.send(command, optionsOrCb);
404
- }
405
- }
406
- deleteRuleGroup(args, optionsOrCb, cb) {
407
- const command = new DeleteRuleGroupCommand(args);
408
- if (typeof optionsOrCb === "function") {
409
- this.send(command, optionsOrCb);
410
- }
411
- else if (typeof cb === "function") {
412
- if (typeof optionsOrCb !== "object")
413
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
414
- this.send(command, optionsOrCb || {}, cb);
415
- }
416
- else {
417
- return this.send(command, optionsOrCb);
418
- }
419
- }
420
- deleteSizeConstraintSet(args, optionsOrCb, cb) {
421
- const command = new DeleteSizeConstraintSetCommand(args);
422
- if (typeof optionsOrCb === "function") {
423
- this.send(command, optionsOrCb);
424
- }
425
- else if (typeof cb === "function") {
426
- if (typeof optionsOrCb !== "object")
427
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
- this.send(command, optionsOrCb || {}, cb);
429
- }
430
- else {
431
- return this.send(command, optionsOrCb);
432
- }
433
- }
434
- deleteSqlInjectionMatchSet(args, optionsOrCb, cb) {
435
- const command = new DeleteSqlInjectionMatchSetCommand(args);
436
- if (typeof optionsOrCb === "function") {
437
- this.send(command, optionsOrCb);
438
- }
439
- else if (typeof cb === "function") {
440
- if (typeof optionsOrCb !== "object")
441
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
- this.send(command, optionsOrCb || {}, cb);
443
- }
444
- else {
445
- return this.send(command, optionsOrCb);
446
- }
447
- }
448
- deleteWebACL(args, optionsOrCb, cb) {
449
- const command = new DeleteWebACLCommand(args);
450
- if (typeof optionsOrCb === "function") {
451
- this.send(command, optionsOrCb);
452
- }
453
- else if (typeof cb === "function") {
454
- if (typeof optionsOrCb !== "object")
455
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
- this.send(command, optionsOrCb || {}, cb);
457
- }
458
- else {
459
- return this.send(command, optionsOrCb);
460
- }
461
- }
462
- deleteXssMatchSet(args, optionsOrCb, cb) {
463
- const command = new DeleteXssMatchSetCommand(args);
464
- if (typeof optionsOrCb === "function") {
465
- this.send(command, optionsOrCb);
466
- }
467
- else if (typeof cb === "function") {
468
- if (typeof optionsOrCb !== "object")
469
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
- this.send(command, optionsOrCb || {}, cb);
471
- }
472
- else {
473
- return this.send(command, optionsOrCb);
474
- }
475
- }
476
- disassociateWebACL(args, optionsOrCb, cb) {
477
- const command = new DisassociateWebACLCommand(args);
478
- if (typeof optionsOrCb === "function") {
479
- this.send(command, optionsOrCb);
480
- }
481
- else if (typeof cb === "function") {
482
- if (typeof optionsOrCb !== "object")
483
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
- this.send(command, optionsOrCb || {}, cb);
485
- }
486
- else {
487
- return this.send(command, optionsOrCb);
488
- }
489
- }
490
- getByteMatchSet(args, optionsOrCb, cb) {
491
- const command = new GetByteMatchSetCommand(args);
492
- if (typeof optionsOrCb === "function") {
493
- this.send(command, optionsOrCb);
494
- }
495
- else if (typeof cb === "function") {
496
- if (typeof optionsOrCb !== "object")
497
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
- this.send(command, optionsOrCb || {}, cb);
499
- }
500
- else {
501
- return this.send(command, optionsOrCb);
502
- }
503
- }
504
- getChangeToken(args, optionsOrCb, cb) {
505
- const command = new GetChangeTokenCommand(args);
506
- if (typeof optionsOrCb === "function") {
507
- this.send(command, optionsOrCb);
508
- }
509
- else if (typeof cb === "function") {
510
- if (typeof optionsOrCb !== "object")
511
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
512
- this.send(command, optionsOrCb || {}, cb);
513
- }
514
- else {
515
- return this.send(command, optionsOrCb);
516
- }
517
- }
518
- getChangeTokenStatus(args, optionsOrCb, cb) {
519
- const command = new GetChangeTokenStatusCommand(args);
520
- if (typeof optionsOrCb === "function") {
521
- this.send(command, optionsOrCb);
522
- }
523
- else if (typeof cb === "function") {
524
- if (typeof optionsOrCb !== "object")
525
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
- this.send(command, optionsOrCb || {}, cb);
527
- }
528
- else {
529
- return this.send(command, optionsOrCb);
530
- }
531
- }
532
- getGeoMatchSet(args, optionsOrCb, cb) {
533
- const command = new GetGeoMatchSetCommand(args);
534
- if (typeof optionsOrCb === "function") {
535
- this.send(command, optionsOrCb);
536
- }
537
- else if (typeof cb === "function") {
538
- if (typeof optionsOrCb !== "object")
539
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
540
- this.send(command, optionsOrCb || {}, cb);
541
- }
542
- else {
543
- return this.send(command, optionsOrCb);
544
- }
545
- }
546
- getIPSet(args, optionsOrCb, cb) {
547
- const command = new GetIPSetCommand(args);
548
- if (typeof optionsOrCb === "function") {
549
- this.send(command, optionsOrCb);
550
- }
551
- else if (typeof cb === "function") {
552
- if (typeof optionsOrCb !== "object")
553
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
554
- this.send(command, optionsOrCb || {}, cb);
555
- }
556
- else {
557
- return this.send(command, optionsOrCb);
558
- }
559
- }
560
- getLoggingConfiguration(args, optionsOrCb, cb) {
561
- const command = new GetLoggingConfigurationCommand(args);
562
- if (typeof optionsOrCb === "function") {
563
- this.send(command, optionsOrCb);
564
- }
565
- else if (typeof cb === "function") {
566
- if (typeof optionsOrCb !== "object")
567
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
568
- this.send(command, optionsOrCb || {}, cb);
569
- }
570
- else {
571
- return this.send(command, optionsOrCb);
572
- }
573
- }
574
- getPermissionPolicy(args, optionsOrCb, cb) {
575
- const command = new GetPermissionPolicyCommand(args);
576
- if (typeof optionsOrCb === "function") {
577
- this.send(command, optionsOrCb);
578
- }
579
- else if (typeof cb === "function") {
580
- if (typeof optionsOrCb !== "object")
581
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
582
- this.send(command, optionsOrCb || {}, cb);
583
- }
584
- else {
585
- return this.send(command, optionsOrCb);
586
- }
587
- }
588
- getRateBasedRule(args, optionsOrCb, cb) {
589
- const command = new GetRateBasedRuleCommand(args);
590
- if (typeof optionsOrCb === "function") {
591
- this.send(command, optionsOrCb);
592
- }
593
- else if (typeof cb === "function") {
594
- if (typeof optionsOrCb !== "object")
595
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
596
- this.send(command, optionsOrCb || {}, cb);
597
- }
598
- else {
599
- return this.send(command, optionsOrCb);
600
- }
601
- }
602
- getRateBasedRuleManagedKeys(args, optionsOrCb, cb) {
603
- const command = new GetRateBasedRuleManagedKeysCommand(args);
604
- if (typeof optionsOrCb === "function") {
605
- this.send(command, optionsOrCb);
606
- }
607
- else if (typeof cb === "function") {
608
- if (typeof optionsOrCb !== "object")
609
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
610
- this.send(command, optionsOrCb || {}, cb);
611
- }
612
- else {
613
- return this.send(command, optionsOrCb);
614
- }
615
- }
616
- getRegexMatchSet(args, optionsOrCb, cb) {
617
- const command = new GetRegexMatchSetCommand(args);
618
- if (typeof optionsOrCb === "function") {
619
- this.send(command, optionsOrCb);
620
- }
621
- else if (typeof cb === "function") {
622
- if (typeof optionsOrCb !== "object")
623
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
624
- this.send(command, optionsOrCb || {}, cb);
625
- }
626
- else {
627
- return this.send(command, optionsOrCb);
628
- }
629
- }
630
- getRegexPatternSet(args, optionsOrCb, cb) {
631
- const command = new GetRegexPatternSetCommand(args);
632
- if (typeof optionsOrCb === "function") {
633
- this.send(command, optionsOrCb);
634
- }
635
- else if (typeof cb === "function") {
636
- if (typeof optionsOrCb !== "object")
637
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
638
- this.send(command, optionsOrCb || {}, cb);
639
- }
640
- else {
641
- return this.send(command, optionsOrCb);
642
- }
643
- }
644
- getRule(args, optionsOrCb, cb) {
645
- const command = new GetRuleCommand(args);
646
- if (typeof optionsOrCb === "function") {
647
- this.send(command, optionsOrCb);
648
- }
649
- else if (typeof cb === "function") {
650
- if (typeof optionsOrCb !== "object")
651
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
652
- this.send(command, optionsOrCb || {}, cb);
653
- }
654
- else {
655
- return this.send(command, optionsOrCb);
656
- }
657
- }
658
- getRuleGroup(args, optionsOrCb, cb) {
659
- const command = new GetRuleGroupCommand(args);
660
- if (typeof optionsOrCb === "function") {
661
- this.send(command, optionsOrCb);
662
- }
663
- else if (typeof cb === "function") {
664
- if (typeof optionsOrCb !== "object")
665
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
666
- this.send(command, optionsOrCb || {}, cb);
667
- }
668
- else {
669
- return this.send(command, optionsOrCb);
670
- }
671
- }
672
- getSampledRequests(args, optionsOrCb, cb) {
673
- const command = new GetSampledRequestsCommand(args);
674
- if (typeof optionsOrCb === "function") {
675
- this.send(command, optionsOrCb);
676
- }
677
- else if (typeof cb === "function") {
678
- if (typeof optionsOrCb !== "object")
679
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
680
- this.send(command, optionsOrCb || {}, cb);
681
- }
682
- else {
683
- return this.send(command, optionsOrCb);
684
- }
685
- }
686
- getSizeConstraintSet(args, optionsOrCb, cb) {
687
- const command = new GetSizeConstraintSetCommand(args);
688
- if (typeof optionsOrCb === "function") {
689
- this.send(command, optionsOrCb);
690
- }
691
- else if (typeof cb === "function") {
692
- if (typeof optionsOrCb !== "object")
693
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
694
- this.send(command, optionsOrCb || {}, cb);
695
- }
696
- else {
697
- return this.send(command, optionsOrCb);
698
- }
699
- }
700
- getSqlInjectionMatchSet(args, optionsOrCb, cb) {
701
- const command = new GetSqlInjectionMatchSetCommand(args);
702
- if (typeof optionsOrCb === "function") {
703
- this.send(command, optionsOrCb);
704
- }
705
- else if (typeof cb === "function") {
706
- if (typeof optionsOrCb !== "object")
707
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
708
- this.send(command, optionsOrCb || {}, cb);
709
- }
710
- else {
711
- return this.send(command, optionsOrCb);
712
- }
713
- }
714
- getWebACL(args, optionsOrCb, cb) {
715
- const command = new GetWebACLCommand(args);
716
- if (typeof optionsOrCb === "function") {
717
- this.send(command, optionsOrCb);
718
- }
719
- else if (typeof cb === "function") {
720
- if (typeof optionsOrCb !== "object")
721
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
722
- this.send(command, optionsOrCb || {}, cb);
723
- }
724
- else {
725
- return this.send(command, optionsOrCb);
726
- }
727
- }
728
- getWebACLForResource(args, optionsOrCb, cb) {
729
- const command = new GetWebACLForResourceCommand(args);
730
- if (typeof optionsOrCb === "function") {
731
- this.send(command, optionsOrCb);
732
- }
733
- else if (typeof cb === "function") {
734
- if (typeof optionsOrCb !== "object")
735
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
736
- this.send(command, optionsOrCb || {}, cb);
737
- }
738
- else {
739
- return this.send(command, optionsOrCb);
740
- }
741
- }
742
- getXssMatchSet(args, optionsOrCb, cb) {
743
- const command = new GetXssMatchSetCommand(args);
744
- if (typeof optionsOrCb === "function") {
745
- this.send(command, optionsOrCb);
746
- }
747
- else if (typeof cb === "function") {
748
- if (typeof optionsOrCb !== "object")
749
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
750
- this.send(command, optionsOrCb || {}, cb);
751
- }
752
- else {
753
- return this.send(command, optionsOrCb);
754
- }
755
- }
756
- listActivatedRulesInRuleGroup(args, optionsOrCb, cb) {
757
- const command = new ListActivatedRulesInRuleGroupCommand(args);
758
- if (typeof optionsOrCb === "function") {
759
- this.send(command, optionsOrCb);
760
- }
761
- else if (typeof cb === "function") {
762
- if (typeof optionsOrCb !== "object")
763
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
764
- this.send(command, optionsOrCb || {}, cb);
765
- }
766
- else {
767
- return this.send(command, optionsOrCb);
768
- }
769
- }
770
- listByteMatchSets(args, optionsOrCb, cb) {
771
- const command = new ListByteMatchSetsCommand(args);
772
- if (typeof optionsOrCb === "function") {
773
- this.send(command, optionsOrCb);
774
- }
775
- else if (typeof cb === "function") {
776
- if (typeof optionsOrCb !== "object")
777
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
778
- this.send(command, optionsOrCb || {}, cb);
779
- }
780
- else {
781
- return this.send(command, optionsOrCb);
782
- }
783
- }
784
- listGeoMatchSets(args, optionsOrCb, cb) {
785
- const command = new ListGeoMatchSetsCommand(args);
786
- if (typeof optionsOrCb === "function") {
787
- this.send(command, optionsOrCb);
788
- }
789
- else if (typeof cb === "function") {
790
- if (typeof optionsOrCb !== "object")
791
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
792
- this.send(command, optionsOrCb || {}, cb);
793
- }
794
- else {
795
- return this.send(command, optionsOrCb);
796
- }
797
- }
798
- listIPSets(args, optionsOrCb, cb) {
799
- const command = new ListIPSetsCommand(args);
800
- if (typeof optionsOrCb === "function") {
801
- this.send(command, optionsOrCb);
802
- }
803
- else if (typeof cb === "function") {
804
- if (typeof optionsOrCb !== "object")
805
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
806
- this.send(command, optionsOrCb || {}, cb);
807
- }
808
- else {
809
- return this.send(command, optionsOrCb);
810
- }
811
- }
812
- listLoggingConfigurations(args, optionsOrCb, cb) {
813
- const command = new ListLoggingConfigurationsCommand(args);
814
- if (typeof optionsOrCb === "function") {
815
- this.send(command, optionsOrCb);
816
- }
817
- else if (typeof cb === "function") {
818
- if (typeof optionsOrCb !== "object")
819
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
820
- this.send(command, optionsOrCb || {}, cb);
821
- }
822
- else {
823
- return this.send(command, optionsOrCb);
824
- }
825
- }
826
- listRateBasedRules(args, optionsOrCb, cb) {
827
- const command = new ListRateBasedRulesCommand(args);
828
- if (typeof optionsOrCb === "function") {
829
- this.send(command, optionsOrCb);
830
- }
831
- else if (typeof cb === "function") {
832
- if (typeof optionsOrCb !== "object")
833
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
834
- this.send(command, optionsOrCb || {}, cb);
835
- }
836
- else {
837
- return this.send(command, optionsOrCb);
838
- }
839
- }
840
- listRegexMatchSets(args, optionsOrCb, cb) {
841
- const command = new ListRegexMatchSetsCommand(args);
842
- if (typeof optionsOrCb === "function") {
843
- this.send(command, optionsOrCb);
844
- }
845
- else if (typeof cb === "function") {
846
- if (typeof optionsOrCb !== "object")
847
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
848
- this.send(command, optionsOrCb || {}, cb);
849
- }
850
- else {
851
- return this.send(command, optionsOrCb);
852
- }
853
- }
854
- listRegexPatternSets(args, optionsOrCb, cb) {
855
- const command = new ListRegexPatternSetsCommand(args);
856
- if (typeof optionsOrCb === "function") {
857
- this.send(command, optionsOrCb);
858
- }
859
- else if (typeof cb === "function") {
860
- if (typeof optionsOrCb !== "object")
861
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
862
- this.send(command, optionsOrCb || {}, cb);
863
- }
864
- else {
865
- return this.send(command, optionsOrCb);
866
- }
867
- }
868
- listResourcesForWebACL(args, optionsOrCb, cb) {
869
- const command = new ListResourcesForWebACLCommand(args);
870
- if (typeof optionsOrCb === "function") {
871
- this.send(command, optionsOrCb);
872
- }
873
- else if (typeof cb === "function") {
874
- if (typeof optionsOrCb !== "object")
875
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
876
- this.send(command, optionsOrCb || {}, cb);
877
- }
878
- else {
879
- return this.send(command, optionsOrCb);
880
- }
881
- }
882
- listRuleGroups(args, optionsOrCb, cb) {
883
- const command = new ListRuleGroupsCommand(args);
884
- if (typeof optionsOrCb === "function") {
885
- this.send(command, optionsOrCb);
886
- }
887
- else if (typeof cb === "function") {
888
- if (typeof optionsOrCb !== "object")
889
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
890
- this.send(command, optionsOrCb || {}, cb);
891
- }
892
- else {
893
- return this.send(command, optionsOrCb);
894
- }
895
- }
896
- listRules(args, optionsOrCb, cb) {
897
- const command = new ListRulesCommand(args);
898
- if (typeof optionsOrCb === "function") {
899
- this.send(command, optionsOrCb);
900
- }
901
- else if (typeof cb === "function") {
902
- if (typeof optionsOrCb !== "object")
903
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
904
- this.send(command, optionsOrCb || {}, cb);
905
- }
906
- else {
907
- return this.send(command, optionsOrCb);
908
- }
909
- }
910
- listSizeConstraintSets(args, optionsOrCb, cb) {
911
- const command = new ListSizeConstraintSetsCommand(args);
912
- if (typeof optionsOrCb === "function") {
913
- this.send(command, optionsOrCb);
914
- }
915
- else if (typeof cb === "function") {
916
- if (typeof optionsOrCb !== "object")
917
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
918
- this.send(command, optionsOrCb || {}, cb);
919
- }
920
- else {
921
- return this.send(command, optionsOrCb);
922
- }
923
- }
924
- listSqlInjectionMatchSets(args, optionsOrCb, cb) {
925
- const command = new ListSqlInjectionMatchSetsCommand(args);
926
- if (typeof optionsOrCb === "function") {
927
- this.send(command, optionsOrCb);
928
- }
929
- else if (typeof cb === "function") {
930
- if (typeof optionsOrCb !== "object")
931
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
932
- this.send(command, optionsOrCb || {}, cb);
933
- }
934
- else {
935
- return this.send(command, optionsOrCb);
936
- }
937
- }
938
- listSubscribedRuleGroups(args, optionsOrCb, cb) {
939
- const command = new ListSubscribedRuleGroupsCommand(args);
940
- if (typeof optionsOrCb === "function") {
941
- this.send(command, optionsOrCb);
942
- }
943
- else if (typeof cb === "function") {
944
- if (typeof optionsOrCb !== "object")
945
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
946
- this.send(command, optionsOrCb || {}, cb);
947
- }
948
- else {
949
- return this.send(command, optionsOrCb);
950
- }
951
- }
952
- listTagsForResource(args, optionsOrCb, cb) {
953
- const command = new ListTagsForResourceCommand(args);
954
- if (typeof optionsOrCb === "function") {
955
- this.send(command, optionsOrCb);
956
- }
957
- else if (typeof cb === "function") {
958
- if (typeof optionsOrCb !== "object")
959
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
960
- this.send(command, optionsOrCb || {}, cb);
961
- }
962
- else {
963
- return this.send(command, optionsOrCb);
964
- }
965
- }
966
- listWebACLs(args, optionsOrCb, cb) {
967
- const command = new ListWebACLsCommand(args);
968
- if (typeof optionsOrCb === "function") {
969
- this.send(command, optionsOrCb);
970
- }
971
- else if (typeof cb === "function") {
972
- if (typeof optionsOrCb !== "object")
973
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
974
- this.send(command, optionsOrCb || {}, cb);
975
- }
976
- else {
977
- return this.send(command, optionsOrCb);
978
- }
979
- }
980
- listXssMatchSets(args, optionsOrCb, cb) {
981
- const command = new ListXssMatchSetsCommand(args);
982
- if (typeof optionsOrCb === "function") {
983
- this.send(command, optionsOrCb);
984
- }
985
- else if (typeof cb === "function") {
986
- if (typeof optionsOrCb !== "object")
987
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
988
- this.send(command, optionsOrCb || {}, cb);
989
- }
990
- else {
991
- return this.send(command, optionsOrCb);
992
- }
993
- }
994
- putLoggingConfiguration(args, optionsOrCb, cb) {
995
- const command = new PutLoggingConfigurationCommand(args);
996
- if (typeof optionsOrCb === "function") {
997
- this.send(command, optionsOrCb);
998
- }
999
- else if (typeof cb === "function") {
1000
- if (typeof optionsOrCb !== "object")
1001
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1002
- this.send(command, optionsOrCb || {}, cb);
1003
- }
1004
- else {
1005
- return this.send(command, optionsOrCb);
1006
- }
1007
- }
1008
- putPermissionPolicy(args, optionsOrCb, cb) {
1009
- const command = new PutPermissionPolicyCommand(args);
1010
- if (typeof optionsOrCb === "function") {
1011
- this.send(command, optionsOrCb);
1012
- }
1013
- else if (typeof cb === "function") {
1014
- if (typeof optionsOrCb !== "object")
1015
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1016
- this.send(command, optionsOrCb || {}, cb);
1017
- }
1018
- else {
1019
- return this.send(command, optionsOrCb);
1020
- }
1021
- }
1022
- tagResource(args, optionsOrCb, cb) {
1023
- const command = new TagResourceCommand(args);
1024
- if (typeof optionsOrCb === "function") {
1025
- this.send(command, optionsOrCb);
1026
- }
1027
- else if (typeof cb === "function") {
1028
- if (typeof optionsOrCb !== "object")
1029
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1030
- this.send(command, optionsOrCb || {}, cb);
1031
- }
1032
- else {
1033
- return this.send(command, optionsOrCb);
1034
- }
1035
- }
1036
- untagResource(args, optionsOrCb, cb) {
1037
- const command = new UntagResourceCommand(args);
1038
- if (typeof optionsOrCb === "function") {
1039
- this.send(command, optionsOrCb);
1040
- }
1041
- else if (typeof cb === "function") {
1042
- if (typeof optionsOrCb !== "object")
1043
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1044
- this.send(command, optionsOrCb || {}, cb);
1045
- }
1046
- else {
1047
- return this.send(command, optionsOrCb);
1048
- }
1049
- }
1050
- updateByteMatchSet(args, optionsOrCb, cb) {
1051
- const command = new UpdateByteMatchSetCommand(args);
1052
- if (typeof optionsOrCb === "function") {
1053
- this.send(command, optionsOrCb);
1054
- }
1055
- else if (typeof cb === "function") {
1056
- if (typeof optionsOrCb !== "object")
1057
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1058
- this.send(command, optionsOrCb || {}, cb);
1059
- }
1060
- else {
1061
- return this.send(command, optionsOrCb);
1062
- }
1063
- }
1064
- updateGeoMatchSet(args, optionsOrCb, cb) {
1065
- const command = new UpdateGeoMatchSetCommand(args);
1066
- if (typeof optionsOrCb === "function") {
1067
- this.send(command, optionsOrCb);
1068
- }
1069
- else if (typeof cb === "function") {
1070
- if (typeof optionsOrCb !== "object")
1071
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1072
- this.send(command, optionsOrCb || {}, cb);
1073
- }
1074
- else {
1075
- return this.send(command, optionsOrCb);
1076
- }
1077
- }
1078
- updateIPSet(args, optionsOrCb, cb) {
1079
- const command = new UpdateIPSetCommand(args);
1080
- if (typeof optionsOrCb === "function") {
1081
- this.send(command, optionsOrCb);
1082
- }
1083
- else if (typeof cb === "function") {
1084
- if (typeof optionsOrCb !== "object")
1085
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1086
- this.send(command, optionsOrCb || {}, cb);
1087
- }
1088
- else {
1089
- return this.send(command, optionsOrCb);
1090
- }
1091
- }
1092
- updateRateBasedRule(args, optionsOrCb, cb) {
1093
- const command = new UpdateRateBasedRuleCommand(args);
1094
- if (typeof optionsOrCb === "function") {
1095
- this.send(command, optionsOrCb);
1096
- }
1097
- else if (typeof cb === "function") {
1098
- if (typeof optionsOrCb !== "object")
1099
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1100
- this.send(command, optionsOrCb || {}, cb);
1101
- }
1102
- else {
1103
- return this.send(command, optionsOrCb);
1104
- }
1105
- }
1106
- updateRegexMatchSet(args, optionsOrCb, cb) {
1107
- const command = new UpdateRegexMatchSetCommand(args);
1108
- if (typeof optionsOrCb === "function") {
1109
- this.send(command, optionsOrCb);
1110
- }
1111
- else if (typeof cb === "function") {
1112
- if (typeof optionsOrCb !== "object")
1113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1114
- this.send(command, optionsOrCb || {}, cb);
1115
- }
1116
- else {
1117
- return this.send(command, optionsOrCb);
1118
- }
1119
- }
1120
- updateRegexPatternSet(args, optionsOrCb, cb) {
1121
- const command = new UpdateRegexPatternSetCommand(args);
1122
- if (typeof optionsOrCb === "function") {
1123
- this.send(command, optionsOrCb);
1124
- }
1125
- else if (typeof cb === "function") {
1126
- if (typeof optionsOrCb !== "object")
1127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1128
- this.send(command, optionsOrCb || {}, cb);
1129
- }
1130
- else {
1131
- return this.send(command, optionsOrCb);
1132
- }
1133
- }
1134
- updateRule(args, optionsOrCb, cb) {
1135
- const command = new UpdateRuleCommand(args);
1136
- if (typeof optionsOrCb === "function") {
1137
- this.send(command, optionsOrCb);
1138
- }
1139
- else if (typeof cb === "function") {
1140
- if (typeof optionsOrCb !== "object")
1141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1142
- this.send(command, optionsOrCb || {}, cb);
1143
- }
1144
- else {
1145
- return this.send(command, optionsOrCb);
1146
- }
1147
- }
1148
- updateRuleGroup(args, optionsOrCb, cb) {
1149
- const command = new UpdateRuleGroupCommand(args);
1150
- if (typeof optionsOrCb === "function") {
1151
- this.send(command, optionsOrCb);
1152
- }
1153
- else if (typeof cb === "function") {
1154
- if (typeof optionsOrCb !== "object")
1155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1156
- this.send(command, optionsOrCb || {}, cb);
1157
- }
1158
- else {
1159
- return this.send(command, optionsOrCb);
1160
- }
1161
- }
1162
- updateSizeConstraintSet(args, optionsOrCb, cb) {
1163
- const command = new UpdateSizeConstraintSetCommand(args);
1164
- if (typeof optionsOrCb === "function") {
1165
- this.send(command, optionsOrCb);
1166
- }
1167
- else if (typeof cb === "function") {
1168
- if (typeof optionsOrCb !== "object")
1169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1170
- this.send(command, optionsOrCb || {}, cb);
1171
- }
1172
- else {
1173
- return this.send(command, optionsOrCb);
1174
- }
1175
- }
1176
- updateSqlInjectionMatchSet(args, optionsOrCb, cb) {
1177
- const command = new UpdateSqlInjectionMatchSetCommand(args);
1178
- if (typeof optionsOrCb === "function") {
1179
- this.send(command, optionsOrCb);
1180
- }
1181
- else if (typeof cb === "function") {
1182
- if (typeof optionsOrCb !== "object")
1183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1184
- this.send(command, optionsOrCb || {}, cb);
1185
- }
1186
- else {
1187
- return this.send(command, optionsOrCb);
1188
- }
1189
- }
1190
- updateWebACL(args, optionsOrCb, cb) {
1191
- const command = new UpdateWebACLCommand(args);
1192
- if (typeof optionsOrCb === "function") {
1193
- this.send(command, optionsOrCb);
1194
- }
1195
- else if (typeof cb === "function") {
1196
- if (typeof optionsOrCb !== "object")
1197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1198
- this.send(command, optionsOrCb || {}, cb);
1199
- }
1200
- else {
1201
- return this.send(command, optionsOrCb);
1202
- }
1203
- }
1204
- updateXssMatchSet(args, optionsOrCb, cb) {
1205
- const command = new UpdateXssMatchSetCommand(args);
1206
- if (typeof optionsOrCb === "function") {
1207
- this.send(command, optionsOrCb);
1208
- }
1209
- else if (typeof cb === "function") {
1210
- if (typeof optionsOrCb !== "object")
1211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1212
- this.send(command, optionsOrCb || {}, cb);
1213
- }
1214
- else {
1215
- return this.send(command, optionsOrCb);
1216
- }
1217
- }
1218
168
  }
169
+ createAggregatedClient(commands, WAFRegional);