@aws-sdk/client-shield 3.180.0 → 3.183.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 (53) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +42 -36
  3. package/dist-es/Shield.js +146 -153
  4. package/dist-es/ShieldClient.js +22 -28
  5. package/dist-es/commands/AssociateDRTLogBucketCommand.js +21 -28
  6. package/dist-es/commands/AssociateDRTRoleCommand.js +21 -28
  7. package/dist-es/commands/AssociateHealthCheckCommand.js +21 -28
  8. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +21 -28
  9. package/dist-es/commands/CreateProtectionCommand.js +21 -28
  10. package/dist-es/commands/CreateProtectionGroupCommand.js +21 -28
  11. package/dist-es/commands/CreateSubscriptionCommand.js +21 -28
  12. package/dist-es/commands/DeleteProtectionCommand.js +21 -28
  13. package/dist-es/commands/DeleteProtectionGroupCommand.js +21 -28
  14. package/dist-es/commands/DeleteSubscriptionCommand.js +21 -28
  15. package/dist-es/commands/DescribeAttackCommand.js +21 -28
  16. package/dist-es/commands/DescribeAttackStatisticsCommand.js +21 -28
  17. package/dist-es/commands/DescribeDRTAccessCommand.js +21 -28
  18. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +21 -28
  19. package/dist-es/commands/DescribeProtectionCommand.js +21 -28
  20. package/dist-es/commands/DescribeProtectionGroupCommand.js +21 -28
  21. package/dist-es/commands/DescribeSubscriptionCommand.js +21 -28
  22. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +21 -28
  23. package/dist-es/commands/DisableProactiveEngagementCommand.js +21 -28
  24. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +21 -28
  25. package/dist-es/commands/DisassociateDRTRoleCommand.js +21 -28
  26. package/dist-es/commands/DisassociateHealthCheckCommand.js +21 -28
  27. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +21 -28
  28. package/dist-es/commands/EnableProactiveEngagementCommand.js +21 -28
  29. package/dist-es/commands/GetSubscriptionStateCommand.js +21 -28
  30. package/dist-es/commands/ListAttacksCommand.js +21 -28
  31. package/dist-es/commands/ListProtectionGroupsCommand.js +21 -28
  32. package/dist-es/commands/ListProtectionsCommand.js +21 -28
  33. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +21 -28
  34. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +21 -28
  38. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +21 -28
  39. package/dist-es/commands/UpdateProtectionGroupCommand.js +21 -28
  40. package/dist-es/commands/UpdateSubscriptionCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/ShieldServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +458 -253
  44. package/dist-es/pagination/ListAttacksPaginator.js +25 -68
  45. package/dist-es/pagination/ListProtectionGroupsPaginator.js +25 -68
  46. package/dist-es/pagination/ListProtectionsPaginator.js +25 -68
  47. package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +25 -68
  48. package/dist-es/protocols/Aws_json1_1.js +2384 -3119
  49. package/dist-es/runtimeConfig.browser.js +26 -12
  50. package/dist-es/runtimeConfig.js +30 -12
  51. package/dist-es/runtimeConfig.native.js +8 -5
  52. package/dist-es/runtimeConfig.shared.js +8 -11
  53. package/package.json +33 -33
package/dist-es/Shield.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateDRTLogBucketCommand, } from "./commands/AssociateDRTLogBucketCommand";
3
2
  import { AssociateDRTRoleCommand, } from "./commands/AssociateDRTRoleCommand";
4
3
  import { AssociateHealthCheckCommand, } from "./commands/AssociateHealthCheckCommand";
@@ -36,515 +35,509 @@ import { UpdateEmergencyContactSettingsCommand, } from "./commands/UpdateEmergen
36
35
  import { UpdateProtectionGroupCommand, } from "./commands/UpdateProtectionGroupCommand";
37
36
  import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
38
37
  import { ShieldClient } from "./ShieldClient";
