@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,51 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-detective
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-detective
17
+
18
+
19
+
20
+
21
+
22
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
39
+
40
+
41
+ ### Features
42
+
43
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
44
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
45
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
46
+
47
+
48
+
49
+
50
+
6
51
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
52
 
8
53
 
package/README.md CHANGED
@@ -7,20 +7,32 @@
7
7
 
8
8
  AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native.
9
9
 
10
- <p>Detective uses machine learning and purpose-built visualizations to help you analyze and
11
- investigate security issues across your Amazon Web Services (AWS) workloads. Detective automatically
12
- extracts time-based events such as login attempts, API calls, and network traffic from
13
- AWS CloudTrail and Amazon Virtual Private Cloud (Amazon VPC) flow logs. It also extracts findings detected by
10
+ <p>Detective uses machine learning and purpose-built visualizations to help you to
11
+ analyze and investigate security issues across your Amazon Web Services (Amazon Web Services) workloads. Detective automatically extracts time-based events such
12
+ 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
14
13
  Amazon GuardDuty.</p>
15
- <p>The Detective API primarily supports the creation and management of behavior graphs. A
16
- behavior graph contains the extracted data from a set of member accounts, and is created
17
- and managed by an administrator account.</p>
18
- <p>Every behavior graph is specific to a Region. You can only use the API to manage graphs
19
- that belong to the Region that is associated with the currently selected endpoint.</p>
20
- <p>A Detective administrator account can use the Detective API to do the following:</p>
14
+ <p>The Detective API primarily supports the creation and management of behavior
15
+ graphs. A behavior graph contains the extracted data from a set of member accounts, and is
16
+ created and managed by an administrator account.</p>
17
+ <p>To add a member account to the behavior graph, the administrator account sends an
18
+ invitation to the account. When the account accepts the invitation, it becomes a member
19
+ account in the behavior graph.</p>
20
+ <p>Detective is also integrated with Organizations. The organization
21
+ management account designates the Detective administrator account for the
22
+ organization. That account becomes the administrator account for the organization behavior
23
+ graph. The Detective administrator account can enable any organization account as
24
+ a member account in the organization behavior graph. The organization accounts do not
25
+ receive invitations. The Detective administrator account can also invite other
26
+ accounts to the organization behavior graph.</p>
27
+ <p>Every behavior graph is specific to a Region. You can only use the API to manage
28
+ behavior graphs that belong to the Region that is associated with the currently selected
29
+ endpoint.</p>
30
+ <p>The administrator account for a behavior graph can use the Detective API to do
31
+ the following:</p>
21
32
  <ul>
22
33
  <li>
23
- <p>Enable and disable Detective. Enabling Detective creates a new behavior graph.</p>
34
+ <p>Enable and disable Detective. Enabling Detective creates a new
35
+ behavior graph.</p>
24
36
  </li>
25
37
  <li>
26
38
  <p>View the list of member accounts in a behavior graph.</p>
@@ -31,8 +43,23 @@ that belong to the Region that is associated with the currently selected endpoin
31
43
  <li>
32
44
  <p>Remove member accounts from a behavior graph.</p>
33
45
  </li>
46
+ <li>
47
+ <p>Apply tags to a behavior graph.</p>
48
+ </li>
49
+ </ul>
50
+ <p>The organization management account can use the Detective API to select the
51
+ delegated administrator for Detective.</p>
52
+ <p>The Detective administrator account for an organization can use the Detective API to do the following:</p>
53
+ <ul>
54
+ <li>
55
+ <p>Perform all of the functions of an administrator account.</p>
56
+ </li>
57
+ <li>
58
+ <p>Determine whether to automatically enable new organization accounts as member
59
+ accounts in the organization behavior graph.</p>
60
+ </li>
34
61
  </ul>
35
- <p>A member account can use the Detective API to do the following:</p>
62
+ <p>An invited member account can use the Detective API to do the following:</p>
36
63
  <ul>
37
64
  <li>
38
65
  <p>View the list of behavior graphs that they are invited to.</p>
