@aws-sdk/client-securityhub 3.185.0 → 3.188.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 (82) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/SecurityHub.js +226 -233
  3. package/dist-es/SecurityHubClient.js +22 -28
  4. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
  5. package/dist-es/commands/AcceptInvitationCommand.js +21 -28
  6. package/dist-es/commands/BatchDisableStandardsCommand.js +21 -28
  7. package/dist-es/commands/BatchEnableStandardsCommand.js +21 -28
  8. package/dist-es/commands/BatchImportFindingsCommand.js +21 -28
  9. package/dist-es/commands/BatchUpdateFindingsCommand.js +21 -28
  10. package/dist-es/commands/CreateActionTargetCommand.js +21 -28
  11. package/dist-es/commands/CreateFindingAggregatorCommand.js +21 -28
  12. package/dist-es/commands/CreateInsightCommand.js +21 -28
  13. package/dist-es/commands/CreateMembersCommand.js +21 -28
  14. package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
  15. package/dist-es/commands/DeleteActionTargetCommand.js +21 -28
  16. package/dist-es/commands/DeleteFindingAggregatorCommand.js +21 -28
  17. package/dist-es/commands/DeleteInsightCommand.js +21 -28
  18. package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
  19. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  20. package/dist-es/commands/DescribeActionTargetsCommand.js +21 -28
  21. package/dist-es/commands/DescribeHubCommand.js +21 -28
  22. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  23. package/dist-es/commands/DescribeProductsCommand.js +21 -28
  24. package/dist-es/commands/DescribeStandardsCommand.js +21 -28
  25. package/dist-es/commands/DescribeStandardsControlsCommand.js +21 -28
  26. package/dist-es/commands/DisableImportFindingsForProductCommand.js +21 -28
  27. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
  28. package/dist-es/commands/DisableSecurityHubCommand.js +21 -28
  29. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
  30. package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
  31. package/dist-es/commands/DisassociateMembersCommand.js +21 -28
  32. package/dist-es/commands/EnableImportFindingsForProductCommand.js +21 -28
  33. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
  34. package/dist-es/commands/EnableSecurityHubCommand.js +21 -28
  35. package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
  36. package/dist-es/commands/GetEnabledStandardsCommand.js +21 -28
  37. package/dist-es/commands/GetFindingAggregatorCommand.js +21 -28
  38. package/dist-es/commands/GetFindingsCommand.js +21 -28
  39. package/dist-es/commands/GetInsightResultsCommand.js +21 -28
  40. package/dist-es/commands/GetInsightsCommand.js +21 -28
  41. package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
  42. package/dist-es/commands/GetMasterAccountCommand.js +21 -28
  43. package/dist-es/commands/GetMembersCommand.js +21 -28
  44. package/dist-es/commands/InviteMembersCommand.js +21 -28
  45. package/dist-es/commands/ListEnabledProductsForImportCommand.js +21 -28
  46. package/dist-es/commands/ListFindingAggregatorsCommand.js +21 -28
  47. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  48. package/dist-es/commands/ListMembersCommand.js +21 -28
  49. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  50. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  51. package/dist-es/commands/TagResourceCommand.js +21 -28
  52. package/dist-es/commands/UntagResourceCommand.js +21 -28
  53. package/dist-es/commands/UpdateActionTargetCommand.js +21 -28
  54. package/dist-es/commands/UpdateFindingAggregatorCommand.js +21 -28
  55. package/dist-es/commands/UpdateFindingsCommand.js +21 -28
  56. package/dist-es/commands/UpdateInsightCommand.js +21 -28
  57. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
  58. package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +21 -28
  59. package/dist-es/commands/UpdateStandardsControlCommand.js +21 -28
  60. package/dist-es/endpoints.js +8 -8
  61. package/dist-es/models/SecurityHubServiceException.js +5 -10
  62. package/dist-es/models/models_0.js +951 -370
  63. package/dist-es/models/models_1.js +841 -290
  64. package/dist-es/models/models_2.js +93 -32
  65. package/dist-es/pagination/DescribeActionTargetsPaginator.js +25 -68
  66. package/dist-es/pagination/DescribeProductsPaginator.js +25 -68
  67. package/dist-es/pagination/DescribeStandardsControlsPaginator.js +25 -68
  68. package/dist-es/pagination/DescribeStandardsPaginator.js +25 -68
  69. package/dist-es/pagination/GetEnabledStandardsPaginator.js +25 -68
  70. package/dist-es/pagination/GetFindingsPaginator.js +25 -68
  71. package/dist-es/pagination/GetInsightsPaginator.js +25 -68
  72. package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +25 -68
  73. package/dist-es/pagination/ListFindingAggregatorsPaginator.js +25 -68
  74. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  75. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  76. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  77. package/dist-es/protocols/Aws_restJson1.js +10756 -9674
  78. package/dist-es/runtimeConfig.browser.js +26 -12
  79. package/dist-es/runtimeConfig.js +30 -12
  80. package/dist-es/runtimeConfig.native.js +8 -5
  81. package/dist-es/runtimeConfig.shared.js +8 -11
  82. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AcceptAdministratorInvitationCommand, } from "./commands/AcceptAdministratorInvitationCommand";
3
2
  import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
4
3
  import { BatchDisableStandardsCommand, } from "./commands/BatchDisableStandardsCommand";
@@ -56,795 +55,789 @@ import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrgani
56
55
  import { UpdateSecurityHubConfigurationCommand, } from "./commands/UpdateSecurityHubConfigurationCommand";
57
56
  import { UpdateStandardsControlCommand, } from "./commands/UpdateStandardsControlCommand";
58
57
  import { SecurityHubClient } from "./SecurityHubClient";