39
- var Shield = (function (_super) {
40
- __extends(Shield, _super);
41
- function Shield() {
42
- return _super !== null && _super.apply(this, arguments) || this;
43
- }
44
- Shield.prototype.associateDRTLogBucket = function (args, optionsOrCb, cb) {
45
- var command = new AssociateDRTLogBucketCommand(args);
38
+ export class Shield extends ShieldClient {
39
+ associateDRTLogBucket(args, optionsOrCb, cb) {
40
+ const command = new AssociateDRTLogBucketCommand(args);
46
41
  if (typeof optionsOrCb === "function") {
47
42
  this.send(command, optionsOrCb);
48
43
  }
49
44
  else if (typeof cb === "function") {
50
45
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
47
  this.send(command, optionsOrCb || {}, cb);
53
48
  }
54
49
  else {
55
50
  return this.send(command, optionsOrCb);
56
51
  }
57
- };
58
- Shield.prototype.associateDRTRole = function (args, optionsOrCb, cb) {
59
- var command = new AssociateDRTRoleCommand(args);
52
+ }
53
+ associateDRTRole(args, optionsOrCb, cb) {
54
+ const command = new AssociateDRTRoleCommand(args);
60
55
  if (typeof optionsOrCb === "function") {
61
56
  this.send(command, optionsOrCb);
62
57
  }
63
58
  else if (typeof cb === "function") {
64
59
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
61
  this.send(command, optionsOrCb || {}, cb);
67
62
  }
68
63
  else {
69
64
  return this.send(command, optionsOrCb);
70
65
  }
71
- };
72
- Shield.prototype.associateHealthCheck = function (args, optionsOrCb, cb) {
73
- var command = new AssociateHealthCheckCommand(args);
66
+ }
67
+ associateHealthCheck(args, optionsOrCb, cb) {
68
+ const command = new AssociateHealthCheckCommand(args);
74
69
  if (typeof optionsOrCb === "function") {
75
70
  this.send(command, optionsOrCb);
76
71
  }
77
72
  else if (typeof cb === "function") {
78
73
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
75
  this.send(command, optionsOrCb || {}, cb);
81
76
  }
82
77
  else {
83
78
  return this.send(command, optionsOrCb);
84
79
  }
85
- };
86
- Shield.prototype.associateProactiveEngagementDetails = function (args, optionsOrCb, cb) {
87
- var command = new AssociateProactiveEngagementDetailsCommand(args);
80
+ }
81
+ associateProactiveEngagementDetails(args, optionsOrCb, cb) {
82
+ const command = new AssociateProactiveEngagementDetailsCommand(args);
88
83
  if (typeof optionsOrCb === "function") {
89
84
  this.send(command, optionsOrCb);
90
85
  }
91
86
  else if (typeof cb === "function") {
92
87
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
89
  this.send(command, optionsOrCb || {}, cb);
95
90
  }
96
91
  else {
97
92
  return this.send(command, optionsOrCb);
98
93
  }
99
- };
100
- Shield.prototype.createProtection = function (args, optionsOrCb, cb) {
101
- var command = new CreateProtectionCommand(args);
94
+ }
95
+ createProtection(args, optionsOrCb, cb) {
96
+ const command = new CreateProtectionCommand(args);
102
97
  if (typeof optionsOrCb === "function") {
103
98
  this.send(command, optionsOrCb);
104
99
  }
105
100
  else if (typeof cb === "function") {
106
101
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
103
  this.send(command, optionsOrCb || {}, cb);
109
104
  }
110
105
  else {
111
106
  return this.send(command, optionsOrCb);
112
107
  }
113
- };
114
- Shield.prototype.createProtectionGroup = function (args, optionsOrCb, cb) {
115
- var command = new CreateProtectionGroupCommand(args);
108
+ }
109
+ createProtectionGroup(args, optionsOrCb, cb) {
110
+ const command = new CreateProtectionGroupCommand(args);
116
111
  if (typeof optionsOrCb === "function") {
117
112
  this.send(command, optionsOrCb);
118
113
  }
119
114
  else if (typeof cb === "function") {
120
115
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
117
  this.send(command, optionsOrCb || {}, cb);
123
118
  }
124
119
  else {
125
120
  return this.send(command, optionsOrCb);
126
121
  }
127
- };
128
- Shield.prototype.createSubscription = function (args, optionsOrCb, cb) {
129
- var command = new CreateSubscriptionCommand(args);
122
+ }
123
+ createSubscription(args, optionsOrCb, cb) {
124
+ const command = new CreateSubscriptionCommand(args);
130
125
  if (typeof optionsOrCb === "function") {
131
126
  this.send(command, optionsOrCb);
132
127
  }
133
128
  else if (typeof cb === "function") {
134
129
  if (typeof optionsOrCb !== "object")
135
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
131
  this.send(command, optionsOrCb || {}, cb);
137
132
  }
138
133
  else {
139
134
  return this.send(command, optionsOrCb);
140
135
  }
141
- };
142
- Shield.prototype.deleteProtection = function (args, optionsOrCb, cb) {
143
- var command = new DeleteProtectionCommand(args);
136
+ }
137
+ deleteProtection(args, optionsOrCb, cb) {
138
+ const command = new DeleteProtectionCommand(args);
144
139
  if (typeof optionsOrCb === "function") {
145
140
  this.send(command, optionsOrCb);
146
141
  }
147
142
  else if (typeof cb === "function") {
148
143
  if (typeof optionsOrCb !== "object")
149
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
145
  this.send(command, optionsOrCb || {}, cb);
151
146
  }
152
147
  else {
153
148
  return this.send(command, optionsOrCb);
154
149
  }
155
- };
156
- Shield.prototype.deleteProtectionGroup = function (args, optionsOrCb, cb) {
157
- var command = new DeleteProtectionGroupCommand(args);
150
+ }
151
+ deleteProtectionGroup(args, optionsOrCb, cb) {
152
+ const command = new DeleteProtectionGroupCommand(args);
158
153
  if (typeof optionsOrCb === "function") {
159
154
  this.send(command, optionsOrCb);
160
155
  }
161
156
  else if (typeof cb === "function") {
162
157
  if (typeof optionsOrCb !== "object")
163
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
159
  this.send(command, optionsOrCb || {}, cb);
165
160
  }
166
161
  else {
167
162
  return this.send(command, optionsOrCb);
168
163
  }
169
- };
170
- Shield.prototype.deleteSubscription = function (args, optionsOrCb, cb) {
171
- var command = new DeleteSubscriptionCommand(args);
164
+ }
165
+ deleteSubscription(args, optionsOrCb, cb) {
166
+ const command = new DeleteSubscriptionCommand(args);
172
167
  if (typeof optionsOrCb === "function") {
173
168
  this.send(command, optionsOrCb);
174
169
  }
175
170
  else if (typeof cb === "function") {
176
171
  if (typeof optionsOrCb !== "object")
177
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
173
  this.send(command, optionsOrCb || {}, cb);
179
174
  }
180
175
  else {
181
176
  return this.send(command, optionsOrCb);
182
177
  }
183
- };
184
- Shield.prototype.describeAttack = function (args, optionsOrCb, cb) {
185
- var command = new DescribeAttackCommand(args);
178
+ }
179
+ describeAttack(args, optionsOrCb, cb) {
180
+ const command = new DescribeAttackCommand(args);
186
181
  if (typeof optionsOrCb === "function") {
187
182
  this.send(command, optionsOrCb);
188
183
  }
189
184
  else if (typeof cb === "function") {
190
185
  if (typeof optionsOrCb !== "object")
191
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
187
  this.send(command, optionsOrCb || {}, cb);
193
188
  }
194
189
  else {
195
190
  return this.send(command, optionsOrCb);
196
191
  }
197
- };
198
- Shield.prototype.describeAttackStatistics = function (args, optionsOrCb, cb) {
199
- var command = new DescribeAttackStatisticsCommand(args);
192
+ }
193
+ describeAttackStatistics(args, optionsOrCb, cb) {
194
+ const command = new DescribeAttackStatisticsCommand(args);
200
195
  if (typeof optionsOrCb === "function") {
201
196
  this.send(command, optionsOrCb);
202
197
  }
203
198
  else if (typeof cb === "function") {
204
199
  if (typeof optionsOrCb !== "object")
205
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
201
  this.send(command, optionsOrCb || {}, cb);
207
202
  }
208
203
  else {
209
204
  return this.send(command, optionsOrCb);
210
205
  }
211
- };
212
- Shield.prototype.describeDRTAccess = function (args, optionsOrCb, cb) {
213
- var command = new DescribeDRTAccessCommand(args);
206
+ }
207
+ describeDRTAccess(args, optionsOrCb, cb) {
208
+ const command = new DescribeDRTAccessCommand(args);
214
209
  if (typeof optionsOrCb === "function") {
215
210
  this.send(command, optionsOrCb);
216
211
  }
217
212
  else if (typeof cb === "function") {
218
213
  if (typeof optionsOrCb !== "object")
219
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
215
  this.send(command, optionsOrCb || {}, cb);
221
216
  }
222
217
  else {
223
218
  return this.send(command, optionsOrCb);
224
219
  }
225
- };
226
- Shield.prototype.describeEmergencyContactSettings = function (args, optionsOrCb, cb) {
227
- var command = new DescribeEmergencyContactSettingsCommand(args);
220
+ }
221
+ describeEmergencyContactSettings(args, optionsOrCb, cb) {
222
+ const command = new DescribeEmergencyContactSettingsCommand(args);
228
223
  if (typeof optionsOrCb === "function") {
229
224
  this.send(command, optionsOrCb);
230
225
  }
231
226
  else if (typeof cb === "function") {
232
227
  if (typeof optionsOrCb !== "object")
233
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
229
  this.send(command, optionsOrCb || {}, cb);
235
230
  }
236
231
  else {
237
232
  return this.send(command, optionsOrCb);
238
233
  }
239
- };
240
- Shield.prototype.describeProtection = function (args, optionsOrCb, cb) {
241
- var command = new DescribeProtectionCommand(args);
234
+ }
235
+ describeProtection(args, optionsOrCb, cb) {
236
+ const command = new DescribeProtectionCommand(args);
242
237
  if (typeof optionsOrCb === "function") {
243
238
  this.send(command, optionsOrCb);
244
239
  }
245
240
  else if (typeof cb === "function") {
246
241
  if (typeof optionsOrCb !== "object")
247
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
243
  this.send(command, optionsOrCb || {}, cb);
249
244
  }
250
245
  else {
251
246
  return this.send(command, optionsOrCb);
252
247
  }
253
- };
254
- Shield.prototype.describeProtectionGroup = function (args, optionsOrCb, cb) {
255
- var command = new DescribeProtectionGroupCommand(args);
248
+ }
249
+ describeProtectionGroup(args, optionsOrCb, cb) {
250
+ const command = new DescribeProtectionGroupCommand(args);
256
251
  if (typeof optionsOrCb === "function") {
257
252
  this.send(command, optionsOrCb);
258
253
  }
259
254
  else if (typeof cb === "function") {
260
255
  if (typeof optionsOrCb !== "object")
261
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
257
  this.send(command, optionsOrCb || {}, cb);
263
258
  }
264
259
  else {
265
260
  return this.send(command, optionsOrCb);
266
261
  }
267
- };
268
- Shield.prototype.describeSubscription = function (args, optionsOrCb, cb) {
269
- var command = new DescribeSubscriptionCommand(args);
262
+ }
263
+ describeSubscription(args, optionsOrCb, cb) {
264
+ const command = new DescribeSubscriptionCommand(args);
270
265
  if (typeof optionsOrCb === "function") {
271
266
  this.send(command, optionsOrCb);
272
267
  }
273
268
  else if (typeof cb === "function") {
274
269
  if (typeof optionsOrCb !== "object")
275
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
271
  this.send(command, optionsOrCb || {}, cb);
277
272
  }
278
273
  else {
279
274
  return this.send(command, optionsOrCb);
280
275
  }
281
- };
282
- Shield.prototype.disableApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
283
- var command = new DisableApplicationLayerAutomaticResponseCommand(args);
276
+ }
277
+ disableApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
278
+ const command = new DisableApplicationLayerAutomaticResponseCommand(args);
284
279
  if (typeof optionsOrCb === "function") {
285
280
  this.send(command, optionsOrCb);
286
281
  }
287
282
  else if (typeof cb === "function") {
288
283
  if (typeof optionsOrCb !== "object")
289
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
285
  this.send(command, optionsOrCb || {}, cb);
291
286
  }
292
287
  else {
293
288
  return this.send(command, optionsOrCb);
294
289
  }
295
- };
296
- Shield.prototype.disableProactiveEngagement = function (args, optionsOrCb, cb) {
297
- var command = new DisableProactiveEngagementCommand(args);
290
+ }
291
+ disableProactiveEngagement(args, optionsOrCb, cb) {
292
+ const command = new DisableProactiveEngagementCommand(args);
298
293
  if (typeof optionsOrCb === "function") {
299
294
  this.send(command, optionsOrCb);
300
295
  }
301
296
  else if (typeof cb === "function") {
302
297
  if (typeof optionsOrCb !== "object")
303
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
299
  this.send(command, optionsOrCb || {}, cb);
305
300
  }
306
301
  else {
307
302
  return this.send(command, optionsOrCb);
308
303
  }
309
- };
310
- Shield.prototype.disassociateDRTLogBucket = function (args, optionsOrCb, cb) {
311
- var command = new DisassociateDRTLogBucketCommand(args);
304
+ }
305
+ disassociateDRTLogBucket(args, optionsOrCb, cb) {
306
+ const command = new DisassociateDRTLogBucketCommand(args);
312
307
  if (typeof optionsOrCb === "function") {
313
308
  this.send(command, optionsOrCb);
314
309
  }
315
310
  else if (typeof cb === "function") {
316
311
  if (typeof optionsOrCb !== "object")
317
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
313
  this.send(command, optionsOrCb || {}, cb);
319
314
  }
320
315
  else {
321
316
  return this.send(command, optionsOrCb);
322
317
  }
323
- };
324
- Shield.prototype.disassociateDRTRole = function (args, optionsOrCb, cb) {
325
- var command = new DisassociateDRTRoleCommand(args);
318
+ }
319
+ disassociateDRTRole(args, optionsOrCb, cb) {
320
+ const command = new DisassociateDRTRoleCommand(args);
326
321
  if (typeof optionsOrCb === "function") {
327
322
  this.send(command, optionsOrCb);
328
323
  }
329
324
  else if (typeof cb === "function") {
330
325
  if (typeof optionsOrCb !== "object")
331
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
326
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
327
  this.send(command, optionsOrCb || {}, cb);
333
328
  }
334
329
  else {
335
330
  return this.send(command, optionsOrCb);
336
331
  }
337
- };
338
- Shield.prototype.disassociateHealthCheck = function (args, optionsOrCb, cb) {
339
- var command = new DisassociateHealthCheckCommand(args);
332
+ }
333
+ disassociateHealthCheck(args, optionsOrCb, cb) {
334
+ const command = new DisassociateHealthCheckCommand(args);
340
335
  if (typeof optionsOrCb === "function") {
341
336
  this.send(command, optionsOrCb);
342
337
  }
343
338
  else if (typeof cb === "function") {
344
339
  if (typeof optionsOrCb !== "object")
345
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
340
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
341
  this.send(command, optionsOrCb || {}, cb);
347
342
  }
348
343
  else {
349
344
  return this.send(command, optionsOrCb);
350
345
  }
351
- };
352
- Shield.prototype.enableApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
353
- var command = new EnableApplicationLayerAutomaticResponseCommand(args);
346
+ }
347
+ enableApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
348
+ const command = new EnableApplicationLayerAutomaticResponseCommand(args);
354
349
  if (typeof optionsOrCb === "function") {
355
350
  this.send(command, optionsOrCb);
356
351
  }
357
352
  else if (typeof cb === "function") {
358
353
  if (typeof optionsOrCb !== "object")
359
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
354
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
355
  this.send(command, optionsOrCb || {}, cb);
361
356
  }
362
357
  else {
363
358
  return this.send(command, optionsOrCb);
364
359
  }
365
- };
366
- Shield.prototype.enableProactiveEngagement = function (args, optionsOrCb, cb) {
367
- var command = new EnableProactiveEngagementCommand(args);
360
+ }
361
+ enableProactiveEngagement(args, optionsOrCb, cb) {
362
+ const command = new EnableProactiveEngagementCommand(args);
368
363
  if (typeof optionsOrCb === "function") {
369
364
  this.send(command, optionsOrCb);
370
365
  }
371
366
  else if (typeof cb === "function") {
372
367
  if (typeof optionsOrCb !== "object")
373
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
368
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
369
  this.send(command, optionsOrCb || {}, cb);
375
370
  }
376
371
  else {
377
372
  return this.send(command, optionsOrCb);
378
373
  }
379
- };
380
- Shield.prototype.getSubscriptionState = function (args, optionsOrCb, cb) {
381
- var command = new GetSubscriptionStateCommand(args);
374
+ }
375
+ getSubscriptionState(args, optionsOrCb, cb) {
376
+ const command = new GetSubscriptionStateCommand(args);
382
377
  if (typeof optionsOrCb === "function") {
383
378
  this.send(command, optionsOrCb);
384
379
  }
385
380
  else if (typeof cb === "function") {
386
381
  if (typeof optionsOrCb !== "object")
387
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
382
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
383
  this.send(command, optionsOrCb || {}, cb);
389
384
  }
390
385
  else {
391
386
  return this.send(command, optionsOrCb);
392
387
  }
393
- };
394
- Shield.prototype.listAttacks = function (args, optionsOrCb, cb) {
395
- var command = new ListAttacksCommand(args);
388
+ }
389
+ listAttacks(args, optionsOrCb, cb) {
390
+ const command = new ListAttacksCommand(args);
396
391
  if (typeof optionsOrCb === "function") {
397
392
  this.send(command, optionsOrCb);
398
393
  }
399
394
  else if (typeof cb === "function") {
400
395
  if (typeof optionsOrCb !== "object")
401
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
396
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
397
  this.send(command, optionsOrCb || {}, cb);
403
398
  }
404
399
  else {
405
400
  return this.send(command, optionsOrCb);
406
401
  }
407
- };
408
- Shield.prototype.listProtectionGroups = function (args, optionsOrCb, cb) {
409
- var command = new ListProtectionGroupsCommand(args);
402
+ }
403
+ listProtectionGroups(args, optionsOrCb, cb) {
404
+ const command = new ListProtectionGroupsCommand(args);
410
405
  if (typeof optionsOrCb === "function") {
411
406
  this.send(command, optionsOrCb);
412
407
  }
413
408
  else if (typeof cb === "function") {
414
409
  if (typeof optionsOrCb !== "object")
415
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
410
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
416
411
  this.send(command, optionsOrCb || {}, cb);
417
412
  }
418
413
  else {
419
414
  return this.send(command, optionsOrCb);
420
415
  }
421
- };
422
- Shield.prototype.listProtections = function (args, optionsOrCb, cb) {
423
- var command = new ListProtectionsCommand(args);
416
+ }
417
+ listProtections(args, optionsOrCb, cb) {
418
+ const command = new ListProtectionsCommand(args);
424
419
  if (typeof optionsOrCb === "function") {
425
420
  this.send(command, optionsOrCb);
426
421
  }
427
422
  else if (typeof cb === "function") {
428
423
  if (typeof optionsOrCb !== "object")
429
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
424
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
430
425
  this.send(command, optionsOrCb || {}, cb);
431
426
  }
432
427
  else {
433
428
  return this.send(command, optionsOrCb);
434
429
  }
435
- };
436
- Shield.prototype.listResourcesInProtectionGroup = function (args, optionsOrCb, cb) {
437
- var command = new ListResourcesInProtectionGroupCommand(args);
430
+ }
431
+ listResourcesInProtectionGroup(args, optionsOrCb, cb) {
432
+ const command = new ListResourcesInProtectionGroupCommand(args);
438
433
  if (typeof optionsOrCb === "function") {
439
434
  this.send(command, optionsOrCb);
440
435
  }
441
436
  else if (typeof cb === "function") {
442
437
  if (typeof optionsOrCb !== "object")
443
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
438
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
439
  this.send(command, optionsOrCb || {}, cb);
445
440
  }
446
441
  else {
447
442
  return this.send(command, optionsOrCb);
448
443
  }
449
- };
450
- Shield.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
451
- var command = new ListTagsForResourceCommand(args);
444
+ }
445
+ listTagsForResource(args, optionsOrCb, cb) {
446
+ const command = new ListTagsForResourceCommand(args);
452
447
  if (typeof optionsOrCb === "function") {
453
448
  this.send(command, optionsOrCb);
454
449
  }
455
450
  else if (typeof cb === "function") {
456
451
  if (typeof optionsOrCb !== "object")
457
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
452
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
453
  this.send(command, optionsOrCb || {}, cb);
459
454
  }
460
455
  else {
461
456
  return this.send(command, optionsOrCb);
462
457
  }
463
- };
464
- Shield.prototype.tagResource = function (args, optionsOrCb, cb) {
465
- var command = new TagResourceCommand(args);
458
+ }
459
+ tagResource(args, optionsOrCb, cb) {
460
+ const command = new TagResourceCommand(args);
466
461
  if (typeof optionsOrCb === "function") {
467
462
  this.send(command, optionsOrCb);
468
463
  }
469
464
  else if (typeof cb === "function") {
470
465
  if (typeof optionsOrCb !== "object")
471
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
466
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
467
  this.send(command, optionsOrCb || {}, cb);
473
468
  }
474
469
  else {
475
470
  return this.send(command, optionsOrCb);
476
471
  }
477
- };
478
- Shield.prototype.untagResource = function (args, optionsOrCb, cb) {
479
- var command = new UntagResourceCommand(args);
472
+ }
473
+ untagResource(args, optionsOrCb, cb) {
474
+ const command = new UntagResourceCommand(args);
480
475
  if (typeof optionsOrCb === "function") {
481
476
  this.send(command, optionsOrCb);
482
477
  }
483
478
  else if (typeof cb === "function") {
484
479
  if (typeof optionsOrCb !== "object")
485
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
480
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
481
  this.send(command, optionsOrCb || {}, cb);
487
482
  }
488
483
  else {
489
484
  return this.send(command, optionsOrCb);
490
485
  }
491
- };
492
- Shield.prototype.updateApplicationLayerAutomaticResponse = function (args, optionsOrCb, cb) {
493
- var command = new UpdateApplicationLayerAutomaticResponseCommand(args);
486
+ }
487
+ updateApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
488
+ const command = new UpdateApplicationLayerAutomaticResponseCommand(args);
494
489
  if (typeof optionsOrCb === "function") {
495
490
  this.send(command, optionsOrCb);
496
491
  }