@@ -51,7 +78,8 @@ that belong to the Region that is associated with the currently selected endpoin
51
78
  <note>
52
79
  <p>We replaced the term "master account" with the term "administrator account." An
53
80
  administrator account is used to centrally manage multiple accounts. In the case of
54
- Detective, the administrator account manages the accounts in their behavior graph.</p>
81
+ Detective, the administrator account manages the accounts in their behavior
82
+ graph.</p>
55
83
  </note>
56
84
 
57
85
  ## Installing
@@ -6,16 +6,21 @@ const CreateGraphCommand_1 = require("./commands/CreateGraphCommand");
6
6
  const CreateMembersCommand_1 = require("./commands/CreateMembersCommand");
7
7
  const DeleteGraphCommand_1 = require("./commands/DeleteGraphCommand");
8
8
  const DeleteMembersCommand_1 = require("./commands/DeleteMembersCommand");
9
+ const DescribeOrganizationConfigurationCommand_1 = require("./commands/DescribeOrganizationConfigurationCommand");
10
+ const DisableOrganizationAdminAccountCommand_1 = require("./commands/DisableOrganizationAdminAccountCommand");
9
11
  const DisassociateMembershipCommand_1 = require("./commands/DisassociateMembershipCommand");
12
+ const EnableOrganizationAdminAccountCommand_1 = require("./commands/EnableOrganizationAdminAccountCommand");
10
13
  const GetMembersCommand_1 = require("./commands/GetMembersCommand");
11
14
  const ListGraphsCommand_1 = require("./commands/ListGraphsCommand");
12
15
  const ListInvitationsCommand_1 = require("./commands/ListInvitationsCommand");
13
16
  const ListMembersCommand_1 = require("./commands/ListMembersCommand");
17
+ const ListOrganizationAdminAccountsCommand_1 = require("./commands/ListOrganizationAdminAccountsCommand");
14
18
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
15
19
  const RejectInvitationCommand_1 = require("./commands/RejectInvitationCommand");
16
20
  const StartMonitoringMemberCommand_1 = require("./commands/StartMonitoringMemberCommand");
17
21
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
18
22
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
23
+ const UpdateOrganizationConfigurationCommand_1 = require("./commands/UpdateOrganizationConfigurationCommand");
19
24
  const DetectiveClient_1 = require("./DetectiveClient");