59
- var SecurityHub = (function (_super) {
60
- __extends(SecurityHub, _super);
61
- function SecurityHub() {
62
- return _super !== null && _super.apply(this, arguments) || this;
63
- }
64
- SecurityHub.prototype.acceptAdministratorInvitation = function (args, optionsOrCb, cb) {
65
- var command = new AcceptAdministratorInvitationCommand(args);
58
+ export class SecurityHub extends SecurityHubClient {
59
+ acceptAdministratorInvitation(args, optionsOrCb, cb) {
60
+ const command = new AcceptAdministratorInvitationCommand(args);
66
61
  if (typeof optionsOrCb === "function") {
67
62
  this.send(command, optionsOrCb);
68
63
  }
69
64
  else if (typeof cb === "function") {
70
65
  if (typeof optionsOrCb !== "object")
71
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
67
  this.send(command, optionsOrCb || {}, cb);
73
68
  }
74
69
  else {
75
70
  return this.send(command, optionsOrCb);
76
71
  }
77
- };
78
- SecurityHub.prototype.acceptInvitation = function (args, optionsOrCb, cb) {
79
- var command = new AcceptInvitationCommand(args);
72
+ }
73
+ acceptInvitation(args, optionsOrCb, cb) {
74
+ const command = new AcceptInvitationCommand(args);
80
75
  if (typeof optionsOrCb === "function") {
81
76
  this.send(command, optionsOrCb);
82
77
  }
83
78
  else if (typeof cb === "function") {
84
79
  if (typeof optionsOrCb !== "object")
85
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
81
  this.send(command, optionsOrCb || {}, cb);
87
82
  }
88
83
  else {
89
84
  return this.send(command, optionsOrCb);
90
85
  }
91
- };
92
- SecurityHub.prototype.batchDisableStandards = function (args, optionsOrCb, cb) {
93
- var command = new BatchDisableStandardsCommand(args);
86
+ }
87
+ batchDisableStandards(args, optionsOrCb, cb) {
88
+ const command = new BatchDisableStandardsCommand(args);
94
89
  if (typeof optionsOrCb === "function") {
95
90
  this.send(command, optionsOrCb);
96
91
  }
97
92
  else if (typeof cb === "function") {
98
93
  if (typeof optionsOrCb !== "object")
99
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
95
  this.send(command, optionsOrCb || {}, cb);
101
96
  }
102
97
  else {
103
98
  return this.send(command, optionsOrCb);
104
99
  }
105
- };
106
- SecurityHub.prototype.batchEnableStandards = function (args, optionsOrCb, cb) {
107
- var command = new BatchEnableStandardsCommand(args);
100
+ }
101
+ batchEnableStandards(args, optionsOrCb, cb) {
102
+ const command = new BatchEnableStandardsCommand(args);
108
103
  if (typeof optionsOrCb === "function") {
109
104
  this.send(command, optionsOrCb);
110
105
  }
111
106
  else if (typeof cb === "function") {
112
107
  if (typeof optionsOrCb !== "object")
113
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
109
  this.send(command, optionsOrCb || {}, cb);
115
110
  }
116
111
  else {
117
112
  return this.send(command, optionsOrCb);
118
113
  }
119
- };
120
- SecurityHub.prototype.batchImportFindings = function (args, optionsOrCb, cb) {
121
- var command = new BatchImportFindingsCommand(args);
114
+ }
115
+ batchImportFindings(args, optionsOrCb, cb) {
116
+ const command = new BatchImportFindingsCommand(args);
122
117
  if (typeof optionsOrCb === "function") {
123
118
  this.send(command, optionsOrCb);
124
119
  }
125
120
  else if (typeof cb === "function") {
126
121
  if (typeof optionsOrCb !== "object")
127
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
123
  this.send(command, optionsOrCb || {}, cb);
129
124
  }
130
125
  else {
131
126
  return this.send(command, optionsOrCb);
132
127
  }
133
- };
134
- SecurityHub.prototype.batchUpdateFindings = function (args, optionsOrCb, cb) {
135
- var command = new BatchUpdateFindingsCommand(args);
128
+ }
129
+ batchUpdateFindings(args, optionsOrCb, cb) {
130
+ const command = new BatchUpdateFindingsCommand(args);
136
131
  if (typeof optionsOrCb === "function") {
137
132
  this.send(command, optionsOrCb);
138
133
  }
139
134
  else if (typeof cb === "function") {
140
135
  if (typeof optionsOrCb !== "object")
141
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
136
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
137
  this.send(command, optionsOrCb || {}, cb);
143
138
  }
144
139
  else {
145
140
  return this.send(command, optionsOrCb);
146
141
  }
147
- };
148
- SecurityHub.prototype.createActionTarget = function (args, optionsOrCb, cb) {
149
- var command = new CreateActionTargetCommand(args);
142
+ }
143
+ createActionTarget(args, optionsOrCb, cb) {
144
+ const command = new CreateActionTargetCommand(args);
150
145
  if (typeof optionsOrCb === "function") {
151
146
  this.send(command, optionsOrCb);
152
147
  }
153
148
  else if (typeof cb === "function") {
154
149
  if (typeof optionsOrCb !== "object")
155
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
150
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
151
  this.send(command, optionsOrCb || {}, cb);
157
152
  }
158
153
  else {
159
154
  return this.send(command, optionsOrCb);
160
155
  }
161
- };
162
- SecurityHub.prototype.createFindingAggregator = function (args, optionsOrCb, cb) {
163
- var command = new CreateFindingAggregatorCommand(args);
156
+ }
157
+ createFindingAggregator(args, optionsOrCb, cb) {
158
+ const command = new CreateFindingAggregatorCommand(args);
164
159
  if (typeof optionsOrCb === "function") {
165
160
  this.send(command, optionsOrCb);
166
161
  }
167
162
  else if (typeof cb === "function") {
168
163
  if (typeof optionsOrCb !== "object")
169
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
164
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
165
  this.send(command, optionsOrCb || {}, cb);
171
166
  }
172
167
  else {
173
168
  return this.send(command, optionsOrCb);
174
169
  }
175
- };
176
- SecurityHub.prototype.createInsight = function (args, optionsOrCb, cb) {
177
- var command = new CreateInsightCommand(args);
170
+ }
171
+ createInsight(args, optionsOrCb, cb) {
172
+ const command = new CreateInsightCommand(args);
178
173
  if (typeof optionsOrCb === "function") {
179
174
  this.send(command, optionsOrCb);
180
175
  }
181
176
  else if (typeof cb === "function") {
182
177
  if (typeof optionsOrCb !== "object")
183
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
178
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
179
  this.send(command, optionsOrCb || {}, cb);
185
180
  }
186
181
  else {
187
182
  return this.send(command, optionsOrCb);
188
183
  }
189
- };
190
- SecurityHub.prototype.createMembers = function (args, optionsOrCb, cb) {
191
- var command = new CreateMembersCommand(args);
184
+ }
185
+ createMembers(args, optionsOrCb, cb) {
186
+ const command = new CreateMembersCommand(args);
192
187
  if (typeof optionsOrCb === "function") {
193
188
  this.send(command, optionsOrCb);
194
189
  }
195
190
  else if (typeof cb === "function") {
196
191
  if (typeof optionsOrCb !== "object")
197
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
192
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
193
  this.send(command, optionsOrCb || {}, cb);
199
194
  }
200
195
  else {
201
196
  return this.send(command, optionsOrCb);
202
197
  }
203
- };
204
- SecurityHub.prototype.declineInvitations = function (args, optionsOrCb, cb) {
205
- var command = new DeclineInvitationsCommand(args);
198
+ }
199
+ declineInvitations(args, optionsOrCb, cb) {
200
+ const command = new DeclineInvitationsCommand(args);
206
201
  if (typeof optionsOrCb === "function") {
207
202
  this.send(command, optionsOrCb);
208
203
  }
209
204
  else if (typeof cb === "function") {
210
205
  if (typeof optionsOrCb !== "object")
211
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
206
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
207
  this.send(command, optionsOrCb || {}, cb);
213
208
  }
214
209
  else {
215
210
  return this.send(command, optionsOrCb);
216
211
  }
217
- };
218
- SecurityHub.prototype.deleteActionTarget = function (args, optionsOrCb, cb) {
219
- var command = new DeleteActionTargetCommand(args);
212
+ }
213
+ deleteActionTarget(args, optionsOrCb, cb) {
214
+ const command = new DeleteActionTargetCommand(args);
220
215
  if (typeof optionsOrCb === "function") {
221
216
  this.send(command, optionsOrCb);
222
217
  }
223
218
  else if (typeof cb === "function") {
224
219
  if (typeof optionsOrCb !== "object")
225
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
220
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
221
  this.send(command, optionsOrCb || {}, cb);
227
222
  }
228
223
  else {
229
224
  return this.send(command, optionsOrCb);
230
225
  }
231
- };
232
- SecurityHub.prototype.deleteFindingAggregator = function (args, optionsOrCb, cb) {
233
- var command = new DeleteFindingAggregatorCommand(args);
226
+ }
227
+ deleteFindingAggregator(args, optionsOrCb, cb) {
228
+ const command = new DeleteFindingAggregatorCommand(args);
234
229
  if (typeof optionsOrCb === "function") {
235
230
  this.send(command, optionsOrCb);
236
231
  }
237
232
  else if (typeof cb === "function") {
238
233
  if (typeof optionsOrCb !== "object")
239
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
234
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
235
  this.send(command, optionsOrCb || {}, cb);
241
236
  }
242
237
  else {
243
238
  return this.send(command, optionsOrCb);
244
239
  }
245
- };
246
- SecurityHub.prototype.deleteInsight = function (args, optionsOrCb, cb) {
247
- var command = new DeleteInsightCommand(args);
240
+ }
241
+ deleteInsight(args, optionsOrCb, cb) {
242
+ const command = new DeleteInsightCommand(args);
248
243
  if (typeof optionsOrCb === "function") {
249
244
  this.send(command, optionsOrCb);
250
245
  }
251
246
  else if (typeof cb === "function") {
252
247
  if (typeof optionsOrCb !== "object")
253
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
248
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
249
  this.send(command, optionsOrCb || {}, cb);
255
250
  }
256
251
  else {
257
252
  return this.send(command, optionsOrCb);
258
253
  }
259
- };
260
- SecurityHub.prototype.deleteInvitations = function (args, optionsOrCb, cb) {
261
- var command = new DeleteInvitationsCommand(args);
254
+ }
255
+ deleteInvitations(args, optionsOrCb, cb) {
256
+ const command = new DeleteInvitationsCommand(args);
262
257
  if (typeof optionsOrCb === "function") {
263
258
  this.send(command, optionsOrCb);
264
259
  }
265
260
  else if (typeof cb === "function") {
266
261
  if (typeof optionsOrCb !== "object")
267
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
262
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
263
  this.send(command, optionsOrCb || {}, cb);
269
264
  }
270
265
  else {
271
266
  return this.send(command, optionsOrCb);
272
267
  }
273
- };
274
- SecurityHub.prototype.deleteMembers = function (args, optionsOrCb, cb) {
275
- var command = new DeleteMembersCommand(args);
268
+ }
269
+ deleteMembers(args, optionsOrCb, cb) {
270
+ const command = new DeleteMembersCommand(args);
276
271
  if (typeof optionsOrCb === "function") {
277
272
  this.send(command, optionsOrCb);
278
273
  }
279
274
  else if (typeof cb === "function") {
280
275
  if (typeof optionsOrCb !== "object")
281
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
276
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
277
  this.send(command, optionsOrCb || {}, cb);
283
278
  }
284
279
  else {
285
280
  return this.send(command, optionsOrCb);
286
281
  }
287
- };
288
- SecurityHub.prototype.describeActionTargets = function (args, optionsOrCb, cb) {
289
- var command = new DescribeActionTargetsCommand(args);
282
+ }
283
+ describeActionTargets(args, optionsOrCb, cb) {
284
+ const command = new DescribeActionTargetsCommand(args);
290
285
  if (typeof optionsOrCb === "function") {
291
286
  this.send(command, optionsOrCb);
292
287
  }
293
288
  else if (typeof cb === "function") {
294
289
  if (typeof optionsOrCb !== "object")
295
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
290
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
291
  this.send(command, optionsOrCb || {}, cb);
297
292
  }
298
293
  else {
299
294
  return this.send(command, optionsOrCb);
300
295
  }
301
- };
302
- SecurityHub.prototype.describeHub = function (args, optionsOrCb, cb) {
303
- var command = new DescribeHubCommand(args);
296
+ }
297
+ describeHub(args, optionsOrCb, cb) {
298
+ const command = new DescribeHubCommand(args);
304
299
  if (typeof optionsOrCb === "function") {
305
300
  this.send(command, optionsOrCb);
306
301
  }
307
302
  else if (typeof cb === "function") {
308
303
  if (typeof optionsOrCb !== "object")
309
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
304
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
305
  this.send(command, optionsOrCb || {}, cb);
311
306
  }
312
307
  else {
313
308
  return this.send(command, optionsOrCb);
314
309
  }
315
- };
316
- SecurityHub.prototype.describeOrganizationConfiguration = function (args, optionsOrCb, cb) {
317
- var command = new DescribeOrganizationConfigurationCommand(args);
310
+ }
311
+ describeOrganizationConfiguration(args, optionsOrCb, cb) {
312
+ const command = new DescribeOrganizationConfigurationCommand(args);
318
313
  if (typeof optionsOrCb === "function") {
319
314
  this.send(command, optionsOrCb);
320
315
  }
321
316
  else if (typeof cb === "function") {
322
317
  if (typeof optionsOrCb !== "object")
323
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
318
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
319
  this.send(command, optionsOrCb || {}, cb);
325
320
  }
326
321
  else {
327
322
  return this.send(command, optionsOrCb);
328
323
  }
329
- };
330
- SecurityHub.prototype.describeProducts = function (args, optionsOrCb, cb) {
331
- var command = new DescribeProductsCommand(args);
324
+ }
325
+ describeProducts(args, optionsOrCb, cb) {
326
+ const command = new DescribeProductsCommand(args);
332
327
  if (typeof optionsOrCb === "function") {
333
328
  this.send(command, optionsOrCb);
334
329
  }
335
330
  else if (typeof cb === "function") {
336
331
  if (typeof optionsOrCb !== "object")
337
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
332
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
333
  this.send(command, optionsOrCb || {}, cb);
339
334
  }
340
335
  else {
341
336
  return this.send(command, optionsOrCb);
342
337
  }
343
- };
344
- SecurityHub.prototype.describeStandards = function (args, optionsOrCb, cb) {
345
- var command = new DescribeStandardsCommand(args);
338
+ }
339
+ describeStandards(args, optionsOrCb, cb) {
340
+ const command = new DescribeStandardsCommand(args);
346
341
  if (typeof optionsOrCb === "function") {
347
342
  this.send(command, optionsOrCb);
348
343
  }
349
344
  else if (typeof cb === "function") {
350
345
  if (typeof optionsOrCb !== "object")
351
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
346
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
347
  this.send(command, optionsOrCb || {}, cb);
353
348
  }
354
349
  else {
355
350
  return this.send(command, optionsOrCb);
356
351
  }
357
- };
358
- SecurityHub.prototype.describeStandardsControls = function (args, optionsOrCb, cb) {
359
- var command = new DescribeStandardsControlsCommand(args);
352
+ }
353
+ describeStandardsControls(args, optionsOrCb, cb) {
354
+ const command = new DescribeStandardsControlsCommand(args);
360
355
  if (typeof optionsOrCb === "function") {
361
356
  this.send(command, optionsOrCb);
362
357
  }
363
358
  else if (typeof cb === "function") {
364
359
  if (typeof optionsOrCb !== "object")
365
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
360
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
361
  this.send(command, optionsOrCb || {}, cb);
367
362
  }
368
363
  else {
369
364
  return this.send(command, optionsOrCb);
370
365
  }
371
- };
372
- SecurityHub.prototype.disableImportFindingsForProduct = function (args, optionsOrCb, cb) {
373
- var command = new DisableImportFindingsForProductCommand(args);
366
+ }
367
+ disableImportFindingsForProduct(args, optionsOrCb, cb) {
368
+ const command = new DisableImportFindingsForProductCommand(args);
374
369
  if (typeof optionsOrCb === "function") {
375
370
  this.send(command, optionsOrCb);
376
371
  }
377
372
  else if (typeof cb === "function") {
378
373
  if (typeof optionsOrCb !== "object")
379
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
374
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
375
  this.send(command, optionsOrCb || {}, cb);
381
376
  }
382
377
  else {
383
378
  return this.send(command, optionsOrCb);
384
379
  }
385
- };
386
- SecurityHub.prototype.disableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
387
- var command = new DisableOrganizationAdminAccountCommand(args);
380
+ }
381
+ disableOrganizationAdminAccount(args, optionsOrCb, cb) {
382
+ const command = new DisableOrganizationAdminAccountCommand(args);
388
383
  if (typeof optionsOrCb === "function") {
389
384
  this.send(command, optionsOrCb);
390
385
  }
391
386
  else if (typeof cb === "function") {
392
387
  if (typeof optionsOrCb !== "object")
393
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
388
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
389
  this.send(command, optionsOrCb || {}, cb);
395
390
  }
396
391
  else {
397
392
  return this.send(command, optionsOrCb);
398
393
  }
399
- };
400
- SecurityHub.prototype.disableSecurityHub = function (args, optionsOrCb, cb) {
401
- var command = new DisableSecurityHubCommand(args);
394
+ }
395
+ disableSecurityHub(args, optionsOrCb, cb) {
396
+ const command = new DisableSecurityHubCommand(args);
402
397
  if (typeof optionsOrCb === "function") {
403
398
  this.send(command, optionsOrCb);
404
399
  }
405
400
  else if (typeof cb === "function") {
406
401
  if (typeof optionsOrCb !== "object")
407
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
402
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
403
  this.send(command, optionsOrCb || {}, cb);
409
404
  }
410
405
  else {
411
406
  return this.send(command, optionsOrCb);
412
407
  }
413
- };
414
- SecurityHub.prototype.disassociateFromAdministratorAccount = function (args, optionsOrCb, cb) {
415
- var command = new DisassociateFromAdministratorAccountCommand(args);
408
+ }
409
+ disassociateFromAdministratorAccount(args, optionsOrCb, cb) {
410
+ const command = new DisassociateFromAdministratorAccountCommand(args);
416
411
  if (typeof optionsOrCb === "function") {
417
412
  this.send(command, optionsOrCb);
418
413
  }
419
414
  else if (typeof cb === "function") {
420
415
  if (typeof optionsOrCb !== "object")
421
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
416
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
417
  this.send(command, optionsOrCb || {}, cb);
423
418
  }
424
419
  else {
425
420
  return this.send(command, optionsOrCb);
426
421
  }
427
- };
428
- SecurityHub.prototype.disassociateFromMasterAccount = function (args, optionsOrCb, cb) {
429
- var command = new DisassociateFromMasterAccountCommand(args);
422
+ }
423
+ disassociateFromMasterAccount(args, optionsOrCb, cb) {
424
+ const command = new DisassociateFromMasterAccountCommand(args);
430
425
  if (typeof optionsOrCb === "function") {
431
426
  this.send(command, optionsOrCb);
432
427
  }
433
428
  else if (typeof cb === "function") {
434
429
  if (typeof optionsOrCb !== "object")
435
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
430
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
431
  this.send(command, optionsOrCb || {}, cb);
437
432
  }
438
433
  else {
439
434
  return this.send(command, optionsOrCb);
440
435
  }
441
- };
442
- SecurityHub.prototype.disassociateMembers = function (args, optionsOrCb, cb) {
443
- var command = new DisassociateMembersCommand(args);
436
+ }
437
+ disassociateMembers(args, optionsOrCb, cb) {
438
+ const command = new DisassociateMembersCommand(args);
444
439
  if (typeof optionsOrCb === "function") {
445
440
  this.send(command, optionsOrCb);
446
441
  }
447
442
  else if (typeof cb === "function") {
448
443
  if (typeof optionsOrCb !== "object")
449
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
444
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
450
445
  this.send(command, optionsOrCb || {}, cb);
451
446
  }
452
447
  else {
453
448
  return this.send(command, optionsOrCb);
454
449
  }
455
- };
456
- SecurityHub.prototype.enableImportFindingsForProduct = function (args, optionsOrCb, cb) {
457
- var command = new EnableImportFindingsForProductCommand(args);
450
+ }
451
+ enableImportFindingsForProduct(args, optionsOrCb, cb) {
452
+ const command = new EnableImportFindingsForProductCommand(args);
458
453
  if (typeof optionsOrCb === "function") {
459
454
  this.send(command, optionsOrCb);
460
455
  }
461
456
  else if (typeof cb === "function") {
462
457
  if (typeof optionsOrCb !== "object")
463
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
458
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
464
459
  this.send(command, optionsOrCb || {}, cb);
465
460
  }
466
461
  else {
467
462
  return this.send(command, optionsOrCb);
468
463
  }
469
- };
470
- SecurityHub.prototype.enableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
471
- var command = new EnableOrganizationAdminAccountCommand(args);
464
+ }
465
+ enableOrganizationAdminAccount(args, optionsOrCb, cb) {
466
+ const command = new EnableOrganizationAdminAccountCommand(args);
472
467
  if (typeof optionsOrCb === "function") {
473
468
  this.send(command, optionsOrCb);
474
469
  }
475
470
  else if (typeof cb === "function") {
476
471
  if (typeof optionsOrCb !== "object")
477
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
472
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
478
473
  this.send(command, optionsOrCb || {}, cb);
479
474
  }
480
475
  else {
481
476
  return this.send(command, optionsOrCb);
482
477
  }
483
- };
484
- SecurityHub.prototype.enableSecurityHub = function (args, optionsOrCb, cb) {
485
- var command = new EnableSecurityHubCommand(args);
478
+ }
479
+ enableSecurityHub(args, optionsOrCb, cb) {
480
+ const command = new EnableSecurityHubCommand(args);
486
481
  if (typeof optionsOrCb === "function") {
487
482
  this.send(command, optionsOrCb);
488
483
  }
489
484
  else if (typeof cb === "function") {
490
485
  if (typeof optionsOrCb !== "object")
491
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
486
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
492
487
  this.send(command, optionsOrCb || {}, cb);
493
488
  }
494
489
  else {
495
490
  return this.send(command, optionsOrCb);
496
491
  }
497
- };
498
- SecurityHub.prototype.getAdministratorAccount = function (args, optionsOrCb, cb) {
499
- var command = new GetAdministratorAccountCommand(args);
492
+ }
493
+ getAdministratorAccount(args, optionsOrCb, cb) {
494
+ const command = new GetAdministratorAccountCommand(args);
500
495
  if (typeof optionsOrCb === "function") {
501
496
  this.send(command, optionsOrCb);
502
497
  }
503
498
  else if (typeof cb === "function") {
504
499
  if (typeof optionsOrCb !== "object")
505
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
500
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
506
501
  this.send(command, optionsOrCb || {}, cb);
507
502
  }
508
503
  else {
509
504
  return this.send(command, optionsOrCb);
510
505
  }
511
- };
512
- SecurityHub.prototype.getEnabledStandards = function (args, optionsOrCb, cb) {
513
- var command = new GetEnabledStandardsCommand(args);
506
+ }
507
+ getEnabledStandards(args, optionsOrCb, cb) {
508
+ const command = new GetEnabledStandardsCommand(args);
514
509
  if (typeof optionsOrCb === "function") {
515
510
  this.send(command, optionsOrCb);
516
511
  }
517
512
  else if (typeof cb === "function") {
518
513
  if (typeof optionsOrCb !== "object")
519
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
514
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
520
515
  this.send(command, optionsOrCb || {}, cb);
521
516
  }
522
517
  else {
523
518
  return this.send(command, optionsOrCb);
524
519
  }
525
- };
526
- SecurityHub.prototype.getFindingAggregator = function (args, optionsOrCb, cb) {
527
- var command = new GetFindingAggregatorCommand(args);
520
+ }
521
+ getFindingAggregator(args, optionsOrCb, cb) {
522
+ const command = new GetFindingAggregatorCommand(args);
528
523
  if (typeof optionsOrCb === "function") {
529
524
  this.send(command, optionsOrCb);
530
525
  }
531
526
  else if (typeof cb === "function") {
532
527
  if (typeof optionsOrCb !== "object")
533
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
528
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
534
529
  this.send(command, optionsOrCb || {}, cb);
535
530
  }
536
531
  else {
537
532
  return this.send(command, optionsOrCb);
538
533
  }
539
- };
540
- SecurityHub.prototype.getFindings = function (args, optionsOrCb, cb) {
541
- var command = new GetFindingsCommand(args);
534
+ }
535
+ getFindings(args, optionsOrCb, cb) {
536
+ const command = new GetFindingsCommand(args);
542
537
  if (typeof optionsOrCb === "function") {
543
538
  this.send(command, optionsOrCb);
544
539
  }
545
540
  else if (typeof cb === "function") {
546
541
  if (typeof optionsOrCb !== "object")
547
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
542
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
548
543
  this.send(command, optionsOrCb || {}, cb);
549
544
  }
550
545
  else {
551
546
  return this.send(command, optionsOrCb);
552
547
  }
553
- };
554
- SecurityHub.prototype.getInsightResults = function (args, optionsOrCb, cb) {
555
- var command = new GetInsightResultsCommand(args);
548
+ }
549
+ getInsightResults(args, optionsOrCb, cb) {
550
+ const command = new GetInsightResultsCommand(args);
556
551
  if (typeof optionsOrCb === "function") {
557
552
  this.send(command, optionsOrCb);
558
553
  }
559
554
  else if (typeof cb === "function") {
560
555
  if (typeof optionsOrCb !== "object")
561
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
556
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
562
557
  this.send(command, optionsOrCb || {}, cb);
563
558
  }
564
559
  else {
565
560
  return this.send(command, optionsOrCb);
566
561
  }
567
- };
568
- SecurityHub.prototype.getInsights = function (args, optionsOrCb, cb) {
569
- var command = new GetInsightsCommand(args);
562
+ }
563
+ getInsights(args, optionsOrCb, cb) {
564
+ const command = new GetInsightsCommand(args);
570
565
  if (typeof optionsOrCb === "function") {
571
566
  this.send(command, optionsOrCb);
572
567
  }
573
568
  else if (typeof cb === "function") {
574
569
  if (typeof optionsOrCb !== "object")
575
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
570
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
576
571
  this.send(command, optionsOrCb || {}, cb);
577
572
  }
578
573
  else {
579
574
  return this.send(command, optionsOrCb);
580
575
  }
581
- };
582
- SecurityHub.prototype.getInvitationsCount = function (args, optionsOrCb, cb) {
583
- var command = new GetInvitationsCountCommand(args);
576
+ }
577
+ getInvitationsCount(args, optionsOrCb, cb) {
578
+ const command = new GetInvitationsCountCommand(args);
584
579
  if (typeof optionsOrCb === "function") {
585
580
  this.send(command, optionsOrCb);
586
581
  }
587
582
  else if (typeof cb === "function") {
588
583
  if (typeof optionsOrCb !== "object")
589
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
584
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
590
585
  this.send(command, optionsOrCb || {}, cb);
591
586
  }
592
587
  else {
593
588
  return this.send(command, optionsOrCb);
594
589
  }
595
- };
596
- SecurityHub.prototype.getMasterAccount = function (args, optionsOrCb, cb) {
597
- var command = new GetMasterAccountCommand(args);
590
+ }
591
+ getMasterAccount(args, optionsOrCb, cb) {
592
+ const command = new GetMasterAccountCommand(args);
598
593
  if (typeof optionsOrCb === "function") {
599
594
  this.send(command, optionsOrCb);
600
595
  }
601
596
  else if (typeof cb === "function") {
602
597
  if (typeof optionsOrCb !== "object")
603
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
598
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
604
599
  this.send(command, optionsOrCb || {}, cb);
605
600
  }
606
601
  else {
607
602
  return this.send(command, optionsOrCb);
608
603
  }
609
- };
610
- SecurityHub.prototype.getMembers = function (args, optionsOrCb, cb) {
611
- var command = new GetMembersCommand(args);
604
+ }
605
+ getMembers(args, optionsOrCb, cb) {
606
+ const command = new GetMembersCommand(args);
612
607
  if (typeof optionsOrCb === "function") {
613
608
  this.send(command, optionsOrCb);
614
609
  }
615
610
  else if (typeof cb === "function") {
616
611
  if (typeof optionsOrCb !== "object")
617
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
612
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
618
613
  this.send(command, optionsOrCb || {}, cb);
619
614
  }
620
615
  else {
621
616
  return this.send(command, optionsOrCb);
622
617
  }
623
- };
624
- SecurityHub.prototype.inviteMembers = function (args, optionsOrCb, cb) {
625
- var command = new InviteMembersCommand(args);
618
+ }
619
+ inviteMembers(args, optionsOrCb, cb) {
620
+ const command = new InviteMembersCommand(args);
626
621
  if (typeof optionsOrCb === "function") {
627
622
  this.send(command, optionsOrCb);
628
623
  }
629
624
  else if (typeof cb === "function") {
630
625
  if (typeof optionsOrCb !== "object")
631
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
626
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
632
627
  this.send(command, optionsOrCb || {}, cb);
633
628
  }
634
629
  else {
635
630
  return this.send(command, optionsOrCb);
636
631
  }
637
- };
638
- SecurityHub.prototype.listEnabledProductsForImport = function (args, optionsOrCb, cb) {
639
- var command = new ListEnabledProductsForImportCommand(args);
632
+ }
633
+ listEnabledProductsForImport(args, optionsOrCb, cb) {
634
+ const command = new ListEnabledProductsForImportCommand(args);
640
635
  if (typeof optionsOrCb === "function") {
641
636
  this.send(command, optionsOrCb);
642
637
  }
643
638
  else if (typeof cb === "function") {
644
639
  if (typeof optionsOrCb !== "object")
645
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
640
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
646
641
  this.send(command, optionsOrCb || {}, cb);
647
642
  }
648
643
  else {
649
644
  return this.send(command, optionsOrCb);
650
645
  }
651
- };
652
- SecurityHub.prototype.listFindingAggregators = function (args, optionsOrCb, cb) {
653
- var command = new ListFindingAggregatorsCommand(args);
646
+ }
647
+ listFindingAggregators(args, optionsOrCb, cb) {
648
+ const command = new ListFindingAggregatorsCommand(args);
654
649
  if (typeof optionsOrCb === "function") {
655
650
  this.send(command, optionsOrCb);
656
651
  }
657
652
  else if (typeof cb === "function") {
658
653
  if (typeof optionsOrCb !== "object")
659
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
654
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
660
655
  this.send(command, optionsOrCb || {}, cb);
661
656
  }
662
657
  else {
663
658
  return this.send(command, optionsOrCb);
664
659
  }
665
- };
666
- SecurityHub.prototype.listInvitations = function (args, optionsOrCb, cb) {
667
- var command = new ListInvitationsCommand(args);
660
+ }
661
+ listInvitations(args, optionsOrCb, cb) {
662
+ const command = new ListInvitationsCommand(args);
668
663
  if (typeof optionsOrCb === "function") {
669
664
  this.send(command, optionsOrCb);
670
665
  }
671
666
  else if (typeof cb === "function") {
672
667
  if (typeof optionsOrCb !== "object")
673
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
668
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
674
669
  this.send(command, optionsOrCb || {}, cb);
675
670
  }
676
671
  else {
677
672
  return this.send(command, optionsOrCb);
678
673
  }
679
- };
680
- SecurityHub.prototype.listMembers = function (args, optionsOrCb, cb) {
681
- var command = new ListMembersCommand(args);
674
+ }
675
+ listMembers(args, optionsOrCb, cb) {
676
+ const command = new ListMembersCommand(args);
682
677
  if (typeof optionsOrCb === "function") {
683
678
  this.send(command, optionsOrCb);
684
679
  }
685
680
  else if (typeof cb === "function") {
686
681
  if (typeof optionsOrCb !== "object")
687
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
682
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
688
683
  this.send(command, optionsOrCb || {}, cb);
689
684
  }
690
685
  else {
691
686
  return this.send(command, optionsOrCb);
692
687
  }
693
- };
694
- SecurityHub.prototype.listOrganizationAdminAccounts = function (args, optionsOrCb, cb) {
695
- var command = new ListOrganizationAdminAccountsCommand(args);
688
+ }
689
+ listOrganizationAdminAccounts(args, optionsOrCb, cb) {
690
+ const command = new ListOrganizationAdminAccountsCommand(args);
696
691
  if (typeof optionsOrCb === "function") {
697
692
  this.send(command, optionsOrCb);
698
693
  }
699
694
  else if (typeof cb === "function") {
700
695
  if (typeof optionsOrCb !== "object")
701
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
696
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
702
697
  this.send(command, optionsOrCb || {}, cb);
703
698
  }
704
699
  else {
705
700
  return this.send(command, optionsOrCb);
706
701
  }
707
- };
708
- SecurityHub.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
709
- var command = new ListTagsForResourceCommand(args);
702
+ }
703
+ listTagsForResource(args, optionsOrCb, cb) {
704
+ const command = new ListTagsForResourceCommand(args);
710
705
  if (typeof optionsOrCb === "function") {
711
706
  this.send(command, optionsOrCb);
712
707
  }
713
708
  else if (typeof cb === "function") {
714
709
  if (typeof optionsOrCb !== "object")
715
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
710
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
716
711
  this.send(command, optionsOrCb || {}, cb);
717
712
  }
718
713
  else {
719
714
  return this.send(command, optionsOrCb);
720
715
  }
721
- };
722
- SecurityHub.prototype.tagResource = function (args, optionsOrCb, cb) {
723
- var command = new TagResourceCommand(args);
716
+ }
717
+ tagResource(args, optionsOrCb, cb) {
718
+ const command = new TagResourceCommand(args);
724
719
  if (typeof optionsOrCb === "function") {
725
720
  this.send(command, optionsOrCb);
726
721
  }
727
722
  else if (typeof cb === "function") {
728
723
  if (typeof optionsOrCb !== "object")
729
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
724
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
730
725
  this.send(command, optionsOrCb || {}, cb);
731
726
  }
732
727
  else {
733
728
  return this.send(command, optionsOrCb);
734
729
  }
735
- };
736
- SecurityHub.prototype.untagResource = function (args, optionsOrCb, cb) {
737
- var command = new UntagResourceCommand(args);
730
+ }
731
+ untagResource(args, optionsOrCb, cb) {
732
+ const command = new UntagResourceCommand(args);
738
733
  if (typeof optionsOrCb === "function") {
739
734
  this.send(command, optionsOrCb);
740
735
  }
741
736
  else if (typeof cb === "function") {
742
737
  if (typeof optionsOrCb !== "object")
743
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
738
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
744
739
  this.send(command, optionsOrCb || {}, cb);
745
740
  }
746
741
  else {
747
742
  return this.send(command, optionsOrCb);
748
743
  }
749
- };
750
- SecurityHub.prototype.updateActionTarget = function (args, optionsOrCb, cb) {
751
- var command = new UpdateActionTargetCommand(args);
744
+ }
745
+ updateActionTarget(args, optionsOrCb, cb) {
746
+ const command = new UpdateActionTargetCommand(args);
752
747
  if (typeof optionsOrCb === "function") {
753
748
  this.send(command, optionsOrCb);
754
749
  }
755
750
  else if (typeof cb === "function") {
756
751
  if (typeof optionsOrCb !== "object")
757
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
752
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
758
753
  this.send(command, optionsOrCb || {}, cb);
759
754
  }
760
755
  else {
761
756
  return this.send(command, optionsOrCb);
762
757
  }
763
- };
764
- SecurityHub.prototype.updateFindingAggregator = function (args, optionsOrCb, cb) {
765
- var command = new UpdateFindingAggregatorCommand(args);
758
+ }
759
+ updateFindingAggregator(args, optionsOrCb, cb) {
760
+ const command = new UpdateFindingAggregatorCommand(args);
766
761
  if (typeof optionsOrCb === "function") {
767
762
  this.send(command, optionsOrCb);
768
763
  }
769
764
  else if (typeof cb === "function") {
770
765
  if (typeof optionsOrCb !== "object")
771
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
766
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
772
767
  this.send(command, optionsOrCb || {}, cb);
773
768
  }
774
769
  else {
775
770
  return this.send(command, optionsOrCb);
776
771
  }
777
- };
778
- SecurityHub.prototype.updateFindings = function (args, optionsOrCb, cb) {
779
- var command = new UpdateFindingsCommand(args);
772
+ }
773
+ updateFindings(args, optionsOrCb, cb) {
774
+ const command = new UpdateFindingsCommand(args);
780
775
  if (typeof optionsOrCb === "function") {
781
776
  this.send(command, optionsOrCb);
782
777
  }
783
778
  else if (typeof cb === "function") {
784
779
  if (typeof optionsOrCb !== "object")
785
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
780
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
786
781
  this.send(command, optionsOrCb || {}, cb);
787
782
  }
788
783
  else {
789
784
  return this.send(command, optionsOrCb);
790
785
  }
791
- };
792
- SecurityHub.prototype.updateInsight = function (args, optionsOrCb, cb) {
793
- var command = new UpdateInsightCommand(args);
786
+ }
787
+ updateInsight(args, optionsOrCb, cb) {
788
+ const command = new UpdateInsightCommand(args);
794
789
  if (typeof optionsOrCb === "function") {
795
790
  this.send(command, optionsOrCb);
796
791
  }
797
792
  else if (typeof cb === "function") {
798
793
  if (typeof optionsOrCb !== "object")
799
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
794
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
800
795
  this.send(command, optionsOrCb || {}, cb);
801
796
  }
802
797
  else {
803
798
  return this.send(command, optionsOrCb);
804
799
  }
805
- };
806
- SecurityHub.prototype.updateOrganizationConfiguration = function (args, optionsOrCb, cb) {
807
- var command = new UpdateOrganizationConfigurationCommand(args);
800
+ }
801
+ updateOrganizationConfiguration(args, optionsOrCb, cb) {
802
+ const command = new UpdateOrganizationConfigurationCommand(args);
808
803
  if (typeof optionsOrCb === "function") {
809
804
  this.send(command, optionsOrCb);
810
805
  }
811
806
  else if (typeof cb === "function") {
812
807
  if (typeof optionsOrCb !== "object")
813
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
808
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
814
809
  this.send(command, optionsOrCb || {}, cb);
815
810
  }
816
811
  else {
817
812
  return this.send(command, optionsOrCb);
818
813
  }
819
- };
820
- SecurityHub.prototype.updateSecurityHubConfiguration = function (args, optionsOrCb, cb) {
821
- var command = new UpdateSecurityHubConfigurationCommand(args);
814
+ }
815
+ updateSecurityHubConfiguration(args, optionsOrCb, cb) {
816
+ const command = new UpdateSecurityHubConfigurationCommand(args);
822
817
  if (typeof optionsOrCb === "function") {
823
818
  this.send(command, optionsOrCb);
824
819
  }
825
820
  else if (typeof cb === "function") {
826
821
  if (typeof optionsOrCb !== "object")
827
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
822
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
828
823
  this.send(command, optionsOrCb || {}, cb);
829
824
  }
830
825
  else {
831
826
  return this.send(command, optionsOrCb);
832
827
  }
833
- };
834
- SecurityHub.prototype.updateStandardsControl = function (args, optionsOrCb, cb) {
835
- var command = new UpdateStandardsControlCommand(args);
828
+ }
829
+ updateStandardsControl(args, optionsOrCb, cb) {
830
+ const command = new UpdateStandardsControlCommand(args);
836
831
  if (typeof optionsOrCb === "function") {
837
832
  this.send(command, optionsOrCb);
838
833
  }
839
834
  else if (typeof cb === "function") {
840
835
  if (typeof optionsOrCb !== "object")
841
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
836
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
842
837
  this.send(command, optionsOrCb || {}, cb);
843
838
  }
844
839
  else {
845
840
  return this.send(command, optionsOrCb);
846
841
  }
847
- };
848
- return SecurityHub;
849
- }(SecurityHubClient));
850
- export { SecurityHub };
842
+ }
843
+ }