Skip to content

Commit 2471acc

Browse files
author
awstools
committed
feat(client-detective): Added new APIs in Detective to support resource investigations
1 parent 35401aa commit 2471acc

File tree

13 files changed

+3862
-230
lines changed

13 files changed

+3862
-230
lines changed

clients/client-detective/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,14 @@ EnableOrganizationAdminAccount
365365

366366
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/EnableOrganizationAdminAccountCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/EnableOrganizationAdminAccountCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/EnableOrganizationAdminAccountCommandOutput/)
367367

368+
</details>
369+
<details>
370+
<summary>
371+
GetInvestigation
372+
</summary>
373+
374+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/GetInvestigationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/GetInvestigationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/GetInvestigationCommandOutput/)
375+
368376
</details>
369377
<details>
370378
<summary>
@@ -389,6 +397,22 @@ ListGraphs
389397

390398
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/ListGraphsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListGraphsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListGraphsCommandOutput/)
391399

400+
</details>
401+
<details>
402+
<summary>
403+
ListIndicators
404+
</summary>
405+
406+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/ListIndicatorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListIndicatorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListIndicatorsCommandOutput/)
407+
408+
</details>
409+
<details>
410+
<summary>
411+
ListInvestigations
412+
</summary>
413+
414+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/ListInvestigationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListInvestigationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/ListInvestigationsCommandOutput/)
415+
392416
</details>
393417
<details>
394418
<summary>
@@ -429,6 +453,14 @@ RejectInvitation
429453

430454
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/RejectInvitationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/RejectInvitationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/RejectInvitationCommandOutput/)
431455

456+
</details>
457+
<details>
458+
<summary>
459+
StartInvestigation
460+
</summary>
461+
462+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/StartInvestigationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/StartInvestigationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/StartInvestigationCommandOutput/)
463+
432464
</details>
433465
<details>
434466
<summary>
@@ -461,6 +493,14 @@ UpdateDatasourcePackages
461493

462494
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/UpdateDatasourcePackagesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/UpdateDatasourcePackagesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/UpdateDatasourcePackagesCommandOutput/)
463495

496+
</details>
497+
<details>
498+
<summary>
499+
UpdateInvestigationState
500+
</summary>
501+
502+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/detective/command/UpdateInvestigationStateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/UpdateInvestigationStateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-detective/Interface/UpdateInvestigationStateCommandOutput/)
503+
464504
</details>
465505
<details>
466506
<summary>

