@aws-sdk/client-detective 3.181.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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Detective.js +98 -105
  3. package/dist-es/DetectiveClient.js +22 -28
  4. package/dist-es/commands/AcceptInvitationCommand.js +22 -29
  5. package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +21 -28
  6. package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +21 -28
  7. package/dist-es/commands/CreateGraphCommand.js +21 -28
  8. package/dist-es/commands/CreateMembersCommand.js +21 -28
  9. package/dist-es/commands/DeleteGraphCommand.js +22 -29
  10. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  11. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  12. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +23 -30
  13. package/dist-es/commands/DisassociateMembershipCommand.js +22 -29
  14. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +22 -29
  15. package/dist-es/commands/GetMembersCommand.js +21 -28
  16. package/dist-es/commands/ListDatasourcePackagesCommand.js +21 -28
  17. package/dist-es/commands/ListGraphsCommand.js +21 -28
  18. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  19. package/dist-es/commands/ListMembersCommand.js +21 -28
  20. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  21. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  22. package/dist-es/commands/RejectInvitationCommand.js +22 -29
  23. package/dist-es/commands/StartMonitoringMemberCommand.js +22 -29
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateDatasourcePackagesCommand.js +22 -29
  27. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +22 -29
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/DetectiveServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +219 -124
  31. package/dist-es/pagination/ListDatasourcePackagesPaginator.js +25 -68
  32. package/dist-es/pagination/ListGraphsPaginator.js +25 -68
  33. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  34. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  35. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +1605 -2284
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-detective
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
3
2
  import { BatchGetGraphMemberDatasourcesCommand, } from "./commands/BatchGetGraphMemberDatasourcesCommand";
4
3
  import { BatchGetMembershipDatasourcesCommand, } from "./commands/BatchGetMembershipDatasourcesCommand";
@@ -24,347 +23,341 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
24
23
  import { UpdateDatasourcePackagesCommand, } from "./commands/UpdateDatasourcePackagesCommand";
25
24
  import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
26
25
  import { DetectiveClient } from "./DetectiveClient";
