@aws-sdk/client-fms 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 (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/FMS.js +122 -129
  3. package/dist-es/FMSClient.js +22 -28
  4. package/dist-es/commands/AssociateAdminAccountCommand.js +22 -29
  5. package/dist-es/commands/AssociateThirdPartyFirewallCommand.js +21 -28
  6. package/dist-es/commands/DeleteAppsListCommand.js +22 -29
  7. package/dist-es/commands/DeleteNotificationChannelCommand.js +22 -29
  8. package/dist-es/commands/DeletePolicyCommand.js +22 -29
  9. package/dist-es/commands/DeleteProtocolsListCommand.js +22 -29
  10. package/dist-es/commands/DisassociateAdminAccountCommand.js +22 -29
  11. package/dist-es/commands/DisassociateThirdPartyFirewallCommand.js +21 -28
  12. package/dist-es/commands/GetAdminAccountCommand.js +21 -28
  13. package/dist-es/commands/GetAppsListCommand.js +21 -28
  14. package/dist-es/commands/GetComplianceDetailCommand.js +21 -28
  15. package/dist-es/commands/GetNotificationChannelCommand.js +21 -28
  16. package/dist-es/commands/GetPolicyCommand.js +21 -28
  17. package/dist-es/commands/GetProtectionStatusCommand.js +21 -28
  18. package/dist-es/commands/GetProtocolsListCommand.js +21 -28
  19. package/dist-es/commands/GetThirdPartyFirewallAssociationStatusCommand.js +21 -28
  20. package/dist-es/commands/GetViolationDetailsCommand.js +21 -28
  21. package/dist-es/commands/ListAppsListsCommand.js +21 -28
  22. package/dist-es/commands/ListComplianceStatusCommand.js +21 -28
  23. package/dist-es/commands/ListMemberAccountsCommand.js +21 -28
  24. package/dist-es/commands/ListPoliciesCommand.js +21 -28
  25. package/dist-es/commands/ListProtocolsListsCommand.js +21 -28
  26. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  27. package/dist-es/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +21 -28
  28. package/dist-es/commands/PutAppsListCommand.js +21 -28
  29. package/dist-es/commands/PutNotificationChannelCommand.js +22 -29
  30. package/dist-es/commands/PutPolicyCommand.js +21 -28
  31. package/dist-es/commands/PutProtocolsListCommand.js +21 -28
  32. package/dist-es/commands/TagResourceCommand.js +21 -28
  33. package/dist-es/commands/UntagResourceCommand.js +21 -28
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/FMSServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +423 -190
  37. package/dist-es/pagination/ListAppsListsPaginator.js +25 -68
  38. package/dist-es/pagination/ListComplianceStatusPaginator.js +25 -68
  39. package/dist-es/pagination/ListMemberAccountsPaginator.js +25 -68
  40. package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
  41. package/dist-es/pagination/ListProtocolsListsPaginator.js +25 -68
  42. package/dist-es/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_json1_1.js +2077 -2665
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-fms
9
+
10
+
11
+
12
+
13
+
14
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-fms
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/client-fms
package/dist-es/FMS.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateAdminAccountCommand, } from "./commands/AssociateAdminAccountCommand";
3
2
  import { AssociateThirdPartyFirewallCommand, } from "./commands/AssociateThirdPartyFirewallCommand";
4
3
  import { DeleteAppsListCommand, } from "./commands/DeleteAppsListCommand";
@@ -30,431 +29,425 @@ import { PutProtocolsListCommand, } from "./commands/PutProtocolsListCommand";
30
29
  import { TagResourceCommand } from "./commands/TagResourceCommand";
31
30
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
32
31
  import { FMSClient } from "./FMSClient";