20
25
  class Detective extends DetectiveClient_1.DetectiveClient {
21
26
  acceptInvitation(args, optionsOrCb, cb) {
@@ -88,6 +93,34 @@ class Detective extends DetectiveClient_1.DetectiveClient {
88
93
  return this.send(command, optionsOrCb);
89
94
  }
90
95
  }
96
+ describeOrganizationConfiguration(args, optionsOrCb, cb) {
97
+ const command = new DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand(args);
98
+ if (typeof optionsOrCb === "function") {
99
+ this.send(command, optionsOrCb);
100
+ }
101
+ else if (typeof cb === "function") {
102
+ if (typeof optionsOrCb !== "object")
103
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
+ this.send(command, optionsOrCb || {}, cb);
105
+ }
106
+ else {
107
+ return this.send(command, optionsOrCb);
108
+ }
109
+ }
110
+ disableOrganizationAdminAccount(args, optionsOrCb, cb) {
111
+ const command = new DisableOrganizationAdminAccountCommand_1.DisableOrganizationAdminAccountCommand(args);
112
+ if (typeof optionsOrCb === "function") {
113
+ this.send(command, optionsOrCb);
114
+ }
115
+ else if (typeof cb === "function") {
116
+ if (typeof optionsOrCb !== "object")
117
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
+ this.send(command, optionsOrCb || {}, cb);
119
+ }
120
+ else {
121
+ return this.send(command, optionsOrCb);
122
+ }
123
+ }
91
124
  disassociateMembership(args, optionsOrCb, cb) {
92
125
  const command = new DisassociateMembershipCommand_1.DisassociateMembershipCommand(args);
93
126
  if (typeof optionsOrCb === "function") {
@@ -102,6 +135,20 @@ class Detective extends DetectiveClient_1.DetectiveClient {
102
135
  return this.send(command, optionsOrCb);
103
136
  }
104
137
  }
138
+ enableOrganizationAdminAccount(args, optionsOrCb, cb) {
139
+ const command = new EnableOrganizationAdminAccountCommand_1.EnableOrganizationAdminAccountCommand(args);
140
+ if (typeof optionsOrCb === "function") {
141
+ this.send(command, optionsOrCb);
142
+ }
143
+ else if (typeof cb === "function") {
144
+ if (typeof optionsOrCb !== "object")
145
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
+ this.send(command, optionsOrCb || {}, cb);
147
+ }
148
+ else {
149
+ return this.send(command, optionsOrCb);
150
+ }
151
+ }
105
152
  getMembers(args, optionsOrCb, cb) {
106
153
  const command = new GetMembersCommand_1.GetMembersCommand(args);
107
154
  if (typeof optionsOrCb === "function") {
@@ -158,6 +205,20 @@ class Detective extends DetectiveClient_1.DetectiveClient {
158
205
  return this.send(command, optionsOrCb);
159
206
  }
160
207
  }
208
+ listOrganizationAdminAccounts(args, optionsOrCb, cb) {
209
+ const command = new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(args);
210
+ if (typeof optionsOrCb === "function") {
211
+ this.send(command, optionsOrCb);
212
+ }
213
+ else if (typeof cb === "function") {
214
+ if (typeof optionsOrCb !== "object")
215
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
+ this.send(command, optionsOrCb || {}, cb);
217
+ }
218
+ else {
219
+ return this.send(command, optionsOrCb);
220
+ }
221
+ }
161
222
  listTagsForResource(args, optionsOrCb, cb) {
162
223
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
163
224
  if (typeof optionsOrCb === "function") {
@@ -228,5 +289,19 @@ class Detective extends DetectiveClient_1.DetectiveClient {
228
289
  return this.send(command, optionsOrCb);
229
290
  }
230
291
  }
292
+ updateOrganizationConfiguration(args, optionsOrCb, cb) {
293
+ const command = new UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand(args);
294
+ if (typeof optionsOrCb === "function") {
295
+ this.send(command, optionsOrCb);
296
+ }
297
+ else if (typeof cb === "function") {
298
+ if (typeof optionsOrCb !== "object")
299
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
+ this.send(command, optionsOrCb || {}, cb);
301
+ }
302
+ else {
303
+ return this.send(command, optionsOrCb);
304
+ }
305
+ }
231
306
  }
232
307
  exports.Detective = Detective;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeOrganizationConfigurationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DescribeOrganizationConfigurationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DetectiveClient";
18
+ const commandName = "DescribeOrganizationConfigurationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeOrganizationConfigurationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeOrganizationConfigurationResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DescribeOrganizationConfigurationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeOrganizationConfigurationCommand = DescribeOrganizationConfigurationCommand;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisableOrganizationAdminAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
7
+ class DisableOrganizationAdminAccountCommand extends smithy_client_1.Command {
8
+ constructor(input) {
9
+ super();
10
+ this.input = input;
11
+ }
12
+ resolveMiddleware(clientStack, configuration, options) {
13
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "DetectiveClient";
17
+ const commandName = "DisableOrganizationAdminAccountCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
22
+ inputFilterSensitiveLog: (input) => input,
23
+ outputFilterSensitiveLog: (output) => output,
24
+ };
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
29
+ return Aws_restJson1_1.serializeAws_restJson1DisableOrganizationAdminAccountCommand(input, context);
30
+ }
31
+ deserialize(output, context) {
32
+ return Aws_restJson1_1.deserializeAws_restJson1DisableOrganizationAdminAccountCommand(output, context);
33
+ }
34
+ }
35
+ exports.DisableOrganizationAdminAccountCommand = DisableOrganizationAdminAccountCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnableOrganizationAdminAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class EnableOrganizationAdminAccountCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DetectiveClient";
18
+ const commandName = "EnableOrganizationAdminAccountCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.EnableOrganizationAdminAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1EnableOrganizationAdminAccountCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1EnableOrganizationAdminAccountCommand(output, context);
34
+ }
35
+ }
36
+ exports.EnableOrganizationAdminAccountCommand = EnableOrganizationAdminAccountCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListOrganizationAdminAccountsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListOrganizationAdminAccountsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DetectiveClient";
18
+ const commandName = "ListOrganizationAdminAccountsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListOrganizationAdminAccountsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListOrganizationAdminAccountsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListOrganizationAdminAccountsCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListOrganizationAdminAccountsCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListOrganizationAdminAccountsCommand = ListOrganizationAdminAccountsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateOrganizationConfigurationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateOrganizationConfigurationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DetectiveClient";
18
+ const commandName = "UpdateOrganizationConfigurationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateOrganizationConfigurationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateOrganizationConfigurationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateOrganizationConfigurationCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateOrganizationConfigurationCommand = UpdateOrganizationConfigurationCommand;
@@ -6,13 +6,18 @@ tslib_1.__exportStar(require("./CreateGraphCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateMembersCommand"), exports);
7
7
  tslib_1.__exportStar(require("./DeleteGraphCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteMembersCommand"), exports);
