@aws-sdk/client-wafv2 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/WAFV2.js +194 -201
  3. package/dist-es/WAFV2Client.js +22 -28
  4. package/dist-es/commands/AssociateWebACLCommand.js +21 -28
  5. package/dist-es/commands/CheckCapacityCommand.js +21 -28
  6. package/dist-es/commands/CreateIPSetCommand.js +21 -28
  7. package/dist-es/commands/CreateRegexPatternSetCommand.js +21 -28
  8. package/dist-es/commands/CreateRuleGroupCommand.js +21 -28
  9. package/dist-es/commands/CreateWebACLCommand.js +21 -28
  10. package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +21 -28
  11. package/dist-es/commands/DeleteIPSetCommand.js +21 -28
  12. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DeletePermissionPolicyCommand.js +21 -28
  14. package/dist-es/commands/DeleteRegexPatternSetCommand.js +21 -28
  15. package/dist-es/commands/DeleteRuleGroupCommand.js +21 -28
  16. package/dist-es/commands/DeleteWebACLCommand.js +21 -28
  17. package/dist-es/commands/DescribeManagedRuleGroupCommand.js +21 -28
  18. package/dist-es/commands/DisassociateWebACLCommand.js +21 -28
  19. package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +21 -28
  20. package/dist-es/commands/GetIPSetCommand.js +21 -28
  21. package/dist-es/commands/GetLoggingConfigurationCommand.js +21 -28
  22. package/dist-es/commands/GetManagedRuleSetCommand.js +21 -28
  23. package/dist-es/commands/GetMobileSdkReleaseCommand.js +21 -28
  24. package/dist-es/commands/GetPermissionPolicyCommand.js +21 -28
  25. package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +21 -28
  26. package/dist-es/commands/GetRegexPatternSetCommand.js +21 -28
  27. package/dist-es/commands/GetRuleGroupCommand.js +21 -28
  28. package/dist-es/commands/GetSampledRequestsCommand.js +21 -28
  29. package/dist-es/commands/GetWebACLCommand.js +21 -28
  30. package/dist-es/commands/GetWebACLForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +21 -28
  32. package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +21 -28
  33. package/dist-es/commands/ListIPSetsCommand.js +21 -28
  34. package/dist-es/commands/ListLoggingConfigurationsCommand.js +21 -28
  35. package/dist-es/commands/ListManagedRuleSetsCommand.js +21 -28
  36. package/dist-es/commands/ListMobileSdkReleasesCommand.js +21 -28
  37. package/dist-es/commands/ListRegexPatternSetsCommand.js +21 -28
  38. package/dist-es/commands/ListResourcesForWebACLCommand.js +21 -28
  39. package/dist-es/commands/ListRuleGroupsCommand.js +21 -28
  40. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  41. package/dist-es/commands/ListWebACLsCommand.js +21 -28
  42. package/dist-es/commands/PutLoggingConfigurationCommand.js +21 -28
  43. package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +21 -28
  44. package/dist-es/commands/PutPermissionPolicyCommand.js +21 -28
  45. package/dist-es/commands/TagResourceCommand.js +21 -28
  46. package/dist-es/commands/UntagResourceCommand.js +21 -28
  47. package/dist-es/commands/UpdateIPSetCommand.js +21 -28
  48. package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +21 -28
  49. package/dist-es/commands/UpdateRegexPatternSetCommand.js +21 -28
  50. package/dist-es/commands/UpdateRuleGroupCommand.js +21 -28
  51. package/dist-es/commands/UpdateWebACLCommand.js +21 -28
  52. package/dist-es/endpoints.js +8 -8
  53. package/dist-es/models/WAFV2ServiceException.js +5 -10
  54. package/dist-es/models/models_0.js +775 -404
  55. package/dist-es/protocols/Aws_json1_1.js +4048 -4810
  56. package/dist-es/runtimeConfig.browser.js +26 -12
  57. package/dist-es/runtimeConfig.js +30 -12
  58. package/dist-es/runtimeConfig.native.js +8 -5
  59. package/dist-es/runtimeConfig.shared.js +8 -11
  60. package/package.json +33 -33
package/dist-es/WAFV2.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateWebACLCommand, } from "./commands/AssociateWebACLCommand";
3
2
  import { CheckCapacityCommand, } from "./commands/CheckCapacityCommand";
4
3
  import { CreateIPSetCommand } from "./commands/CreateIPSetCommand";
@@ -48,683 +47,677 @@ import { UpdateRegexPatternSetCommand, } from "./commands/UpdateRegexPatternSetC
48
47
  import { UpdateRuleGroupCommand, } from "./commands/UpdateRuleGroupCommand";
49
48
  import { UpdateWebACLCommand, } from "./commands/UpdateWebACLCommand";
50
49
  import { WAFV2Client } from "./WAFV2Client";