33
- var FMS = (function (_super) {
34
- __extends(FMS, _super);
35
- function FMS() {
36
- return _super !== null && _super.apply(this, arguments) || this;
37
- }
38
- FMS.prototype.associateAdminAccount = function (args, optionsOrCb, cb) {
39
- var command = new AssociateAdminAccountCommand(args);
32
+ export class FMS extends FMSClient {
33
+ associateAdminAccount(args, optionsOrCb, cb) {
34
+ const command = new AssociateAdminAccountCommand(args);
40
35
  if (typeof optionsOrCb === "function") {
41
36
  this.send(command, optionsOrCb);
42
37
  }
43
38
  else if (typeof cb === "function") {
44
39
  if (typeof optionsOrCb !== "object")
45
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
41
  this.send(command, optionsOrCb || {}, cb);
47
42
  }
48
43
  else {
49
44
  return this.send(command, optionsOrCb);
50
45
  }
51
- };
52
- FMS.prototype.associateThirdPartyFirewall = function (args, optionsOrCb, cb) {
53
- var command = new AssociateThirdPartyFirewallCommand(args);
46
+ }
47
+ associateThirdPartyFirewall(args, optionsOrCb, cb) {
48
+ const command = new AssociateThirdPartyFirewallCommand(args);
54
49
  if (typeof optionsOrCb === "function") {
55
50
  this.send(command, optionsOrCb);
56
51
  }
57
52
  else if (typeof cb === "function") {
58
53
  if (typeof optionsOrCb !== "object")
59
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
55
  this.send(command, optionsOrCb || {}, cb);
61
56
  }
62
57
  else {
63
58
  return this.send(command, optionsOrCb);
64
59
  }
65
- };
66
- FMS.prototype.deleteAppsList = function (args, optionsOrCb, cb) {
67
- var command = new DeleteAppsListCommand(args);
60
+ }
61
+ deleteAppsList(args, optionsOrCb, cb) {
62
+ const command = new DeleteAppsListCommand(args);
68
63
  if (typeof optionsOrCb === "function") {
69
64
  this.send(command, optionsOrCb);
70
65
  }
71
66
  else if (typeof cb === "function") {
72
67
  if (typeof optionsOrCb !== "object")
73
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
69
  this.send(command, optionsOrCb || {}, cb);
75
70
  }
76
71
  else {
77
72
  return this.send(command, optionsOrCb);
78
73
  }
79
- };
80
- FMS.prototype.deleteNotificationChannel = function (args, optionsOrCb, cb) {
81
- var command = new DeleteNotificationChannelCommand(args);
74
+ }
75
+ deleteNotificationChannel(args, optionsOrCb, cb) {
76
+ const command = new DeleteNotificationChannelCommand(args);
82
77
  if (typeof optionsOrCb === "function") {
83
78
  this.send(command, optionsOrCb);
84
79
  }
85
80
  else if (typeof cb === "function") {
86
81
  if (typeof optionsOrCb !== "object")
87
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
83
  this.send(command, optionsOrCb || {}, cb);
89
84
  }
90
85
  else {
91
86
  return this.send(command, optionsOrCb);
92
87
  }
93
- };
94
- FMS.prototype.deletePolicy = function (args, optionsOrCb, cb) {
95
- var command = new DeletePolicyCommand(args);
88
+ }
89
+ deletePolicy(args, optionsOrCb, cb) {
90
+ const command = new DeletePolicyCommand(args);
96
91
  if (typeof optionsOrCb === "function") {
97
92
  this.send(command, optionsOrCb);
98
93
  }
99
94
  else if (typeof cb === "function") {
100
95
  if (typeof optionsOrCb !== "object")
101
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
97
  this.send(command, optionsOrCb || {}, cb);
103
98
  }
104
99
  else {
105
100
  return this.send(command, optionsOrCb);
106
101
  }
107
- };
108
- FMS.prototype.deleteProtocolsList = function (args, optionsOrCb, cb) {
109
- var command = new DeleteProtocolsListCommand(args);
102
+ }
103
+ deleteProtocolsList(args, optionsOrCb, cb) {
104
+ const command = new DeleteProtocolsListCommand(args);
110
105
  if (typeof optionsOrCb === "function") {
111
106
  this.send(command, optionsOrCb);
112
107
  }
113
108
  else if (typeof cb === "function") {
114
109
  if (typeof optionsOrCb !== "object")
115
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
111
  this.send(command, optionsOrCb || {}, cb);
117
112
  }
118
113
  else {
119
114
  return this.send(command, optionsOrCb);
120
115
  }
121
- };
122
- FMS.prototype.disassociateAdminAccount = function (args, optionsOrCb, cb) {
123
- var command = new DisassociateAdminAccountCommand(args);
116
+ }
117
+ disassociateAdminAccount(args, optionsOrCb, cb) {
118
+ const command = new DisassociateAdminAccountCommand(args);
124
119
  if (typeof optionsOrCb === "function") {
125
120
  this.send(command, optionsOrCb);
126
121
  }
127
122
  else if (typeof cb === "function") {
128
123
  if (typeof optionsOrCb !== "object")
129
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
125
  this.send(command, optionsOrCb || {}, cb);
131
126
  }
132
127
  else {
133
128
  return this.send(command, optionsOrCb);
134
129
  }
135
- };
136
- FMS.prototype.disassociateThirdPartyFirewall = function (args, optionsOrCb, cb) {
137
- var command = new DisassociateThirdPartyFirewallCommand(args);
130
+ }
131
+ disassociateThirdPartyFirewall(args, optionsOrCb, cb) {
132
+ const command = new DisassociateThirdPartyFirewallCommand(args);
138
133
  if (typeof optionsOrCb === "function") {
139
134
  this.send(command, optionsOrCb);
140
135
  }
141
136
  else if (typeof cb === "function") {
142
137
  if (typeof optionsOrCb !== "object")
143
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
139
  this.send(command, optionsOrCb || {}, cb);
145
140
  }
146
141
  else {
147
142
  return this.send(command, optionsOrCb);
148
143
  }
149
- };
150
- FMS.prototype.getAdminAccount = function (args, optionsOrCb, cb) {
151
- var command = new GetAdminAccountCommand(args);
144
+ }
145
+ getAdminAccount(args, optionsOrCb, cb) {
146
+ const command = new GetAdminAccountCommand(args);
152
147
  if (typeof optionsOrCb === "function") {
153
148
  this.send(command, optionsOrCb);
154
149
  }
155
150
  else if (typeof cb === "function") {
156
151
  if (typeof optionsOrCb !== "object")
157
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
153
  this.send(command, optionsOrCb || {}, cb);
159
154
  }
160
155
  else {
161
156
  return this.send(command, optionsOrCb);
162
157
  }
163
- };
164
- FMS.prototype.getAppsList = function (args, optionsOrCb, cb) {
165
- var command = new GetAppsListCommand(args);
158
+ }
159
+ getAppsList(args, optionsOrCb, cb) {
160
+ const command = new GetAppsListCommand(args);
166
161
  if (typeof optionsOrCb === "function") {
167
162
  this.send(command, optionsOrCb);
168
163
  }
169
164
  else if (typeof cb === "function") {
170
165
  if (typeof optionsOrCb !== "object")
171
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
167
  this.send(command, optionsOrCb || {}, cb);
173
168
  }
174
169
  else {
175
170
  return this.send(command, optionsOrCb);
176
171
  }
177
- };
178
- FMS.prototype.getComplianceDetail = function (args, optionsOrCb, cb) {
179
- var command = new GetComplianceDetailCommand(args);
172
+ }
173
+ getComplianceDetail(args, optionsOrCb, cb) {
174
+ const command = new GetComplianceDetailCommand(args);
180
175
  if (typeof optionsOrCb === "function") {
181
176
  this.send(command, optionsOrCb);
182
177
  }
183
178
  else if (typeof cb === "function") {
184
179
  if (typeof optionsOrCb !== "object")
185
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
181
  this.send(command, optionsOrCb || {}, cb);
187
182
  }
188
183
  else {
189
184
  return this.send(command, optionsOrCb);
190
185
  }
191
- };
192
- FMS.prototype.getNotificationChannel = function (args, optionsOrCb, cb) {
193
- var command = new GetNotificationChannelCommand(args);
186
+ }
187
+ getNotificationChannel(args, optionsOrCb, cb) {
188
+ const command = new GetNotificationChannelCommand(args);
194
189
  if (typeof optionsOrCb === "function") {
195
190
  this.send(command, optionsOrCb);
196
191
  }
197
192
  else if (typeof cb === "function") {
198
193
  if (typeof optionsOrCb !== "object")
199
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
195
  this.send(command, optionsOrCb || {}, cb);
201
196
  }
202
197
  else {
203
198
  return this.send(command, optionsOrCb);
204
199
  }
205
- };
206
- FMS.prototype.getPolicy = function (args, optionsOrCb, cb) {
207
- var command = new GetPolicyCommand(args);
200
+ }
201
+ getPolicy(args, optionsOrCb, cb) {
202
+ const command = new GetPolicyCommand(args);
208
203
  if (typeof optionsOrCb === "function") {
209
204
  this.send(command, optionsOrCb);
210
205
  }
211
206
  else if (typeof cb === "function") {
212
207
  if (typeof optionsOrCb !== "object")
213
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
209
  this.send(command, optionsOrCb || {}, cb);
215
210
  }
216
211
  else {
217
212
  return this.send(command, optionsOrCb);
218
213
  }
219
- };
220
- FMS.prototype.getProtectionStatus = function (args, optionsOrCb, cb) {
221
- var command = new GetProtectionStatusCommand(args);
214
+ }
215
+ getProtectionStatus(args, optionsOrCb, cb) {
216
+ const command = new GetProtectionStatusCommand(args);
222
217
  if (typeof optionsOrCb === "function") {
223
218
  this.send(command, optionsOrCb);
224
219
  }
225
220
  else if (typeof cb === "function") {
226
221
  if (typeof optionsOrCb !== "object")
227
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
223
  this.send(command, optionsOrCb || {}, cb);
229
224
  }
230
225
  else {
231
226
  return this.send(command, optionsOrCb);
232
227
  }
233
- };
234
- FMS.prototype.getProtocolsList = function (args, optionsOrCb, cb) {
235
- var command = new GetProtocolsListCommand(args);
228
+ }
229
+ getProtocolsList(args, optionsOrCb, cb) {
230
+ const command = new GetProtocolsListCommand(args);
236
231
  if (typeof optionsOrCb === "function") {
237
232
  this.send(command, optionsOrCb);
238
233
  }
239
234
  else if (typeof cb === "function") {
240
235
  if (typeof optionsOrCb !== "object")
241
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
237
  this.send(command, optionsOrCb || {}, cb);
243
238
  }
244
239
  else {
245
240
  return this.send(command, optionsOrCb);
246
241
  }
247
- };
248
- FMS.prototype.getThirdPartyFirewallAssociationStatus = function (args, optionsOrCb, cb) {
249
- var command = new GetThirdPartyFirewallAssociationStatusCommand(args);
242
+ }
243
+ getThirdPartyFirewallAssociationStatus(args, optionsOrCb, cb) {
244
+ const command = new GetThirdPartyFirewallAssociationStatusCommand(args);
250
245
  if (typeof optionsOrCb === "function") {
251
246
  this.send(command, optionsOrCb);
252
247
  }
253
248
  else if (typeof cb === "function") {
254
249
  if (typeof optionsOrCb !== "object")
255
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
250
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
251
  this.send(command, optionsOrCb || {}, cb);
257
252
  }
258
253
  else {
259
254
  return this.send(command, optionsOrCb);
260
255
  }
261
- };
262
- FMS.prototype.getViolationDetails = function (args, optionsOrCb, cb) {
263
- var command = new GetViolationDetailsCommand(args);
256
+ }
257
+ getViolationDetails(args, optionsOrCb, cb) {
258
+ const command = new GetViolationDetailsCommand(args);
264
259
  if (typeof optionsOrCb === "function") {
265
260
  this.send(command, optionsOrCb);
266
261
  }
267
262
  else if (typeof cb === "function") {
268
263
  if (typeof optionsOrCb !== "object")
269
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
264
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
265
  this.send(command, optionsOrCb || {}, cb);
271
266
  }
272
267
  else {
273
268
  return this.send(command, optionsOrCb);
274
269
  }
275
- };
276
- FMS.prototype.listAppsLists = function (args, optionsOrCb, cb) {
277
- var command = new ListAppsListsCommand(args);
270
+ }
271
+ listAppsLists(args, optionsOrCb, cb) {
272
+ const command = new ListAppsListsCommand(args);
278
273
  if (typeof optionsOrCb === "function") {
279
274
  this.send(command, optionsOrCb);
280
275
  }
281
276
  else if (typeof cb === "function") {
282
277
  if (typeof optionsOrCb !== "object")
283
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
278
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
279
  this.send(command, optionsOrCb || {}, cb);
285
280
  }
286
281
  else {
287
282
  return this.send(command, optionsOrCb);
288
283
  }
289
- };
290
- FMS.prototype.listComplianceStatus = function (args, optionsOrCb, cb) {
291
- var command = new ListComplianceStatusCommand(args);
284
+ }
285
+ listComplianceStatus(args, optionsOrCb, cb) {
286
+ const command = new ListComplianceStatusCommand(args);
292
287
  if (typeof optionsOrCb === "function") {
293
288
  this.send(command, optionsOrCb);
294
289
  }
295
290
  else if (typeof cb === "function") {
296
291
  if (typeof optionsOrCb !== "object")
297
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
293
  this.send(command, optionsOrCb || {}, cb);
299
294
  }
300
295
  else {
301
296
  return this.send(command, optionsOrCb);
302
297
  }
303
- };
304
- FMS.prototype.listMemberAccounts = function (args, optionsOrCb, cb) {
305
- var command = new ListMemberAccountsCommand(args);
298
+ }
299
+ listMemberAccounts(args, optionsOrCb, cb) {
300
+ const command = new ListMemberAccountsCommand(args);
306
301
  if (typeof optionsOrCb === "function") {
307
302
  this.send(command, optionsOrCb);
308
303
  }
309
304
  else if (typeof cb === "function") {
310
305
  if (typeof optionsOrCb !== "object")
311
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
306
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
307
  this.send(command, optionsOrCb || {}, cb);
313
308
  }
314
309
  else {
315
310
  return this.send(command, optionsOrCb);
316
311
  }
317
- };
318
- FMS.prototype.listPolicies = function (args, optionsOrCb, cb) {
319
- var command = new ListPoliciesCommand(args);
312
+ }
313
+ listPolicies(args, optionsOrCb, cb) {
314
+ const command = new ListPoliciesCommand(args);
320
315
  if (typeof optionsOrCb === "function") {
321
316
  this.send(command, optionsOrCb);
322
317
  }
323
318
  else if (typeof cb === "function") {
324
319
  if (typeof optionsOrCb !== "object")
325
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
320
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
321
  this.send(command, optionsOrCb || {}, cb);
327
322
  }
328
323
  else {
329
324
  return this.send(command, optionsOrCb);
330
325
  }
331
- };
332
- FMS.prototype.listProtocolsLists = function (args, optionsOrCb, cb) {
333
- var command = new ListProtocolsListsCommand(args);
326
+ }
327
+ listProtocolsLists(args, optionsOrCb, cb) {
328
+ const command = new ListProtocolsListsCommand(args);
334
329
  if (typeof optionsOrCb === "function") {
335
330
  this.send(command, optionsOrCb);
336
331
  }
337
332
  else if (typeof cb === "function") {
338
333
  if (typeof optionsOrCb !== "object")
339
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
334
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
335
  this.send(command, optionsOrCb || {}, cb);
341
336
  }
342
337
  else {
343
338
  return this.send(command, optionsOrCb);
344
339
  }
345
- };
346
- FMS.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
347
- var command = new ListTagsForResourceCommand(args);
340
+ }
341
+ listTagsForResource(args, optionsOrCb, cb) {
342
+ const command = new ListTagsForResourceCommand(args);
348
343
  if (typeof optionsOrCb === "function") {
349
344
  this.send(command, optionsOrCb);
350
345
  }
351
346
  else if (typeof cb === "function") {
352
347
  if (typeof optionsOrCb !== "object")
353
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
348
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
349
  this.send(command, optionsOrCb || {}, cb);
355
350
  }
356
351
  else {
357
352
  return this.send(command, optionsOrCb);
358
353
  }
359
- };
360
- FMS.prototype.listThirdPartyFirewallFirewallPolicies = function (args, optionsOrCb, cb) {
361
- var command = new ListThirdPartyFirewallFirewallPoliciesCommand(args);
354
+ }
355
+ listThirdPartyFirewallFirewallPolicies(args, optionsOrCb, cb) {
356
+ const command = new ListThirdPartyFirewallFirewallPoliciesCommand(args);
362
357
  if (typeof optionsOrCb === "function") {
363
358
  this.send(command, optionsOrCb);
364
359
  }
365
360
  else if (typeof cb === "function") {
366
361
  if (typeof optionsOrCb !== "object")
367
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
362
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
363
  this.send(command, optionsOrCb || {}, cb);
369
364
  }
370
365
  else {
371
366
  return this.send(command, optionsOrCb);
372
367
  }
373
- };
374
- FMS.prototype.putAppsList = function (args, optionsOrCb, cb) {
375
- var command = new PutAppsListCommand(args);
368
+ }
369
+ putAppsList(args, optionsOrCb, cb) {
370
+ const command = new PutAppsListCommand(args);
376
371
  if (typeof optionsOrCb === "function") {
377
372
  this.send(command, optionsOrCb);
378
373
  }
379
374
  else if (typeof cb === "function") {
380
375
  if (typeof optionsOrCb !== "object")
381
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
377
  this.send(command, optionsOrCb || {}, cb);
383
378
  }
384
379
  else {
385
380
  return this.send(command, optionsOrCb);
386
381
  }
387
- };
388
- FMS.prototype.putNotificationChannel = function (args, optionsOrCb, cb) {
389
- var command = new PutNotificationChannelCommand(args);
382
+ }
383
+ putNotificationChannel(args, optionsOrCb, cb) {
384
+ const command = new PutNotificationChannelCommand(args);
390
385
  if (typeof optionsOrCb === "function") {
391
386
  this.send(command, optionsOrCb);
392
387
  }
393
388
  else if (typeof cb === "function") {
394
389
  if (typeof optionsOrCb !== "object")
395
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
390
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
391
  this.send(command, optionsOrCb || {}, cb);
397
392
  }
398
393
  else {
399
394
  return this.send(command, optionsOrCb);
400
395
  }
401
- };
402
- FMS.prototype.putPolicy = function (args, optionsOrCb, cb) {
403
- var command = new PutPolicyCommand(args);
396
+ }
397
+ putPolicy(args, optionsOrCb, cb) {
398
+ const command = new PutPolicyCommand(args);
404
399
  if (typeof optionsOrCb === "function") {
405
400
  this.send(command, optionsOrCb);
406
401
  }
407
402
  else if (typeof cb === "function") {
408
403
  if (typeof optionsOrCb !== "object")
409
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
404
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
405
  this.send(command, optionsOrCb || {}, cb);
411
406
  }
412
407
  else {
413
408
  return this.send(command, optionsOrCb);
414
409
  }
415
- };
416
- FMS.prototype.putProtocolsList = function (args, optionsOrCb, cb) {
417
- var command = new PutProtocolsListCommand(args);
410
+ }
411
+ putProtocolsList(args, optionsOrCb, cb) {
412
+ const command = new PutProtocolsListCommand(args);
418
413
  if (typeof optionsOrCb === "function") {
419
414
  this.send(command, optionsOrCb);
420
415
  }
421
416
  else if (typeof cb === "function") {
422
417
  if (typeof optionsOrCb !== "object")
423
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
418
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
419
  this.send(command, optionsOrCb || {}, cb);
425
420
  }
426
421
  else {
427
422
  return this.send(command, optionsOrCb);
428
423
  }
429
- };
430
- FMS.prototype.tagResource = function (args, optionsOrCb, cb) {
431
- var command = new TagResourceCommand(args);
424
+ }
425
+ tagResource(args, optionsOrCb, cb) {
426
+ const command = new TagResourceCommand(args);
432
427
  if (typeof optionsOrCb === "function") {
433
428
  this.send(command, optionsOrCb);
434
429
  }
435
430
  else if (typeof cb === "function") {
436
431
  if (typeof optionsOrCb !== "object")
437
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
432
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
433
  this.send(command, optionsOrCb || {}, cb);
439
434
  }
440
435
  else {
441
436
  return this.send(command, optionsOrCb);
442
437
  }
443
- };
444
- FMS.prototype.untagResource = function (args, optionsOrCb, cb) {
445
- var command = new UntagResourceCommand(args);
438
+ }
439
+ untagResource(args, optionsOrCb, cb) {
440
+ const command = new UntagResourceCommand(args);
446
441
  if (typeof optionsOrCb === "function") {
447
442
  this.send(command, optionsOrCb);
448
443
  }
449
444
  else if (typeof cb === "function") {
450
445
  if (typeof optionsOrCb !== "object")
451
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
446
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
447
  this.send(command, optionsOrCb || {}, cb);
453
448
  }
454
449
  else {
455
450
  return this.send(command, optionsOrCb);
456
451
  }
457
- };
458
- return FMS;
459
- }(FMSClient));
460
- export { FMS };
452
+ }
453
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var FMSClient = (function (_super) {
13
- __extends(FMSClient, _super);
14
- function FMSClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class FMSClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- FMSClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return FMSClient;
38
- }(__Client));
39
- export { FMSClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }