@aws-sdk/client-detective 3.45.0 → 3.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +18 -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/models/models_0.js +54 -1
  11. package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +35 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +451 -1
  14. package/dist-cjs/runtimeConfig.js +0 -2
  15. package/dist-es/Detective.js +75 -0
  16. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +39 -0
  17. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +38 -0
  18. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +39 -0
  19. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +39 -0
  20. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +39 -0
  21. package/dist-es/commands/index.js +5 -0
  22. package/dist-es/models/models_0.js +37 -0
  23. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +533 -1
  26. package/dist-es/runtimeConfig.js +0 -2
  27. package/dist-types/Detective.d.ts +154 -42
  28. package/dist-types/DetectiveClient.d.ts +49 -16
  29. package/dist-types/commands/CreateGraphCommand.d.ts +9 -9
  30. package/dist-types/commands/CreateMembersCommand.d.ts +17 -7
  31. package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteMembersCommand.d.ts +13 -5
  33. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +38 -0
  34. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +38 -0
  35. package/dist-types/commands/DisassociateMembershipCommand.d.ts +6 -1
  36. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +42 -0
  37. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  38. package/dist-types/commands/ListMembersCommand.d.ts +6 -2
  39. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +36 -0
  40. package/dist-types/commands/RejectInvitationCommand.d.ts +6 -1
  41. package/dist-types/commands/StartMonitoringMemberCommand.d.ts +1 -1
  42. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +37 -0
  43. package/dist-types/commands/index.d.ts +5 -0
  44. package/dist-types/models/models_0.d.ts +234 -71
  45. package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
  46. package/dist-types/pagination/index.d.ts +1 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  48. package/dist-types/ts3.4/Detective.d.ts +25 -0
  49. package/dist-types/ts3.4/DetectiveClient.d.ts +7 -2
  50. package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +16 -0
  52. package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +83 -0
  57. package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  60. package/package.json +36 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+ ### Features
15
+
16
+ * **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))
17
+ * **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))
18
+ * 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))
19
+
20
+
21
+
22
+
23
+
6
24
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
25
 
8
26
 
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);
@@ -1,6 +1,6 @@
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.TooManyRequestsException = 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.ServiceQuotaExceededException = exports.CreateGraphResponse = exports.CreateGraphRequest = exports.Administrator = exports.Account = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AcceptInvitationRequest = void 0;
4
4
  var AcceptInvitationRequest;
5
5
  (function (AcceptInvitationRequest) {
6
6
  AcceptInvitationRequest.filterSensitiveLog = (obj) => ({
@@ -37,6 +37,12 @@ var Account;
37
37
  ...obj,
38
38
  });
39
39
  })(Account = exports.Account || (exports.Account = {}));
40
+ var Administrator;
41
+ (function (Administrator) {
42
+ Administrator.filterSensitiveLog = (obj) => ({
43
+ ...obj,
44
+ });
45
+ })(Administrator = exports.Administrator || (exports.Administrator = {}));
40
46
  var CreateGraphRequest;
41
47
  (function (CreateGraphRequest) {
42
48
  CreateGraphRequest.filterSensitiveLog = (obj) => ({
@@ -66,6 +72,11 @@ var MemberDisabledReason;
66
72
  MemberDisabledReason["VOLUME_TOO_HIGH"] = "VOLUME_TOO_HIGH";
67
73
  MemberDisabledReason["VOLUME_UNKNOWN"] = "VOLUME_UNKNOWN";
68
74
  })(MemberDisabledReason = exports.MemberDisabledReason || (exports.MemberDisabledReason = {}));
75
+ var InvitationType;
76
+ (function (InvitationType) {
77
+ InvitationType["INVITATION"] = "INVITATION";
78
+ InvitationType["ORGANIZATION"] = "ORGANIZATION";
79
+ })(InvitationType = exports.InvitationType || (exports.InvitationType = {}));
69
80
  var MemberStatus;
70
81
  (function (MemberStatus) {
71
82
  MemberStatus["ACCEPTED_BUT_DISABLED"] = "ACCEPTED_BUT_DISABLED";
@@ -110,12 +121,36 @@ var DeleteMembersResponse;
110
121
  ...obj,
111
122
  });
112
123
  })(DeleteMembersResponse = exports.DeleteMembersResponse || (exports.DeleteMembersResponse = {}));
