@aws-sdk/client-detective 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Detective = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AcceptInvitationCommand_1 = require("./commands/AcceptInvitationCommand");
5
6
  const BatchGetGraphMemberDatasourcesCommand_1 = require("./commands/BatchGetGraphMemberDatasourcesCommand");
6
7
  const BatchGetMembershipDatasourcesCommand_1 = require("./commands/BatchGetMembershipDatasourcesCommand");
@@ -26,342 +27,33 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
26
27
  const UpdateDatasourcePackagesCommand_1 = require("./commands/UpdateDatasourcePackagesCommand");
27
28
  const UpdateOrganizationConfigurationCommand_1 = require("./commands/UpdateOrganizationConfigurationCommand");
28
29
  const DetectiveClient_1 = require("./DetectiveClient");
30
+ const commands = {
31
+ AcceptInvitationCommand: AcceptInvitationCommand_1.AcceptInvitationCommand,
32
+ BatchGetGraphMemberDatasourcesCommand: BatchGetGraphMemberDatasourcesCommand_1.BatchGetGraphMemberDatasourcesCommand,
33
+ BatchGetMembershipDatasourcesCommand: BatchGetMembershipDatasourcesCommand_1.BatchGetMembershipDatasourcesCommand,
34
+ CreateGraphCommand: CreateGraphCommand_1.CreateGraphCommand,
35
+ CreateMembersCommand: CreateMembersCommand_1.CreateMembersCommand,
36
+ DeleteGraphCommand: DeleteGraphCommand_1.DeleteGraphCommand,
37
+ DeleteMembersCommand: DeleteMembersCommand_1.DeleteMembersCommand,
38
+ DescribeOrganizationConfigurationCommand: DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand,
39
+ DisableOrganizationAdminAccountCommand: DisableOrganizationAdminAccountCommand_1.DisableOrganizationAdminAccountCommand,
40
+ DisassociateMembershipCommand: DisassociateMembershipCommand_1.DisassociateMembershipCommand,
41
+ EnableOrganizationAdminAccountCommand: EnableOrganizationAdminAccountCommand_1.EnableOrganizationAdminAccountCommand,
42
+ GetMembersCommand: GetMembersCommand_1.GetMembersCommand,
43
+ ListDatasourcePackagesCommand: ListDatasourcePackagesCommand_1.ListDatasourcePackagesCommand,
44
+ ListGraphsCommand: ListGraphsCommand_1.ListGraphsCommand,
45
+ ListInvitationsCommand: ListInvitationsCommand_1.ListInvitationsCommand,
46
+ ListMembersCommand: ListMembersCommand_1.ListMembersCommand,
47
+ ListOrganizationAdminAccountsCommand: ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand,
48
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
49
+ RejectInvitationCommand: RejectInvitationCommand_1.RejectInvitationCommand,
50
+ StartMonitoringMemberCommand: StartMonitoringMemberCommand_1.StartMonitoringMemberCommand,
51
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
52
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
53
+ UpdateDatasourcePackagesCommand: UpdateDatasourcePackagesCommand_1.UpdateDatasourcePackagesCommand,
54
+ UpdateOrganizationConfigurationCommand: UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand,
55
+ };
29
56
  class Detective extends DetectiveClient_1.DetectiveClient {
30
- acceptInvitation(args, optionsOrCb, cb) {
31
- const command = new AcceptInvitationCommand_1.AcceptInvitationCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- batchGetGraphMemberDatasources(args, optionsOrCb, cb) {
45
- const command = new BatchGetGraphMemberDatasourcesCommand_1.BatchGetGraphMemberDatasourcesCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- batchGetMembershipDatasources(args, optionsOrCb, cb) {
59
- const command = new BatchGetMembershipDatasourcesCommand_1.BatchGetMembershipDatasourcesCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- createGraph(args, optionsOrCb, cb) {
73
- const command = new CreateGraphCommand_1.CreateGraphCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- createMembers(args, optionsOrCb, cb) {
87
- const command = new CreateMembersCommand_1.CreateMembersCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- deleteGraph(args, optionsOrCb, cb) {
101
- const command = new DeleteGraphCommand_1.DeleteGraphCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- deleteMembers(args, optionsOrCb, cb) {
115
- const command = new DeleteMembersCommand_1.DeleteMembersCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- describeOrganizationConfiguration(args, optionsOrCb, cb) {
129
- const command = new DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- disableOrganizationAdminAccount(args, optionsOrCb, cb) {
143
- const command = new DisableOrganizationAdminAccountCommand_1.DisableOrganizationAdminAccountCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- disassociateMembership(args, optionsOrCb, cb) {
157
- const command = new DisassociateMembershipCommand_1.DisassociateMembershipCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- enableOrganizationAdminAccount(args, optionsOrCb, cb) {
171
- const command = new EnableOrganizationAdminAccountCommand_1.EnableOrganizationAdminAccountCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- getMembers(args, optionsOrCb, cb) {
185
- const command = new GetMembersCommand_1.GetMembersCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
- listDatasourcePackages(args, optionsOrCb, cb) {
199
- const command = new ListDatasourcePackagesCommand_1.ListDatasourcePackagesCommand(args);
200
- if (typeof optionsOrCb === "function") {
201
- this.send(command, optionsOrCb);
202
- }
203
- else if (typeof cb === "function") {
204
- if (typeof optionsOrCb !== "object")
205
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
- this.send(command, optionsOrCb || {}, cb);
207
- }
208
- else {
209
- return this.send(command, optionsOrCb);
210
- }
211
- }
212
- listGraphs(args, optionsOrCb, cb) {
213
- const command = new ListGraphsCommand_1.ListGraphsCommand(args);
214
- if (typeof optionsOrCb === "function") {
215
- this.send(command, optionsOrCb);
216
- }
217
- else if (typeof cb === "function") {
218
- if (typeof optionsOrCb !== "object")
219
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
- this.send(command, optionsOrCb || {}, cb);
221
- }
222
- else {
223
- return this.send(command, optionsOrCb);
224
- }
225
- }
226
- listInvitations(args, optionsOrCb, cb) {
227
- const command = new ListInvitationsCommand_1.ListInvitationsCommand(args);
228
- if (typeof optionsOrCb === "function") {
229
- this.send(command, optionsOrCb);
230
- }
231
- else if (typeof cb === "function") {
232
- if (typeof optionsOrCb !== "object")
233
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
- this.send(command, optionsOrCb || {}, cb);
235
- }
236
- else {
237
- return this.send(command, optionsOrCb);
238
- }
239
- }
240
- listMembers(args, optionsOrCb, cb) {
241
- const command = new ListMembersCommand_1.ListMembersCommand(args);
242
- if (typeof optionsOrCb === "function") {
243
- this.send(command, optionsOrCb);
244
- }
245
- else if (typeof cb === "function") {
246
- if (typeof optionsOrCb !== "object")
247
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
- this.send(command, optionsOrCb || {}, cb);
249
- }
250
- else {
251
- return this.send(command, optionsOrCb);
252
- }
253
- }
254
- listOrganizationAdminAccounts(args, optionsOrCb, cb) {
255
- const command = new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(args);
256
- if (typeof optionsOrCb === "function") {
257
- this.send(command, optionsOrCb);
258
- }
259
- else if (typeof cb === "function") {
260
- if (typeof optionsOrCb !== "object")
261
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
- this.send(command, optionsOrCb || {}, cb);
263
- }
264
- else {
265
- return this.send(command, optionsOrCb);
266
- }
267
- }
268
- listTagsForResource(args, optionsOrCb, cb) {
269
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
270
- if (typeof optionsOrCb === "function") {
271
- this.send(command, optionsOrCb);
272
- }
273
- else if (typeof cb === "function") {
274
- if (typeof optionsOrCb !== "object")
275
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
- this.send(command, optionsOrCb || {}, cb);
277
- }
278
- else {
279
- return this.send(command, optionsOrCb);
280
- }
281
- }
282
- rejectInvitation(args, optionsOrCb, cb) {
283
- const command = new RejectInvitationCommand_1.RejectInvitationCommand(args);
284
- if (typeof optionsOrCb === "function") {
285
- this.send(command, optionsOrCb);
286
- }
287
- else if (typeof cb === "function") {
288
- if (typeof optionsOrCb !== "object")
289
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
- this.send(command, optionsOrCb || {}, cb);
291
- }
292
- else {
293
- return this.send(command, optionsOrCb);
294
- }
295
- }
296
- startMonitoringMember(args, optionsOrCb, cb) {
297
- const command = new StartMonitoringMemberCommand_1.StartMonitoringMemberCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- }
301
- else if (typeof cb === "function") {
302
- if (typeof optionsOrCb !== "object")
303
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- }
306
- else {
307
- return this.send(command, optionsOrCb);
308
- }
309
- }
310
- tagResource(args, optionsOrCb, cb) {
311
- const command = new TagResourceCommand_1.TagResourceCommand(args);
312
- if (typeof optionsOrCb === "function") {
313
- this.send(command, optionsOrCb);
314
- }
315
- else if (typeof cb === "function") {
316
- if (typeof optionsOrCb !== "object")
317
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
- this.send(command, optionsOrCb || {}, cb);
319
- }
320
- else {
321
- return this.send(command, optionsOrCb);
322
- }
323
- }
324
- untagResource(args, optionsOrCb, cb) {
325
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
326
- if (typeof optionsOrCb === "function") {
327
- this.send(command, optionsOrCb);
328
- }
329
- else if (typeof cb === "function") {
330
- if (typeof optionsOrCb !== "object")
331
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- }
334
- else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
- updateDatasourcePackages(args, optionsOrCb, cb) {
339
- const command = new UpdateDatasourcePackagesCommand_1.UpdateDatasourcePackagesCommand(args);
340
- if (typeof optionsOrCb === "function") {
341
- this.send(command, optionsOrCb);
342
- }
343
- else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object")
345
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
- this.send(command, optionsOrCb || {}, cb);
347
- }
348
- else {
349
- return this.send(command, optionsOrCb);
350
- }
351
- }
352
- updateOrganizationConfiguration(args, optionsOrCb, cb) {
353
- const command = new UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand(args);
354
- if (typeof optionsOrCb === "function") {
355
- this.send(command, optionsOrCb);
356
- }
357
- else if (typeof cb === "function") {
358
- if (typeof optionsOrCb !== "object")
359
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
- this.send(command, optionsOrCb || {}, cb);
361
- }
362
- else {
363
- return this.send(command, optionsOrCb);
364
- }
365
- }
366
57
  }
367
58
  exports.Detective = Detective;
59
+ (0, smithy_client_1.createAggregatedClient)(commands, Detective);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
2
3
  import { BatchGetGraphMemberDatasourcesCommand, } from "./commands/BatchGetGraphMemberDatasourcesCommand";
3
4
  import { BatchGetMembershipDatasourcesCommand, } from "./commands/BatchGetMembershipDatasourcesCommand";
@@ -23,341 +24,32 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
24
  import { UpdateDatasourcePackagesCommand, } from "./commands/UpdateDatasourcePackagesCommand";
24
25
  import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
25
26
  import { DetectiveClient } from "./DetectiveClient";
27
+ const commands = {
28
+ AcceptInvitationCommand,
29
+ BatchGetGraphMemberDatasourcesCommand,
30
+ BatchGetMembershipDatasourcesCommand,
31
+ CreateGraphCommand,
32
+ CreateMembersCommand,
33
+ DeleteGraphCommand,
34
+ DeleteMembersCommand,
35
+ DescribeOrganizationConfigurationCommand,
36
+ DisableOrganizationAdminAccountCommand,
37
+ DisassociateMembershipCommand,
38
+ EnableOrganizationAdminAccountCommand,
39
+ GetMembersCommand,
40
+ ListDatasourcePackagesCommand,
41
+ ListGraphsCommand,
42
+ ListInvitationsCommand,
43
+ ListMembersCommand,
44
+ ListOrganizationAdminAccountsCommand,
45
+ ListTagsForResourceCommand,
46
+ RejectInvitationCommand,
47
+ StartMonitoringMemberCommand,
48
+ TagResourceCommand,
49
+ UntagResourceCommand,
50
+ UpdateDatasourcePackagesCommand,
51
+ UpdateOrganizationConfigurationCommand,
52
+ };
26
53
  export class Detective extends DetectiveClient {
27
- acceptInvitation(args, optionsOrCb, cb) {
28
- const command = new AcceptInvitationCommand(args);
29
- if (typeof optionsOrCb === "function") {
30
- this.send(command, optionsOrCb);
31
- }
32
- else if (typeof cb === "function") {
33
- if (typeof optionsOrCb !== "object")
34
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
- this.send(command, optionsOrCb || {}, cb);
36
- }
37
- else {
38
- return this.send(command, optionsOrCb);
39
- }
40
- }
41
- batchGetGraphMemberDatasources(args, optionsOrCb, cb) {
42
- const command = new BatchGetGraphMemberDatasourcesCommand(args);
43
- if (typeof optionsOrCb === "function") {
44
- this.send(command, optionsOrCb);
45
- }
46
- else if (typeof cb === "function") {
47
- if (typeof optionsOrCb !== "object")
48
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
- this.send(command, optionsOrCb || {}, cb);
50
- }
51
- else {
52
- return this.send(command, optionsOrCb);
53
- }
54
- }
55
- batchGetMembershipDatasources(args, optionsOrCb, cb) {
56
- const command = new BatchGetMembershipDatasourcesCommand(args);
57
- if (typeof optionsOrCb === "function") {
58
- this.send(command, optionsOrCb);
59
- }
60
- else if (typeof cb === "function") {
61
- if (typeof optionsOrCb !== "object")
62
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
- this.send(command, optionsOrCb || {}, cb);
64
- }
65
- else {
66
- return this.send(command, optionsOrCb);
67
- }
68
- }
69
- createGraph(args, optionsOrCb, cb) {
70
- const command = new CreateGraphCommand(args);
71
- if (typeof optionsOrCb === "function") {
72
- this.send(command, optionsOrCb);
73
- }
74
- else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- }
79
- else {
80
- return this.send(command, optionsOrCb);
81
- }
82
- }
83
- createMembers(args, optionsOrCb, cb) {
84
- const command = new CreateMembersCommand(args);
85
- if (typeof optionsOrCb === "function") {
86
- this.send(command, optionsOrCb);
87
- }
88
- else if (typeof cb === "function") {
89
- if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
- this.send(command, optionsOrCb || {}, cb);
92
- }
93
- else {
94
- return this.send(command, optionsOrCb);
95
- }
96
- }
97
- deleteGraph(args, optionsOrCb, cb) {
98
- const command = new DeleteGraphCommand(args);
99
- if (typeof optionsOrCb === "function") {
100
- this.send(command, optionsOrCb);
101
- }
102
- else if (typeof cb === "function") {
103
- if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
- this.send(command, optionsOrCb || {}, cb);
106
- }
107
- else {
108
- return this.send(command, optionsOrCb);
109
- }
110
- }
111
- deleteMembers(args, optionsOrCb, cb) {
112
- const command = new DeleteMembersCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- }
116
- else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
- this.send(command, optionsOrCb || {}, cb);
120
- }
121
- else {
122
- return this.send(command, optionsOrCb);
123
- }
124
- }
125
- describeOrganizationConfiguration(args, optionsOrCb, cb) {
126
- const command = new DescribeOrganizationConfigurationCommand(args);
127
- if (typeof optionsOrCb === "function") {
128
- this.send(command, optionsOrCb);
129
- }
130
- else if (typeof cb === "function") {
131
- if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- }
135
- else {
136
- return this.send(command, optionsOrCb);
137
- }
138
- }
139
- disableOrganizationAdminAccount(args, optionsOrCb, cb) {
140
- const command = new DisableOrganizationAdminAccountCommand(args);
141
- if (typeof optionsOrCb === "function") {
142
- this.send(command, optionsOrCb);
143
- }
144
- else if (typeof cb === "function") {
145
- if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
- this.send(command, optionsOrCb || {}, cb);
148
- }
149
- else {
150
- return this.send(command, optionsOrCb);
151
- }
152
- }
153
- disassociateMembership(args, optionsOrCb, cb) {
154
- const command = new DisassociateMembershipCommand(args);
155
- if (typeof optionsOrCb === "function") {
156
- this.send(command, optionsOrCb);
157
- }
158
- else if (typeof cb === "function") {
159
- if (typeof optionsOrCb !== "object")
160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
- this.send(command, optionsOrCb || {}, cb);
162
- }
163
- else {
164
- return this.send(command, optionsOrCb);
165
- }
166
- }
167
- enableOrganizationAdminAccount(args, optionsOrCb, cb) {
168
- const command = new EnableOrganizationAdminAccountCommand(args);
169
- if (typeof optionsOrCb === "function") {
170
- this.send(command, optionsOrCb);
171
- }
172
- else if (typeof cb === "function") {
173
- if (typeof optionsOrCb !== "object")
174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
- this.send(command, optionsOrCb || {}, cb);
176
- }
177
- else {
178
- return this.send(command, optionsOrCb);
179
- }
180
- }
181
- getMembers(args, optionsOrCb, cb) {
182
- const command = new GetMembersCommand(args);
183
- if (typeof optionsOrCb === "function") {
184
- this.send(command, optionsOrCb);
185
- }
186
- else if (typeof cb === "function") {
187
- if (typeof optionsOrCb !== "object")
188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
- this.send(command, optionsOrCb || {}, cb);
190
- }
191
- else {
192
- return this.send(command, optionsOrCb);
193
- }
194
- }
195
- listDatasourcePackages(args, optionsOrCb, cb) {
196
- const command = new ListDatasourcePackagesCommand(args);
197
- if (typeof optionsOrCb === "function") {
198
- this.send(command, optionsOrCb);
199
- }
200
- else if (typeof cb === "function") {
201
- if (typeof optionsOrCb !== "object")
202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
- this.send(command, optionsOrCb || {}, cb);
204
- }
205
- else {
206
- return this.send(command, optionsOrCb);
207
- }
208
- }
209
- listGraphs(args, optionsOrCb, cb) {
210
- const command = new ListGraphsCommand(args);
211
- if (typeof optionsOrCb === "function") {
212
- this.send(command, optionsOrCb);
213
- }
214
- else if (typeof cb === "function") {
215
- if (typeof optionsOrCb !== "object")
216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
- this.send(command, optionsOrCb || {}, cb);
218
- }
219
- else {
220
- return this.send(command, optionsOrCb);
221
- }
222
- }
223
- listInvitations(args, optionsOrCb, cb) {
224
- const command = new ListInvitationsCommand(args);
225
- if (typeof optionsOrCb === "function") {
226
- this.send(command, optionsOrCb);
227
- }
228
- else if (typeof cb === "function") {
229
- if (typeof optionsOrCb !== "object")
230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
- this.send(command, optionsOrCb || {}, cb);
232
- }
233
- else {
234
- return this.send(command, optionsOrCb);
235
- }
236
- }
237
- listMembers(args, optionsOrCb, cb) {
238
- const command = new ListMembersCommand(args);
239
- if (typeof optionsOrCb === "function") {
240
- this.send(command, optionsOrCb);
241
- }
242
- else if (typeof cb === "function") {
243
- if (typeof optionsOrCb !== "object")
244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
- this.send(command, optionsOrCb || {}, cb);
246
- }
247
- else {
248
- return this.send(command, optionsOrCb);
249
- }
250
- }
251
- listOrganizationAdminAccounts(args, optionsOrCb, cb) {
252
- const command = new ListOrganizationAdminAccountsCommand(args);
253
- if (typeof optionsOrCb === "function") {
254
- this.send(command, optionsOrCb);
255
- }
256
- else if (typeof cb === "function") {
257
- if (typeof optionsOrCb !== "object")
258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
- this.send(command, optionsOrCb || {}, cb);
260
- }
261
- else {
262
- return this.send(command, optionsOrCb);
263
- }
264
- }
265
- listTagsForResource(args, optionsOrCb, cb) {
266
- const command = new ListTagsForResourceCommand(args);
267
- if (typeof optionsOrCb === "function") {
268
- this.send(command, optionsOrCb);
269
- }
270
- else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object")
272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
- this.send(command, optionsOrCb || {}, cb);
274
- }
275
- else {
276
- return this.send(command, optionsOrCb);
277
- }
278
- }
279
- rejectInvitation(args, optionsOrCb, cb) {
280
- const command = new RejectInvitationCommand(args);
281
- if (typeof optionsOrCb === "function") {
282
- this.send(command, optionsOrCb);
283
- }
284
- else if (typeof cb === "function") {
285
- if (typeof optionsOrCb !== "object")
286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
- this.send(command, optionsOrCb || {}, cb);
288
- }
289
- else {
290
- return this.send(command, optionsOrCb);
291
- }
292
- }
293
- startMonitoringMember(args, optionsOrCb, cb) {
294
- const command = new StartMonitoringMemberCommand(args);
295
- if (typeof optionsOrCb === "function") {
296
- this.send(command, optionsOrCb);
297
- }
298
- else if (typeof cb === "function") {
299
- if (typeof optionsOrCb !== "object")
300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
- this.send(command, optionsOrCb || {}, cb);
302
- }
303
- else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
- tagResource(args, optionsOrCb, cb) {
308
- const command = new TagResourceCommand(args);
309
- if (typeof optionsOrCb === "function") {
310
- this.send(command, optionsOrCb);
311
- }
312
- else if (typeof cb === "function") {
313
- if (typeof optionsOrCb !== "object")
314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
- this.send(command, optionsOrCb || {}, cb);
316
- }
317
- else {
318
- return this.send(command, optionsOrCb);
319
- }
320
- }
321
- untagResource(args, optionsOrCb, cb) {
322
- const command = new UntagResourceCommand(args);
323
- if (typeof optionsOrCb === "function") {
324
- this.send(command, optionsOrCb);
325
- }
326
- else if (typeof cb === "function") {
327
- if (typeof optionsOrCb !== "object")
328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
- this.send(command, optionsOrCb || {}, cb);
330
- }
331
- else {
332
- return this.send(command, optionsOrCb);
333
- }
334
- }
335
- updateDatasourcePackages(args, optionsOrCb, cb) {
336
- const command = new UpdateDatasourcePackagesCommand(args);
337
- if (typeof optionsOrCb === "function") {
338
- this.send(command, optionsOrCb);
339
- }
340
- else if (typeof cb === "function") {
341
- if (typeof optionsOrCb !== "object")
342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
343
- this.send(command, optionsOrCb || {}, cb);
344
- }
345
- else {
346
- return this.send(command, optionsOrCb);
347
- }
348
- }
349
- updateOrganizationConfiguration(args, optionsOrCb, cb) {
350
- const command = new UpdateOrganizationConfigurationCommand(args);
351
- if (typeof optionsOrCb === "function") {
352
- this.send(command, optionsOrCb);
353
- }
354
- else if (typeof cb === "function") {
355
- if (typeof optionsOrCb !== "object")
356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
- this.send(command, optionsOrCb || {}, cb);
358
- }
359
- else {
360
- return this.send(command, optionsOrCb);
361
- }
362
- }
363
54
  }
55
+ createAggregatedClient(commands, Detective);
@@ -24,377 +24,230 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
24
24
  import { UpdateDatasourcePackagesCommandInput, UpdateDatasourcePackagesCommandOutput } from "./commands/UpdateDatasourcePackagesCommand";
25
25
  import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
26
26
  import { DetectiveClient } from "./DetectiveClient";
27
- /**
28
- * @public
29
- * <p>Detective uses machine learning and purpose-built visualizations to help you to
30
- * analyze and investigate security issues across your Amazon Web Services (Amazon Web Services) workloads. Detective automatically extracts time-based events such
31
- * as login attempts, API calls, and network traffic from CloudTrail and Amazon Virtual Private Cloud (Amazon VPC) flow logs. It also extracts findings detected by
32
- * Amazon GuardDuty.</p>
33
- * <p>The Detective API primarily supports the creation and management of behavior
34
- * graphs. A behavior graph contains the extracted data from a set of member accounts, and is
35
- * created and managed by an administrator account.</p>
36
- * <p>To add a member account to the behavior graph, the administrator account sends an
37
- * invitation to the account. When the account accepts the invitation, it becomes a member
38
- * account in the behavior graph.</p>
39
- * <p>Detective is also integrated with Organizations. The organization
40
- * management account designates the Detective administrator account for the
41
- * organization. That account becomes the administrator account for the organization behavior
42
- * graph. The Detective administrator account is also the delegated administrator
43
- * account for Detective in Organizations.</p>
44
- * <p>The Detective administrator account can enable any organization account as a
45
- * member account in the organization behavior graph. The organization accounts do not receive
46
- * invitations. The Detective administrator account can also invite other accounts to
47
- * the organization behavior graph.</p>
48
- * <p>Every behavior graph is specific to a Region. You can only use the API to manage
49
- * behavior graphs that belong to the Region that is associated with the currently selected
50
- * endpoint.</p>
51
- * <p>The administrator account for a behavior graph can use the Detective API to do
52
- * the following:</p>
53
- * <ul>
54
- * <li>
55
- * <p>Enable and disable Detective. Enabling Detective creates a new
56
- * behavior graph.</p>
57
- * </li>
58
- * <li>
59
- * <p>View the list of member accounts in a behavior graph.</p>
60
- * </li>
61
- * <li>
62
- * <p>Add member accounts to a behavior graph.</p>
63
- * </li>
64
- * <li>
65
- * <p>Remove member accounts from a behavior graph.</p>
66
- * </li>
67
- * <li>
68
- * <p>Apply tags to a behavior graph.</p>
69
- * </li>
70
- * </ul>
71
- * <p>The organization management account can use the Detective API to select the
72
- * delegated administrator for Detective.</p>
73
- * <p>The Detective administrator account for an organization can use the Detective API to do the following:</p>
74
- * <ul>
75
- * <li>
76
- * <p>Perform all of the functions of an administrator account.</p>
77
- * </li>
78
- * <li>
79
- * <p>Determine whether to automatically enable new organization accounts as member
80
- * accounts in the organization behavior graph.</p>
81
- * </li>
82
- * </ul>
83
- * <p>An invited member account can use the Detective API to do the following:</p>
84
- * <ul>
85
- * <li>
86
- * <p>View the list of behavior graphs that they are invited to.</p>
87
- * </li>
88
- * <li>
89
- * <p>Accept an invitation to contribute to a behavior graph.</p>
90
- * </li>
91
- * <li>
92
- * <p>Decline an invitation to contribute to a behavior graph.</p>
93
- * </li>
94
- * <li>
95
- * <p>Remove their account from a behavior graph.</p>
96
- * </li>
97
- * </ul>
98
- * <p>All API actions are logged as CloudTrail events. See <a href="https://docs.aws.amazon.com/detective/latest/adminguide/logging-using-cloudtrail.html">Logging Detective API Calls with CloudTrail</a>.</p>
99
- * <note>
100
- * <p>We replaced the term "master account" with the term "administrator account." An
101
- * administrator account is used to centrally manage multiple accounts. In the case of
102
- * Detective, the administrator account manages the accounts in their behavior
103
- * graph.</p>
104
- * </note>
105
- */
106
- export declare class Detective extends DetectiveClient {
27
+ export interface Detective {
107
28
  /**
108
- * @public
109
- * <p>Accepts an invitation for the member account to contribute data to a behavior graph.
110
- * This operation can only be called by an invited member account. </p>
111
- * <p>The request provides the ARN of behavior graph.</p>
112
- * <p>The member account status in the graph must be <code>INVITED</code>.</p>
29
+ * @see {@link AcceptInvitationCommand}
113
30
  */
114
31
  acceptInvitation(args: AcceptInvitationCommandInput, options?: __HttpHandlerOptions): Promise<AcceptInvitationCommandOutput>;
115
32
  acceptInvitation(args: AcceptInvitationCommandInput, cb: (err: any, data?: AcceptInvitationCommandOutput) => void): void;
116
33
  acceptInvitation(args: AcceptInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptInvitationCommandOutput) => void): void;
117
34
  /**
118
- * @public
119
- * <p>Gets data source package information for the behavior graph.</p>
35
+ * @see {@link BatchGetGraphMemberDatasourcesCommand}
120
36
  */
121
37
  batchGetGraphMemberDatasources(args: BatchGetGraphMemberDatasourcesCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetGraphMemberDatasourcesCommandOutput>;
122
38
  batchGetGraphMemberDatasources(args: BatchGetGraphMemberDatasourcesCommandInput, cb: (err: any, data?: BatchGetGraphMemberDatasourcesCommandOutput) => void): void;
123
39
  batchGetGraphMemberDatasources(args: BatchGetGraphMemberDatasourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetGraphMemberDatasourcesCommandOutput) => void): void;
124
40
  /**
125
- * @public
126
- * <p>Gets information on the data source package history for an account.</p>
41
+ * @see {@link BatchGetMembershipDatasourcesCommand}
127
42
  */
128
43
  batchGetMembershipDatasources(args: BatchGetMembershipDatasourcesCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetMembershipDatasourcesCommandOutput>;
129
44
  batchGetMembershipDatasources(args: BatchGetMembershipDatasourcesCommandInput, cb: (err: any, data?: BatchGetMembershipDatasourcesCommandOutput) => void): void;
130
45
  batchGetMembershipDatasources(args: BatchGetMembershipDatasourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetMembershipDatasourcesCommandOutput) => void): void;
131
46
  /**
132
- * @public
133
- * <p>Creates a new behavior graph for the calling account, and sets that account as the
134
- * administrator account. This operation is called by the account that is enabling Detective.</p>
135
- * <p>Before you try to enable Detective, make sure that your account has been
136
- * enrolled in Amazon GuardDuty for at least 48 hours. If you do not meet this
137
- * requirement, you cannot enable Detective. If you do meet the GuardDuty
138
- * prerequisite, then when you make the request to enable Detective, it checks
139
- * whether your data volume is within the Detective quota. If it exceeds the quota,
140
- * then you cannot enable Detective. </p>
141
- * <p>The operation also enables Detective for the calling account in the currently
142
- * selected Region. It returns the ARN of the new behavior graph.</p>
143
- * <p>
144
- * <code>CreateGraph</code> triggers a process to create the corresponding data tables for
145
- * the new behavior graph.</p>
146
- * <p>An account can only be the administrator account for one behavior graph within a Region.
147
- * If the same account calls <code>CreateGraph</code> with the same administrator account, it
148
- * always returns the same behavior graph ARN. It does not create a new behavior graph.</p>
47
+ * @see {@link CreateGraphCommand}
149
48
  */
150
49
  createGraph(args: CreateGraphCommandInput, options?: __HttpHandlerOptions): Promise<CreateGraphCommandOutput>;
151
50
  createGraph(args: CreateGraphCommandInput, cb: (err: any, data?: CreateGraphCommandOutput) => void): void;
152
51
  createGraph(args: CreateGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGraphCommandOutput) => void): void;
153
52
  /**
154
- * @public
155
- * <p>
156
- * <code>CreateMembers</code> is used to send invitations to accounts. For the organization
157
- * behavior graph, the Detective administrator account uses
158
- * <code>CreateMembers</code> to enable organization accounts as member accounts.</p>
159
- * <p>For invited accounts, <code>CreateMembers</code> sends a request to invite the specified
160
- * Amazon Web Services accounts to be member accounts in the behavior graph. This operation
161
- * can only be called by the administrator account for a behavior graph. </p>
162
- * <p>
163
- * <code>CreateMembers</code> verifies the accounts and then invites the verified accounts.
164
- * The administrator can optionally specify to not send invitation emails to the member
165
- * accounts. This would be used when the administrator manages their member accounts
166
- * centrally.</p>
167
- * <p>For organization accounts in the organization behavior graph, <code>CreateMembers</code>
168
- * attempts to enable the accounts. The organization accounts do not receive
169
- * invitations.</p>
170
- * <p>The request provides the behavior graph ARN and the list of accounts to invite or to
171
- * enable.</p>
172
- * <p>The response separates the requested accounts into two lists:</p>
173
- * <ul>
174
- * <li>
175
- * <p>The accounts that <code>CreateMembers</code> was able to process. For invited
176
- * accounts, includes member accounts that are being verified, that have passed
177
- * verification and are to be invited, and that have failed verification. For
178
- * organization accounts in the organization behavior graph, includes accounts that can
179
- * be enabled and that cannot be enabled.</p>
180
- * </li>
181
- * <li>
182
- * <p>The accounts that <code>CreateMembers</code> was unable to process. This list
183
- * includes accounts that were already invited to be member accounts in the behavior
184
- * graph.</p>
185
- * </li>
186
- * </ul>
53
+ * @see {@link CreateMembersCommand}
187
54
  */
188
55
  createMembers(args: CreateMembersCommandInput, options?: __HttpHandlerOptions): Promise<CreateMembersCommandOutput>;
189
56
  createMembers(args: CreateMembersCommandInput, cb: (err: any, data?: CreateMembersCommandOutput) => void): void;
190
57
  createMembers(args: CreateMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMembersCommandOutput) => void): void;
191
58
  /**
192
- * @public
193
- * <p>Disables the specified behavior graph and queues it to be deleted. This operation
194
- * removes the behavior graph from each member account's list of behavior graphs.</p>
195
- * <p>
196
- * <code>DeleteGraph</code> can only be called by the administrator account for a behavior
197
- * graph.</p>
59
+ * @see {@link DeleteGraphCommand}
198
60
  */
199
61
  deleteGraph(args: DeleteGraphCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGraphCommandOutput>;
200
62
  deleteGraph(args: DeleteGraphCommandInput, cb: (err: any, data?: DeleteGraphCommandOutput) => void): void;
201
63
  deleteGraph(args: DeleteGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGraphCommandOutput) => void): void;
202
64
  /**
203
- * @public
204
- * <p>Removes the specified member accounts from the behavior graph. The removed accounts no
205
- * longer contribute data to the behavior graph. This operation can only be called by the
206
- * administrator account for the behavior graph.</p>
207
- * <p>For invited accounts, the removed accounts are deleted from the list of accounts in the
208
- * behavior graph. To restore the account, the administrator account must send another
209
- * invitation.</p>
210
- * <p>For organization accounts in the organization behavior graph, the Detective
211
- * administrator account can always enable the organization account again. Organization
212
- * accounts that are not enabled as member accounts are not included in the
213
- * <code>ListMembers</code> results for the organization behavior graph.</p>
214
- * <p>An administrator account cannot use <code>DeleteMembers</code> to remove their own
215
- * account from the behavior graph. To disable a behavior graph, the administrator account
216
- * uses the <code>DeleteGraph</code> API method.</p>
65
+ * @see {@link DeleteMembersCommand}
217
66
  */
218
67
  deleteMembers(args: DeleteMembersCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMembersCommandOutput>;
219
68
  deleteMembers(args: DeleteMembersCommandInput, cb: (err: any, data?: DeleteMembersCommandOutput) => void): void;
220
69
  deleteMembers(args: DeleteMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMembersCommandOutput) => void): void;
221
70
  /**
222
- * @public
223
- * <p>Returns information about the configuration for the organization behavior graph.
224
- * Currently indicates whether to automatically enable new organization accounts as member
225
- * accounts.</p>
226
- * <p>Can only be called by the Detective administrator account for the organization. </p>
71
+ * @see {@link DescribeOrganizationConfigurationCommand}
227
72
  */
228
73
  describeOrganizationConfiguration(args: DescribeOrganizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeOrganizationConfigurationCommandOutput>;
229
74
  describeOrganizationConfiguration(args: DescribeOrganizationConfigurationCommandInput, cb: (err: any, data?: DescribeOrganizationConfigurationCommandOutput) => void): void;
230
75
  describeOrganizationConfiguration(args: DescribeOrganizationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeOrganizationConfigurationCommandOutput) => void): void;
231
76
  /**
232
- * @public
233
- * <p>Removes the Detective administrator account in the current Region. Deletes the
234
- * organization behavior graph.</p>
235
- * <p>Can only be called by the organization management account.</p>
236
- * <p>Removing the Detective administrator account does not affect the delegated
237
- * administrator account for Detective in Organizations.</p>
238
- * <p>To remove the delegated administrator account in Organizations, use the Organizations API. Removing the delegated administrator account also removes the Detective administrator account in all Regions, except for Regions where the Detective administrator account is the organization management account.</p>
77
+ * @see {@link DisableOrganizationAdminAccountCommand}
239
78
  */
240
79
  disableOrganizationAdminAccount(args: DisableOrganizationAdminAccountCommandInput, options?: __HttpHandlerOptions): Promise<DisableOrganizationAdminAccountCommandOutput>;
241
80
  disableOrganizationAdminAccount(args: DisableOrganizationAdminAccountCommandInput, cb: (err: any, data?: DisableOrganizationAdminAccountCommandOutput) => void): void;
242
81
  disableOrganizationAdminAccount(args: DisableOrganizationAdminAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableOrganizationAdminAccountCommandOutput) => void): void;
243
82
  /**
244
- * @public
245
- * <p>Removes the member account from the specified behavior graph. This operation can only be
246
- * called by an invited member account that has the <code>ENABLED</code> status.</p>
247
- * <p>
248
- * <code>DisassociateMembership</code> cannot be called by an organization account in the
249
- * organization behavior graph. For the organization behavior graph, the Detective
250
- * administrator account determines which organization accounts to enable or disable as member
251
- * accounts.</p>
83
+ * @see {@link DisassociateMembershipCommand}
252
84
  */
253
85
  disassociateMembership(args: DisassociateMembershipCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateMembershipCommandOutput>;
254
86
  disassociateMembership(args: DisassociateMembershipCommandInput, cb: (err: any, data?: DisassociateMembershipCommandOutput) => void): void;
255
87
  disassociateMembership(args: DisassociateMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateMembershipCommandOutput) => void): void;
256
88
  /**
257
- * @public
258
- * <p>Designates the Detective administrator account for the organization in the
259
- * current Region.</p>
260
- * <p>If the account does not have Detective enabled, then enables Detective
261
- * for that account and creates a new behavior graph.</p>
262
- * <p>Can only be called by the organization management account.</p>
263
- * <p>If the organization has a delegated administrator account in Organizations, then the
264
- * Detective administrator account must be either the delegated administrator
265
- * account or the organization management account.</p>
266
- * <p>If the organization does not have a delegated administrator account in Organizations, then you can choose any account in the organization. If you choose an account other
267
- * than the organization management account, Detective calls Organizations to
268
- * make that account the delegated administrator account for Detective. The
269
- * organization management account cannot be the delegated administrator account.</p>
89
+ * @see {@link EnableOrganizationAdminAccountCommand}
270
90
  */
271
91
  enableOrganizationAdminAccount(args: EnableOrganizationAdminAccountCommandInput, options?: __HttpHandlerOptions): Promise<EnableOrganizationAdminAccountCommandOutput>;
272
92
  enableOrganizationAdminAccount(args: EnableOrganizationAdminAccountCommandInput, cb: (err: any, data?: EnableOrganizationAdminAccountCommandOutput) => void): void;
273
93
  enableOrganizationAdminAccount(args: EnableOrganizationAdminAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableOrganizationAdminAccountCommandOutput) => void): void;
274
94
  /**
275
- * @public
276
- * <p>Returns the membership details for specified member accounts for a behavior
277
- * graph.</p>
95
+ * @see {@link GetMembersCommand}
278
96
  */
279
97
  getMembers(args: GetMembersCommandInput, options?: __HttpHandlerOptions): Promise<GetMembersCommandOutput>;
280
98
  getMembers(args: GetMembersCommandInput, cb: (err: any, data?: GetMembersCommandOutput) => void): void;
281
99
  getMembers(args: GetMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMembersCommandOutput) => void): void;
282
100
  /**
283
- * @public
284
- * <p>Lists data source packages in the behavior graph.</p>
101
+ * @see {@link ListDatasourcePackagesCommand}
285
102
  */
286
103
  listDatasourcePackages(args: ListDatasourcePackagesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatasourcePackagesCommandOutput>;
287
104
  listDatasourcePackages(args: ListDatasourcePackagesCommandInput, cb: (err: any, data?: ListDatasourcePackagesCommandOutput) => void): void;
288
105
  listDatasourcePackages(args: ListDatasourcePackagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasourcePackagesCommandOutput) => void): void;
289
106
  /**
290
- * @public
291
- * <p>Returns the list of behavior graphs that the calling account is an administrator account
292
- * of. This operation can only be called by an administrator account.</p>
293
- * <p>Because an account can currently only be the administrator of one behavior graph within
294
- * a Region, the results always contain a single behavior graph.</p>
107
+ * @see {@link ListGraphsCommand}
295
108
  */
296
109
  listGraphs(args: ListGraphsCommandInput, options?: __HttpHandlerOptions): Promise<ListGraphsCommandOutput>;
297
110
  listGraphs(args: ListGraphsCommandInput, cb: (err: any, data?: ListGraphsCommandOutput) => void): void;
298
111
  listGraphs(args: ListGraphsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGraphsCommandOutput) => void): void;
299
112
  /**
300
- * @public
301
- * <p>Retrieves the list of open and accepted behavior graph invitations for the member
302
- * account. This operation can only be called by an invited member account.</p>
303
- * <p>Open invitations are invitations that the member account has not responded to.</p>
304
- * <p>The results do not include behavior graphs for which the member account declined the
305
- * invitation. The results also do not include behavior graphs that the member account
306
- * resigned from or was removed from.</p>
113
+ * @see {@link ListInvitationsCommand}
307
114
  */
308
115
  listInvitations(args: ListInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvitationsCommandOutput>;
309
116
  listInvitations(args: ListInvitationsCommandInput, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
310
117
  listInvitations(args: ListInvitationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
311
118
  /**
312
- * @public
313
- * <p>Retrieves the list of member accounts for a behavior graph.</p>
314
- * <p>For invited accounts, the results do not include member accounts that were removed from
315
- * the behavior graph.</p>
316
- * <p>For the organization behavior graph, the results do not include organization accounts
317
- * that the Detective administrator account has not enabled as member
318
- * accounts.</p>
119
+ * @see {@link ListMembersCommand}
319
120
  */
320
121
  listMembers(args: ListMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListMembersCommandOutput>;
321
122
  listMembers(args: ListMembersCommandInput, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
322
123
  listMembers(args: ListMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
323
124
  /**
324
- * @public
325
- * <p>Returns information about the Detective administrator account for an
326
- * organization. Can only be called by the organization management account.</p>
125
+ * @see {@link ListOrganizationAdminAccountsCommand}
327
126
  */
328
127
  listOrganizationAdminAccounts(args: ListOrganizationAdminAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListOrganizationAdminAccountsCommandOutput>;
329
128
  listOrganizationAdminAccounts(args: ListOrganizationAdminAccountsCommandInput, cb: (err: any, data?: ListOrganizationAdminAccountsCommandOutput) => void): void;
330
129
  listOrganizationAdminAccounts(args: ListOrganizationAdminAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationAdminAccountsCommandOutput) => void): void;
331
130
  /**
332
- * @public
333
- * <p>Returns the tag values that are assigned to a behavior graph.</p>
131
+ * @see {@link ListTagsForResourceCommand}
334
132
  */
335
133
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
336
134
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
337
135
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
338
136
  /**
339
- * @public
340
- * <p>Rejects an invitation to contribute the account data to a behavior graph. This operation
341
- * must be called by an invited member account that has the <code>INVITED</code>
342
- * status.</p>
343
- * <p>
344
- * <code>RejectInvitation</code> cannot be called by an organization account in the
345
- * organization behavior graph. In the organization behavior graph, organization accounts do
346
- * not receive an invitation.</p>
137
+ * @see {@link RejectInvitationCommand}
347
138
  */
348
139
  rejectInvitation(args: RejectInvitationCommandInput, options?: __HttpHandlerOptions): Promise<RejectInvitationCommandOutput>;
349
140
  rejectInvitation(args: RejectInvitationCommandInput, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
350
141
  rejectInvitation(args: RejectInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
351
142
  /**
352
- * @public
353
- * <p>Sends a request to enable data ingest for a member account that has a status of
354
- * <code>ACCEPTED_BUT_DISABLED</code>.</p>
355
- * <p>For valid member accounts, the status is updated as follows.</p>
356
- * <ul>
357
- * <li>
358
- * <p>If Detective enabled the member account, then the new status is
359
- * <code>ENABLED</code>.</p>
360
- * </li>
361
- * <li>
362
- * <p>If Detective cannot enable the member account, the status remains
363
- * <code>ACCEPTED_BUT_DISABLED</code>. </p>
364
- * </li>
365
- * </ul>
143
+ * @see {@link StartMonitoringMemberCommand}
366
144
  */
367
145
  startMonitoringMember(args: StartMonitoringMemberCommandInput, options?: __HttpHandlerOptions): Promise<StartMonitoringMemberCommandOutput>;
368
146
  startMonitoringMember(args: StartMonitoringMemberCommandInput, cb: (err: any, data?: StartMonitoringMemberCommandOutput) => void): void;
369
147
  startMonitoringMember(args: StartMonitoringMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMonitoringMemberCommandOutput) => void): void;
370
148
  /**
371
- * @public
372
- * <p>Applies tag values to a behavior graph.</p>
149
+ * @see {@link TagResourceCommand}
373
150
  */
374
151
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
375
152
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
376
153
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
377
154
  /**
378
- * @public
379
- * <p>Removes tags from a behavior graph.</p>
155
+ * @see {@link UntagResourceCommand}
380
156
  */
381
157
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
382
158
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
383
159
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
384
160
  /**
385
- * @public
386
- * <p>Starts a data source packages for the behavior graph.</p>
161
+ * @see {@link UpdateDatasourcePackagesCommand}
387
162
  */
388
163
  updateDatasourcePackages(args: UpdateDatasourcePackagesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDatasourcePackagesCommandOutput>;
389
164
  updateDatasourcePackages(args: UpdateDatasourcePackagesCommandInput, cb: (err: any, data?: UpdateDatasourcePackagesCommandOutput) => void): void;
390
165
  updateDatasourcePackages(args: UpdateDatasourcePackagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDatasourcePackagesCommandOutput) => void): void;
391
166
  /**
392
- * @public
393
- * <p>Updates the configuration for the Organizations integration in the current Region.
394
- * Can only be called by the Detective administrator account for the
395
- * organization.</p>
167
+ * @see {@link UpdateOrganizationConfigurationCommand}
396
168
  */
397
169
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOrganizationConfigurationCommandOutput>;
398
170
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void): void;
399
171
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void): void;
400
172
  }
173
+ /**
174
+ * @public
175
+ * <p>Detective uses machine learning and purpose-built visualizations to help you to
176
+ * analyze and investigate security issues across your Amazon Web Services (Amazon Web Services) workloads. Detective automatically extracts time-based events such
177
+ * as login attempts, API calls, and network traffic from CloudTrail and Amazon Virtual Private Cloud (Amazon VPC) flow logs. It also extracts findings detected by
178
+ * Amazon GuardDuty.</p>
179
+ * <p>The Detective API primarily supports the creation and management of behavior
180
+ * graphs. A behavior graph contains the extracted data from a set of member accounts, and is
181
+ * created and managed by an administrator account.</p>
182
+ * <p>To add a member account to the behavior graph, the administrator account sends an
183
+ * invitation to the account. When the account accepts the invitation, it becomes a member
184
+ * account in the behavior graph.</p>
185
+ * <p>Detective is also integrated with Organizations. The organization
186
+ * management account designates the Detective administrator account for the
187
+ * organization. That account becomes the administrator account for the organization behavior
188
+ * graph. The Detective administrator account is also the delegated administrator
189
+ * account for Detective in Organizations.</p>
190
+ * <p>The Detective administrator account can enable any organization account as a
191
+ * member account in the organization behavior graph. The organization accounts do not receive
192
+ * invitations. The Detective administrator account can also invite other accounts to
193
+ * the organization behavior graph.</p>
194
+ * <p>Every behavior graph is specific to a Region. You can only use the API to manage
195
+ * behavior graphs that belong to the Region that is associated with the currently selected
196
+ * endpoint.</p>
197
+ * <p>The administrator account for a behavior graph can use the Detective API to do
198
+ * the following:</p>
199
+ * <ul>
200
+ * <li>
201
+ * <p>Enable and disable Detective. Enabling Detective creates a new
202
+ * behavior graph.</p>
203
+ * </li>
204
+ * <li>
205
+ * <p>View the list of member accounts in a behavior graph.</p>
206
+ * </li>
207
+ * <li>
208
+ * <p>Add member accounts to a behavior graph.</p>
209
+ * </li>
210
+ * <li>
211
+ * <p>Remove member accounts from a behavior graph.</p>
212
+ * </li>
213
+ * <li>
214
+ * <p>Apply tags to a behavior graph.</p>
215
+ * </li>
216
+ * </ul>
217
+ * <p>The organization management account can use the Detective API to select the
218
+ * delegated administrator for Detective.</p>
219
+ * <p>The Detective administrator account for an organization can use the Detective API to do the following:</p>
220
+ * <ul>
221
+ * <li>
222
+ * <p>Perform all of the functions of an administrator account.</p>
223
+ * </li>
224
+ * <li>
225
+ * <p>Determine whether to automatically enable new organization accounts as member
226
+ * accounts in the organization behavior graph.</p>
227
+ * </li>
228
+ * </ul>
229
+ * <p>An invited member account can use the Detective API to do the following:</p>
230
+ * <ul>
231
+ * <li>
232
+ * <p>View the list of behavior graphs that they are invited to.</p>
233
+ * </li>
234
+ * <li>
235
+ * <p>Accept an invitation to contribute to a behavior graph.</p>
236
+ * </li>
237
+ * <li>
238
+ * <p>Decline an invitation to contribute to a behavior graph.</p>
239
+ * </li>
240
+ * <li>
241
+ * <p>Remove their account from a behavior graph.</p>
242
+ * </li>
243
+ * </ul>
244
+ * <p>All API actions are logged as CloudTrail events. See <a href="https://docs.aws.amazon.com/detective/latest/adminguide/logging-using-cloudtrail.html">Logging Detective API Calls with CloudTrail</a>.</p>
245
+ * <note>
246
+ * <p>We replaced the term "master account" with the term "administrator account." An
247
+ * administrator account is used to centrally manage multiple accounts. In the case of
248
+ * Detective, the administrator account manages the accounts in their behavior
249
+ * graph.</p>
250
+ * </note>
251
+ */
252
+ export declare class Detective extends DetectiveClient implements Detective {
253
+ }
@@ -96,7 +96,7 @@ import {
96
96
  UpdateOrganizationConfigurationCommandOutput,
97
97
  } from "./commands/UpdateOrganizationConfigurationCommand";
98
98
  import { DetectiveClient } from "./DetectiveClient";
99
- export declare class Detective extends DetectiveClient {
99
+ export interface Detective {
100
100
  acceptInvitation(
101
101
  args: AcceptInvitationCommandInput,
102
102
  options?: __HttpHandlerOptions
@@ -416,3 +416,4 @@ export declare class Detective extends DetectiveClient {
416
416
  cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void
417
417
  ): void;
418
418
  }
419
+ export declare class Detective extends DetectiveClient implements Detective {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-detective",
3
3
  "description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",