@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.
- package/CHANGELOG.md +45 -0
- package/README.md +41 -13
- package/dist-cjs/Detective.js +75 -0
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +35 -0
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +36 -0
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +36 -0
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +48 -31
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +451 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/Detective.js +75 -0
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +39 -0
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +38 -0
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +39 -0
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +39 -0
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +33 -20
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +533 -1
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Detective.d.ts +154 -42
- package/dist-types/DetectiveClient.d.ts +54 -17
- package/dist-types/commands/CreateGraphCommand.d.ts +9 -9
- package/dist-types/commands/CreateMembersCommand.d.ts +17 -7
- package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMembersCommand.d.ts +13 -5
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +38 -0
- package/dist-types/commands/DisassociateMembershipCommand.d.ts +6 -1
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +42 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +6 -2
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +36 -0
- package/dist-types/commands/RejectInvitationCommand.d.ts +6 -1
- package/dist-types/commands/StartMonitoringMemberCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +228 -101
- package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Detective.d.ts +25 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +10 -3
- package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +79 -20
- package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/dist-es/Detective.js
CHANGED
|
@@ -4,16 +4,21 @@ import { CreateGraphCommand } from "./commands/CreateGraphCommand";
|
|
|
4
4
|
import { CreateMembersCommand, } from "./commands/CreateMembersCommand";
|
|
5
5
|
import { DeleteGraphCommand } from "./commands/DeleteGraphCommand";
|
|
6
6
|
import { DeleteMembersCommand, } from "./commands/DeleteMembersCommand";
|
|
7
|
+
import { DescribeOrganizationConfigurationCommand, } from "./commands/DescribeOrganizationConfigurationCommand";
|
|
8
|
+
import { DisableOrganizationAdminAccountCommand, } from "./commands/DisableOrganizationAdminAccountCommand";
|
|
7
9
|
import { DisassociateMembershipCommand, } from "./commands/DisassociateMembershipCommand";
|
|
10
|
+
import { EnableOrganizationAdminAccountCommand, } from "./commands/EnableOrganizationAdminAccountCommand";
|
|
8
11
|
import { GetMembersCommand } from "./commands/GetMembersCommand";
|
|
9
12
|
import { ListGraphsCommand } from "./commands/ListGraphsCommand";
|
|
10
13
|
import { ListInvitationsCommand, } from "./commands/ListInvitationsCommand";
|
|
11
14
|
import { ListMembersCommand } from "./commands/ListMembersCommand";
|
|
15
|
+
import { ListOrganizationAdminAccountsCommand, } from "./commands/ListOrganizationAdminAccountsCommand";
|
|
12
16
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
13
17
|
import { RejectInvitationCommand, } from "./commands/RejectInvitationCommand";
|
|
14
18
|
import { StartMonitoringMemberCommand, } from "./commands/StartMonitoringMemberCommand";
|
|
15
19
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
16
20
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
17
22
|
import { DetectiveClient } from "./DetectiveClient";
|
|
18
23
|
var Detective = (function (_super) {
|
|
19
24
|
__extends(Detective, _super);
|
|
@@ -90,6 +95,34 @@ var Detective = (function (_super) {
|
|
|
90
95
|
return this.send(command, optionsOrCb);
|
|
91
96
|
}
|
|
92
97
|
};
|
|
98
|
+
Detective.prototype.describeOrganizationConfiguration = function (args, optionsOrCb, cb) {
|
|
99
|
+
var command = new DescribeOrganizationConfigurationCommand(args);
|
|
100
|
+
if (typeof optionsOrCb === "function") {
|
|
101
|
+
this.send(command, optionsOrCb);
|
|
102
|
+
}
|
|
103
|
+
else if (typeof cb === "function") {
|
|
104
|
+
if (typeof optionsOrCb !== "object")
|
|
105
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
106
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
return this.send(command, optionsOrCb);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
Detective.prototype.disableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
|
|
113
|
+
var command = new DisableOrganizationAdminAccountCommand(args);
|
|
114
|
+
if (typeof optionsOrCb === "function") {
|
|
115
|
+
this.send(command, optionsOrCb);
|
|
116
|
+
}
|
|
117
|
+
else if (typeof cb === "function") {
|
|
118
|
+
if (typeof optionsOrCb !== "object")
|
|
119
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
120
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
return this.send(command, optionsOrCb);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
93
126
|
Detective.prototype.disassociateMembership = function (args, optionsOrCb, cb) {
|
|
94
127
|
var command = new DisassociateMembershipCommand(args);
|
|
95
128
|
if (typeof optionsOrCb === "function") {
|
|
@@ -104,6 +137,20 @@ var Detective = (function (_super) {
|
|
|
104
137
|
return this.send(command, optionsOrCb);
|
|
105
138
|
}
|
|
106
139
|
};
|
|
140
|
+
Detective.prototype.enableOrganizationAdminAccount = function (args, optionsOrCb, cb) {
|
|
141
|
+
var command = new EnableOrganizationAdminAccountCommand(args);
|
|
142
|
+
if (typeof optionsOrCb === "function") {
|
|
143
|
+
this.send(command, optionsOrCb);
|
|
144
|
+
}
|
|
145
|
+
else if (typeof cb === "function") {
|
|
146
|
+
if (typeof optionsOrCb !== "object")
|
|
147
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
148
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
107
154
|
Detective.prototype.getMembers = function (args, optionsOrCb, cb) {
|
|
108
155
|
var command = new GetMembersCommand(args);
|
|
109
156
|
if (typeof optionsOrCb === "function") {
|
|
@@ -160,6 +207,20 @@ var Detective = (function (_super) {
|
|
|
160
207
|
return this.send(command, optionsOrCb);
|
|
161
208
|
}
|
|
162
209
|
};
|
|
210
|
+
Detective.prototype.listOrganizationAdminAccounts = function (args, optionsOrCb, cb) {
|
|
211
|
+
var command = new ListOrganizationAdminAccountsCommand(args);
|
|
212
|
+
if (typeof optionsOrCb === "function") {
|
|
213
|
+
this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
else if (typeof cb === "function") {
|
|
216
|
+
if (typeof optionsOrCb !== "object")
|
|
217
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
218
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return this.send(command, optionsOrCb);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
163
224
|
Detective.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
164
225
|
var command = new ListTagsForResourceCommand(args);
|
|
165
226
|
if (typeof optionsOrCb === "function") {
|
|
@@ -230,6 +291,20 @@ var Detective = (function (_super) {
|
|
|
230
291
|
return this.send(command, optionsOrCb);
|
|
231
292
|
}
|
|
232
293
|
};
|
|
294
|
+
Detective.prototype.updateOrganizationConfiguration = function (args, optionsOrCb, cb) {
|
|
295
|
+
var command = new UpdateOrganizationConfigurationCommand(args);
|
|
296
|
+
if (typeof optionsOrCb === "function") {
|
|
297
|
+
this.send(command, optionsOrCb);
|
|
298
|
+
}
|
|
299
|
+
else if (typeof cb === "function") {
|
|
300
|
+
if (typeof optionsOrCb !== "object")
|
|
301
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
302
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return this.send(command, optionsOrCb);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
233
308
|
return Detective;
|
|
234
309
|
}(DetectiveClient));
|
|
235
310
|
export { Detective };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeOrganizationConfigurationRequest, DescribeOrganizationConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeOrganizationConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeOrganizationConfigurationCommand, _super);
|
|
8
|
+
function DescribeOrganizationConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeOrganizationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DetectiveClient";
|
|
18
|
+
var commandName = "DescribeOrganizationConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeOrganizationConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeOrganizationConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeOrganizationConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeOrganizationConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeOrganizationConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeOrganizationConfigurationCommand };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_restJson1DisableOrganizationAdminAccountCommand, serializeAws_restJson1DisableOrganizationAdminAccountCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
var DisableOrganizationAdminAccountCommand = (function (_super) {
|
|
6
|
+
__extends(DisableOrganizationAdminAccountCommand, _super);
|
|
7
|
+
function DisableOrganizationAdminAccountCommand(input) {
|
|
8
|
+
var _this = _super.call(this) || this;
|
|
9
|
+
_this.input = input;
|
|
10
|
+
return _this;
|
|
11
|
+
}
|
|
12
|
+
DisableOrganizationAdminAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
var logger = configuration.logger;
|
|
16
|
+
var clientName = "DetectiveClient";
|
|
17
|
+
var commandName = "DisableOrganizationAdminAccountCommand";
|
|
18
|
+
var handlerExecutionContext = {
|
|
19
|
+
logger: logger,
|
|
20
|
+
clientName: clientName,
|
|
21
|
+
commandName: commandName,
|
|
22
|
+
inputFilterSensitiveLog: function (input) { return input; },
|
|
23
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
24
|
+
};
|
|
25
|
+
var requestHandler = configuration.requestHandler;
|
|
26
|
+
return stack.resolve(function (request) {
|
|
27
|
+
return requestHandler.handle(request.request, options || {});
|
|
28
|
+
}, handlerExecutionContext);
|
|
29
|
+
};
|
|
30
|
+
DisableOrganizationAdminAccountCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
return serializeAws_restJson1DisableOrganizationAdminAccountCommand(input, context);
|
|
32
|
+
};
|
|
33
|
+
DisableOrganizationAdminAccountCommand.prototype.deserialize = function (output, context) {
|
|
34
|
+
return deserializeAws_restJson1DisableOrganizationAdminAccountCommand(output, context);
|
|
35
|
+
};
|
|
36
|
+
return DisableOrganizationAdminAccountCommand;
|
|
37
|
+
}($Command));
|
|
38
|
+
export { DisableOrganizationAdminAccountCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { EnableOrganizationAdminAccountRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1EnableOrganizationAdminAccountCommand, serializeAws_restJson1EnableOrganizationAdminAccountCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var EnableOrganizationAdminAccountCommand = (function (_super) {
|
|
7
|
+
__extends(EnableOrganizationAdminAccountCommand, _super);
|
|
8
|
+
function EnableOrganizationAdminAccountCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
EnableOrganizationAdminAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DetectiveClient";
|
|
18
|
+
var commandName = "EnableOrganizationAdminAccountCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: EnableOrganizationAdminAccountRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
EnableOrganizationAdminAccountCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1EnableOrganizationAdminAccountCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
EnableOrganizationAdminAccountCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1EnableOrganizationAdminAccountCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return EnableOrganizationAdminAccountCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { EnableOrganizationAdminAccountCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListOrganizationAdminAccountsRequest, ListOrganizationAdminAccountsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListOrganizationAdminAccountsCommand, serializeAws_restJson1ListOrganizationAdminAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListOrganizationAdminAccountsCommand = (function (_super) {
|
|
7
|
+
__extends(ListOrganizationAdminAccountsCommand, _super);
|
|
8
|
+
function ListOrganizationAdminAccountsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListOrganizationAdminAccountsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DetectiveClient";
|
|
18
|
+
var commandName = "ListOrganizationAdminAccountsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListOrganizationAdminAccountsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListOrganizationAdminAccountsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListOrganizationAdminAccountsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListOrganizationAdminAccountsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListOrganizationAdminAccountsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListOrganizationAdminAccountsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListOrganizationAdminAccountsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListOrganizationAdminAccountsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateOrganizationConfigurationRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateOrganizationConfigurationCommand, serializeAws_restJson1UpdateOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateOrganizationConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateOrganizationConfigurationCommand, _super);
|
|
8
|
+
function UpdateOrganizationConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateOrganizationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DetectiveClient";
|
|
18
|
+
var commandName = "UpdateOrganizationConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateOrganizationConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateOrganizationConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateOrganizationConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateOrganizationConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateOrganizationConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateOrganizationConfigurationCommand };
|
|
@@ -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";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "api.detective.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "api.detective-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "api.detective.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "api.detective-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-east-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "api.detective.us-gov-east-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "api.detective-fips.us-gov-east-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "api.detective.us-gov-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "api.detective-fips.us-gov-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "api.detective.us-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "api.detective-fips.us-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-2": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "api.detective.us-west-2.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "api.detective-fips.us-west-2.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -3,26 +3,14 @@ export var AcceptInvitationRequest;
|
|
|
3
3
|
(function (AcceptInvitationRequest) {
|
|
4
4
|
AcceptInvitationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
5
|
})(AcceptInvitationRequest || (AcceptInvitationRequest = {}));
|
|
6
|
-
export var ConflictException;
|
|
7
|
-
(function (ConflictException) {
|
|
8
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
-
})(ConflictException || (ConflictException = {}));
|
|
10
|
-
export var InternalServerException;
|
|
11
|
-
(function (InternalServerException) {
|
|
12
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
14
|
-
export var ResourceNotFoundException;
|
|
15
|
-
(function (ResourceNotFoundException) {
|
|
16
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
18
|
-
export var ValidationException;
|
|
19
|
-
(function (ValidationException) {
|
|
20
|
-
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(ValidationException || (ValidationException = {}));
|
|
22
6
|
export var Account;
|
|
23
7
|
(function (Account) {
|
|
24
8
|
Account.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
9
|
})(Account || (Account = {}));
|
|
10
|
+
export var Administrator;
|
|
11
|
+
(function (Administrator) {
|
|
12
|
+
Administrator.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
+
})(Administrator || (Administrator = {}));
|
|
26
14
|
export var CreateGraphRequest;
|
|
27
15
|
(function (CreateGraphRequest) {
|
|
28
16
|
CreateGraphRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -31,10 +19,6 @@ export var CreateGraphResponse;
|
|
|
31
19
|
(function (CreateGraphResponse) {
|
|
32
20
|
CreateGraphResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
21
|
})(CreateGraphResponse || (CreateGraphResponse = {}));
|
|
34
|
-
export var ServiceQuotaExceededException;
|
|
35
|
-
(function (ServiceQuotaExceededException) {
|
|
36
|
-
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
-
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
38
22
|
export var CreateMembersRequest;
|
|
39
23
|
(function (CreateMembersRequest) {
|
|
40
24
|
CreateMembersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -44,6 +28,11 @@ export var MemberDisabledReason;
|
|
|
44
28
|
MemberDisabledReason["VOLUME_TOO_HIGH"] = "VOLUME_TOO_HIGH";
|
|
45
29
|
MemberDisabledReason["VOLUME_UNKNOWN"] = "VOLUME_UNKNOWN";
|
|
46
30
|
})(MemberDisabledReason || (MemberDisabledReason = {}));
|
|
31
|
+
export var InvitationType;
|
|
32
|
+
(function (InvitationType) {
|
|
33
|
+
InvitationType["INVITATION"] = "INVITATION";
|
|
34
|
+
InvitationType["ORGANIZATION"] = "ORGANIZATION";
|
|
35
|
+
})(InvitationType || (InvitationType = {}));
|
|
47
36
|
export var MemberStatus;
|
|
48
37
|
(function (MemberStatus) {
|
|
49
38
|
MemberStatus["ACCEPTED_BUT_DISABLED"] = "ACCEPTED_BUT_DISABLED";
|
|
@@ -76,10 +65,22 @@ export var DeleteMembersResponse;
|
|
|
76
65
|
(function (DeleteMembersResponse) {
|
|
77
66
|
DeleteMembersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
67
|
})(DeleteMembersResponse || (DeleteMembersResponse = {}));
|
|
68
|
+
export var DescribeOrganizationConfigurationRequest;
|
|
69
|
+
(function (DescribeOrganizationConfigurationRequest) {
|
|
70
|
+
DescribeOrganizationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
71
|
+
})(DescribeOrganizationConfigurationRequest || (DescribeOrganizationConfigurationRequest = {}));
|
|
72
|
+
export var DescribeOrganizationConfigurationResponse;
|
|
73
|
+
(function (DescribeOrganizationConfigurationResponse) {
|
|
74
|
+
DescribeOrganizationConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
75
|
+
})(DescribeOrganizationConfigurationResponse || (DescribeOrganizationConfigurationResponse = {}));
|
|
79
76
|
export var DisassociateMembershipRequest;
|
|
80
77
|
(function (DisassociateMembershipRequest) {
|
|
81
78
|
DisassociateMembershipRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
79
|
})(DisassociateMembershipRequest || (DisassociateMembershipRequest = {}));
|
|
80
|
+
export var EnableOrganizationAdminAccountRequest;
|
|
81
|
+
(function (EnableOrganizationAdminAccountRequest) {
|
|
82
|
+
EnableOrganizationAdminAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
|
+
})(EnableOrganizationAdminAccountRequest || (EnableOrganizationAdminAccountRequest = {}));
|
|
83
84
|
export var GetMembersRequest;
|
|
84
85
|
(function (GetMembersRequest) {
|
|
85
86
|
GetMembersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -116,6 +117,14 @@ export var ListMembersResponse;
|
|
|
116
117
|
(function (ListMembersResponse) {
|
|
117
118
|
ListMembersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
119
|
})(ListMembersResponse || (ListMembersResponse = {}));
|
|
120
|
+
export var ListOrganizationAdminAccountsRequest;
|
|
121
|
+
(function (ListOrganizationAdminAccountsRequest) {
|
|
122
|
+
ListOrganizationAdminAccountsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
})(ListOrganizationAdminAccountsRequest || (ListOrganizationAdminAccountsRequest = {}));
|
|
124
|
+
export var ListOrganizationAdminAccountsResponse;
|
|
125
|
+
(function (ListOrganizationAdminAccountsResponse) {
|
|
126
|
+
ListOrganizationAdminAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
})(ListOrganizationAdminAccountsResponse || (ListOrganizationAdminAccountsResponse = {}));
|
|
119
128
|
export var ListTagsForResourceRequest;
|
|
120
129
|
(function (ListTagsForResourceRequest) {
|
|
121
130
|
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -148,3 +157,7 @@ export var UntagResourceResponse;
|
|
|
148
157
|
(function (UntagResourceResponse) {
|
|
149
158
|
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
159
|
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
160
|
+
export var UpdateOrganizationConfigurationRequest;
|
|
161
|
+
(function (UpdateOrganizationConfigurationRequest) {
|
|
162
|
+
UpdateOrganizationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
+
})(UpdateOrganizationConfigurationRequest || (UpdateOrganizationConfigurationRequest = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListOrganizationAdminAccountsCommand, } from "../commands/ListOrganizationAdminAccountsCommand";
|
|
3
|
+
import { Detective } from "../Detective";
|
|
4
|
+
import { DetectiveClient } from "../DetectiveClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListOrganizationAdminAccountsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listOrganizationAdminAccounts.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListOrganizationAdminAccounts(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListOrganizationAdminAccounts_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Detective)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof DetectiveClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|