27
- var Detective = (function (_super) {
28
- __extends(Detective, _super);
29
- function Detective() {
30
- return _super !== null && _super.apply(this, arguments) || this;
31
- }
32
- Detective.prototype.acceptInvitation = function (args, optionsOrCb, cb) {
33
- var command = new AcceptInvitationCommand(args);
26
+ export class Detective extends DetectiveClient {
27
+ acceptInvitation(args, optionsOrCb, cb) {
28
+ const command = new AcceptInvitationCommand(args);
34
29
  if (typeof optionsOrCb === "function") {
35
30
  this.send(command, optionsOrCb);
36
31
  }
37
32
  else if (typeof cb === "function") {
38
33
  if (typeof optionsOrCb !== "object")
39
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
35
  this.send(command, optionsOrCb || {}, cb);
41
36
  }
42
37
  else {
43
38
  return this.send(command, optionsOrCb);
44
39
  }
45
- };
46
- Detective.prototype.batchGetGraphMemberDatasources = function (args, optionsOrCb, cb) {
47
- var command = new BatchGetGraphMemberDatasourcesCommand(args);
40
+ }
41
+ batchGetGraphMemberDatasources(args, optionsOrCb, cb) {
42
+ const command = new BatchGetGraphMemberDatasourcesCommand(args);
48
43
  if (typeof optionsOrCb === "function") {
49
44
  this.send(command, optionsOrCb);
50
45
  }
51
46
  else if (typeof cb === "function") {
52
47
  if (typeof optionsOrCb !== "object")
53
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
49
  this.send(command, optionsOrCb || {}, cb);
55
50
  }
56
51
  else {
57
52
  return this.send(command, optionsOrCb);
58
53
  }
59
- };
60
- Detective.prototype.batchGetMembershipDatasources = function (args, optionsOrCb, cb) {
61
- var command = new BatchGetMembershipDatasourcesCommand(args);
54
+ }
55
+ batchGetMembershipDatasources(args, optionsOrCb, cb) {
56
+ const command = new BatchGetMembershipDatasourcesCommand(args);
62
57
  if (typeof optionsOrCb === "function") {
63
58
  this.send(command, optionsOrCb);
64
59
  }
65
60
  else if (typeof cb === "function") {
66
61
  if (typeof optionsOrCb !== "object")
67
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
63
  this.send(command, optionsOrCb || {}, cb);
69
64
  }
70
65
  else {
71
66
  return this.send(command, optionsOrCb);
72
67
  }
73
- };
74
- Detective.prototype.createGraph = function (args, optionsOrCb, cb) {
75
- var command = new CreateGraphCommand(args);
68
+ }
69
+ createGraph(args, optionsOrCb, cb) {
70
+ const command = new CreateGraphCommand(args);
76
71
  if (typeof optionsOrCb === "function") {
77
72
  this.send(command, optionsOrCb);
78
73
  }
79
74
  else if (typeof cb === "function") {
80
75
  if (typeof optionsOrCb !== "object")
81
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
77
  this.send(command, optionsOrCb || {}, cb);
83
78
  }
84
79
  else {
85
80
  return this.send(command, optionsOrCb);
86
81
  }
87
- };
88
- Detective.prototype.createMembers = function (args, optionsOrCb, cb) {
89
- var command = new CreateMembersCommand(args);
82
+ }
83
+ createMembers(args, optionsOrCb, cb) {
84
+ const command = new CreateMembersCommand(args);
90
85
  if (typeof optionsOrCb === "function") {
91
86
  this.send(command, optionsOrCb);
92
87
  }
93
88
  else if (typeof cb === "function") {
94
89
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
91
  this.send(command, optionsOrCb || {}, cb);
97
92
  }
98
93
  else {
99
94
  return this.send(command, optionsOrCb);
100
95
  }
101
- };
102
- Detective.prototype.deleteGraph = function (args, optionsOrCb, cb) {
103
- var command = new DeleteGraphCommand(args);
96
+ }
97
+ deleteGraph(args, optionsOrCb, cb) {
98
+ const command = new DeleteGraphCommand(args);
104
99
  if (typeof optionsOrCb === "function") {
105
100
  this.send(command, optionsOrCb);
106
101
  }
107
102
  else if (typeof cb === "function") {
108
103
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
105
  this.send(command, optionsOrCb || {}, cb);
111
106
  }
112
107
  else {
113
108
  return this.send(command, optionsOrCb);
114
109
  }
115
- };
116
- Detective.prototype.deleteMembers = function (args, optionsOrCb, cb) {
117
- var command = new DeleteMembersCommand(args);
110
+ }
111
+ deleteMembers(args, optionsOrCb, cb) {
112
+ const command = new DeleteMembersCommand(args);
118
113
  if (typeof optionsOrCb === "function") {
119
114
  this.send(command, optionsOrCb);
120
115
  }
121
116
  else if (typeof cb === "function") {
122
117
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
119
  this.send(command, optionsOrCb || {}, cb);
125
120
  }
126
121
  else {
127
122
  return this.send(command, optionsOrCb);
128
123
  }
129
- };
130
- Detective.prototype.describeOrganizationConfiguration = function (args, optionsOrCb, cb) {
131
- var command = new DescribeOrganizationConfigurationCommand(args);
124
+ }
125
+ describeOrganizationConfiguration(args, optionsOrCb, cb) {
126
+ const command = new DescribeOrganizationConfigurationCommand(args);
132
127
  if (typeof optionsOrCb === "function") {
133
128
  this.send(command, optionsOrCb);
134
129
  }
135
130
  else if (typeof cb === "function") {
136
131
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
133
  this.send(command, optionsOrCb || {}, cb);
139
134
  }
140
135
  else {
141
136
  return this.send(command, optionsOrCb);
142
137
  }
143
- };
144
- Detective.prototype.disableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
145
- var command = new DisableOrganizationAdminAccountCommand(args);
138
+ }
139
+ disableOrganizationAdminAccount(args, optionsOrCb, cb) {
140
+ const command = new DisableOrganizationAdminAccountCommand(args);
146
141
  if (typeof optionsOrCb === "function") {
147
142
  this.send(command, optionsOrCb);
148
143
  }
149
144
  else if (typeof cb === "function") {
150
145
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
147
  this.send(command, optionsOrCb || {}, cb);
153
148
  }
154
149
  else {
155
150
  return this.send(command, optionsOrCb);
156
151
  }
157
- };
158
- Detective.prototype.disassociateMembership = function (args, optionsOrCb, cb) {
159
- var command = new DisassociateMembershipCommand(args);
152
+ }
153
+ disassociateMembership(args, optionsOrCb, cb) {
154
+ const command = new DisassociateMembershipCommand(args);
160
155
  if (typeof optionsOrCb === "function") {
161
156
  this.send(command, optionsOrCb);
162
157
  }
163
158
  else if (typeof cb === "function") {
164
159
  if (typeof optionsOrCb !== "object")
165
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
161
  this.send(command, optionsOrCb || {}, cb);
167
162
  }
168
163
  else {
169
164
  return this.send(command, optionsOrCb);
170
165
  }
171
- };
172
- Detective.prototype.enableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
173
- var command = new EnableOrganizationAdminAccountCommand(args);
166
+ }
167
+ enableOrganizationAdminAccount(args, optionsOrCb, cb) {
168
+ const command = new EnableOrganizationAdminAccountCommand(args);
174
169
  if (typeof optionsOrCb === "function") {
175
170
  this.send(command, optionsOrCb);
176
171
  }
177
172
  else if (typeof cb === "function") {
178
173
  if (typeof optionsOrCb !== "object")
179
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
175
  this.send(command, optionsOrCb || {}, cb);
181
176
  }
182
177
  else {
183
178
  return this.send(command, optionsOrCb);
184
179
  }
185
- };
186
- Detective.prototype.getMembers = function (args, optionsOrCb, cb) {
187
- var command = new GetMembersCommand(args);
180
+ }
181
+ getMembers(args, optionsOrCb, cb) {
182
+ const command = new GetMembersCommand(args);
188
183
  if (typeof optionsOrCb === "function") {
189
184
  this.send(command, optionsOrCb);
190
185
  }
191
186
  else if (typeof cb === "function") {
192
187
  if (typeof optionsOrCb !== "object")
193
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
189
  this.send(command, optionsOrCb || {}, cb);
195
190
  }
196
191
  else {
197
192
  return this.send(command, optionsOrCb);
198
193
  }
199
- };
200
- Detective.prototype.listDatasourcePackages = function (args, optionsOrCb, cb) {
201
- var command = new ListDatasourcePackagesCommand(args);
194
+ }
195
+ listDatasourcePackages(args, optionsOrCb, cb) {
196
+ const command = new ListDatasourcePackagesCommand(args);
202
197
  if (typeof optionsOrCb === "function") {
203
198
  this.send(command, optionsOrCb);
204
199
  }
205
200
  else if (typeof cb === "function") {
206
201
  if (typeof optionsOrCb !== "object")
207
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
203
  this.send(command, optionsOrCb || {}, cb);
209
204
  }
210
205
  else {
211
206
  return this.send(command, optionsOrCb);
212
207
  }
213
- };
214
- Detective.prototype.listGraphs = function (args, optionsOrCb, cb) {
215
- var command = new ListGraphsCommand(args);
208
+ }
209
+ listGraphs(args, optionsOrCb, cb) {
210
+ const command = new ListGraphsCommand(args);
216
211
  if (typeof optionsOrCb === "function") {
217
212
  this.send(command, optionsOrCb);
218
213
  }
219
214
  else if (typeof cb === "function") {
220
215
  if (typeof optionsOrCb !== "object")
221
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
217
  this.send(command, optionsOrCb || {}, cb);
223
218
  }
224
219
  else {
225
220
  return this.send(command, optionsOrCb);
226
221
  }
227
- };
228
- Detective.prototype.listInvitations = function (args, optionsOrCb, cb) {
229
- var command = new ListInvitationsCommand(args);
222
+ }
223
+ listInvitations(args, optionsOrCb, cb) {
224
+ const command = new ListInvitationsCommand(args);
230
225
  if (typeof optionsOrCb === "function") {
231
226
  this.send(command, optionsOrCb);
232
227
  }
233
228
  else if (typeof cb === "function") {
234
229
  if (typeof optionsOrCb !== "object")
235
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
231
  this.send(command, optionsOrCb || {}, cb);
237
232
  }
238
233
  else {
239
234
  return this.send(command, optionsOrCb);
240
235
  }
241
- };
242
- Detective.prototype.listMembers = function (args, optionsOrCb, cb) {
243
- var command = new ListMembersCommand(args);
236
+ }
237
+ listMembers(args, optionsOrCb, cb) {
238
+ const command = new ListMembersCommand(args);
244
239
  if (typeof optionsOrCb === "function") {
245
240
  this.send(command, optionsOrCb);
246
241
  }
247
242
  else if (typeof cb === "function") {
248
243
  if (typeof optionsOrCb !== "object")
249
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
245
  this.send(command, optionsOrCb || {}, cb);
251
246
  }
252
247
  else {
253
248
  return this.send(command, optionsOrCb);
254
249
  }
255
- };
256
- Detective.prototype.listOrganizationAdminAccounts = function (args, optionsOrCb, cb) {
257
- var command = new ListOrganizationAdminAccountsCommand(args);
250
+ }
251
+ listOrganizationAdminAccounts(args, optionsOrCb, cb) {
252
+ const command = new ListOrganizationAdminAccountsCommand(args);
258
253
  if (typeof optionsOrCb === "function") {
259
254
  this.send(command, optionsOrCb);
260
255
  }
261
256
  else if (typeof cb === "function") {
262
257
  if (typeof optionsOrCb !== "object")
263
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
259
  this.send(command, optionsOrCb || {}, cb);
265
260
  }
266
261
  else {
267
262
  return this.send(command, optionsOrCb);
268
263
  }
269
- };
270
- Detective.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
271
- var command = new ListTagsForResourceCommand(args);
264
+ }
265
+ listTagsForResource(args, optionsOrCb, cb) {
266
+ const command = new ListTagsForResourceCommand(args);
272
267
  if (typeof optionsOrCb === "function") {
273
268
  this.send(command, optionsOrCb);
274
269
  }
275
270
  else if (typeof cb === "function") {
276
271
  if (typeof optionsOrCb !== "object")
277
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
273
  this.send(command, optionsOrCb || {}, cb);
279
274
  }
280
275
  else {
281
276
  return this.send(command, optionsOrCb);
282
277
  }
283
- };
284
- Detective.prototype.rejectInvitation = function (args, optionsOrCb, cb) {
285
- var command = new RejectInvitationCommand(args);
278
+ }
279
+ rejectInvitation(args, optionsOrCb, cb) {
280
+ const command = new RejectInvitationCommand(args);
286
281
  if (typeof optionsOrCb === "function") {
287
282
  this.send(command, optionsOrCb);
288
283
  }
289
284
  else if (typeof cb === "function") {
290
285
  if (typeof optionsOrCb !== "object")
291
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
287
  this.send(command, optionsOrCb || {}, cb);
293
288
  }
294
289
  else {
295
290
  return this.send(command, optionsOrCb);
296
291
  }
297
- };
298
- Detective.prototype.startMonitoringMember = function (args, optionsOrCb, cb) {
299
- var command = new StartMonitoringMemberCommand(args);
292
+ }
293
+ startMonitoringMember(args, optionsOrCb, cb) {
294
+ const command = new StartMonitoringMemberCommand(args);
300
295
  if (typeof optionsOrCb === "function") {
301
296
  this.send(command, optionsOrCb);
302
297
  }
303
298
  else if (typeof cb === "function") {
304
299
  if (typeof optionsOrCb !== "object")
305
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
301
  this.send(command, optionsOrCb || {}, cb);
307
302
  }
308
303
  else {
309
304
  return this.send(command, optionsOrCb);
310
305
  }
311
- };
312
- Detective.prototype.tagResource = function (args, optionsOrCb, cb) {
313
- var command = new TagResourceCommand(args);
306
+ }
307
+ tagResource(args, optionsOrCb, cb) {
308
+ const command = new TagResourceCommand(args);
314
309
  if (typeof optionsOrCb === "function") {
315
310
  this.send(command, optionsOrCb);
316
311
  }
317
312
  else if (typeof cb === "function") {
318
313
  if (typeof optionsOrCb !== "object")
319
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
315
  this.send(command, optionsOrCb || {}, cb);
321
316
  }
322
317
  else {
323
318
  return this.send(command, optionsOrCb);
324
319
  }
325
- };
326
- Detective.prototype.untagResource = function (args, optionsOrCb, cb) {
327
- var command = new UntagResourceCommand(args);
320
+ }
321
+ untagResource(args, optionsOrCb, cb) {
322
+ const command = new UntagResourceCommand(args);
328
323
  if (typeof optionsOrCb === "function") {
329
324
  this.send(command, optionsOrCb);
330
325
  }
331
326
  else if (typeof cb === "function") {
332
327
  if (typeof optionsOrCb !== "object")
333
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
329
  this.send(command, optionsOrCb || {}, cb);
335
330
  }
336
331
  else {
337
332
  return this.send(command, optionsOrCb);
338
333
  }
339
- };
340
- Detective.prototype.updateDatasourcePackages = function (args, optionsOrCb, cb) {
341
- var command = new UpdateDatasourcePackagesCommand(args);
334
+ }
335
+ updateDatasourcePackages(args, optionsOrCb, cb) {
336
+ const command = new UpdateDatasourcePackagesCommand(args);
342
337
  if (typeof optionsOrCb === "function") {
343
338
  this.send(command, optionsOrCb);
344
339
  }
345
340
  else if (typeof cb === "function") {
346
341
  if (typeof optionsOrCb !== "object")
347
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
343
  this.send(command, optionsOrCb || {}, cb);
349
344
  }
350
345
  else {
351
346
  return this.send(command, optionsOrCb);
352
347
  }
353
- };
354
- Detective.prototype.updateOrganizationConfiguration = function (args, optionsOrCb, cb) {
355
- var command = new UpdateOrganizationConfigurationCommand(args);
348
+ }
349
+ updateOrganizationConfiguration(args, optionsOrCb, cb) {
350
+ const command = new UpdateOrganizationConfigurationCommand(args);
356
351
  if (typeof optionsOrCb === "function") {
357
352
  this.send(command, optionsOrCb);
358
353
  }
359
354
  else if (typeof cb === "function") {
360
355
  if (typeof optionsOrCb !== "object")
361
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
356
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
357
  this.send(command, optionsOrCb || {}, cb);
363
358
  }
364
359
  else {
365
360
  return this.send(command, optionsOrCb);
366
361
  }
367
- };
368
- return Detective;
369
- }(DetectiveClient));
370
- export { Detective };
362
+ }
363
+ }
@@ -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 DetectiveClient = (function (_super) {
13
- __extends(DetectiveClient, _super);
14
- function DetectiveClient(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 DetectiveClient 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
- DetectiveClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return DetectiveClient;
38
- }(__Client));
39
- export { DetectiveClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AcceptInvitationRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AcceptInvitationCommand, serializeAws_restJson1AcceptInvitationCommand, } from "../protocols/Aws_restJson1";
6
- var AcceptInvitationCommand = (function (_super) {
7
- __extends(AcceptInvitationCommand, _super);
8
- function AcceptInvitationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AcceptInvitationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AcceptInvitationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "AcceptInvitationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "AcceptInvitationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AcceptInvitationRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AcceptInvitationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AcceptInvitationCommand(input, context);
33
- };
34
- AcceptInvitationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AcceptInvitationCommand(output, context);
36
- };
37
- return AcceptInvitationCommand;
38
- }($Command));
39
- export { AcceptInvitationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchGetGraphMemberDatasourcesRequestFilterSensitiveLog, BatchGetGraphMemberDatasourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand, serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand, } from "../protocols/Aws_restJson1";
6
- var BatchGetGraphMemberDatasourcesCommand = (function (_super) {
7
- __extends(BatchGetGraphMemberDatasourcesCommand, _super);
8
- function BatchGetGraphMemberDatasourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchGetGraphMemberDatasourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchGetGraphMemberDatasourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "BatchGetGraphMemberDatasourcesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "BatchGetGraphMemberDatasourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchGetGraphMemberDatasourcesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchGetGraphMemberDatasourcesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchGetGraphMemberDatasourcesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand(input, context);
33
- };
34
- BatchGetGraphMemberDatasourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand(output, context);
36
- };
37
- return BatchGetGraphMemberDatasourcesCommand;
38
- }($Command));
39
- export { BatchGetGraphMemberDatasourcesCommand };
31
+ }
32
+ }