@aws-sdk/client-detective 3.45.0 → 3.47.2

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 (70) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +41 -13
  3. package/dist-cjs/Detective.js +75 -0
  4. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +36 -0
  5. package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +35 -0
  6. package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +36 -0
  7. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/endpoints.js +0 -24
  11. package/dist-cjs/models/models_0.js +48 -31
  12. package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +451 -1
  15. package/dist-cjs/runtimeConfig.browser.js +7 -2
  16. package/dist-cjs/runtimeConfig.js +9 -3
  17. package/dist-es/Detective.js +75 -0
  18. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +39 -0
  19. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +38 -0
  20. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +39 -0
  21. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +39 -0
  22. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoints.js +0 -24
  25. package/dist-es/models/models_0.js +33 -20
  26. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +74 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_restJson1.js +533 -1
  29. package/dist-es/runtimeConfig.browser.js +12 -3
  30. package/dist-es/runtimeConfig.js +13 -6
  31. package/dist-types/Detective.d.ts +154 -42
  32. package/dist-types/DetectiveClient.d.ts +54 -17
  33. package/dist-types/commands/CreateGraphCommand.d.ts +9 -9
  34. package/dist-types/commands/CreateMembersCommand.d.ts +17 -7
  35. package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteMembersCommand.d.ts +13 -5
  37. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +38 -0
  38. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +38 -0
  39. package/dist-types/commands/DisassociateMembershipCommand.d.ts +6 -1
  40. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +42 -0
  41. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListMembersCommand.d.ts +6 -2
  43. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +36 -0
  44. package/dist-types/commands/RejectInvitationCommand.d.ts +6 -1
  45. package/dist-types/commands/StartMonitoringMemberCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +37 -0
  47. package/dist-types/commands/index.d.ts +5 -0
  48. package/dist-types/models/models_0.d.ts +228 -101
  49. package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
  50. package/dist-types/pagination/index.d.ts +1 -0
  51. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  53. package/dist-types/runtimeConfig.d.ts +4 -3
  54. package/dist-types/runtimeConfig.native.d.ts +1 -0
  55. package/dist-types/ts3.4/Detective.d.ts +25 -0
  56. package/dist-types/ts3.4/DetectiveClient.d.ts +10 -3
  57. package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +16 -0
  59. package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +79 -20
  64. package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  67. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  68. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  69. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  70. package/package.json +39 -46
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
4
+ import { DescribeOrganizationConfigurationRequest, DescribeOrganizationConfigurationResponse } from "../models/models_0";
5
+ export interface DescribeOrganizationConfigurationCommandInput extends DescribeOrganizationConfigurationRequest {
6
+ }
7
+ export interface DescribeOrganizationConfigurationCommandOutput extends DescribeOrganizationConfigurationResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns information about the configuration for the organization behavior graph.
11
+ * Currently indicates whether to automatically enable new organization accounts as member
12
+ * accounts.</p>
13
+ * <p>Can only be called by the Detective administrator account for the organization. </p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { DetectiveClient, DescribeOrganizationConfigurationCommand } from "@aws-sdk/client-detective"; // ES Modules import
18
+ * // const { DetectiveClient, DescribeOrganizationConfigurationCommand } = require("@aws-sdk/client-detective"); // CommonJS import
19
+ * const client = new DetectiveClient(config);
20
+ * const command = new DescribeOrganizationConfigurationCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link DescribeOrganizationConfigurationCommandInput} for command's `input` shape.
25
+ * @see {@link DescribeOrganizationConfigurationCommandOutput} for command's `response` shape.
26
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class DescribeOrganizationConfigurationCommand extends $Command<DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput, DetectiveClientResolvedConfig> {
30
+ readonly input: DescribeOrganizationConfigurationCommandInput;
31
+ constructor(input: DescribeOrganizationConfigurationCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
4
+ export interface DisableOrganizationAdminAccountCommandInput {
5
+ }
6
+ export interface DisableOrganizationAdminAccountCommandOutput extends __MetadataBearer {
7
+ }
8
+ /**
9
+ * <p>Removes the Detective administrator account for the organization in the current
10
+ * Region. Deletes the behavior graph for that account.</p>
11
+ * <p>Can only be called by the organization management account. Before you can select a
12
+ * different Detective administrator account, you must remove the Detective
13
+ * administrator account in all Regions.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { DetectiveClient, DisableOrganizationAdminAccountCommand } from "@aws-sdk/client-detective"; // ES Modules import
18
+ * // const { DetectiveClient, DisableOrganizationAdminAccountCommand } = require("@aws-sdk/client-detective"); // CommonJS import
19
+ * const client = new DetectiveClient(config);
20
+ * const command = new DisableOrganizationAdminAccountCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link DisableOrganizationAdminAccountCommandInput} for command's `input` shape.
25
+ * @see {@link DisableOrganizationAdminAccountCommandOutput} for command's `response` shape.
26
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class DisableOrganizationAdminAccountCommand extends $Command<DisableOrganizationAdminAccountCommandInput, DisableOrganizationAdminAccountCommandOutput, DetectiveClientResolvedConfig> {
30
+ readonly input: DisableOrganizationAdminAccountCommandInput;
31
+ constructor(input: DisableOrganizationAdminAccountCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisableOrganizationAdminAccountCommandInput, DisableOrganizationAdminAccountCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -8,7 +8,12 @@ export interface DisassociateMembershipCommandOutput extends __MetadataBearer {
8
8
  }
9
9
  /**
10
10
  * <p>Removes the member account from the specified behavior graph. This operation can only be
11
- * called by a member account that has the <code>ENABLED</code> status.</p>
11
+ * called by an invited member account that has the <code>ENABLED</code> status.</p>
12
+ * <p>
13
+ * <code>DisassociateMembership</code> cannot be called by an organization account in the
14
+ * organization behavior graph. For the organization behavior graph, the Detective
15
+ * administrator account determines which organization accounts to enable or disable as member
16
+ * accounts.</p>
12
17
  * @example
13
18
  * Use a bare-bones client and the command you need to make an API call.
14
19
  * ```javascript
@@ -0,0 +1,42 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
4
+ import { EnableOrganizationAdminAccountRequest } from "../models/models_0";
5
+ export interface EnableOrganizationAdminAccountCommandInput extends EnableOrganizationAdminAccountRequest {
6
+ }
7
+ export interface EnableOrganizationAdminAccountCommandOutput extends __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Designates the Detective administrator account for the organization in the
11
+ * current Region.</p>
12
+ * <p>If the account does not have Detective enabled, then enables Detective
13
+ * for that account and creates a new behavior graph.</p>
14
+ * <p>Can only be called by the organization management account.</p>
15
+ * <p>The Detective administrator account for an organization must be the same in all
16
+ * Regions. If you already designated a Detective administrator account in another
17
+ * Region, then you must designate the same account.</p>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { DetectiveClient, EnableOrganizationAdminAccountCommand } from "@aws-sdk/client-detective"; // ES Modules import
22
+ * // const { DetectiveClient, EnableOrganizationAdminAccountCommand } = require("@aws-sdk/client-detective"); // CommonJS import
23
+ * const client = new DetectiveClient(config);
24
+ * const command = new EnableOrganizationAdminAccountCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link EnableOrganizationAdminAccountCommandInput} for command's `input` shape.
29
+ * @see {@link EnableOrganizationAdminAccountCommandOutput} for command's `response` shape.
30
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
31
+ *
32
+ */
33
+ export declare class EnableOrganizationAdminAccountCommand extends $Command<EnableOrganizationAdminAccountCommandInput, EnableOrganizationAdminAccountCommandOutput, DetectiveClientResolvedConfig> {
34
+ readonly input: EnableOrganizationAdminAccountCommandInput;
35
+ constructor(input: EnableOrganizationAdminAccountCommandInput);
36
+ /**
37
+ * @internal
38
+ */
39
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<EnableOrganizationAdminAccountCommandInput, EnableOrganizationAdminAccountCommandOutput>;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -8,7 +8,7 @@ export interface ListInvitationsCommandOutput extends ListInvitationsResponse, _
8
8
  }
9
9
  /**
10
10
  * <p>Retrieves the list of open and accepted behavior graph invitations for the member
11
- * account. This operation can only be called by a member account.</p>
11
+ * account. This operation can only be called by an invited member account.</p>
12
12
  * <p>Open invitations are invitations that the member account has not responded to.</p>
13
13
  * <p>The results do not include behavior graphs for which the member account declined the
14
14
  * invitation. The results also do not include behavior graphs that the member account
@@ -7,8 +7,12 @@ export interface ListMembersCommandInput extends ListMembersRequest {
7
7
  export interface ListMembersCommandOutput extends ListMembersResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Retrieves the list of member accounts for a behavior graph. Does not return member
11
- * accounts that were removed from the behavior graph.</p>
10
+ * <p>Retrieves the list of member accounts for a behavior graph.</p>
11
+ * <p>For invited accounts, the results do not include member accounts that were removed from
12
+ * the behavior graph.</p>
13
+ * <p>For the organization behavior graph, the results do not include organization accounts
14
+ * that the Detective administrator account has not enabled as member
15
+ * accounts.</p>
12
16
  * @example
13
17
  * Use a bare-bones client and the command you need to make an API call.
14
18
  * ```javascript
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
4
+ import { ListOrganizationAdminAccountsRequest, ListOrganizationAdminAccountsResponse } from "../models/models_0";
5
+ export interface ListOrganizationAdminAccountsCommandInput extends ListOrganizationAdminAccountsRequest {
6
+ }
7
+ export interface ListOrganizationAdminAccountsCommandOutput extends ListOrganizationAdminAccountsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns information about the Detective administrator account for an
11
+ * organization. Can only be called by the organization management account.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { DetectiveClient, ListOrganizationAdminAccountsCommand } from "@aws-sdk/client-detective"; // ES Modules import
16
+ * // const { DetectiveClient, ListOrganizationAdminAccountsCommand } = require("@aws-sdk/client-detective"); // CommonJS import
17
+ * const client = new DetectiveClient(config);
18
+ * const command = new ListOrganizationAdminAccountsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListOrganizationAdminAccountsCommandInput} for command's `input` shape.
23
+ * @see {@link ListOrganizationAdminAccountsCommandOutput} for command's `response` shape.
24
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListOrganizationAdminAccountsCommand extends $Command<ListOrganizationAdminAccountsCommandInput, ListOrganizationAdminAccountsCommandOutput, DetectiveClientResolvedConfig> {
28
+ readonly input: ListOrganizationAdminAccountsCommandInput;
29
+ constructor(input: ListOrganizationAdminAccountsCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListOrganizationAdminAccountsCommandInput, ListOrganizationAdminAccountsCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -8,7 +8,12 @@ export interface RejectInvitationCommandOutput extends __MetadataBearer {
8
8
  }
9
9
  /**
10
10
  * <p>Rejects an invitation to contribute the account data to a behavior graph. This operation
11
- * must be called by a member account that has the <code>INVITED</code> status.</p>
11
+ * must be called by an invited member account that has the <code>INVITED</code>
12
+ * status.</p>
13
+ * <p>
14
+ * <code>RejectInvitation</code> cannot be called by an organization account in the
15
+ * organization behavior graph. In the organization behavior graph, organization accounts do
16
+ * not receive an invitation.</p>
12
17
  * @example
13
18
  * Use a bare-bones client and the command you need to make an API call.
14
19
  * ```javascript
@@ -13,7 +13,7 @@ export interface StartMonitoringMemberCommandOutput extends __MetadataBearer {
13
13
  * <ul>
14
14
  * <li>
15
15
  * <p>If Detective enabled the member account, then the new status is
16
- * <code>ENABLED</code>.</p>
16
+ * <code>ENABLED</code>.</p>
17
17
  * </li>
18
18
  * <li>
19
19
  * <p>If Detective cannot enable the member account, the status remains
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
4
+ import { UpdateOrganizationConfigurationRequest } from "../models/models_0";
5
+ export interface UpdateOrganizationConfigurationCommandInput extends UpdateOrganizationConfigurationRequest {
6
+ }
7
+ export interface UpdateOrganizationConfigurationCommandOutput extends __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates the configuration for the Organizations integration in the current Region.
11
+ * Can only be called by the Detective administrator account for the
12
+ * organization.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { DetectiveClient, UpdateOrganizationConfigurationCommand } from "@aws-sdk/client-detective"; // ES Modules import
17
+ * // const { DetectiveClient, UpdateOrganizationConfigurationCommand } = require("@aws-sdk/client-detective"); // CommonJS import
18
+ * const client = new DetectiveClient(config);
19
+ * const command = new UpdateOrganizationConfigurationCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link UpdateOrganizationConfigurationCommandInput} for command's `input` shape.
24
+ * @see {@link UpdateOrganizationConfigurationCommandOutput} for command's `response` shape.
25
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class UpdateOrganizationConfigurationCommand extends $Command<UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput, DetectiveClientResolvedConfig> {
29
+ readonly input: UpdateOrganizationConfigurationCommandInput;
30
+ constructor(input: UpdateOrganizationConfigurationCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -3,13 +3,18 @@ export * from "./CreateGraphCommand";
3
3
  export * from "./CreateMembersCommand";
4
4
  export * from "./DeleteGraphCommand";
5
5
  export * from "./DeleteMembersCommand";
6
+ export * from "./DescribeOrganizationConfigurationCommand";
7
+ export * from "./DisableOrganizationAdminAccountCommand";
6
8
  export * from "./DisassociateMembershipCommand";
9
+ export * from "./EnableOrganizationAdminAccountCommand";
7
10
  export * from "./GetMembersCommand";
8
11
  export * from "./ListGraphsCommand";
9
12
  export * from "./ListInvitationsCommand";
10
13
  export * from "./ListMembersCommand";
14
+ export * from "./ListOrganizationAdminAccountsCommand";
11
15
  export * from "./ListTagsForResourceCommand";
12
16
  export * from "./RejectInvitationCommand";
13
17
  export * from "./StartMonitoringMemberCommand";
14
18
  export * from "./TagResourceCommand";
15
19
  export * from "./UntagResourceCommand";
20
+ export * from "./UpdateOrganizationConfigurationCommand";