124
+ var DescribeOrganizationConfigurationRequest;
125
+ (function (DescribeOrganizationConfigurationRequest) {
126
+ DescribeOrganizationConfigurationRequest.filterSensitiveLog = (obj) => ({
127
+ ...obj,
128
+ });
129
+ })(DescribeOrganizationConfigurationRequest = exports.DescribeOrganizationConfigurationRequest || (exports.DescribeOrganizationConfigurationRequest = {}));
130
+ var DescribeOrganizationConfigurationResponse;
131
+ (function (DescribeOrganizationConfigurationResponse) {
132
+ DescribeOrganizationConfigurationResponse.filterSensitiveLog = (obj) => ({
133
+ ...obj,
134
+ });
135
+ })(DescribeOrganizationConfigurationResponse = exports.DescribeOrganizationConfigurationResponse || (exports.DescribeOrganizationConfigurationResponse = {}));
136
+ var TooManyRequestsException;
137
+ (function (TooManyRequestsException) {
138
+ TooManyRequestsException.filterSensitiveLog = (obj) => ({
139
+ ...obj,
140
+ });
141
+ })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
113
142
  var DisassociateMembershipRequest;
114
143
  (function (DisassociateMembershipRequest) {
115
144
  DisassociateMembershipRequest.filterSensitiveLog = (obj) => ({
116
145
  ...obj,
117
146
  });
118
147
  })(DisassociateMembershipRequest = exports.DisassociateMembershipRequest || (exports.DisassociateMembershipRequest = {}));
148
+ var EnableOrganizationAdminAccountRequest;
149
+ (function (EnableOrganizationAdminAccountRequest) {
150
+ EnableOrganizationAdminAccountRequest.filterSensitiveLog = (obj) => ({
151
+ ...obj,
152
+ });
153
+ })(EnableOrganizationAdminAccountRequest = exports.EnableOrganizationAdminAccountRequest || (exports.EnableOrganizationAdminAccountRequest = {}));
119
154
  var GetMembersRequest;
120
155
  (function (GetMembersRequest) {
121
156
  GetMembersRequest.filterSensitiveLog = (obj) => ({
@@ -170,6 +205,18 @@ var ListMembersResponse;
170
205
  ...obj,
171
206
  });
172
207
  })(ListMembersResponse = exports.ListMembersResponse || (exports.ListMembersResponse = {}));
208
+ var ListOrganizationAdminAccountsRequest;
209
+ (function (ListOrganizationAdminAccountsRequest) {
210
+ ListOrganizationAdminAccountsRequest.filterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ })(ListOrganizationAdminAccountsRequest = exports.ListOrganizationAdminAccountsRequest || (exports.ListOrganizationAdminAccountsRequest = {}));
214
+ var ListOrganizationAdminAccountsResponse;
215
+ (function (ListOrganizationAdminAccountsResponse) {
216
+ ListOrganizationAdminAccountsResponse.filterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ });
219
+ })(ListOrganizationAdminAccountsResponse = exports.ListOrganizationAdminAccountsResponse || (exports.ListOrganizationAdminAccountsResponse = {}));
173
220
  var ListTagsForResourceRequest;
174
221
  (function (ListTagsForResourceRequest) {
175
222
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -218,3 +265,9 @@ var UntagResourceResponse;
218
265
  ...obj,
219
266
  });
220
267
  })(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
268
+ var UpdateOrganizationConfigurationRequest;
269
+ (function (UpdateOrganizationConfigurationRequest) {
270
+ UpdateOrganizationConfigurationRequest.filterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ })(UpdateOrganizationConfigurationRequest = exports.UpdateOrganizationConfigurationRequest || (exports.UpdateOrganizationConfigurationRequest = {}));
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOrganizationAdminAccounts = void 0;
4
+ const ListOrganizationAdminAccountsCommand_1 = require("../commands/ListOrganizationAdminAccountsCommand");
5
+ const Detective_1 = require("../Detective");
6
+ const DetectiveClient_1 = require("../DetectiveClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listOrganizationAdminAccounts(input, ...args);
12
+ };
13
+ async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof Detective_1.Detective) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof DetectiveClient_1.DetectiveClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Detective | DetectiveClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListOrganizationAdminAccounts = paginateListOrganizationAdminAccounts;
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListGraphsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListInvitationsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListMembersPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListOrganizationAdminAccountsPaginator"), exports);