clients/client-detective/src/Detective.ts

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,28 @@ import {
4949
EnableOrganizationAdminAccountCommandInput,
5050
EnableOrganizationAdminAccountCommandOutput,
5151
} from "./commands/EnableOrganizationAdminAccountCommand";
52+
import {
53+
GetInvestigationCommand,
54+
GetInvestigationCommandInput,
55+
GetInvestigationCommandOutput,
56+
} from "./commands/GetInvestigationCommand";
5257
import { GetMembersCommand, GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
5358
import {
5459
ListDatasourcePackagesCommand,
5560
ListDatasourcePackagesCommandInput,
5661
ListDatasourcePackagesCommandOutput,
5762
} from "./commands/ListDatasourcePackagesCommand";
5863
import { ListGraphsCommand, ListGraphsCommandInput, ListGraphsCommandOutput } from "./commands/ListGraphsCommand";
64+
import {
65+
ListIndicatorsCommand,
66+
ListIndicatorsCommandInput,
67+
ListIndicatorsCommandOutput,
68+
} from "./commands/ListIndicatorsCommand";
69+
import {
70+
ListInvestigationsCommand,
71+
ListInvestigationsCommandInput,
72+
ListInvestigationsCommandOutput,
73+
} from "./commands/ListInvestigationsCommand";
5974
import {
6075
ListInvitationsCommand,
6176
ListInvitationsCommandInput,
@@ -77,6 +92,11 @@ import {
7792
RejectInvitationCommandInput,
7893
RejectInvitationCommandOutput,
7994
} from "./commands/RejectInvitationCommand";
95+
import {
96+
StartInvestigationCommand,
97+
StartInvestigationCommandInput,
98+
StartInvestigationCommandOutput,
99+
} from "./commands/StartInvestigationCommand";
80100
import {
81101
StartMonitoringMemberCommand,
82102
StartMonitoringMemberCommandInput,
@@ -93,6 +113,11 @@ import {
93113
UpdateDatasourcePackagesCommandInput,
94114
UpdateDatasourcePackagesCommandOutput,
95115
} from "./commands/UpdateDatasourcePackagesCommand";
116+
import {
117+
UpdateInvestigationStateCommand,
118+
UpdateInvestigationStateCommandInput,
119+
UpdateInvestigationStateCommandOutput,
120+
} from "./commands/UpdateInvestigationStateCommand";
96121
import {
97122
UpdateOrganizationConfigurationCommand,
98123
UpdateOrganizationConfigurationCommandInput,
@@ -112,18 +137,23 @@ const commands = {
112137
DisableOrganizationAdminAccountCommand,
113138
DisassociateMembershipCommand,
114139
EnableOrganizationAdminAccountCommand,
140+
GetInvestigationCommand,
115141
GetMembersCommand,
116142
ListDatasourcePackagesCommand,
117143
ListGraphsCommand,
144+
ListIndicatorsCommand,
145+
ListInvestigationsCommand,
118146
ListInvitationsCommand,
119147
ListMembersCommand,
120148
ListOrganizationAdminAccountsCommand,
121149
ListTagsForResourceCommand,
122150
RejectInvitationCommand,
151+
StartInvestigationCommand,
123152
StartMonitoringMemberCommand,
124153
TagResourceCommand,
125154
UntagResourceCommand,
126155
UpdateDatasourcePackagesCommand,
156+
UpdateInvestigationStateCommand,
127157
UpdateOrganizationConfigurationCommand,
128158
};
129159

@@ -291,6 +321,23 @@ export interface Detective {
291321
cb: (err: any, data?: EnableOrganizationAdminAccountCommandOutput) => void
292322
): void;
293323

324+
/**
325+
* @see {@link GetInvestigationCommand}
326+
*/
327+
getInvestigation(
328+
args: GetInvestigationCommandInput,
329+
options?: __HttpHandlerOptions
330+
): Promise<GetInvestigationCommandOutput>;
331+
getInvestigation(
332+
args: GetInvestigationCommandInput,
333+
cb: (err: any, data?: GetInvestigationCommandOutput) => void
334+
): void;
335+
getInvestigation(
336+
args: GetInvestigationCommandInput,
337+
options: __HttpHandlerOptions,
338+
cb: (err: any, data?: GetInvestigationCommandOutput) => void
339+
): void;
340+
294341
/**
295342
* @see {@link GetMembersCommand}
296343
*/
@@ -330,6 +377,37 @@ export interface Detective {
330377
cb: (err: any, data?: ListGraphsCommandOutput) => void
331378
): void;
332379

380+
/**
381+
* @see {@link ListIndicatorsCommand}
382+
*/
383+
listIndicators(
384+
args: ListIndicatorsCommandInput,
385+
options?: __HttpHandlerOptions
386+
): Promise<ListIndicatorsCommandOutput>;
387+
listIndicators(args: ListIndicatorsCommandInput, cb: (err: any, data?: ListIndicatorsCommandOutput) => void): void;
388+
listIndicators(
389+
args: ListIndicatorsCommandInput,
390+
options: __HttpHandlerOptions,
391+
cb: (err: any, data?: ListIndicatorsCommandOutput) => void
392+
): void;
393+
394+
/**
395+
* @see {@link ListInvestigationsCommand}
396+
*/
397+
listInvestigations(
398+
args: ListInvestigationsCommandInput,
399+
options?: __HttpHandlerOptions
400+
): Promise<ListInvestigationsCommandOutput>;
401+
listInvestigations(
402+
args: ListInvestigationsCommandInput,
403+
cb: (err: any, data?: ListInvestigationsCommandOutput) => void
404+
): void;
405+
listInvestigations(
406+
args: ListInvestigationsCommandInput,
407+
options: __HttpHandlerOptions,
408+
cb: (err: any, data?: ListInvestigationsCommandOutput) => void
409+
): void;
410+
333411
/**
334412
* @see {@link ListInvitationsCommand}
335413
*/
@@ -406,6 +484,23 @@ export interface Detective {
406484
cb: (err: any, data?: RejectInvitationCommandOutput) => void
407485
): void;
408486

487+
/**
488+
* @see {@link StartInvestigationCommand}
489+
*/
490+
startInvestigation(
491+
args: StartInvestigationCommandInput,
492+
options?: __HttpHandlerOptions
493+
): Promise<StartInvestigationCommandOutput>;
494+
startInvestigation(
495+
args: StartInvestigationCommandInput,
496+
cb: (err: any, data?: StartInvestigationCommandOutput) => void
497+
): void;
498+
startInvestigation(
499+
args: StartInvestigationCommandInput,
500+
options: __HttpHandlerOptions,
501+
cb: (err: any, data?: StartInvestigationCommandOutput) => void
502+
): void;
503+
409504
/**
410505
* @see {@link StartMonitoringMemberCommand}
411506
*/
@@ -462,6 +557,23 @@ export interface Detective {
462557
cb: (err: any, data?: UpdateDatasourcePackagesCommandOutput) => void
463558
): void;
464559

560+
/**
561+
* @see {@link UpdateInvestigationStateCommand}
562+
*/
563+
updateInvestigationState(
564+
args: UpdateInvestigationStateCommandInput,
565+
options?: __HttpHandlerOptions
566+
): Promise<UpdateInvestigationStateCommandOutput>;
567+
updateInvestigationState(
568+
args: UpdateInvestigationStateCommandInput,
569+
cb: (err: any, data?: UpdateInvestigationStateCommandOutput) => void
570+
): void;
571+
updateInvestigationState(
572+
args: UpdateInvestigationStateCommandInput,
573+
options: __HttpHandlerOptions,
574+
cb: (err: any, data?: UpdateInvestigationStateCommandOutput) => void
575+
): void;
576+
465577
/**
466578
* @see {@link UpdateOrganizationConfigurationCommand}
467579
*/

clients/client-detective/src/DetectiveClient.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,15 @@ import {
7979
EnableOrganizationAdminAccountCommandInput,
8080
EnableOrganizationAdminAccountCommandOutput,
8181
} from "./commands/EnableOrganizationAdminAccountCommand";
82+
import { GetInvestigationCommandInput, GetInvestigationCommandOutput } from "./commands/GetInvestigationCommand";
8283
import { GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
8384
import {
8485
ListDatasourcePackagesCommandInput,
8586
ListDatasourcePackagesCommandOutput,
8687
} from "./commands/ListDatasourcePackagesCommand";
8788
import { ListGraphsCommandInput, ListGraphsCommandOutput } from "./commands/ListGraphsCommand";
89+
import { ListIndicatorsCommandInput, ListIndicatorsCommandOutput } from "./commands/ListIndicatorsCommand";
90+
import { ListInvestigationsCommandInput, ListInvestigationsCommandOutput } from "./commands/ListInvestigationsCommand";
8891
import { ListInvitationsCommandInput, ListInvitationsCommandOutput } from "./commands/ListInvitationsCommand";
8992
import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
9093
import {
@@ -96,6 +99,7 @@ import {
9699
ListTagsForResourceCommandOutput,
97100
} from "./commands/ListTagsForResourceCommand";
98101
import { RejectInvitationCommandInput, RejectInvitationCommandOutput } from "./commands/RejectInvitationCommand";
102+
import { StartInvestigationCommandInput, StartInvestigationCommandOutput } from "./commands/StartInvestigationCommand";
99103
import {
100104
StartMonitoringMemberCommandInput,
101105
StartMonitoringMemberCommandOutput,
@@ -106,6 +110,10 @@ import {
106110
UpdateDatasourcePackagesCommandInput,
107111
UpdateDatasourcePackagesCommandOutput,
108112
} from "./commands/UpdateDatasourcePackagesCommand";
113+
import {
114+
UpdateInvestigationStateCommandInput,
115+
UpdateInvestigationStateCommandOutput,
116+
} from "./commands/UpdateInvestigationStateCommand";
109117
import {
110118
UpdateOrganizationConfigurationCommandInput,
111119
UpdateOrganizationConfigurationCommandOutput,
@@ -136,18 +144,23 @@ export type ServiceInputTypes =
136144
| DisableOrganizationAdminAccountCommandInput
137145
| DisassociateMembershipCommandInput
138146
| EnableOrganizationAdminAccountCommandInput
147+
| GetInvestigationCommandInput
139148
| GetMembersCommandInput
140149
| ListDatasourcePackagesCommandInput
141150
| ListGraphsCommandInput
151+
| ListIndicatorsCommandInput
152+
| ListInvestigationsCommandInput
142153
| ListInvitationsCommandInput
143154
| ListMembersCommandInput
144155
| ListOrganizationAdminAccountsCommandInput
145156
| ListTagsForResourceCommandInput
146157
| RejectInvitationCommandInput
158+
| StartInvestigationCommandInput
147159
| StartMonitoringMemberCommandInput
148160
| TagResourceCommandInput
149161
| UntagResourceCommandInput
150162
| UpdateDatasourcePackagesCommandInput
163+
| UpdateInvestigationStateCommandInput
151164
| UpdateOrganizationConfigurationCommandInput;
152165

153166
/**
@@ -165,18 +178,23 @@ export type ServiceOutputTypes =
165178
| DisableOrganizationAdminAccountCommandOutput
166179
| DisassociateMembershipCommandOutput
167180
| EnableOrganizationAdminAccountCommandOutput
181+
| GetInvestigationCommandOutput
168182
| GetMembersCommandOutput
169183
| ListDatasourcePackagesCommandOutput
170184
| ListGraphsCommandOutput
185+
| ListIndicatorsCommandOutput
186+
| ListInvestigationsCommandOutput
171187
| ListInvitationsCommandOutput
172188
| ListMembersCommandOutput
173189
| ListOrganizationAdminAccountsCommandOutput
174190
| ListTagsForResourceCommandOutput
175191
| RejectInvitationCommandOutput
192+
| StartInvestigationCommandOutput
176193
| StartMonitoringMemberCommandOutput
177194
| TagResourceCommandOutput
178195
| UntagResourceCommandOutput
179196
| UpdateDatasourcePackagesCommandOutput
197+
| UpdateInvestigationStateCommandOutput
180198
| UpdateOrganizationConfigurationCommandOutput;
181199

182200
/**

clients/client-detective/src/commands/CreateMembersCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export interface CreateMembersCommandOutput extends CreateMembersResponse, __Met
4545
* <p>
4646
* <code>CreateMembers</code> is used to send invitations to accounts. For the organization
4747
* behavior graph, the Detective administrator account uses
48-
* <code>CreateMembers</code> to enable organization accounts as member accounts.</p>
48+
* <code>CreateMembers</code> to enable organization accounts as member accounts.</p>
4949
* <p>For invited accounts, <code>CreateMembers</code> sends a request to invite the specified
50-
* Amazon Web Services accounts to be member accounts in the behavior graph. This operation
50+
* Amazon Web Services accounts to be member accounts in the behavior graph. This operation
5151
* can only be called by the administrator account for a behavior graph. </p>
5252
* <p>
5353
* <code>CreateMembers</code> verifies the accounts and then invites the verified accounts.

0 commit comments

Comments
 (0)