497
492
  else if (typeof cb === "function") {
498
493
  if (typeof optionsOrCb !== "object")
499
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
494
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
495
  this.send(command, optionsOrCb || {}, cb);
501
496
  }
502
497
  else {
503
498
  return this.send(command, optionsOrCb);
504
499
  }
505
- };
506
- Shield.prototype.updateEmergencyContactSettings = function (args, optionsOrCb, cb) {
507
- var command = new UpdateEmergencyContactSettingsCommand(args);
500
+ }
501
+ updateEmergencyContactSettings(args, optionsOrCb, cb) {
502
+ const command = new UpdateEmergencyContactSettingsCommand(args);
508
503
  if (typeof optionsOrCb === "function") {
509
504
  this.send(command, optionsOrCb);
510
505
  }
511
506
  else if (typeof cb === "function") {
512
507
  if (typeof optionsOrCb !== "object")
513
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
508
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
509
  this.send(command, optionsOrCb || {}, cb);
515
510
  }
516
511
  else {
517
512
  return this.send(command, optionsOrCb);
518
513
  }
519
- };
520
- Shield.prototype.updateProtectionGroup = function (args, optionsOrCb, cb) {
521
- var command = new UpdateProtectionGroupCommand(args);
514
+ }
515
+ updateProtectionGroup(args, optionsOrCb, cb) {
516
+ const command = new UpdateProtectionGroupCommand(args);
522
517
  if (typeof optionsOrCb === "function") {
523
518
  this.send(command, optionsOrCb);
524
519
  }
525
520
  else if (typeof cb === "function") {
526
521
  if (typeof optionsOrCb !== "object")
527
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
522
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
523
  this.send(command, optionsOrCb || {}, cb);
529
524
  }
530
525
  else {
531
526
  return this.send(command, optionsOrCb);
532
527
  }
533
- };
534
- Shield.prototype.updateSubscription = function (args, optionsOrCb, cb) {
535
- var command = new UpdateSubscriptionCommand(args);
528
+ }
529
+ updateSubscription(args, optionsOrCb, cb) {
530
+ const command = new UpdateSubscriptionCommand(args);
536
531
  if (typeof optionsOrCb === "function") {
537
532
  this.send(command, optionsOrCb);
538
533
  }
539
534
  else if (typeof cb === "function") {
540
535
  if (typeof optionsOrCb !== "object")
541
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
536
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
537
  this.send(command, optionsOrCb || {}, cb);
543
538
  }
544
539
  else {
545
540
  return this.send(command, optionsOrCb);
546
541
  }
547
- };
548
- return Shield;
549
- }(ShieldClient));
550
- export { Shield };
542
+ }
543
+ }