51
- var WAFV2 = (function (_super) {
52
- __extends(WAFV2, _super);
53
- function WAFV2() {
54
- return _super !== null && _super.apply(this, arguments) || this;
55
- }
56
- WAFV2.prototype.associateWebACL = function (args, optionsOrCb, cb) {
57
- var command = new AssociateWebACLCommand(args);
50
+ export class WAFV2 extends WAFV2Client {
51
+ associateWebACL(args, optionsOrCb, cb) {
52
+ const command = new AssociateWebACLCommand(args);
58
53
  if (typeof optionsOrCb === "function") {
59
54
  this.send(command, optionsOrCb);
60
55
  }
61
56
  else if (typeof cb === "function") {
62
57
  if (typeof optionsOrCb !== "object")
63
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
58
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
59
  this.send(command, optionsOrCb || {}, cb);
65
60
  }
66
61
  else {
67
62
  return this.send(command, optionsOrCb);
68
63
  }
69
- };
70
- WAFV2.prototype.checkCapacity = function (args, optionsOrCb, cb) {
71
- var command = new CheckCapacityCommand(args);
64
+ }
65
+ checkCapacity(args, optionsOrCb, cb) {
66
+ const command = new CheckCapacityCommand(args);
72
67
  if (typeof optionsOrCb === "function") {
73
68
  this.send(command, optionsOrCb);
74
69
  }
75
70
  else if (typeof cb === "function") {
76
71
  if (typeof optionsOrCb !== "object")
77
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
72
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
73
  this.send(command, optionsOrCb || {}, cb);
79
74
  }
80
75
  else {
81
76
  return this.send(command, optionsOrCb);
82
77
  }
83
- };
84
- WAFV2.prototype.createIPSet = function (args, optionsOrCb, cb) {
85
- var command = new CreateIPSetCommand(args);
78
+ }
79
+ createIPSet(args, optionsOrCb, cb) {
80
+ const command = new CreateIPSetCommand(args);
86
81
  if (typeof optionsOrCb === "function") {
87
82
  this.send(command, optionsOrCb);
88
83
  }
89
84
  else if (typeof cb === "function") {
90
85
  if (typeof optionsOrCb !== "object")
91
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
86
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
87
  this.send(command, optionsOrCb || {}, cb);
93
88
  }
94
89
  else {
95
90
  return this.send(command, optionsOrCb);
96
91
  }
97
- };
98
- WAFV2.prototype.createRegexPatternSet = function (args, optionsOrCb, cb) {
99
- var command = new CreateRegexPatternSetCommand(args);
92
+ }
93
+ createRegexPatternSet(args, optionsOrCb, cb) {
94
+ const command = new CreateRegexPatternSetCommand(args);
100
95
  if (typeof optionsOrCb === "function") {
101
96
  this.send(command, optionsOrCb);
102
97
  }
103
98
  else if (typeof cb === "function") {
104
99
  if (typeof optionsOrCb !== "object")
105
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
100
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
101
  this.send(command, optionsOrCb || {}, cb);
107
102
  }
108
103
  else {
109
104
  return this.send(command, optionsOrCb);
110
105
  }
111
- };
112
- WAFV2.prototype.createRuleGroup = function (args, optionsOrCb, cb) {
113
- var command = new CreateRuleGroupCommand(args);
106
+ }
107
+ createRuleGroup(args, optionsOrCb, cb) {
108
+ const command = new CreateRuleGroupCommand(args);
114
109
  if (typeof optionsOrCb === "function") {
115
110
  this.send(command, optionsOrCb);
116
111
  }
117
112
  else if (typeof cb === "function") {
118
113
  if (typeof optionsOrCb !== "object")
119
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
114
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
115
  this.send(command, optionsOrCb || {}, cb);
121
116
  }
122
117
  else {
123
118
  return this.send(command, optionsOrCb);
124
119
  }
125
- };
126
- WAFV2.prototype.createWebACL = function (args, optionsOrCb, cb) {
127
- var command = new CreateWebACLCommand(args);
120
+ }
121
+ createWebACL(args, optionsOrCb, cb) {
122
+ const command = new CreateWebACLCommand(args);
128
123
  if (typeof optionsOrCb === "function") {
129
124
  this.send(command, optionsOrCb);
130
125
  }
131
126
  else if (typeof cb === "function") {
132
127
  if (typeof optionsOrCb !== "object")
133
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
128
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
129
  this.send(command, optionsOrCb || {}, cb);
135
130
  }
136
131
  else {
137
132
  return this.send(command, optionsOrCb);
138
133
  }
139
- };
140
- WAFV2.prototype.deleteFirewallManagerRuleGroups = function (args, optionsOrCb, cb) {
141
- var command = new DeleteFirewallManagerRuleGroupsCommand(args);
134
+ }
135
+ deleteFirewallManagerRuleGroups(args, optionsOrCb, cb) {
136
+ const command = new DeleteFirewallManagerRuleGroupsCommand(args);
142
137
  if (typeof optionsOrCb === "function") {
143
138
  this.send(command, optionsOrCb);
144
139
  }
145
140
  else if (typeof cb === "function") {
146
141
  if (typeof optionsOrCb !== "object")
147
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
142
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
143
  this.send(command, optionsOrCb || {}, cb);
149
144
  }
150
145
  else {
151
146
  return this.send(command, optionsOrCb);
152
147
  }
153
- };
154
- WAFV2.prototype.deleteIPSet = function (args, optionsOrCb, cb) {
155
- var command = new DeleteIPSetCommand(args);
148
+ }
149
+ deleteIPSet(args, optionsOrCb, cb) {
150
+ const command = new DeleteIPSetCommand(args);
156
151
  if (typeof optionsOrCb === "function") {
157
152
  this.send(command, optionsOrCb);
158
153
  }
159
154
  else if (typeof cb === "function") {
160
155
  if (typeof optionsOrCb !== "object")
161
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
156
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
157
  this.send(command, optionsOrCb || {}, cb);
163
158
  }
164
159
  else {
165
160
  return this.send(command, optionsOrCb);
166
161
  }
167
- };
168
- WAFV2.prototype.deleteLoggingConfiguration = function (args, optionsOrCb, cb) {
169
- var command = new DeleteLoggingConfigurationCommand(args);
162
+ }
163
+ deleteLoggingConfiguration(args, optionsOrCb, cb) {
164
+ const command = new DeleteLoggingConfigurationCommand(args);
170
165
  if (typeof optionsOrCb === "function") {
171
166
  this.send(command, optionsOrCb);
172
167
  }
173
168
  else if (typeof cb === "function") {
174
169
  if (typeof optionsOrCb !== "object")
175
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
170
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
171
  this.send(command, optionsOrCb || {}, cb);
177
172
  }
178
173
  else {
179
174
  return this.send(command, optionsOrCb);
180
175
  }
181
- };
182
- WAFV2.prototype.deletePermissionPolicy = function (args, optionsOrCb, cb) {
183
- var command = new DeletePermissionPolicyCommand(args);
176
+ }
177
+ deletePermissionPolicy(args, optionsOrCb, cb) {
178
+ const command = new DeletePermissionPolicyCommand(args);
184
179
  if (typeof optionsOrCb === "function") {
185
180
  this.send(command, optionsOrCb);
186
181
  }
187
182
  else if (typeof cb === "function") {
188
183
  if (typeof optionsOrCb !== "object")
189
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
184
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
185
  this.send(command, optionsOrCb || {}, cb);
191
186
  }
192
187
  else {
193
188
  return this.send(command, optionsOrCb);
194
189
  }
195
- };
196
- WAFV2.prototype.deleteRegexPatternSet = function (args, optionsOrCb, cb) {
197
- var command = new DeleteRegexPatternSetCommand(args);
190
+ }
191
+ deleteRegexPatternSet(args, optionsOrCb, cb) {
192
+ const command = new DeleteRegexPatternSetCommand(args);
198
193
  if (typeof optionsOrCb === "function") {
199
194
  this.send(command, optionsOrCb);
200
195
  }
201
196
  else if (typeof cb === "function") {
202
197
  if (typeof optionsOrCb !== "object")
203
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
198
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
199
  this.send(command, optionsOrCb || {}, cb);
205
200
  }
206
201
  else {
207
202
  return this.send(command, optionsOrCb);
208
203
  }
209
- };
210
- WAFV2.prototype.deleteRuleGroup = function (args, optionsOrCb, cb) {
211
- var command = new DeleteRuleGroupCommand(args);
204
+ }
205
+ deleteRuleGroup(args, optionsOrCb, cb) {
206
+ const command = new DeleteRuleGroupCommand(args);
212
207
  if (typeof optionsOrCb === "function") {
213
208
  this.send(command, optionsOrCb);
214
209
  }
215
210
  else if (typeof cb === "function") {
216
211
  if (typeof optionsOrCb !== "object")
217
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
212
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
213
  this.send(command, optionsOrCb || {}, cb);
219
214
  }
220
215
  else {
221
216
  return this.send(command, optionsOrCb);
222
217
  }
223
- };
224
- WAFV2.prototype.deleteWebACL = function (args, optionsOrCb, cb) {
225
- var command = new DeleteWebACLCommand(args);
218
+ }
219
+ deleteWebACL(args, optionsOrCb, cb) {
220
+ const command = new DeleteWebACLCommand(args);
226
221
  if (typeof optionsOrCb === "function") {
227
222
  this.send(command, optionsOrCb);
228
223
  }
229
224
  else if (typeof cb === "function") {
230
225
  if (typeof optionsOrCb !== "object")
231
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
226
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
227
  this.send(command, optionsOrCb || {}, cb);
233
228
  }
234
229
  else {
235
230
  return this.send(command, optionsOrCb);
236
231
  }
237
- };
238
- WAFV2.prototype.describeManagedRuleGroup = function (args, optionsOrCb, cb) {
239
- var command = new DescribeManagedRuleGroupCommand(args);
232
+ }
233
+ describeManagedRuleGroup(args, optionsOrCb, cb) {
234
+ const command = new DescribeManagedRuleGroupCommand(args);
240
235
  if (typeof optionsOrCb === "function") {
241
236
  this.send(command, optionsOrCb);
242
237
  }
243
238
  else if (typeof cb === "function") {
244
239
  if (typeof optionsOrCb !== "object")
245
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
240
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
241
  this.send(command, optionsOrCb || {}, cb);
247
242
  }
248
243
  else {
249
244
  return this.send(command, optionsOrCb);
250
245
  }
251
- };
252
- WAFV2.prototype.disassociateWebACL = function (args, optionsOrCb, cb) {
253
- var command = new DisassociateWebACLCommand(args);
246
+ }
247
+ disassociateWebACL(args, optionsOrCb, cb) {
248
+ const command = new DisassociateWebACLCommand(args);
254
249
  if (typeof optionsOrCb === "function") {
255
250
  this.send(command, optionsOrCb);
256
251
  }
257
252
  else if (typeof cb === "function") {
258
253
  if (typeof optionsOrCb !== "object")
259
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
254
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
255
  this.send(command, optionsOrCb || {}, cb);
261
256
  }
262
257
  else {
263
258
  return this.send(command, optionsOrCb);
264
259
  }
265
- };
266
- WAFV2.prototype.generateMobileSdkReleaseUrl = function (args, optionsOrCb, cb) {
267
- var command = new GenerateMobileSdkReleaseUrlCommand(args);
260
+ }
261
+ generateMobileSdkReleaseUrl(args, optionsOrCb, cb) {
262
+ const command = new GenerateMobileSdkReleaseUrlCommand(args);
268
263
  if (typeof optionsOrCb === "function") {
269
264
  this.send(command, optionsOrCb);
270
265
  }
271
266
  else if (typeof cb === "function") {
272
267
  if (typeof optionsOrCb !== "object")
273
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
268
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
269
  this.send(command, optionsOrCb || {}, cb);
275
270
  }
276
271
  else {
277
272
  return this.send(command, optionsOrCb);
278
273
  }
279
- };
280
- WAFV2.prototype.getIPSet = function (args, optionsOrCb, cb) {
281
- var command = new GetIPSetCommand(args);
274
+ }
275
+ getIPSet(args, optionsOrCb, cb) {
276
+ const command = new GetIPSetCommand(args);
282
277
  if (typeof optionsOrCb === "function") {
283
278
  this.send(command, optionsOrCb);
284
279
  }
285
280
  else if (typeof cb === "function") {
286
281
  if (typeof optionsOrCb !== "object")
287
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
282
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
283
  this.send(command, optionsOrCb || {}, cb);
289
284
  }
290
285
  else {
291
286
  return this.send(command, optionsOrCb);
292
287
  }
293
- };
294
- WAFV2.prototype.getLoggingConfiguration = function (args, optionsOrCb, cb) {
295
- var command = new GetLoggingConfigurationCommand(args);
288
+ }
289
+ getLoggingConfiguration(args, optionsOrCb, cb) {
290
+ const command = new GetLoggingConfigurationCommand(args);
296
291
  if (typeof optionsOrCb === "function") {
297
292
  this.send(command, optionsOrCb);
298
293
  }
299
294
  else if (typeof cb === "function") {
300
295
  if (typeof optionsOrCb !== "object")
301
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
296
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
297
  this.send(command, optionsOrCb || {}, cb);
303
298
  }
304
299
  else {
305
300
  return this.send(command, optionsOrCb);
306
301
  }
307
- };
308
- WAFV2.prototype.getManagedRuleSet = function (args, optionsOrCb, cb) {
309
- var command = new GetManagedRuleSetCommand(args);
302
+ }
303
+ getManagedRuleSet(args, optionsOrCb, cb) {
304
+ const command = new GetManagedRuleSetCommand(args);
310
305
  if (typeof optionsOrCb === "function") {
311
306
  this.send(command, optionsOrCb);
312
307
  }
313
308
  else if (typeof cb === "function") {
314
309
  if (typeof optionsOrCb !== "object")
315
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
310
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
311
  this.send(command, optionsOrCb || {}, cb);
317
312
  }
318
313
  else {
319
314
  return this.send(command, optionsOrCb);
320
315
  }
321
- };
322
- WAFV2.prototype.getMobileSdkRelease = function (args, optionsOrCb, cb) {
323
- var command = new GetMobileSdkReleaseCommand(args);
316
+ }
317
+ getMobileSdkRelease(args, optionsOrCb, cb) {
318
+ const command = new GetMobileSdkReleaseCommand(args);
324
319
  if (typeof optionsOrCb === "function") {
325
320
  this.send(command, optionsOrCb);
326
321
  }
327
322
  else if (typeof cb === "function") {
328
323
  if (typeof optionsOrCb !== "object")
329
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
324
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
325
  this.send(command, optionsOrCb || {}, cb);
331
326
  }
332
327
  else {
333
328
  return this.send(command, optionsOrCb);
334
329
  }
335
- };
336
- WAFV2.prototype.getPermissionPolicy = function (args, optionsOrCb, cb) {
337
- var command = new GetPermissionPolicyCommand(args);
330
+ }
331
+ getPermissionPolicy(args, optionsOrCb, cb) {
332
+ const command = new GetPermissionPolicyCommand(args);
338
333
  if (typeof optionsOrCb === "function") {
339
334
  this.send(command, optionsOrCb);
340
335
  }
341
336
  else if (typeof cb === "function") {
342
337
  if (typeof optionsOrCb !== "object")
343
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
338
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
339
  this.send(command, optionsOrCb || {}, cb);
345
340
  }
346
341
  else {
347
342
  return this.send(command, optionsOrCb);
348
343
  }
349
- };
350
- WAFV2.prototype.getRateBasedStatementManagedKeys = function (args, optionsOrCb, cb) {
351
- var command = new GetRateBasedStatementManagedKeysCommand(args);
344
+ }
345
+ getRateBasedStatementManagedKeys(args, optionsOrCb, cb) {
346
+ const command = new GetRateBasedStatementManagedKeysCommand(args);
352
347
  if (typeof optionsOrCb === "function") {
353
348
  this.send(command, optionsOrCb);
354
349
  }
355
350
  else if (typeof cb === "function") {
356
351
  if (typeof optionsOrCb !== "object")
357
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
352
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
353
  this.send(command, optionsOrCb || {}, cb);
359
354
  }
360
355
  else {
361
356
  return this.send(command, optionsOrCb);
362
357
  }
363
- };
364
- WAFV2.prototype.getRegexPatternSet = function (args, optionsOrCb, cb) {
365
- var command = new GetRegexPatternSetCommand(args);
358
+ }
359
+ getRegexPatternSet(args, optionsOrCb, cb) {
360
+ const command = new GetRegexPatternSetCommand(args);
366
361
  if (typeof optionsOrCb === "function") {
367
362
  this.send(command, optionsOrCb);
368
363
  }
369
364
  else if (typeof cb === "function") {
370
365
  if (typeof optionsOrCb !== "object")
371
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
366
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
367
  this.send(command, optionsOrCb || {}, cb);
373
368
  }
374
369
  else {
375
370
  return this.send(command, optionsOrCb);
376
371
  }
377
- };
378
- WAFV2.prototype.getRuleGroup = function (args, optionsOrCb, cb) {
379
- var command = new GetRuleGroupCommand(args);
372
+ }
373
+ getRuleGroup(args, optionsOrCb, cb) {
374
+ const command = new GetRuleGroupCommand(args);
380
375
  if (typeof optionsOrCb === "function") {
381
376
  this.send(command, optionsOrCb);
382
377
  }
383
378
  else if (typeof cb === "function") {
384
379
  if (typeof optionsOrCb !== "object")
385
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
380
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
381
  this.send(command, optionsOrCb || {}, cb);
387
382
  }
388
383
  else {
389
384
  return this.send(command, optionsOrCb);
390
385
  }
391
- };
392
- WAFV2.prototype.getSampledRequests = function (args, optionsOrCb, cb) {
393
- var command = new GetSampledRequestsCommand(args);
386
+ }
387
+ getSampledRequests(args, optionsOrCb, cb) {
388
+ const command = new GetSampledRequestsCommand(args);
394
389
  if (typeof optionsOrCb === "function") {
395
390
  this.send(command, optionsOrCb);
396
391
  }
397
392
  else if (typeof cb === "function") {
398
393
  if (typeof optionsOrCb !== "object")
399
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
394
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
395
  this.send(command, optionsOrCb || {}, cb);
401
396
  }
402
397
  else {
403
398
  return this.send(command, optionsOrCb);
404
399
  }
405
- };
406
- WAFV2.prototype.getWebACL = function (args, optionsOrCb, cb) {
407
- var command = new GetWebACLCommand(args);
400
+ }
401
+ getWebACL(args, optionsOrCb, cb) {
402
+ const command = new GetWebACLCommand(args);
408
403
  if (typeof optionsOrCb === "function") {
409
404
  this.send(command, optionsOrCb);
410
405
  }
411
406
  else if (typeof cb === "function") {
412
407
  if (typeof optionsOrCb !== "object")
413
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
408
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
414
409
  this.send(command, optionsOrCb || {}, cb);
415
410
  }
416
411
  else {
417
412
  return this.send(command, optionsOrCb);
418
413
  }
419
- };
420
- WAFV2.prototype.getWebACLForResource = function (args, optionsOrCb, cb) {
421
- var command = new GetWebACLForResourceCommand(args);
414
+ }
415
+ getWebACLForResource(args, optionsOrCb, cb) {
416
+ const command = new GetWebACLForResourceCommand(args);
422
417
  if (typeof optionsOrCb === "function") {
423
418
  this.send(command, optionsOrCb);
424
419
  }
425
420
  else if (typeof cb === "function") {
426
421
  if (typeof optionsOrCb !== "object")
427
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
422
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
423
  this.send(command, optionsOrCb || {}, cb);
429
424
  }
430
425
  else {
431
426
  return this.send(command, optionsOrCb);
432
427
  }
433
- };
434
- WAFV2.prototype.listAvailableManagedRuleGroups = function (args, optionsOrCb, cb) {
435
- var command = new ListAvailableManagedRuleGroupsCommand(args);
428
+ }
429
+ listAvailableManagedRuleGroups(args, optionsOrCb, cb) {
430
+ const command = new ListAvailableManagedRuleGroupsCommand(args);
436
431
  if (typeof optionsOrCb === "function") {
437
432
  this.send(command, optionsOrCb);
438
433
  }
439
434
  else if (typeof cb === "function") {
440
435
  if (typeof optionsOrCb !== "object")
441
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
436
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
437
  this.send(command, optionsOrCb || {}, cb);
443
438
  }
444
439
  else {
445
440
  return this.send(command, optionsOrCb);
446
441
  }
447
- };
448
- WAFV2.prototype.listAvailableManagedRuleGroupVersions = function (args, optionsOrCb, cb) {
449
- var command = new ListAvailableManagedRuleGroupVersionsCommand(args);
442
+ }
443
+ listAvailableManagedRuleGroupVersions(args, optionsOrCb, cb) {
444
+ const command = new ListAvailableManagedRuleGroupVersionsCommand(args);
450
445
  if (typeof optionsOrCb === "function") {
451
446
  this.send(command, optionsOrCb);
452
447
  }
453
448
  else if (typeof cb === "function") {
454
449
  if (typeof optionsOrCb !== "object")
455
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
450
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
451
  this.send(command, optionsOrCb || {}, cb);
457
452
  }
458
453
  else {
459
454
  return this.send(command, optionsOrCb);
460
455
  }
461
- };
462
- WAFV2.prototype.listIPSets = function (args, optionsOrCb, cb) {
463
- var command = new ListIPSetsCommand(args);
456
+ }
457
+ listIPSets(args, optionsOrCb, cb) {
458
+ const command = new ListIPSetsCommand(args);
464
459
  if (typeof optionsOrCb === "function") {
465
460
  this.send(command, optionsOrCb);
466
461
  }
467
462
  else if (typeof cb === "function") {
468
463
  if (typeof optionsOrCb !== "object")
469
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
464
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
465
  this.send(command, optionsOrCb || {}, cb);
471
466
  }
472
467
  else {
473
468
  return this.send(command, optionsOrCb);
474
469
  }
475
- };
476
- WAFV2.prototype.listLoggingConfigurations = function (args, optionsOrCb, cb) {
477
- var command = new ListLoggingConfigurationsCommand(args);
470
+ }
471
+ listLoggingConfigurations(args, optionsOrCb, cb) {
472
+ const command = new ListLoggingConfigurationsCommand(args);
478
473
  if (typeof optionsOrCb === "function") {
479
474
  this.send(command, optionsOrCb);
480
475
  }
481
476
  else if (typeof cb === "function") {
482
477
  if (typeof optionsOrCb !== "object")
483
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
478
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
479
  this.send(command, optionsOrCb || {}, cb);
485
480
  }
486
481
  else {
487
482
  return this.send(command, optionsOrCb);
488
483
  }
489
- };
490
- WAFV2.prototype.listManagedRuleSets = function (args, optionsOrCb, cb) {
491
- var command = new ListManagedRuleSetsCommand(args);
484
+ }
485
+ listManagedRuleSets(args, optionsOrCb, cb) {
486
+ const command = new ListManagedRuleSetsCommand(args);
492
487
  if (typeof optionsOrCb === "function") {
493
488
  this.send(command, optionsOrCb);
494
489
  }
495
490
  else if (typeof cb === "function") {
496
491
  if (typeof optionsOrCb !== "object")
497
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
492
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
493
  this.send(command, optionsOrCb || {}, cb);
499
494
  }
500
495
  else {
501
496
  return this.send(command, optionsOrCb);
502
497
  }
503
- };
504
- WAFV2.prototype.listMobileSdkReleases = function (args, optionsOrCb, cb) {
505
- var command = new ListMobileSdkReleasesCommand(args);
498
+ }
499
+ listMobileSdkReleases(args, optionsOrCb, cb) {
500
+ const command = new ListMobileSdkReleasesCommand(args);
506
501
  if (typeof optionsOrCb === "function") {
507
502
  this.send(command, optionsOrCb);
508
503
  }
509
504
  else if (typeof cb === "function") {
510
505
  if (typeof optionsOrCb !== "object")
511
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
506
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
512
507
  this.send(command, optionsOrCb || {}, cb);
513
508
  }
514
509
  else {
515
510
  return this.send(command, optionsOrCb);
516
511
  }
517
- };
518
- WAFV2.prototype.listRegexPatternSets = function (args, optionsOrCb, cb) {
519
- var command = new ListRegexPatternSetsCommand(args);
512
+ }
513
+ listRegexPatternSets(args, optionsOrCb, cb) {
514
+ const command = new ListRegexPatternSetsCommand(args);
520
515
  if (typeof optionsOrCb === "function") {
521
516
  this.send(command, optionsOrCb);
522
517
  }
523
518
  else if (typeof cb === "function") {
524
519
  if (typeof optionsOrCb !== "object")
525
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
520
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
521
  this.send(command, optionsOrCb || {}, cb);
527
522
  }
528
523
  else {
529
524
  return this.send(command, optionsOrCb);
530
525
  }
531
- };
532
- WAFV2.prototype.listResourcesForWebACL = function (args, optionsOrCb, cb) {
533
- var command = new ListResourcesForWebACLCommand(args);
526
+ }
527
+ listResourcesForWebACL(args, optionsOrCb, cb) {
528
+ const command = new ListResourcesForWebACLCommand(args);
534
529
  if (typeof optionsOrCb === "function") {
535
530
  this.send(command, optionsOrCb);
536
531
  }
537
532
  else if (typeof cb === "function") {
538
533
  if (typeof optionsOrCb !== "object")
539
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
534
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
540
535
  this.send(command, optionsOrCb || {}, cb);
541
536
  }
542
537
  else {
543
538
  return this.send(command, optionsOrCb);
544
539
  }
545
- };
546
- WAFV2.prototype.listRuleGroups = function (args, optionsOrCb, cb) {
547
- var command = new ListRuleGroupsCommand(args);
540
+ }
541
+ listRuleGroups(args, optionsOrCb, cb) {
542
+ const command = new ListRuleGroupsCommand(args);
548
543
  if (typeof optionsOrCb === "function") {
549
544
  this.send(command, optionsOrCb);
550
545
  }
551
546
  else if (typeof cb === "function") {
552
547
  if (typeof optionsOrCb !== "object")
553
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
548
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
554
549
  this.send(command, optionsOrCb || {}, cb);
555
550
  }
556
551
  else {
557
552
  return this.send(command, optionsOrCb);
558
553
  }
559
- };
560
- WAFV2.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
561
- var command = new ListTagsForResourceCommand(args);
554
+ }
555
+ listTagsForResource(args, optionsOrCb, cb) {
556
+ const command = new ListTagsForResourceCommand(args);
562
557
  if (typeof optionsOrCb === "function") {
563
558
  this.send(command, optionsOrCb);
564
559
  }
565
560
  else if (typeof cb === "function") {
566
561
  if (typeof optionsOrCb !== "object")
567
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
562
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
568
563
  this.send(command, optionsOrCb || {}, cb);
569
564
  }
570
565
  else {
571
566
  return this.send(command, optionsOrCb);
572
567
  }
573
- };
574
- WAFV2.prototype.listWebACLs = function (args, optionsOrCb, cb) {
575
- var command = new ListWebACLsCommand(args);
568
+ }
569
+ listWebACLs(args, optionsOrCb, cb) {
570
+ const command = new ListWebACLsCommand(args);
576
571
  if (typeof optionsOrCb === "function") {
577
572
  this.send(command, optionsOrCb);
578
573
  }
579
574
  else if (typeof cb === "function") {
580
575
  if (typeof optionsOrCb !== "object")
581
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
576
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
582
577
  this.send(command, optionsOrCb || {}, cb);
583
578
  }
584
579
  else {
585
580
  return this.send(command, optionsOrCb);
586
581
  }
587
- };
588
- WAFV2.prototype.putLoggingConfiguration = function (args, optionsOrCb, cb) {
589
- var command = new PutLoggingConfigurationCommand(args);
582
+ }
583
+ putLoggingConfiguration(args, optionsOrCb, cb) {
584
+ const command = new PutLoggingConfigurationCommand(args);
590
585
  if (typeof optionsOrCb === "function") {
591
586
  this.send(command, optionsOrCb);
592
587
  }
593
588
  else if (typeof cb === "function") {
594
589
  if (typeof optionsOrCb !== "object")
595
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
590
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
596
591
  this.send(command, optionsOrCb || {}, cb);
597
592
  }
598
593
  else {
599
594
  return this.send(command, optionsOrCb);
600
595
  }
601
- };
602
- WAFV2.prototype.putManagedRuleSetVersions = function (args, optionsOrCb, cb) {
603
- var command = new PutManagedRuleSetVersionsCommand(args);
596
+ }
597
+ putManagedRuleSetVersions(args, optionsOrCb, cb) {
598
+ const command = new PutManagedRuleSetVersionsCommand(args);
604
599
  if (typeof optionsOrCb === "function") {
605
600
  this.send(command, optionsOrCb);
606
601
  }
607
602
  else if (typeof cb === "function") {
608
603
  if (typeof optionsOrCb !== "object")
609
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
604
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
610
605
  this.send(command, optionsOrCb || {}, cb);
611
606
  }
612
607
  else {
613
608
  return this.send(command, optionsOrCb);
614
609
  }
615
- };
616
- WAFV2.prototype.putPermissionPolicy = function (args, optionsOrCb, cb) {
617
- var command = new PutPermissionPolicyCommand(args);
610
+ }
611
+ putPermissionPolicy(args, optionsOrCb, cb) {
612
+ const command = new PutPermissionPolicyCommand(args);
618
613
  if (typeof optionsOrCb === "function") {
619
614
  this.send(command, optionsOrCb);
620
615
  }
621
616
  else if (typeof cb === "function") {
622
617
  if (typeof optionsOrCb !== "object")
623
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
618
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
624
619
  this.send(command, optionsOrCb || {}, cb);
625
620
  }
626
621
  else {
627
622
  return this.send(command, optionsOrCb);
628
623
  }
629
- };
630
- WAFV2.prototype.tagResource = function (args, optionsOrCb, cb) {
631
- var command = new TagResourceCommand(args);
624
+ }
625
+ tagResource(args, optionsOrCb, cb) {
626
+ const command = new TagResourceCommand(args);
632
627
  if (typeof optionsOrCb === "function") {
633
628
  this.send(command, optionsOrCb);
634
629
  }
635
630
  else if (typeof cb === "function") {
636
631
  if (typeof optionsOrCb !== "object")
637
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
632
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
638
633
  this.send(command, optionsOrCb || {}, cb);
639
634
  }
640
635
  else {
641
636
  return this.send(command, optionsOrCb);
642
637
  }
643
- };
644
- WAFV2.prototype.untagResource = function (args, optionsOrCb, cb) {
645
- var command = new UntagResourceCommand(args);
638
+ }
639
+ untagResource(args, optionsOrCb, cb) {
640
+ const command = new UntagResourceCommand(args);
646
641
  if (typeof optionsOrCb === "function") {
647
642
  this.send(command, optionsOrCb);
648
643
  }
649
644
  else if (typeof cb === "function") {
650
645
  if (typeof optionsOrCb !== "object")
651
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
646
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
652
647
  this.send(command, optionsOrCb || {}, cb);
653
648
  }
654
649
  else {
655
650
  return this.send(command, optionsOrCb);
656
651
  }
657
- };
658
- WAFV2.prototype.updateIPSet = function (args, optionsOrCb, cb) {
659
- var command = new UpdateIPSetCommand(args);
652
+ }
653
+ updateIPSet(args, optionsOrCb, cb) {
654
+ const command = new UpdateIPSetCommand(args);
660
655
  if (typeof optionsOrCb === "function") {
661
656
  this.send(command, optionsOrCb);
662
657
  }
663
658
  else if (typeof cb === "function") {
664
659
  if (typeof optionsOrCb !== "object")
665
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
660
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
666
661
  this.send(command, optionsOrCb || {}, cb);
667
662
  }
668
663
  else {
669
664
  return this.send(command, optionsOrCb);
670
665
  }
671
- };
672
- WAFV2.prototype.updateManagedRuleSetVersionExpiryDate = function (args, optionsOrCb, cb) {
673
- var command = new UpdateManagedRuleSetVersionExpiryDateCommand(args);
666
+ }
667
+ updateManagedRuleSetVersionExpiryDate(args, optionsOrCb, cb) {
668
+ const command = new UpdateManagedRuleSetVersionExpiryDateCommand(args);
674
669
  if (typeof optionsOrCb === "function") {
675
670
  this.send(command, optionsOrCb);
676
671
  }
677
672
  else if (typeof cb === "function") {
678
673
  if (typeof optionsOrCb !== "object")
679
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
674
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
680
675
  this.send(command, optionsOrCb || {}, cb);
681
676
  }
682
677
  else {
683
678
  return this.send(command, optionsOrCb);
684
679
  }
685
- };
686
- WAFV2.prototype.updateRegexPatternSet = function (args, optionsOrCb, cb) {
687
- var command = new UpdateRegexPatternSetCommand(args);
680
+ }
681
+ updateRegexPatternSet(args, optionsOrCb, cb) {
682
+ const command = new UpdateRegexPatternSetCommand(args);
688
683
  if (typeof optionsOrCb === "function") {
689
684
  this.send(command, optionsOrCb);
690
685
  }
691
686
  else if (typeof cb === "function") {
692
687
  if (typeof optionsOrCb !== "object")
693
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
688
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
694
689
  this.send(command, optionsOrCb || {}, cb);
695
690
  }
696
691
  else {
697
692
  return this.send(command, optionsOrCb);
698
693
  }
699
- };
700
- WAFV2.prototype.updateRuleGroup = function (args, optionsOrCb, cb) {
701
- var command = new UpdateRuleGroupCommand(args);
694
+ }
695
+ updateRuleGroup(args, optionsOrCb, cb) {
696
+ const command = new UpdateRuleGroupCommand(args);
702
697
  if (typeof optionsOrCb === "function") {
703
698
  this.send(command, optionsOrCb);
704
699
  }
705
700
  else if (typeof cb === "function") {
706
701
  if (typeof optionsOrCb !== "object")
707
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
702
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
708
703
  this.send(command, optionsOrCb || {}, cb);
709
704
  }
710
705
  else {
711
706
  return this.send(command, optionsOrCb);
712
707
  }
713
- };
714
- WAFV2.prototype.updateWebACL = function (args, optionsOrCb, cb) {
715
- var command = new UpdateWebACLCommand(args);
708
+ }
709
+ updateWebACL(args, optionsOrCb, cb) {
710
+ const command = new UpdateWebACLCommand(args);
716
711
  if (typeof optionsOrCb === "function") {
717
712
  this.send(command, optionsOrCb);
718
713
  }
719
714
  else if (typeof cb === "function") {
720
715
  if (typeof optionsOrCb !== "object")
721
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
716
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
722
717
  this.send(command, optionsOrCb || {}, cb);
723
718
  }
724
719
  else {
725
720
  return this.send(command, optionsOrCb);
726
721
  }
727
- };
728
- return WAFV2;
729
- }(WAFV2Client));
730
- export { WAFV2 };
722
+ }
723
+ }