9
+ tslib_1.__exportStar(require("./DescribeOrganizationConfigurationCommand"), exports);
10
+ tslib_1.__exportStar(require("./DisableOrganizationAdminAccountCommand"), exports);
9
11
  tslib_1.__exportStar(require("./DisassociateMembershipCommand"), exports);
12
+ tslib_1.__exportStar(require("./EnableOrganizationAdminAccountCommand"), exports);
10
13
  tslib_1.__exportStar(require("./GetMembersCommand"), exports);
11
14
  tslib_1.__exportStar(require("./ListGraphsCommand"), exports);
12
15
  tslib_1.__exportStar(require("./ListInvitationsCommand"), exports);
13
16
  tslib_1.__exportStar(require("./ListMembersCommand"), exports);
17
+ tslib_1.__exportStar(require("./ListOrganizationAdminAccountsCommand"), exports);
14
18
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
15
19
  tslib_1.__exportStar(require("./RejectInvitationCommand"), exports);
16
20
  tslib_1.__exportStar(require("./StartMonitoringMemberCommand"), exports);
17
21
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
18
22
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
23
+ tslib_1.__exportStar(require("./UpdateOrganizationConfigurationCommand"), exports);
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "api.detective.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "api.detective-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "api.detective.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "api.detective-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-gov-east-1": {
31
23
  variants: [
32
- {
33
- hostname: "api.detective.us-gov-east-1.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "api.detective-fips.us-gov-east-1.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "us-gov-west-1": {
43
31
  variants: [
44
- {
45
- hostname: "api.detective.us-gov-west-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "api.detective-fips.us-gov-west-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "us-west-1": {
55
39
  variants: [
56
- {
57
- hostname: "api.detective.us-west-1.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "api.detective-fips.us-west-1.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "us-west-2": {
67
47
  variants: [
68
- {
69
- hostname: "api.detective.us-west-2.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "api.detective-fips.us-west-2.amazonaws.com",
74
50
  tags: ["fips"],
@@ -1,42 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartMonitoringMemberRequest = exports.RejectInvitationRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListMembersResponse = exports.ListMembersRequest = exports.ListInvitationsResponse = exports.ListInvitationsRequest = exports.ListGraphsResponse = exports.Graph = exports.ListGraphsRequest = exports.GetMembersResponse = exports.GetMembersRequest = exports.DisassociateMembershipRequest = exports.DeleteMembersResponse = exports.DeleteMembersRequest = exports.DeleteGraphRequest = exports.CreateMembersResponse = exports.UnprocessedAccount = exports.MemberDetail = exports.MemberStatus = exports.MemberDisabledReason = exports.CreateMembersRequest = exports.ServiceQuotaExceededException = exports.CreateGraphResponse = exports.CreateGraphRequest = exports.Account = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AcceptInvitationRequest = void 0;
3
+ exports.UpdateOrganizationConfigurationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartMonitoringMemberRequest = exports.RejectInvitationRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListOrganizationAdminAccountsResponse = exports.ListOrganizationAdminAccountsRequest = exports.ListMembersResponse = exports.ListMembersRequest = exports.ListInvitationsResponse = exports.ListInvitationsRequest = exports.ListGraphsResponse = exports.Graph = exports.ListGraphsRequest = exports.GetMembersResponse = exports.GetMembersRequest = exports.EnableOrganizationAdminAccountRequest = exports.DisassociateMembershipRequest = exports.DescribeOrganizationConfigurationResponse = exports.DescribeOrganizationConfigurationRequest = exports.DeleteMembersResponse = exports.DeleteMembersRequest = exports.DeleteGraphRequest = exports.CreateMembersResponse = exports.UnprocessedAccount = exports.MemberDetail = exports.MemberStatus = exports.InvitationType = exports.MemberDisabledReason = exports.CreateMembersRequest = exports.CreateGraphResponse = exports.CreateGraphRequest = exports.Administrator = exports.Account = exports.AcceptInvitationRequest = void 0;
4
4
  var AcceptInvitationRequest;
5
5
  (function (AcceptInvitationRequest) {
6
6
  AcceptInvitationRequest.filterSensitiveLog = (obj) => ({
7
7
  ...obj,
8
8
  });
9
9
  })(AcceptInvitationRequest = exports.AcceptInvitationRequest || (exports.AcceptInvitationRequest = {}));
10
- var ConflictException;
11
- (function (ConflictException) {
12
- ConflictException.filterSensitiveLog = (obj) => ({
13
- ...obj,
14
- });
15
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
16
- var InternalServerException;
17
- (function (InternalServerException) {
18
- InternalServerException.filterSensitiveLog = (obj) => ({
19
- ...obj,
20
- });
21
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
22
- var ResourceNotFoundException;
23
- (function (ResourceNotFoundException) {
24
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
25
- ...obj,
26
- });
27
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
28
- var ValidationException;
29
- (function (ValidationException) {
30
- ValidationException.filterSensitiveLog = (obj) => ({
31
- ...obj,
32
- });
33
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
34
10
  var Account;
35
11
  (function (Account) {
36
12
  Account.filterSensitiveLog = (obj) => ({
37
13
  ...obj,
38
14
  });
39
15
  })(Account = exports.Account || (exports.Account = {}));
16
+ var Administrator;
17
+ (function (Administrator) {
18
+ Administrator.filterSensitiveLog = (obj) => ({
19
+ ...obj,
20
+ });
21
+ })(Administrator = exports.Administrator || (exports.Administrator = {}));
40
22
  var CreateGraphRequest;
41
23
  (function (CreateGraphRequest) {
42
24
  CreateGraphRequest.filterSensitiveLog = (obj) => ({
@@ -49,12 +31,6 @@ var CreateGraphResponse;
49
31
  ...obj,
50
32
  });
51
33
  })(CreateGraphResponse = exports.CreateGraphResponse || (exports.CreateGraphResponse = {}));
52
- var ServiceQuotaExceededException;
53
- (function (ServiceQuotaExceededException) {
54
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
55
- ...obj,
56
- });
57
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
58
34
  var CreateMembersRequest;
59
35
  (function (CreateMembersRequest) {
60
36
  CreateMembersRequest.filterSensitiveLog = (obj) => ({
@@ -66,6 +42,11 @@ var MemberDisabledReason;
66
42
  MemberDisabledReason["VOLUME_TOO_HIGH"] = "VOLUME_TOO_HIGH";
67
43
  MemberDisabledReason["VOLUME_UNKNOWN"] = "VOLUME_UNKNOWN";
68
44
  })(MemberDisabledReason = exports.MemberDisabledReason || (exports.MemberDisabledReason = {}));
45
+ var InvitationType;
46
+ (function (InvitationType) {
47
+ InvitationType["INVITATION"] = "INVITATION";
48
+ InvitationType["ORGANIZATION"] = "ORGANIZATION";
49
+ })(InvitationType = exports.InvitationType || (exports.InvitationType = {}));
69
50
  var MemberStatus;
70
51
  (function (MemberStatus) {
71
52
  MemberStatus["ACCEPTED_BUT_DISABLED"] = "ACCEPTED_BUT_DISABLED";
@@ -110,12 +91,30 @@ var DeleteMembersResponse;
110
91
  ...obj,
111
92
  });
112
93
  })(DeleteMembersResponse = exports.DeleteMembersResponse || (exports.DeleteMembersResponse = {}));
94
+ var DescribeOrganizationConfigurationRequest;
95
+ (function (DescribeOrganizationConfigurationRequest) {
96
+ DescribeOrganizationConfigurationRequest.filterSensitiveLog = (obj) => ({
97
+ ...obj,
98
+ });
99
+ })(DescribeOrganizationConfigurationRequest = exports.DescribeOrganizationConfigurationRequest || (exports.DescribeOrganizationConfigurationRequest = {}));
100
+ var DescribeOrganizationConfigurationResponse;
101
+ (function (DescribeOrganizationConfigurationResponse) {
102
+ DescribeOrganizationConfigurationResponse.filterSensitiveLog = (obj) => ({
103
+ ...obj,
104
+ });
105
+ })(DescribeOrganizationConfigurationResponse = exports.DescribeOrganizationConfigurationResponse || (exports.DescribeOrganizationConfigurationResponse = {}));
113
106
  var DisassociateMembershipRequest;
114
107
  (function (DisassociateMembershipRequest) {
115
108
  DisassociateMembershipRequest.filterSensitiveLog = (obj) => ({
116
109
  ...obj,
117
110
  });
118
111
  })(DisassociateMembershipRequest = exports.DisassociateMembershipRequest || (exports.DisassociateMembershipRequest = {}));
112
+ var EnableOrganizationAdminAccountRequest;
113
+ (function (EnableOrganizationAdminAccountRequest) {
114
+ EnableOrganizationAdminAccountRequest.filterSensitiveLog = (obj) => ({
115
+ ...obj,
116
+ });
117
+ })(EnableOrganizationAdminAccountRequest = exports.EnableOrganizationAdminAccountRequest || (exports.EnableOrganizationAdminAccountRequest = {}));
119
118
  var GetMembersRequest;
120
119
  (function (GetMembersRequest) {
121
120
  GetMembersRequest.filterSensitiveLog = (obj) => ({
@@ -170,6 +169,18 @@ var ListMembersResponse;
170
169
  ...obj,
171
170
  });
172
171
  })(ListMembersResponse = exports.ListMembersResponse || (exports.ListMembersResponse = {}));
172
+ var ListOrganizationAdminAccountsRequest;
173
+ (function (ListOrganizationAdminAccountsRequest) {
174
+ ListOrganizationAdminAccountsRequest.filterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ });
177
+ })(ListOrganizationAdminAccountsRequest = exports.ListOrganizationAdminAccountsRequest || (exports.ListOrganizationAdminAccountsRequest = {}));
178
+ var ListOrganizationAdminAccountsResponse;
179
+ (function (ListOrganizationAdminAccountsResponse) {
180
+ ListOrganizationAdminAccountsResponse.filterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ })(ListOrganizationAdminAccountsResponse = exports.ListOrganizationAdminAccountsResponse || (exports.ListOrganizationAdminAccountsResponse = {}));
173
184
  var ListTagsForResourceRequest;
174
185
  (function (ListTagsForResourceRequest) {
175
186
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -218,3 +229,9 @@ var UntagResourceResponse;
218
229
  ...obj,
219
230
  });
220
231
  })(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
232
+ var UpdateOrganizationConfigurationRequest;
233
+ (function (UpdateOrganizationConfigurationRequest) {
234
+ UpdateOrganizationConfigurationRequest.filterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ })(UpdateOrganizationConfigurationRequest = exports.UpdateOrganizationConfigurationRequest || (exports.UpdateOrganizationConfigurationRequest = {}));