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