@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.
- package/CHANGELOG.md +18 -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/models/models_0.js +54 -1
- 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.js +0 -2
- 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/models/models_0.js +37 -0
- 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.js +0 -2
- package/dist-types/Detective.d.ts +154 -42
- package/dist-types/DetectiveClient.d.ts +49 -16
- 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 +234 -71
- 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/ts3.4/Detective.d.ts +25 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +7 -2
- 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 +83 -0
- 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/package.json +36 -43
|
@@ -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";
|
|
@@ -23,6 +23,10 @@ export var Account;
|
|
|
23
23
|
(function (Account) {
|
|
24
24
|
Account.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
25
|
})(Account || (Account = {}));
|
|
26
|
+
export var Administrator;
|
|
27
|
+
(function (Administrator) {
|
|
28
|
+
Administrator.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
+
})(Administrator || (Administrator = {}));
|
|
26
30
|
export var CreateGraphRequest;
|
|
27
31
|
(function (CreateGraphRequest) {
|
|
28
32
|
CreateGraphRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -44,6 +48,11 @@ export var MemberDisabledReason;
|
|
|
44
48
|
MemberDisabledReason["VOLUME_TOO_HIGH"] = "VOLUME_TOO_HIGH";
|
|
45
49
|
MemberDisabledReason["VOLUME_UNKNOWN"] = "VOLUME_UNKNOWN";
|
|
46
50
|
})(MemberDisabledReason || (MemberDisabledReason = {}));
|
|
51
|
+
export var InvitationType;
|
|
52
|
+
(function (InvitationType) {
|
|
53
|
+
InvitationType["INVITATION"] = "INVITATION";
|
|
54
|
+
InvitationType["ORGANIZATION"] = "ORGANIZATION";
|
|
55
|
+
})(InvitationType || (InvitationType = {}));
|
|
47
56
|
export var MemberStatus;
|
|
48
57
|
(function (MemberStatus) {
|
|
49
58
|
MemberStatus["ACCEPTED_BUT_DISABLED"] = "ACCEPTED_BUT_DISABLED";
|
|
@@ -76,10 +85,26 @@ export var DeleteMembersResponse;
|
|
|
76
85
|
(function (DeleteMembersResponse) {
|
|
77
86
|
DeleteMembersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
87
|
})(DeleteMembersResponse || (DeleteMembersResponse = {}));
|
|
88
|
+
export var DescribeOrganizationConfigurationRequest;
|
|
89
|
+
(function (DescribeOrganizationConfigurationRequest) {
|
|
90
|
+
DescribeOrganizationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
+
})(DescribeOrganizationConfigurationRequest || (DescribeOrganizationConfigurationRequest = {}));
|
|
92
|
+
export var DescribeOrganizationConfigurationResponse;
|
|
93
|
+
(function (DescribeOrganizationConfigurationResponse) {
|
|
94
|
+
DescribeOrganizationConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
+
})(DescribeOrganizationConfigurationResponse || (DescribeOrganizationConfigurationResponse = {}));
|
|
96
|
+
export var TooManyRequestsException;
|
|
97
|
+
(function (TooManyRequestsException) {
|
|
98
|
+
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
99
|
+
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
79
100
|
export var DisassociateMembershipRequest;
|
|
80
101
|
(function (DisassociateMembershipRequest) {
|
|
81
102
|
DisassociateMembershipRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
103
|
})(DisassociateMembershipRequest || (DisassociateMembershipRequest = {}));
|
|
104
|
+
export var EnableOrganizationAdminAccountRequest;
|
|
105
|
+
(function (EnableOrganizationAdminAccountRequest) {
|
|
106
|
+
EnableOrganizationAdminAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
})(EnableOrganizationAdminAccountRequest || (EnableOrganizationAdminAccountRequest = {}));
|
|
83
108
|
export var GetMembersRequest;
|
|
84
109
|
(function (GetMembersRequest) {
|
|
85
110
|
GetMembersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -116,6 +141,14 @@ export var ListMembersResponse;
|
|
|
116
141
|
(function (ListMembersResponse) {
|
|
117
142
|
ListMembersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
143
|
})(ListMembersResponse || (ListMembersResponse = {}));
|
|
144
|
+
export var ListOrganizationAdminAccountsRequest;
|
|
145
|
+
(function (ListOrganizationAdminAccountsRequest) {
|
|
146
|
+
ListOrganizationAdminAccountsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
147
|
+
})(ListOrganizationAdminAccountsRequest || (ListOrganizationAdminAccountsRequest = {}));
|
|
148
|
+
export var ListOrganizationAdminAccountsResponse;
|
|
149
|
+
(function (ListOrganizationAdminAccountsResponse) {
|
|
150
|
+
ListOrganizationAdminAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
|
+
})(ListOrganizationAdminAccountsResponse || (ListOrganizationAdminAccountsResponse = {}));
|
|
119
152
|
export var ListTagsForResourceRequest;
|
|
120
153
|
(function (ListTagsForResourceRequest) {
|
|
121
154
|
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -148,3 +181,7 @@ export var UntagResourceResponse;
|
|
|
148
181
|
(function (UntagResourceResponse) {
|
|
149
182
|
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
183
|
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
184
|
+
export var UpdateOrganizationConfigurationRequest;
|
|
185
|
+
(function (UpdateOrganizationConfigurationRequest) {
|
|
186
|
+
UpdateOrganizationConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
187
|
+
})(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
|
+
}
|