@aws-sdk/client-detective 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Detective.js +105 -98
- package/dist-es/DetectiveClient.js +28 -22
- package/dist-es/commands/AcceptInvitationCommand.js +29 -22
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +28 -21
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +28 -21
- package/dist-es/commands/CreateGraphCommand.js +28 -21
- package/dist-es/commands/CreateMembersCommand.js +28 -21
- package/dist-es/commands/DeleteGraphCommand.js +29 -22
- package/dist-es/commands/DeleteMembersCommand.js +28 -21
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +28 -21
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +30 -23
- package/dist-es/commands/DisassociateMembershipCommand.js +29 -22
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +29 -22
- package/dist-es/commands/GetMembersCommand.js +28 -21
- package/dist-es/commands/ListDatasourcePackagesCommand.js +28 -21
- package/dist-es/commands/ListGraphsCommand.js +28 -21
- package/dist-es/commands/ListInvitationsCommand.js +28 -21
- package/dist-es/commands/ListMembersCommand.js +28 -21
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/RejectInvitationCommand.js +29 -22
- package/dist-es/commands/StartMonitoringMemberCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +29 -22
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DetectiveServiceException.js +10 -5
- package/dist-es/models/models_0.js +124 -219
- package/dist-es/pagination/ListDatasourcePackagesPaginator.js +68 -25
- package/dist-es/pagination/ListGraphsPaginator.js +68 -25
- package/dist-es/pagination/ListInvitationsPaginator.js +68 -25
- package/dist-es/pagination/ListMembersPaginator.js +68 -25
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +2284 -1605
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1591 +1,2258 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
4
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
export var serializeAws_restJson1AcceptInvitationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
|
+
return __generator(this, function (_c) {
|
|
9
|
+
switch (_c.label) {
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
|
+
case 1:
|
|
12
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
+
headers = {
|
|
14
|
+
"content-type": "application/json",
|
|
15
|
+
};
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation";
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
18
|
+
return [2, new __HttpRequest({
|
|
19
|
+
protocol: protocol,
|
|
20
|
+
hostname: hostname,
|
|
21
|
+
port: port,
|
|
22
|
+
method: "PUT",
|
|
23
|
+
headers: headers,
|
|
24
|
+
path: resolvedPath,
|
|
25
|
+
body: body,
|
|
26
|
+
})];
|
|
27
|
+
}
|
|
23
28
|
});
|
|
24
|
-
};
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
}); };
|
|
30
|
+
export var serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
31
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
32
|
+
return __generator(this, function (_c) {
|
|
33
|
+
switch (_c.label) {
|
|
34
|
+
case 0: return [4, context.endpoint()];
|
|
35
|
+
case 1:
|
|
36
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
37
|
+
headers = {
|
|
38
|
+
"content-type": "application/json",
|
|
39
|
+
};
|
|
40
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/get";
|
|
41
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && {
|
|
42
|
+
AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
|
|
43
|
+
})), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
44
|
+
return [2, new __HttpRequest({
|
|
45
|
+
protocol: protocol,
|
|
46
|
+
hostname: hostname,
|
|
47
|
+
port: port,
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: headers,
|
|
50
|
+
path: resolvedPath,
|
|
51
|
+
body: body,
|
|
52
|
+
})];
|
|
53
|
+
}
|
|
46
54
|
});
|
|
47
|
-
};
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
}); };
|
|
56
|
+
export var serializeAws_restJson1BatchGetMembershipDatasourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
58
|
+
return __generator(this, function (_c) {
|
|
59
|
+
switch (_c.label) {
|
|
60
|
+
case 0: return [4, context.endpoint()];
|
|
61
|
+
case 1:
|
|
62
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
63
|
+
headers = {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
};
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/datasources/get";
|
|
67
|
+
body = JSON.stringify(__assign({}, (input.GraphArns != null && { GraphArns: serializeAws_restJson1GraphArnList(input.GraphArns, context) })));
|
|
68
|
+
return [2, new __HttpRequest({
|
|
69
|
+
protocol: protocol,
|
|
70
|
+
hostname: hostname,
|
|
71
|
+
port: port,
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: headers,
|
|
74
|
+
path: resolvedPath,
|
|
75
|
+
body: body,
|
|
76
|
+
})];
|
|
77
|
+
}
|
|
66
78
|
});
|
|
67
|
-
};
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
}); };
|
|
80
|
+
export var serializeAws_restJson1CreateGraphCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
82
|
+
return __generator(this, function (_c) {
|
|
83
|
+
switch (_c.label) {
|
|
84
|
+
case 0: return [4, context.endpoint()];
|
|
85
|
+
case 1:
|
|
86
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
87
|
+
headers = {
|
|
88
|
+
"content-type": "application/json",
|
|
89
|
+
};
|
|
90
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph";
|
|
91
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
92
|
+
return [2, new __HttpRequest({
|
|
93
|
+
protocol: protocol,
|
|
94
|
+
hostname: hostname,
|
|
95
|
+
port: port,
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: headers,
|
|
98
|
+
path: resolvedPath,
|
|
99
|
+
body: body,
|
|
100
|
+
})];
|
|
101
|
+
}
|
|
86
102
|
});
|
|
87
|
-
};
|
|
88
|
-
export
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
}); };
|
|
104
|
+
export var serializeAws_restJson1CreateMembersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
106
|
+
return __generator(this, function (_c) {
|
|
107
|
+
switch (_c.label) {
|
|
108
|
+
case 0: return [4, context.endpoint()];
|
|
109
|
+
case 1:
|
|
110
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
111
|
+
headers = {
|
|
112
|
+
"content-type": "application/json",
|
|
113
|
+
};
|
|
114
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members";
|
|
115
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts != null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification })), (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.Message != null && { Message: input.Message })));
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
|
+
protocol: protocol,
|
|
118
|
+
hostname: hostname,
|
|
119
|
+
port: port,
|
|
120
|
+
method: "POST",
|
|
121
|
+
headers: headers,
|
|
122
|
+
path: resolvedPath,
|
|
123
|
+
body: body,
|
|
124
|
+
})];
|
|
125
|
+
}
|
|
109
126
|
});
|
|
110
|
-
};
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
}); };
|
|
128
|
+
export var serializeAws_restJson1DeleteGraphCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
130
|
+
return __generator(this, function (_c) {
|
|
131
|
+
switch (_c.label) {
|
|
132
|
+
case 0: return [4, context.endpoint()];
|
|
133
|
+
case 1:
|
|
134
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
|
+
headers = {
|
|
136
|
+
"content-type": "application/json",
|
|
137
|
+
};
|
|
138
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/removal";
|
|
139
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
140
|
+
return [2, new __HttpRequest({
|
|
141
|
+
protocol: protocol,
|
|
142
|
+
hostname: hostname,
|
|
143
|
+
port: port,
|
|
144
|
+
method: "POST",
|
|
145
|
+
headers: headers,
|
|
146
|
+
path: resolvedPath,
|
|
147
|
+
body: body,
|
|
148
|
+
})];
|
|
149
|
+
}
|
|
129
150
|
});
|
|
130
|
-
};
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
}); };
|
|
152
|
+
export var serializeAws_restJson1DeleteMembersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
154
|
+
return __generator(this, function (_c) {
|
|
155
|
+
switch (_c.label) {
|
|
156
|
+
case 0: return [4, context.endpoint()];
|
|
157
|
+
case 1:
|
|
158
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
159
|
+
headers = {
|
|
160
|
+
"content-type": "application/json",
|
|
161
|
+
};
|
|
162
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/removal";
|
|
163
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
164
|
+
return [2, new __HttpRequest({
|
|
165
|
+
protocol: protocol,
|
|
166
|
+
hostname: hostname,
|
|
167
|
+
port: port,
|
|
168
|
+
method: "POST",
|
|
169
|
+
headers: headers,
|
|
170
|
+
path: resolvedPath,
|
|
171
|
+
body: body,
|
|
172
|
+
})];
|
|
173
|
+
}
|
|
150
174
|
});
|
|
151
|
-
};
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
175
|
+
}); };
|
|
176
|
+
export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
178
|
+
return __generator(this, function (_c) {
|
|
179
|
+
switch (_c.label) {
|
|
180
|
+
case 0: return [4, context.endpoint()];
|
|
181
|
+
case 1:
|
|
182
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
183
|
+
headers = {
|
|
184
|
+
"content-type": "application/json",
|
|
185
|
+
};
|
|
186
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/describeOrganizationConfiguration";
|
|
187
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
188
|
+
return [2, new __HttpRequest({
|
|
189
|
+
protocol: protocol,
|
|
190
|
+
hostname: hostname,
|
|
191
|
+
port: port,
|
|
192
|
+
method: "POST",
|
|
193
|
+
headers: headers,
|
|
194
|
+
path: resolvedPath,
|
|
195
|
+
body: body,
|
|
196
|
+
})];
|
|
197
|
+
}
|
|
170
198
|
});
|
|
171
|
-
};
|
|
172
|
-
export
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
199
|
+
}); };
|
|
200
|
+
export var serializeAws_restJson1DisableOrganizationAdminAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
201
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
202
|
+
return __generator(this, function (_c) {
|
|
203
|
+
switch (_c.label) {
|
|
204
|
+
case 0: return [4, context.endpoint()];
|
|
205
|
+
case 1:
|
|
206
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/json",
|
|
209
|
+
};
|
|
210
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/disableAdminAccount";
|
|
211
|
+
body = "";
|
|
212
|
+
return [2, new __HttpRequest({
|
|
213
|
+
protocol: protocol,
|
|
214
|
+
hostname: hostname,
|
|
215
|
+
port: port,
|
|
216
|
+
method: "POST",
|
|
217
|
+
headers: headers,
|
|
218
|
+
path: resolvedPath,
|
|
219
|
+
body: body,
|
|
220
|
+
})];
|
|
221
|
+
}
|
|
188
222
|
});
|
|
189
|
-
};
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
223
|
+
}); };
|
|
224
|
+
export var serializeAws_restJson1DisassociateMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
226
|
+
return __generator(this, function (_c) {
|
|
227
|
+
switch (_c.label) {
|
|
228
|
+
case 0: return [4, context.endpoint()];
|
|
229
|
+
case 1:
|
|
230
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
231
|
+
headers = {
|
|
232
|
+
"content-type": "application/json",
|
|
233
|
+
};
|
|
234
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/removal";
|
|
235
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
236
|
+
return [2, new __HttpRequest({
|
|
237
|
+
protocol: protocol,
|
|
238
|
+
hostname: hostname,
|
|
239
|
+
port: port,
|
|
240
|
+
method: "POST",
|
|
241
|
+
headers: headers,
|
|
242
|
+
path: resolvedPath,
|
|
243
|
+
body: body,
|
|
244
|
+
})];
|
|
245
|
+
}
|
|
208
246
|
});
|
|
209
|
-
};
|
|
210
|
-
export
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
247
|
+
}); };
|
|
248
|
+
export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
250
|
+
return __generator(this, function (_c) {
|
|
251
|
+
switch (_c.label) {
|
|
252
|
+
case 0: return [4, context.endpoint()];
|
|
253
|
+
case 1:
|
|
254
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
255
|
+
headers = {
|
|
256
|
+
"content-type": "application/json",
|
|
257
|
+
};
|
|
258
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/enableAdminAccount";
|
|
259
|
+
body = JSON.stringify(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })));
|
|
260
|
+
return [2, new __HttpRequest({
|
|
261
|
+
protocol: protocol,
|
|
262
|
+
hostname: hostname,
|
|
263
|
+
port: port,
|
|
264
|
+
method: "POST",
|
|
265
|
+
headers: headers,
|
|
266
|
+
path: resolvedPath,
|
|
267
|
+
body: body,
|
|
268
|
+
})];
|
|
269
|
+
}
|
|
228
270
|
});
|
|
229
|
-
};
|
|
230
|
-
export
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
271
|
+
}); };
|
|
272
|
+
export var serializeAws_restJson1GetMembersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
273
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
274
|
+
return __generator(this, function (_c) {
|
|
275
|
+
switch (_c.label) {
|
|
276
|
+
case 0: return [4, context.endpoint()];
|
|
277
|
+
case 1:
|
|
278
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
279
|
+
headers = {
|
|
280
|
+
"content-type": "application/json",
|
|
281
|
+
};
|
|
282
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/get";
|
|
283
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
284
|
+
return [2, new __HttpRequest({
|
|
285
|
+
protocol: protocol,
|
|
286
|
+
hostname: hostname,
|
|
287
|
+
port: port,
|
|
288
|
+
method: "POST",
|
|
289
|
+
headers: headers,
|
|
290
|
+
path: resolvedPath,
|
|
291
|
+
body: body,
|
|
292
|
+
})];
|
|
293
|
+
}
|
|
249
294
|
});
|
|
250
|
-
};
|
|
251
|
-
export
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
295
|
+
}); };
|
|
296
|
+
export var serializeAws_restJson1ListDatasourcePackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
298
|
+
return __generator(this, function (_c) {
|
|
299
|
+
switch (_c.label) {
|
|
300
|
+
case 0: return [4, context.endpoint()];
|
|
301
|
+
case 1:
|
|
302
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
303
|
+
headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/list";
|
|
307
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
|
+
protocol: protocol,
|
|
310
|
+
hostname: hostname,
|
|
311
|
+
port: port,
|
|
312
|
+
method: "POST",
|
|
313
|
+
headers: headers,
|
|
314
|
+
path: resolvedPath,
|
|
315
|
+
body: body,
|
|
316
|
+
})];
|
|
317
|
+
}
|
|
271
318
|
});
|
|
272
|
-
};
|
|
273
|
-
export
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
319
|
+
}); };
|
|
320
|
+
export var serializeAws_restJson1ListGraphsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
321
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
322
|
+
return __generator(this, function (_c) {
|
|
323
|
+
switch (_c.label) {
|
|
324
|
+
case 0: return [4, context.endpoint()];
|
|
325
|
+
case 1:
|
|
326
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
327
|
+
headers = {
|
|
328
|
+
"content-type": "application/json",
|
|
329
|
+
};
|
|
330
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graphs/list";
|
|
331
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
332
|
+
return [2, new __HttpRequest({
|
|
333
|
+
protocol: protocol,
|
|
334
|
+
hostname: hostname,
|
|
335
|
+
port: port,
|
|
336
|
+
method: "POST",
|
|
337
|
+
headers: headers,
|
|
338
|
+
path: resolvedPath,
|
|
339
|
+
body: body,
|
|
340
|
+
})];
|
|
341
|
+
}
|
|
292
342
|
});
|
|
293
|
-
};
|
|
294
|
-
export
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
343
|
+
}); };
|
|
344
|
+
export var serializeAws_restJson1ListInvitationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
345
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
346
|
+
return __generator(this, function (_c) {
|
|
347
|
+
switch (_c.label) {
|
|
348
|
+
case 0: return [4, context.endpoint()];
|
|
349
|
+
case 1:
|
|
350
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
351
|
+
headers = {
|
|
352
|
+
"content-type": "application/json",
|
|
353
|
+
};
|
|
354
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/list";
|
|
355
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
356
|
+
return [2, new __HttpRequest({
|
|
357
|
+
protocol: protocol,
|
|
358
|
+
hostname: hostname,
|
|
359
|
+
port: port,
|
|
360
|
+
method: "POST",
|
|
361
|
+
headers: headers,
|
|
362
|
+
path: resolvedPath,
|
|
363
|
+
body: body,
|
|
364
|
+
})];
|
|
365
|
+
}
|
|
313
366
|
});
|
|
314
|
-
};
|
|
315
|
-
export
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
367
|
+
}); };
|
|
368
|
+
export var serializeAws_restJson1ListMembersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
370
|
+
return __generator(this, function (_c) {
|
|
371
|
+
switch (_c.label) {
|
|
372
|
+
case 0: return [4, context.endpoint()];
|
|
373
|
+
case 1:
|
|
374
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
|
+
headers = {
|
|
376
|
+
"content-type": "application/json",
|
|
377
|
+
};
|
|
378
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/list";
|
|
379
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
380
|
+
return [2, new __HttpRequest({
|
|
381
|
+
protocol: protocol,
|
|
382
|
+
hostname: hostname,
|
|
383
|
+
port: port,
|
|
384
|
+
method: "POST",
|
|
385
|
+
headers: headers,
|
|
386
|
+
path: resolvedPath,
|
|
387
|
+
body: body,
|
|
388
|
+
})];
|
|
389
|
+
}
|
|
335
390
|
});
|
|
336
|
-
};
|
|
337
|
-
export
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
391
|
+
}); };
|
|
392
|
+
export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
394
|
+
return __generator(this, function (_c) {
|
|
395
|
+
switch (_c.label) {
|
|
396
|
+
case 0: return [4, context.endpoint()];
|
|
397
|
+
case 1:
|
|
398
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
399
|
+
headers = {
|
|
400
|
+
"content-type": "application/json",
|
|
401
|
+
};
|
|
402
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/adminAccountslist";
|
|
403
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
404
|
+
return [2, new __HttpRequest({
|
|
405
|
+
protocol: protocol,
|
|
406
|
+
hostname: hostname,
|
|
407
|
+
port: port,
|
|
408
|
+
method: "POST",
|
|
409
|
+
headers: headers,
|
|
410
|
+
path: resolvedPath,
|
|
411
|
+
body: body,
|
|
412
|
+
})];
|
|
413
|
+
}
|
|
356
414
|
});
|
|
357
|
-
};
|
|
358
|
-
export
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
415
|
+
}); };
|
|
416
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
417
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
418
|
+
return __generator(this, function (_c) {
|
|
419
|
+
switch (_c.label) {
|
|
420
|
+
case 0: return [4, context.endpoint()];
|
|
421
|
+
case 1:
|
|
422
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
423
|
+
headers = {};
|
|
424
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
426
|
+
return [2, new __HttpRequest({
|
|
427
|
+
protocol: protocol,
|
|
428
|
+
hostname: hostname,
|
|
429
|
+
port: port,
|
|
430
|
+
method: "GET",
|
|
431
|
+
headers: headers,
|
|
432
|
+
path: resolvedPath,
|
|
433
|
+
body: body,
|
|
434
|
+
})];
|
|
435
|
+
}
|
|
372
436
|
});
|
|
373
|
-
};
|
|
374
|
-
export
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
437
|
+
}); };
|
|
438
|
+
export var serializeAws_restJson1RejectInvitationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
440
|
+
return __generator(this, function (_c) {
|
|
441
|
+
switch (_c.label) {
|
|
442
|
+
case 0: return [4, context.endpoint()];
|
|
443
|
+
case 1:
|
|
444
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
445
|
+
headers = {
|
|
446
|
+
"content-type": "application/json",
|
|
447
|
+
};
|
|
448
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/removal";
|
|
449
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
450
|
+
return [2, new __HttpRequest({
|
|
451
|
+
protocol: protocol,
|
|
452
|
+
hostname: hostname,
|
|
453
|
+
port: port,
|
|
454
|
+
method: "POST",
|
|
455
|
+
headers: headers,
|
|
456
|
+
path: resolvedPath,
|
|
457
|
+
body: body,
|
|
458
|
+
})];
|
|
459
|
+
}
|
|
392
460
|
});
|
|
393
|
-
};
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
461
|
+
}); };
|
|
462
|
+
export var serializeAws_restJson1StartMonitoringMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
463
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
464
|
+
return __generator(this, function (_c) {
|
|
465
|
+
switch (_c.label) {
|
|
466
|
+
case 0: return [4, context.endpoint()];
|
|
467
|
+
case 1:
|
|
468
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
469
|
+
headers = {
|
|
470
|
+
"content-type": "application/json",
|
|
471
|
+
};
|
|
472
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/member/monitoringstate";
|
|
473
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
|
+
protocol: protocol,
|
|
476
|
+
hostname: hostname,
|
|
477
|
+
port: port,
|
|
478
|
+
method: "POST",
|
|
479
|
+
headers: headers,
|
|
480
|
+
path: resolvedPath,
|
|
481
|
+
body: body,
|
|
482
|
+
})];
|
|
483
|
+
}
|
|
413
484
|
});
|
|
414
|
-
};
|
|
415
|
-
export
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
485
|
+
}); };
|
|
486
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
488
|
+
return __generator(this, function (_c) {
|
|
489
|
+
switch (_c.label) {
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
|
+
case 1:
|
|
492
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
|
+
headers = {
|
|
494
|
+
"content-type": "application/json",
|
|
495
|
+
};
|
|
496
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
498
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
499
|
+
return [2, new __HttpRequest({
|
|
500
|
+
protocol: protocol,
|
|
501
|
+
hostname: hostname,
|
|
502
|
+
port: port,
|
|
503
|
+
method: "POST",
|
|
504
|
+
headers: headers,
|
|
505
|
+
path: resolvedPath,
|
|
506
|
+
body: body,
|
|
507
|
+
})];
|
|
508
|
+
}
|
|
434
509
|
});
|
|
435
|
-
};
|
|
436
|
-
export
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
510
|
+
}); };
|
|
511
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
512
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
513
|
+
return __generator(this, function (_c) {
|
|
514
|
+
switch (_c.label) {
|
|
515
|
+
case 0: return [4, context.endpoint()];
|
|
516
|
+
case 1:
|
|
517
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
518
|
+
headers = {};
|
|
519
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
520
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
521
|
+
query = map({
|
|
522
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
523
|
+
});
|
|
524
|
+
return [2, new __HttpRequest({
|
|
525
|
+
protocol: protocol,
|
|
526
|
+
hostname: hostname,
|
|
527
|
+
port: port,
|
|
528
|
+
method: "DELETE",
|
|
529
|
+
headers: headers,
|
|
530
|
+
path: resolvedPath,
|
|
531
|
+
query: query,
|
|
532
|
+
body: body,
|
|
533
|
+
})];
|
|
534
|
+
}
|
|
454
535
|
});
|
|
455
|
-
};
|
|
456
|
-
export
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
536
|
+
}); };
|
|
537
|
+
export var serializeAws_restJson1UpdateDatasourcePackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
539
|
+
return __generator(this, function (_c) {
|
|
540
|
+
switch (_c.label) {
|
|
541
|
+
case 0: return [4, context.endpoint()];
|
|
542
|
+
case 1:
|
|
543
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
544
|
+
headers = {
|
|
545
|
+
"content-type": "application/json",
|
|
546
|
+
};
|
|
547
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/update";
|
|
548
|
+
body = JSON.stringify(__assign(__assign({}, (input.DatasourcePackages != null && {
|
|
549
|
+
DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
|
|
550
|
+
})), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
551
|
+
return [2, new __HttpRequest({
|
|
552
|
+
protocol: protocol,
|
|
553
|
+
hostname: hostname,
|
|
554
|
+
port: port,
|
|
555
|
+
method: "POST",
|
|
556
|
+
headers: headers,
|
|
557
|
+
path: resolvedPath,
|
|
558
|
+
body: body,
|
|
559
|
+
})];
|
|
560
|
+
}
|
|
477
561
|
});
|
|
478
|
-
};
|
|
479
|
-
export
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
562
|
+
}); };
|
|
563
|
+
export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
564
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
565
|
+
return __generator(this, function (_c) {
|
|
566
|
+
switch (_c.label) {
|
|
567
|
+
case 0: return [4, context.endpoint()];
|
|
568
|
+
case 1:
|
|
569
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
570
|
+
headers = {
|
|
571
|
+
"content-type": "application/json",
|
|
572
|
+
};
|
|
573
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/updateOrganizationConfiguration";
|
|
574
|
+
body = JSON.stringify(__assign(__assign({}, (input.AutoEnable != null && { AutoEnable: input.AutoEnable })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
575
|
+
return [2, new __HttpRequest({
|
|
576
|
+
protocol: protocol,
|
|
577
|
+
hostname: hostname,
|
|
578
|
+
port: port,
|
|
579
|
+
method: "POST",
|
|
580
|
+
headers: headers,
|
|
581
|
+
path: resolvedPath,
|
|
582
|
+
body: body,
|
|
583
|
+
})];
|
|
584
|
+
}
|
|
498
585
|
});
|
|
499
|
-
};
|
|
500
|
-
export
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
586
|
+
}); };
|
|
587
|
+
export var deserializeAws_restJson1AcceptInvitationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
588
|
+
var contents;
|
|
589
|
+
return __generator(this, function (_a) {
|
|
590
|
+
switch (_a.label) {
|
|
591
|
+
case 0:
|
|
592
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
+
return [2, deserializeAws_restJson1AcceptInvitationCommandError(output, context)];
|
|
594
|
+
}
|
|
595
|
+
contents = map({
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
});
|
|
598
|
+
return [4, collectBody(output.body, context)];
|
|
599
|
+
case 1:
|
|
600
|
+
_a.sent();
|
|
601
|
+
return [2, contents];
|
|
602
|
+
}
|
|
506
603
|
});
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
604
|
+
}); };
|
|
605
|
+
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
607
|
+
var _c;
|
|
608
|
+
return __generator(this, function (_d) {
|
|
609
|
+
switch (_d.label) {
|
|
610
|
+
case 0:
|
|
611
|
+
_a = [__assign({}, output)];
|
|
612
|
+
_c = {};
|
|
613
|
+
return [4, parseErrorBody(output.body, context)];
|
|
614
|
+
case 1:
|
|
615
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
616
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
|
+
_b = errorCode;
|
|
618
|
+
switch (_b) {
|
|
619
|
+
case "ConflictException": return [3, 2];
|
|
620
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
621
|
+
case "InternalServerException": return [3, 4];
|
|
622
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
623
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
624
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 6];
|
|
625
|
+
case "ValidationException": return [3, 8];
|
|
626
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
627
|
+
}
|
|
628
|
+
return [3, 10];
|
|
629
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
630
|
+
case 3: throw _d.sent();
|
|
631
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
632
|
+
case 5: throw _d.sent();
|
|
633
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
634
|
+
case 7: throw _d.sent();
|
|
635
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
636
|
+
case 9: throw _d.sent();
|
|
637
|
+
case 10:
|
|
638
|
+
parsedBody = parsedOutput.body;
|
|
639
|
+
throwDefaultError({
|
|
640
|
+
output: output,
|
|
641
|
+
parsedBody: parsedBody,
|
|
642
|
+
exceptionCtor: __BaseException,
|
|
643
|
+
errorCode: errorCode,
|
|
644
|
+
});
|
|
645
|
+
_d.label = 11;
|
|
646
|
+
case 11: return [2];
|
|
647
|
+
}
|
|
545
648
|
});
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
default:
|
|
572
|
-
const parsedBody = parsedOutput.body;
|
|
573
|
-
throwDefaultError({
|
|
574
|
-
output,
|
|
575
|
-
parsedBody,
|
|
576
|
-
exceptionCtor: __BaseException,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
export const deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
582
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
583
|
-
return deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context);
|
|
584
|
-
}
|
|
585
|
-
const contents = map({
|
|
586
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
+
}); };
|
|
650
|
+
export var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
651
|
+
var contents, data, _a, _b;
|
|
652
|
+
return __generator(this, function (_c) {
|
|
653
|
+
switch (_c.label) {
|
|
654
|
+
case 0:
|
|
655
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
+
return [2, deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context)];
|
|
657
|
+
}
|
|
658
|
+
contents = map({
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
660
|
+
});
|
|
661
|
+
_a = __expectNonNull;
|
|
662
|
+
_b = __expectObject;
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
|
+
case 1:
|
|
665
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
666
|
+
if (data.MemberDatasources != null) {
|
|
667
|
+
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
668
|
+
}
|
|
669
|
+
if (data.UnprocessedAccounts != null) {
|
|
670
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
671
|
+
}
|
|
672
|
+
return [2, contents];
|
|
673
|
+
}
|
|
587
674
|
});
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
throw
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
+
}); };
|
|
676
|
+
var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
677
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
678
|
+
var _c;
|
|
679
|
+
return __generator(this, function (_d) {
|
|
680
|
+
switch (_d.label) {
|
|
681
|
+
case 0:
|
|
682
|
+
_a = [__assign({}, output)];
|
|
683
|
+
_c = {};
|
|
684
|
+
return [4, parseErrorBody(output.body, context)];
|
|
685
|
+
case 1:
|
|
686
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
687
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
+
_b = errorCode;
|
|
689
|
+
switch (_b) {
|
|
690
|
+
case "InternalServerException": return [3, 2];
|
|
691
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
692
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
693
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
694
|
+
case "ValidationException": return [3, 6];
|
|
695
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
696
|
+
}
|
|
697
|
+
return [3, 8];
|
|
698
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
699
|
+
case 3: throw _d.sent();
|
|
700
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
701
|
+
case 5: throw _d.sent();
|
|
702
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
703
|
+
case 7: throw _d.sent();
|
|
704
|
+
case 8:
|
|
705
|
+
parsedBody = parsedOutput.body;
|
|
706
|
+
throwDefaultError({
|
|
707
|
+
output: output,
|
|
708
|
+
parsedBody: parsedBody,
|
|
709
|
+
exceptionCtor: __BaseException,
|
|
710
|
+
errorCode: errorCode,
|
|
711
|
+
});
|
|
712
|
+
_d.label = 9;
|
|
713
|
+
case 9: return [2];
|
|
714
|
+
}
|
|
629
715
|
});
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
exceptionCtor: __BaseException,
|
|
658
|
-
errorCode,
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
export const deserializeAws_restJson1CreateMembersCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return deserializeAws_restJson1CreateMembersCommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const contents = map({
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
716
|
+
}); };
|
|
717
|
+
export var deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
718
|
+
var contents, data, _a, _b;
|
|
719
|
+
return __generator(this, function (_c) {
|
|
720
|
+
switch (_c.label) {
|
|
721
|
+
case 0:
|
|
722
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
+
return [2, deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context)];
|
|
724
|
+
}
|
|
725
|
+
contents = map({
|
|
726
|
+
$metadata: deserializeMetadata(output),
|
|
727
|
+
});
|
|
728
|
+
_a = __expectNonNull;
|
|
729
|
+
_b = __expectObject;
|
|
730
|
+
return [4, parseBody(output.body, context)];
|
|
731
|
+
case 1:
|
|
732
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
733
|
+
if (data.MembershipDatasources != null) {
|
|
734
|
+
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
735
|
+
}
|
|
736
|
+
if (data.UnprocessedGraphs != null) {
|
|
737
|
+
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
738
|
+
}
|
|
739
|
+
return [2, contents];
|
|
740
|
+
}
|
|
668
741
|
});
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
throw
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
return deserializeAws_restJson1DeleteGraphCommandError(output, context);
|
|
710
|
-
}
|
|
711
|
-
const contents = map({
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
+
}); };
|
|
743
|
+
var deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
745
|
+
var _c;
|
|
746
|
+
return __generator(this, function (_d) {
|
|
747
|
+
switch (_d.label) {
|
|
748
|
+
case 0:
|
|
749
|
+
_a = [__assign({}, output)];
|
|
750
|
+
_c = {};
|
|
751
|
+
return [4, parseErrorBody(output.body, context)];
|
|
752
|
+
case 1:
|
|
753
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
754
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
_b = errorCode;
|
|
756
|
+
switch (_b) {
|
|
757
|
+
case "InternalServerException": return [3, 2];
|
|
758
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
759
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
760
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
761
|
+
case "ValidationException": return [3, 6];
|
|
762
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
763
|
+
}
|
|
764
|
+
return [3, 8];
|
|
765
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
766
|
+
case 3: throw _d.sent();
|
|
767
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
768
|
+
case 5: throw _d.sent();
|
|
769
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
770
|
+
case 7: throw _d.sent();
|
|
771
|
+
case 8:
|
|
772
|
+
parsedBody = parsedOutput.body;
|
|
773
|
+
throwDefaultError({
|
|
774
|
+
output: output,
|
|
775
|
+
parsedBody: parsedBody,
|
|
776
|
+
exceptionCtor: __BaseException,
|
|
777
|
+
errorCode: errorCode,
|
|
778
|
+
});
|
|
779
|
+
_d.label = 9;
|
|
780
|
+
case 9: return [2];
|
|
781
|
+
}
|
|
713
782
|
});
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
exceptionCtor: __BaseException,
|
|
739
|
-
errorCode,
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
export const deserializeAws_restJson1DeleteMembersCommand = async (output, context) => {
|
|
744
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
745
|
-
return deserializeAws_restJson1DeleteMembersCommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const contents = map({
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
+
}); };
|
|
784
|
+
export var deserializeAws_restJson1CreateGraphCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
785
|
+
var contents, data, _a, _b;
|
|
786
|
+
return __generator(this, function (_c) {
|
|
787
|
+
switch (_c.label) {
|
|
788
|
+
case 0:
|
|
789
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
+
return [2, deserializeAws_restJson1CreateGraphCommandError(output, context)];
|
|
791
|
+
}
|
|
792
|
+
contents = map({
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
});
|
|
795
|
+
_a = __expectNonNull;
|
|
796
|
+
_b = __expectObject;
|
|
797
|
+
return [4, parseBody(output.body, context)];
|
|
798
|
+
case 1:
|
|
799
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
800
|
+
if (data.GraphArn != null) {
|
|
801
|
+
contents.GraphArn = __expectString(data.GraphArn);
|
|
802
|
+
}
|
|
803
|
+
return [2, contents];
|
|
804
|
+
}
|
|
749
805
|
});
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
throw
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
return deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = map({
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
+
}); };
|
|
807
|
+
var deserializeAws_restJson1CreateGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
808
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
809
|
+
var _c;
|
|
810
|
+
return __generator(this, function (_d) {
|
|
811
|
+
switch (_d.label) {
|
|
812
|
+
case 0:
|
|
813
|
+
_a = [__assign({}, output)];
|
|
814
|
+
_c = {};
|
|
815
|
+
return [4, parseErrorBody(output.body, context)];
|
|
816
|
+
case 1:
|
|
817
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
818
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
+
_b = errorCode;
|
|
820
|
+
switch (_b) {
|
|
821
|
+
case "ConflictException": return [3, 2];
|
|
822
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
823
|
+
case "InternalServerException": return [3, 4];
|
|
824
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
825
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
826
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
827
|
+
}
|
|
828
|
+
return [3, 8];
|
|
829
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
830
|
+
case 3: throw _d.sent();
|
|
831
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 5: throw _d.sent();
|
|
833
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
834
|
+
case 7: throw _d.sent();
|
|
835
|
+
case 8:
|
|
836
|
+
parsedBody = parsedOutput.body;
|
|
837
|
+
throwDefaultError({
|
|
838
|
+
output: output,
|
|
839
|
+
parsedBody: parsedBody,
|
|
840
|
+
exceptionCtor: __BaseException,
|
|
841
|
+
errorCode: errorCode,
|
|
842
|
+
});
|
|
843
|
+
_d.label = 9;
|
|
844
|
+
case 9: return [2];
|
|
845
|
+
}
|
|
794
846
|
});
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
output,
|
|
821
|
-
parsedBody,
|
|
822
|
-
exceptionCtor: __BaseException,
|
|
823
|
-
errorCode,
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
export const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
828
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context);
|
|
830
|
-
}
|
|
831
|
-
const contents = map({
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
+
}); };
|
|
848
|
+
export var deserializeAws_restJson1CreateMembersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
849
|
+
var contents, data, _a, _b;
|
|
850
|
+
return __generator(this, function (_c) {
|
|
851
|
+
switch (_c.label) {
|
|
852
|
+
case 0:
|
|
853
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
+
return [2, deserializeAws_restJson1CreateMembersCommandError(output, context)];
|
|
855
|
+
}
|
|
856
|
+
contents = map({
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
});
|
|
859
|
+
_a = __expectNonNull;
|
|
860
|
+
_b = __expectObject;
|
|
861
|
+
return [4, parseBody(output.body, context)];
|
|
862
|
+
case 1:
|
|
863
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
864
|
+
if (data.Members != null) {
|
|
865
|
+
contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
|
|
866
|
+
}
|
|
867
|
+
if (data.UnprocessedAccounts != null) {
|
|
868
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
869
|
+
}
|
|
870
|
+
return [2, contents];
|
|
871
|
+
}
|
|
833
872
|
});
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
873
|
+
}); };
|
|
874
|
+
var deserializeAws_restJson1CreateMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
875
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
876
|
+
var _c;
|
|
877
|
+
return __generator(this, function (_d) {
|
|
878
|
+
switch (_d.label) {
|
|
879
|
+
case 0:
|
|
880
|
+
_a = [__assign({}, output)];
|
|
881
|
+
_c = {};
|
|
882
|
+
return [4, parseErrorBody(output.body, context)];
|
|
883
|
+
case 1:
|
|
884
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
885
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
+
_b = errorCode;
|
|
887
|
+
switch (_b) {
|
|
888
|
+
case "InternalServerException": return [3, 2];
|
|
889
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
890
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
891
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
892
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
893
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
894
|
+
case "ValidationException": return [3, 8];
|
|
895
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
896
|
+
}
|
|
897
|
+
return [3, 10];
|
|
898
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
899
|
+
case 3: throw _d.sent();
|
|
900
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
901
|
+
case 5: throw _d.sent();
|
|
902
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
903
|
+
case 7: throw _d.sent();
|
|
904
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
905
|
+
case 9: throw _d.sent();
|
|
906
|
+
case 10:
|
|
907
|
+
parsedBody = parsedOutput.body;
|
|
908
|
+
throwDefaultError({
|
|
909
|
+
output: output,
|
|
910
|
+
parsedBody: parsedBody,
|
|
911
|
+
exceptionCtor: __BaseException,
|
|
912
|
+
errorCode: errorCode,
|
|
913
|
+
});
|
|
914
|
+
_d.label = 11;
|
|
915
|
+
case 11: return [2];
|
|
916
|
+
}
|
|
869
917
|
});
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
888
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.detective#ValidationException":
|
|
891
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
exceptionCtor: __BaseException,
|
|
898
|
-
errorCode,
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
export const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
903
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context);
|
|
905
|
-
}
|
|
906
|
-
const contents = map({
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
+
}); };
|
|
919
|
+
export var deserializeAws_restJson1DeleteGraphCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
920
|
+
var contents;
|
|
921
|
+
return __generator(this, function (_a) {
|
|
922
|
+
switch (_a.label) {
|
|
923
|
+
case 0:
|
|
924
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
+
return [2, deserializeAws_restJson1DeleteGraphCommandError(output, context)];
|
|
926
|
+
}
|
|
927
|
+
contents = map({
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
});
|
|
930
|
+
return [4, collectBody(output.body, context)];
|
|
931
|
+
case 1:
|
|
932
|
+
_a.sent();
|
|
933
|
+
return [2, contents];
|
|
934
|
+
}
|
|
908
935
|
});
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
936
|
+
}); };
|
|
937
|
+
var deserializeAws_restJson1DeleteGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
938
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
939
|
+
var _c;
|
|
940
|
+
return __generator(this, function (_d) {
|
|
941
|
+
switch (_d.label) {
|
|
942
|
+
case 0:
|
|
943
|
+
_a = [__assign({}, output)];
|
|
944
|
+
_c = {};
|
|
945
|
+
return [4, parseErrorBody(output.body, context)];
|
|
946
|
+
case 1:
|
|
947
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
948
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
+
_b = errorCode;
|
|
950
|
+
switch (_b) {
|
|
951
|
+
case "InternalServerException": return [3, 2];
|
|
952
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
953
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
954
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
955
|
+
case "ValidationException": return [3, 6];
|
|
956
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
957
|
+
}
|
|
958
|
+
return [3, 8];
|
|
959
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
960
|
+
case 3: throw _d.sent();
|
|
961
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
962
|
+
case 5: throw _d.sent();
|
|
963
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
964
|
+
case 7: throw _d.sent();
|
|
965
|
+
case 8:
|
|
966
|
+
parsedBody = parsedOutput.body;
|
|
967
|
+
throwDefaultError({
|
|
968
|
+
output: output,
|
|
969
|
+
parsedBody: parsedBody,
|
|
970
|
+
exceptionCtor: __BaseException,
|
|
971
|
+
errorCode: errorCode,
|
|
972
|
+
});
|
|
973
|
+
_d.label = 9;
|
|
974
|
+
case 9: return [2];
|
|
975
|
+
}
|
|
944
976
|
});
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
exceptionCtor: __BaseException,
|
|
976
|
-
errorCode,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
export const deserializeAws_restJson1ListDatasourcePackagesCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = map({
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
977
|
+
}); };
|
|
978
|
+
export var deserializeAws_restJson1DeleteMembersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
979
|
+
var contents, data, _a, _b;
|
|
980
|
+
return __generator(this, function (_c) {
|
|
981
|
+
switch (_c.label) {
|
|
982
|
+
case 0:
|
|
983
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
+
return [2, deserializeAws_restJson1DeleteMembersCommandError(output, context)];
|
|
985
|
+
}
|
|
986
|
+
contents = map({
|
|
987
|
+
$metadata: deserializeMetadata(output),
|
|
988
|
+
});
|
|
989
|
+
_a = __expectNonNull;
|
|
990
|
+
_b = __expectObject;
|
|
991
|
+
return [4, parseBody(output.body, context)];
|
|
992
|
+
case 1:
|
|
993
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
994
|
+
if (data.AccountIds != null) {
|
|
995
|
+
contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
|
|
996
|
+
}
|
|
997
|
+
if (data.UnprocessedAccounts != null) {
|
|
998
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
999
|
+
}
|
|
1000
|
+
return [2, contents];
|
|
1001
|
+
}
|
|
986
1002
|
});
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1003
|
+
}); };
|
|
1004
|
+
var deserializeAws_restJson1DeleteMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1005
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1006
|
+
var _c;
|
|
1007
|
+
return __generator(this, function (_d) {
|
|
1008
|
+
switch (_d.label) {
|
|
1009
|
+
case 0:
|
|
1010
|
+
_a = [__assign({}, output)];
|
|
1011
|
+
_c = {};
|
|
1012
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1013
|
+
case 1:
|
|
1014
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1015
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
+
_b = errorCode;
|
|
1017
|
+
switch (_b) {
|
|
1018
|
+
case "ConflictException": return [3, 2];
|
|
1019
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
1020
|
+
case "InternalServerException": return [3, 4];
|
|
1021
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
1022
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1023
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 6];
|
|
1024
|
+
case "ValidationException": return [3, 8];
|
|
1025
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
1026
|
+
}
|
|
1027
|
+
return [3, 10];
|
|
1028
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1029
|
+
case 3: throw _d.sent();
|
|
1030
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1031
|
+
case 5: throw _d.sent();
|
|
1032
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1033
|
+
case 7: throw _d.sent();
|
|
1034
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1035
|
+
case 9: throw _d.sent();
|
|
1036
|
+
case 10:
|
|
1037
|
+
parsedBody = parsedOutput.body;
|
|
1038
|
+
throwDefaultError({
|
|
1039
|
+
output: output,
|
|
1040
|
+
parsedBody: parsedBody,
|
|
1041
|
+
exceptionCtor: __BaseException,
|
|
1042
|
+
errorCode: errorCode,
|
|
1043
|
+
});
|
|
1044
|
+
_d.label = 11;
|
|
1045
|
+
case 11: return [2];
|
|
1046
|
+
}
|
|
1028
1047
|
});
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
default:
|
|
1052
|
-
const parsedBody = parsedOutput.body;
|
|
1053
|
-
throwDefaultError({
|
|
1054
|
-
output,
|
|
1055
|
-
parsedBody,
|
|
1056
|
-
exceptionCtor: __BaseException,
|
|
1057
|
-
errorCode,
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
export const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
|
|
1062
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return deserializeAws_restJson1ListInvitationsCommandError(output, context);
|
|
1064
|
-
}
|
|
1065
|
-
const contents = map({
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
+
}); };
|
|
1049
|
+
export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1050
|
+
var contents, data, _a, _b;
|
|
1051
|
+
return __generator(this, function (_c) {
|
|
1052
|
+
switch (_c.label) {
|
|
1053
|
+
case 0:
|
|
1054
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
+
return [2, deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context)];
|
|
1056
|
+
}
|
|
1057
|
+
contents = map({
|
|
1058
|
+
$metadata: deserializeMetadata(output),
|
|
1059
|
+
});
|
|
1060
|
+
_a = __expectNonNull;
|
|
1061
|
+
_b = __expectObject;
|
|
1062
|
+
return [4, parseBody(output.body, context)];
|
|
1063
|
+
case 1:
|
|
1064
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1065
|
+
if (data.AutoEnable != null) {
|
|
1066
|
+
contents.AutoEnable = __expectBoolean(data.AutoEnable);
|
|
1067
|
+
}
|
|
1068
|
+
return [2, contents];
|
|
1069
|
+
}
|
|
1067
1070
|
});
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1071
|
+
}); };
|
|
1072
|
+
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1073
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1074
|
+
var _c;
|
|
1075
|
+
return __generator(this, function (_d) {
|
|
1076
|
+
switch (_d.label) {
|
|
1077
|
+
case 0:
|
|
1078
|
+
_a = [__assign({}, output)];
|
|
1079
|
+
_c = {};
|
|
1080
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1081
|
+
case 1:
|
|
1082
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1083
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
+
_b = errorCode;
|
|
1085
|
+
switch (_b) {
|
|
1086
|
+
case "InternalServerException": return [3, 2];
|
|
1087
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1088
|
+
case "TooManyRequestsException": return [3, 4];
|
|
1089
|
+
case "com.amazonaws.detective#TooManyRequestsException": return [3, 4];
|
|
1090
|
+
case "ValidationException": return [3, 6];
|
|
1091
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1092
|
+
}
|
|
1093
|
+
return [3, 8];
|
|
1094
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1095
|
+
case 3: throw _d.sent();
|
|
1096
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1097
|
+
case 5: throw _d.sent();
|
|
1098
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1099
|
+
case 7: throw _d.sent();
|
|
1100
|
+
case 8:
|
|
1101
|
+
parsedBody = parsedOutput.body;
|
|
1102
|
+
throwDefaultError({
|
|
1103
|
+
output: output,
|
|
1104
|
+
parsedBody: parsedBody,
|
|
1105
|
+
exceptionCtor: __BaseException,
|
|
1106
|
+
errorCode: errorCode,
|
|
1107
|
+
});
|
|
1108
|
+
_d.label = 9;
|
|
1109
|
+
case 9: return [2];
|
|
1110
|
+
}
|
|
1106
1111
|
});
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1125
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1126
|
-
case "ResourceNotFoundException":
|
|
1127
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1128
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1129
|
-
case "ValidationException":
|
|
1130
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1131
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
exceptionCtor: __BaseException,
|
|
1138
|
-
errorCode,
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
};
|
|
1142
|
-
export const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
1143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const contents = map({
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
+
}); };
|
|
1113
|
+
export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1114
|
+
var contents;
|
|
1115
|
+
return __generator(this, function (_a) {
|
|
1116
|
+
switch (_a.label) {
|
|
1117
|
+
case 0:
|
|
1118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
+
return [2, deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context)];
|
|
1120
|
+
}
|
|
1121
|
+
contents = map({
|
|
1122
|
+
$metadata: deserializeMetadata(output),
|
|
1123
|
+
});
|
|
1124
|
+
return [4, collectBody(output.body, context)];
|
|
1125
|
+
case 1:
|
|
1126
|
+
_a.sent();
|
|
1127
|
+
return [2, contents];
|
|
1128
|
+
}
|
|
1148
1129
|
});
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
throw
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
+
}); };
|
|
1131
|
+
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1132
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1133
|
+
var _c;
|
|
1134
|
+
return __generator(this, function (_d) {
|
|
1135
|
+
switch (_d.label) {
|
|
1136
|
+
case 0:
|
|
1137
|
+
_a = [__assign({}, output)];
|
|
1138
|
+
_c = {};
|
|
1139
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1140
|
+
case 1:
|
|
1141
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1142
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
+
_b = errorCode;
|
|
1144
|
+
switch (_b) {
|
|
1145
|
+
case "InternalServerException": return [3, 2];
|
|
1146
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1147
|
+
case "TooManyRequestsException": return [3, 4];
|
|
1148
|
+
case "com.amazonaws.detective#TooManyRequestsException": return [3, 4];
|
|
1149
|
+
case "ValidationException": return [3, 6];
|
|
1150
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1151
|
+
}
|
|
1152
|
+
return [3, 8];
|
|
1153
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1154
|
+
case 3: throw _d.sent();
|
|
1155
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1156
|
+
case 5: throw _d.sent();
|
|
1157
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1158
|
+
case 7: throw _d.sent();
|
|
1159
|
+
case 8:
|
|
1160
|
+
parsedBody = parsedOutput.body;
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output: output,
|
|
1163
|
+
parsedBody: parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode: errorCode,
|
|
1166
|
+
});
|
|
1167
|
+
_d.label = 9;
|
|
1168
|
+
case 9: return [2];
|
|
1169
|
+
}
|
|
1190
1170
|
});
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1209
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1210
|
-
case "ValidationException":
|
|
1211
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1212
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1213
|
-
default:
|
|
1214
|
-
const parsedBody = parsedOutput.body;
|
|
1215
|
-
throwDefaultError({
|
|
1216
|
-
output,
|
|
1217
|
-
parsedBody,
|
|
1218
|
-
exceptionCtor: __BaseException,
|
|
1219
|
-
errorCode,
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
|
-
export const deserializeAws_restJson1RejectInvitationCommand = async (output, context) => {
|
|
1224
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
-
return deserializeAws_restJson1RejectInvitationCommandError(output, context);
|
|
1226
|
-
}
|
|
1227
|
-
const contents = map({
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1171
|
+
}); };
|
|
1172
|
+
export var deserializeAws_restJson1DisassociateMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1173
|
+
var contents;
|
|
1174
|
+
return __generator(this, function (_a) {
|
|
1175
|
+
switch (_a.label) {
|
|
1176
|
+
case 0:
|
|
1177
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
+
return [2, deserializeAws_restJson1DisassociateMembershipCommandError(output, context)];
|
|
1179
|
+
}
|
|
1180
|
+
contents = map({
|
|
1181
|
+
$metadata: deserializeMetadata(output),
|
|
1182
|
+
});
|
|
1183
|
+
return [4, collectBody(output.body, context)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
_a.sent();
|
|
1186
|
+
return [2, contents];
|
|
1187
|
+
}
|
|
1229
1188
|
});
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1189
|
+
}); };
|
|
1190
|
+
var deserializeAws_restJson1DisassociateMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1192
|
+
var _c;
|
|
1193
|
+
return __generator(this, function (_d) {
|
|
1194
|
+
switch (_d.label) {
|
|
1195
|
+
case 0:
|
|
1196
|
+
_a = [__assign({}, output)];
|
|
1197
|
+
_c = {};
|
|
1198
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1199
|
+
case 1:
|
|
1200
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1201
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
+
_b = errorCode;
|
|
1203
|
+
switch (_b) {
|
|
1204
|
+
case "ConflictException": return [3, 2];
|
|
1205
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
1206
|
+
case "InternalServerException": return [3, 4];
|
|
1207
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
1208
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1209
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 6];
|
|
1210
|
+
case "ValidationException": return [3, 8];
|
|
1211
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
1212
|
+
}
|
|
1213
|
+
return [3, 10];
|
|
1214
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1215
|
+
case 3: throw _d.sent();
|
|
1216
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1217
|
+
case 5: throw _d.sent();
|
|
1218
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1219
|
+
case 7: throw _d.sent();
|
|
1220
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1221
|
+
case 9: throw _d.sent();
|
|
1222
|
+
case 10:
|
|
1223
|
+
parsedBody = parsedOutput.body;
|
|
1224
|
+
throwDefaultError({
|
|
1225
|
+
output: output,
|
|
1226
|
+
parsedBody: parsedBody,
|
|
1227
|
+
exceptionCtor: __BaseException,
|
|
1228
|
+
errorCode: errorCode,
|
|
1229
|
+
});
|
|
1230
|
+
_d.label = 11;
|
|
1231
|
+
case 11: return [2];
|
|
1232
|
+
}
|
|
1268
1233
|
});
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1287
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1288
|
-
case "ServiceQuotaExceededException":
|
|
1289
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1290
|
-
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1291
|
-
case "ValidationException":
|
|
1292
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1293
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1294
|
-
default:
|
|
1295
|
-
const parsedBody = parsedOutput.body;
|
|
1296
|
-
throwDefaultError({
|
|
1297
|
-
output,
|
|
1298
|
-
parsedBody,
|
|
1299
|
-
exceptionCtor: __BaseException,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1305
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1306
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1307
|
-
}
|
|
1308
|
-
const contents = map({
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1234
|
+
}); };
|
|
1235
|
+
export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1236
|
+
var contents;
|
|
1237
|
+
return __generator(this, function (_a) {
|
|
1238
|
+
switch (_a.label) {
|
|
1239
|
+
case 0:
|
|
1240
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
+
return [2, deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context)];
|
|
1242
|
+
}
|
|
1243
|
+
contents = map({
|
|
1244
|
+
$metadata: deserializeMetadata(output),
|
|
1245
|
+
});
|
|
1246
|
+
return [4, collectBody(output.body, context)];
|
|
1247
|
+
case 1:
|
|
1248
|
+
_a.sent();
|
|
1249
|
+
return [2, contents];
|
|
1250
|
+
}
|
|
1310
1251
|
});
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1252
|
+
}); };
|
|
1253
|
+
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1255
|
+
var _c;
|
|
1256
|
+
return __generator(this, function (_d) {
|
|
1257
|
+
switch (_d.label) {
|
|
1258
|
+
case 0:
|
|
1259
|
+
_a = [__assign({}, output)];
|
|
1260
|
+
_c = {};
|
|
1261
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1262
|
+
case 1:
|
|
1263
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1264
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
+
_b = errorCode;
|
|
1266
|
+
switch (_b) {
|
|
1267
|
+
case "InternalServerException": return [3, 2];
|
|
1268
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1269
|
+
case "TooManyRequestsException": return [3, 4];
|
|
1270
|
+
case "com.amazonaws.detective#TooManyRequestsException": return [3, 4];
|
|
1271
|
+
case "ValidationException": return [3, 6];
|
|
1272
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1273
|
+
}
|
|
1274
|
+
return [3, 8];
|
|
1275
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1276
|
+
case 3: throw _d.sent();
|
|
1277
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1278
|
+
case 5: throw _d.sent();
|
|
1279
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1280
|
+
case 7: throw _d.sent();
|
|
1281
|
+
case 8:
|
|
1282
|
+
parsedBody = parsedOutput.body;
|
|
1283
|
+
throwDefaultError({
|
|
1284
|
+
output: output,
|
|
1285
|
+
parsedBody: parsedBody,
|
|
1286
|
+
exceptionCtor: __BaseException,
|
|
1287
|
+
errorCode: errorCode,
|
|
1288
|
+
});
|
|
1289
|
+
_d.label = 9;
|
|
1290
|
+
case 9: return [2];
|
|
1291
|
+
}
|
|
1346
1292
|
});
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
errorCode,
|
|
1373
|
-
});
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
export const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
1377
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1378
|
-
return deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context);
|
|
1379
|
-
}
|
|
1380
|
-
const contents = map({
|
|
1381
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
+
}); };
|
|
1294
|
+
export var deserializeAws_restJson1GetMembersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1295
|
+
var contents, data, _a, _b;
|
|
1296
|
+
return __generator(this, function (_c) {
|
|
1297
|
+
switch (_c.label) {
|
|
1298
|
+
case 0:
|
|
1299
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
|
+
return [2, deserializeAws_restJson1GetMembersCommandError(output, context)];
|
|
1301
|
+
}
|
|
1302
|
+
contents = map({
|
|
1303
|
+
$metadata: deserializeMetadata(output),
|
|
1304
|
+
});
|
|
1305
|
+
_a = __expectNonNull;
|
|
1306
|
+
_b = __expectObject;
|
|
1307
|
+
return [4, parseBody(output.body, context)];
|
|
1308
|
+
case 1:
|
|
1309
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1310
|
+
if (data.MemberDetails != null) {
|
|
1311
|
+
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1312
|
+
}
|
|
1313
|
+
if (data.UnprocessedAccounts != null) {
|
|
1314
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
1315
|
+
}
|
|
1316
|
+
return [2, contents];
|
|
1317
|
+
}
|
|
1382
1318
|
});
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1319
|
+
}); };
|
|
1320
|
+
var deserializeAws_restJson1GetMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1321
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1322
|
+
var _c;
|
|
1323
|
+
return __generator(this, function (_d) {
|
|
1324
|
+
switch (_d.label) {
|
|
1325
|
+
case 0:
|
|
1326
|
+
_a = [__assign({}, output)];
|
|
1327
|
+
_c = {};
|
|
1328
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1329
|
+
case 1:
|
|
1330
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1331
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
+
_b = errorCode;
|
|
1333
|
+
switch (_b) {
|
|
1334
|
+
case "InternalServerException": return [3, 2];
|
|
1335
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1336
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1337
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1338
|
+
case "ValidationException": return [3, 6];
|
|
1339
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1340
|
+
}
|
|
1341
|
+
return [3, 8];
|
|
1342
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1343
|
+
case 3: throw _d.sent();
|
|
1344
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1345
|
+
case 5: throw _d.sent();
|
|
1346
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1347
|
+
case 7: throw _d.sent();
|
|
1348
|
+
case 8:
|
|
1349
|
+
parsedBody = parsedOutput.body;
|
|
1350
|
+
throwDefaultError({
|
|
1351
|
+
output: output,
|
|
1352
|
+
parsedBody: parsedBody,
|
|
1353
|
+
exceptionCtor: __BaseException,
|
|
1354
|
+
errorCode: errorCode,
|
|
1355
|
+
});
|
|
1356
|
+
_d.label = 9;
|
|
1357
|
+
case 9: return [2];
|
|
1358
|
+
}
|
|
1421
1359
|
});
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
errorCode,
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
const map = __map;
|
|
1452
|
-
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1453
|
-
const contents = map({});
|
|
1454
|
-
const data = parsedOutput.body;
|
|
1455
|
-
if (data.Message != null) {
|
|
1456
|
-
contents.Message = __expectString(data.Message);
|
|
1457
|
-
}
|
|
1458
|
-
const exception = new ConflictException({
|
|
1459
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1460
|
-
...contents,
|
|
1360
|
+
}); };
|
|
1361
|
+
export var deserializeAws_restJson1ListDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1362
|
+
var contents, data, _a, _b;
|
|
1363
|
+
return __generator(this, function (_c) {
|
|
1364
|
+
switch (_c.label) {
|
|
1365
|
+
case 0:
|
|
1366
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
+
return [2, deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context)];
|
|
1368
|
+
}
|
|
1369
|
+
contents = map({
|
|
1370
|
+
$metadata: deserializeMetadata(output),
|
|
1371
|
+
});
|
|
1372
|
+
_a = __expectNonNull;
|
|
1373
|
+
_b = __expectObject;
|
|
1374
|
+
return [4, parseBody(output.body, context)];
|
|
1375
|
+
case 1:
|
|
1376
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1377
|
+
if (data.DatasourcePackages != null) {
|
|
1378
|
+
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1379
|
+
}
|
|
1380
|
+
if (data.NextToken != null) {
|
|
1381
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1382
|
+
}
|
|
1383
|
+
return [2, contents];
|
|
1384
|
+
}
|
|
1461
1385
|
});
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1386
|
+
}); };
|
|
1387
|
+
var deserializeAws_restJson1ListDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1389
|
+
var _c;
|
|
1390
|
+
return __generator(this, function (_d) {
|
|
1391
|
+
switch (_d.label) {
|
|
1392
|
+
case 0:
|
|
1393
|
+
_a = [__assign({}, output)];
|
|
1394
|
+
_c = {};
|
|
1395
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1396
|
+
case 1:
|
|
1397
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1398
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
_b = errorCode;
|
|
1400
|
+
switch (_b) {
|
|
1401
|
+
case "InternalServerException": return [3, 2];
|
|
1402
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1403
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1404
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1405
|
+
case "ValidationException": return [3, 6];
|
|
1406
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1407
|
+
}
|
|
1408
|
+
return [3, 8];
|
|
1409
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1410
|
+
case 3: throw _d.sent();
|
|
1411
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1412
|
+
case 5: throw _d.sent();
|
|
1413
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1414
|
+
case 7: throw _d.sent();
|
|
1415
|
+
case 8:
|
|
1416
|
+
parsedBody = parsedOutput.body;
|
|
1417
|
+
throwDefaultError({
|
|
1418
|
+
output: output,
|
|
1419
|
+
parsedBody: parsedBody,
|
|
1420
|
+
exceptionCtor: __BaseException,
|
|
1421
|
+
errorCode: errorCode,
|
|
1422
|
+
});
|
|
1423
|
+
_d.label = 9;
|
|
1424
|
+
case 9: return [2];
|
|
1425
|
+
}
|
|
1473
1426
|
});
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1427
|
+
}); };
|
|
1428
|
+
export var deserializeAws_restJson1ListGraphsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1429
|
+
var contents, data, _a, _b;
|
|
1430
|
+
return __generator(this, function (_c) {
|
|
1431
|
+
switch (_c.label) {
|
|
1432
|
+
case 0:
|
|
1433
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
+
return [2, deserializeAws_restJson1ListGraphsCommandError(output, context)];
|
|
1435
|
+
}
|
|
1436
|
+
contents = map({
|
|
1437
|
+
$metadata: deserializeMetadata(output),
|
|
1438
|
+
});
|
|
1439
|
+
_a = __expectNonNull;
|
|
1440
|
+
_b = __expectObject;
|
|
1441
|
+
return [4, parseBody(output.body, context)];
|
|
1442
|
+
case 1:
|
|
1443
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1444
|
+
if (data.GraphList != null) {
|
|
1445
|
+
contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
|
|
1446
|
+
}
|
|
1447
|
+
if (data.NextToken != null) {
|
|
1448
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1449
|
+
}
|
|
1450
|
+
return [2, contents];
|
|
1451
|
+
}
|
|
1485
1452
|
});
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1453
|
+
}); };
|
|
1454
|
+
var deserializeAws_restJson1ListGraphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1455
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1456
|
+
var _c;
|
|
1457
|
+
return __generator(this, function (_d) {
|
|
1458
|
+
switch (_d.label) {
|
|
1459
|
+
case 0:
|
|
1460
|
+
_a = [__assign({}, output)];
|
|
1461
|
+
_c = {};
|
|
1462
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1463
|
+
case 1:
|
|
1464
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1465
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
_b = errorCode;
|
|
1467
|
+
switch (_b) {
|
|
1468
|
+
case "InternalServerException": return [3, 2];
|
|
1469
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1470
|
+
case "ValidationException": return [3, 4];
|
|
1471
|
+
case "com.amazonaws.detective#ValidationException": return [3, 4];
|
|
1472
|
+
}
|
|
1473
|
+
return [3, 6];
|
|
1474
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1475
|
+
case 3: throw _d.sent();
|
|
1476
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1477
|
+
case 5: throw _d.sent();
|
|
1478
|
+
case 6:
|
|
1479
|
+
parsedBody = parsedOutput.body;
|
|
1480
|
+
throwDefaultError({
|
|
1481
|
+
output: output,
|
|
1482
|
+
parsedBody: parsedBody,
|
|
1483
|
+
exceptionCtor: __BaseException,
|
|
1484
|
+
errorCode: errorCode,
|
|
1485
|
+
});
|
|
1486
|
+
_d.label = 7;
|
|
1487
|
+
case 7: return [2];
|
|
1488
|
+
}
|
|
1500
1489
|
});
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1490
|
+
}); };
|
|
1491
|
+
export var deserializeAws_restJson1ListInvitationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1492
|
+
var contents, data, _a, _b;
|
|
1493
|
+
return __generator(this, function (_c) {
|
|
1494
|
+
switch (_c.label) {
|
|
1495
|
+
case 0:
|
|
1496
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1497
|
+
return [2, deserializeAws_restJson1ListInvitationsCommandError(output, context)];
|
|
1498
|
+
}
|
|
1499
|
+
contents = map({
|
|
1500
|
+
$metadata: deserializeMetadata(output),
|
|
1501
|
+
});
|
|
1502
|
+
_a = __expectNonNull;
|
|
1503
|
+
_b = __expectObject;
|
|
1504
|
+
return [4, parseBody(output.body, context)];
|
|
1505
|
+
case 1:
|
|
1506
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1507
|
+
if (data.Invitations != null) {
|
|
1508
|
+
contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
|
|
1509
|
+
}
|
|
1510
|
+
if (data.NextToken != null) {
|
|
1511
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1512
|
+
}
|
|
1513
|
+
return [2, contents];
|
|
1514
|
+
}
|
|
1512
1515
|
});
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1516
|
+
}); };
|
|
1517
|
+
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1519
|
+
var _c;
|
|
1520
|
+
return __generator(this, function (_d) {
|
|
1521
|
+
switch (_d.label) {
|
|
1522
|
+
case 0:
|
|
1523
|
+
_a = [__assign({}, output)];
|
|
1524
|
+
_c = {};
|
|
1525
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1526
|
+
case 1:
|
|
1527
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1528
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
|
+
_b = errorCode;
|
|
1530
|
+
switch (_b) {
|
|
1531
|
+
case "InternalServerException": return [3, 2];
|
|
1532
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1533
|
+
case "ValidationException": return [3, 4];
|
|
1534
|
+
case "com.amazonaws.detective#ValidationException": return [3, 4];
|
|
1535
|
+
}
|
|
1536
|
+
return [3, 6];
|
|
1537
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1538
|
+
case 3: throw _d.sent();
|
|
1539
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1540
|
+
case 5: throw _d.sent();
|
|
1541
|
+
case 6:
|
|
1542
|
+
parsedBody = parsedOutput.body;
|
|
1543
|
+
throwDefaultError({
|
|
1544
|
+
output: output,
|
|
1545
|
+
parsedBody: parsedBody,
|
|
1546
|
+
exceptionCtor: __BaseException,
|
|
1547
|
+
errorCode: errorCode,
|
|
1548
|
+
});
|
|
1549
|
+
_d.label = 7;
|
|
1550
|
+
case 7: return [2];
|
|
1551
|
+
}
|
|
1530
1552
|
});
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
return {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1553
|
+
}); };
|
|
1554
|
+
export var deserializeAws_restJson1ListMembersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1555
|
+
var contents, data, _a, _b;
|
|
1556
|
+
return __generator(this, function (_c) {
|
|
1557
|
+
switch (_c.label) {
|
|
1558
|
+
case 0:
|
|
1559
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
+
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
1561
|
+
}
|
|
1562
|
+
contents = map({
|
|
1563
|
+
$metadata: deserializeMetadata(output),
|
|
1564
|
+
});
|
|
1565
|
+
_a = __expectNonNull;
|
|
1566
|
+
_b = __expectObject;
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
|
+
case 1:
|
|
1569
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1570
|
+
if (data.MemberDetails != null) {
|
|
1571
|
+
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1572
|
+
}
|
|
1573
|
+
if (data.NextToken != null) {
|
|
1574
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1575
|
+
}
|
|
1576
|
+
return [2, contents];
|
|
1577
|
+
}
|
|
1578
|
+
});
|
|
1579
|
+
}); };
|
|
1580
|
+
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1582
|
+
var _c;
|
|
1583
|
+
return __generator(this, function (_d) {
|
|
1584
|
+
switch (_d.label) {
|
|
1585
|
+
case 0:
|
|
1586
|
+
_a = [__assign({}, output)];
|
|
1587
|
+
_c = {};
|
|
1588
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1589
|
+
case 1:
|
|
1590
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1591
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
|
+
_b = errorCode;
|
|
1593
|
+
switch (_b) {
|
|
1594
|
+
case "InternalServerException": return [3, 2];
|
|
1595
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1596
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1597
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1598
|
+
case "ValidationException": return [3, 6];
|
|
1599
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1600
|
+
}
|
|
1601
|
+
return [3, 8];
|
|
1602
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1603
|
+
case 3: throw _d.sent();
|
|
1604
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1605
|
+
case 5: throw _d.sent();
|
|
1606
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1607
|
+
case 7: throw _d.sent();
|
|
1608
|
+
case 8:
|
|
1609
|
+
parsedBody = parsedOutput.body;
|
|
1610
|
+
throwDefaultError({
|
|
1611
|
+
output: output,
|
|
1612
|
+
parsedBody: parsedBody,
|
|
1613
|
+
exceptionCtor: __BaseException,
|
|
1614
|
+
errorCode: errorCode,
|
|
1615
|
+
});
|
|
1616
|
+
_d.label = 9;
|
|
1617
|
+
case 9: return [2];
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
}); };
|
|
1621
|
+
export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1622
|
+
var contents, data, _a, _b;
|
|
1623
|
+
return __generator(this, function (_c) {
|
|
1624
|
+
switch (_c.label) {
|
|
1625
|
+
case 0:
|
|
1626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
|
+
return [2, deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context)];
|
|
1628
|
+
}
|
|
1629
|
+
contents = map({
|
|
1630
|
+
$metadata: deserializeMetadata(output),
|
|
1631
|
+
});
|
|
1632
|
+
_a = __expectNonNull;
|
|
1633
|
+
_b = __expectObject;
|
|
1634
|
+
return [4, parseBody(output.body, context)];
|
|
1635
|
+
case 1:
|
|
1636
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1637
|
+
if (data.Administrators != null) {
|
|
1638
|
+
contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
|
|
1639
|
+
}
|
|
1640
|
+
if (data.NextToken != null) {
|
|
1641
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1642
|
+
}
|
|
1643
|
+
return [2, contents];
|
|
1644
|
+
}
|
|
1645
|
+
});
|
|
1646
|
+
}); };
|
|
1647
|
+
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1648
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1649
|
+
var _c;
|
|
1650
|
+
return __generator(this, function (_d) {
|
|
1651
|
+
switch (_d.label) {
|
|
1652
|
+
case 0:
|
|
1653
|
+
_a = [__assign({}, output)];
|
|
1654
|
+
_c = {};
|
|
1655
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1656
|
+
case 1:
|
|
1657
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1658
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
+
_b = errorCode;
|
|
1660
|
+
switch (_b) {
|
|
1661
|
+
case "InternalServerException": return [3, 2];
|
|
1662
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1663
|
+
case "TooManyRequestsException": return [3, 4];
|
|
1664
|
+
case "com.amazonaws.detective#TooManyRequestsException": return [3, 4];
|
|
1665
|
+
case "ValidationException": return [3, 6];
|
|
1666
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1667
|
+
}
|
|
1668
|
+
return [3, 8];
|
|
1669
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1670
|
+
case 3: throw _d.sent();
|
|
1671
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1672
|
+
case 5: throw _d.sent();
|
|
1673
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1674
|
+
case 7: throw _d.sent();
|
|
1675
|
+
case 8:
|
|
1676
|
+
parsedBody = parsedOutput.body;
|
|
1677
|
+
throwDefaultError({
|
|
1678
|
+
output: output,
|
|
1679
|
+
parsedBody: parsedBody,
|
|
1680
|
+
exceptionCtor: __BaseException,
|
|
1681
|
+
errorCode: errorCode,
|
|
1682
|
+
});
|
|
1683
|
+
_d.label = 9;
|
|
1684
|
+
case 9: return [2];
|
|
1685
|
+
}
|
|
1686
|
+
});
|
|
1687
|
+
}); };
|
|
1688
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1689
|
+
var contents, data, _a, _b;
|
|
1690
|
+
return __generator(this, function (_c) {
|
|
1691
|
+
switch (_c.label) {
|
|
1692
|
+
case 0:
|
|
1693
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1694
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1695
|
+
}
|
|
1696
|
+
contents = map({
|
|
1697
|
+
$metadata: deserializeMetadata(output),
|
|
1698
|
+
});
|
|
1699
|
+
_a = __expectNonNull;
|
|
1700
|
+
_b = __expectObject;
|
|
1701
|
+
return [4, parseBody(output.body, context)];
|
|
1702
|
+
case 1:
|
|
1703
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1704
|
+
if (data.Tags != null) {
|
|
1705
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1706
|
+
}
|
|
1707
|
+
return [2, contents];
|
|
1708
|
+
}
|
|
1709
|
+
});
|
|
1710
|
+
}); };
|
|
1711
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1712
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1713
|
+
var _c;
|
|
1714
|
+
return __generator(this, function (_d) {
|
|
1715
|
+
switch (_d.label) {
|
|
1716
|
+
case 0:
|
|
1717
|
+
_a = [__assign({}, output)];
|
|
1718
|
+
_c = {};
|
|
1719
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1720
|
+
case 1:
|
|
1721
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1722
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
+
_b = errorCode;
|
|
1724
|
+
switch (_b) {
|
|
1725
|
+
case "InternalServerException": return [3, 2];
|
|
1726
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1727
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1728
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1729
|
+
case "ValidationException": return [3, 6];
|
|
1730
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1731
|
+
}
|
|
1732
|
+
return [3, 8];
|
|
1733
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1734
|
+
case 3: throw _d.sent();
|
|
1735
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1736
|
+
case 5: throw _d.sent();
|
|
1737
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1738
|
+
case 7: throw _d.sent();
|
|
1739
|
+
case 8:
|
|
1740
|
+
parsedBody = parsedOutput.body;
|
|
1741
|
+
throwDefaultError({
|
|
1742
|
+
output: output,
|
|
1743
|
+
parsedBody: parsedBody,
|
|
1744
|
+
exceptionCtor: __BaseException,
|
|
1745
|
+
errorCode: errorCode,
|
|
1746
|
+
});
|
|
1747
|
+
_d.label = 9;
|
|
1748
|
+
case 9: return [2];
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1751
|
+
}); };
|
|
1752
|
+
export var deserializeAws_restJson1RejectInvitationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
|
+
var contents;
|
|
1754
|
+
return __generator(this, function (_a) {
|
|
1755
|
+
switch (_a.label) {
|
|
1756
|
+
case 0:
|
|
1757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1758
|
+
return [2, deserializeAws_restJson1RejectInvitationCommandError(output, context)];
|
|
1759
|
+
}
|
|
1760
|
+
contents = map({
|
|
1761
|
+
$metadata: deserializeMetadata(output),
|
|
1762
|
+
});
|
|
1763
|
+
return [4, collectBody(output.body, context)];
|
|
1764
|
+
case 1:
|
|
1765
|
+
_a.sent();
|
|
1766
|
+
return [2, contents];
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
}); };
|
|
1770
|
+
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1772
|
+
var _c;
|
|
1773
|
+
return __generator(this, function (_d) {
|
|
1774
|
+
switch (_d.label) {
|
|
1775
|
+
case 0:
|
|
1776
|
+
_a = [__assign({}, output)];
|
|
1777
|
+
_c = {};
|
|
1778
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1779
|
+
case 1:
|
|
1780
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1781
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
+
_b = errorCode;
|
|
1783
|
+
switch (_b) {
|
|
1784
|
+
case "ConflictException": return [3, 2];
|
|
1785
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
1786
|
+
case "InternalServerException": return [3, 4];
|
|
1787
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
1788
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1789
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 6];
|
|
1790
|
+
case "ValidationException": return [3, 8];
|
|
1791
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
1792
|
+
}
|
|
1793
|
+
return [3, 10];
|
|
1794
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1795
|
+
case 3: throw _d.sent();
|
|
1796
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1797
|
+
case 5: throw _d.sent();
|
|
1798
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1799
|
+
case 7: throw _d.sent();
|
|
1800
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1801
|
+
case 9: throw _d.sent();
|
|
1802
|
+
case 10:
|
|
1803
|
+
parsedBody = parsedOutput.body;
|
|
1804
|
+
throwDefaultError({
|
|
1805
|
+
output: output,
|
|
1806
|
+
parsedBody: parsedBody,
|
|
1807
|
+
exceptionCtor: __BaseException,
|
|
1808
|
+
errorCode: errorCode,
|
|
1809
|
+
});
|
|
1810
|
+
_d.label = 11;
|
|
1811
|
+
case 11: return [2];
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
}); };
|
|
1815
|
+
export var deserializeAws_restJson1StartMonitoringMemberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1816
|
+
var contents;
|
|
1817
|
+
return __generator(this, function (_a) {
|
|
1818
|
+
switch (_a.label) {
|
|
1819
|
+
case 0:
|
|
1820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1821
|
+
return [2, deserializeAws_restJson1StartMonitoringMemberCommandError(output, context)];
|
|
1822
|
+
}
|
|
1823
|
+
contents = map({
|
|
1824
|
+
$metadata: deserializeMetadata(output),
|
|
1825
|
+
});
|
|
1826
|
+
return [4, collectBody(output.body, context)];
|
|
1827
|
+
case 1:
|
|
1828
|
+
_a.sent();
|
|
1829
|
+
return [2, contents];
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
}); };
|
|
1833
|
+
var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1835
|
+
var _c;
|
|
1836
|
+
return __generator(this, function (_d) {
|
|
1837
|
+
switch (_d.label) {
|
|
1838
|
+
case 0:
|
|
1839
|
+
_a = [__assign({}, output)];
|
|
1840
|
+
_c = {};
|
|
1841
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1842
|
+
case 1:
|
|
1843
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1844
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
_b = errorCode;
|
|
1846
|
+
switch (_b) {
|
|
1847
|
+
case "ConflictException": return [3, 2];
|
|
1848
|
+
case "com.amazonaws.detective#ConflictException": return [3, 2];
|
|
1849
|
+
case "InternalServerException": return [3, 4];
|
|
1850
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 4];
|
|
1851
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1852
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 6];
|
|
1853
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1854
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 8];
|
|
1855
|
+
case "ValidationException": return [3, 10];
|
|
1856
|
+
case "com.amazonaws.detective#ValidationException": return [3, 10];
|
|
1857
|
+
}
|
|
1858
|
+
return [3, 12];
|
|
1859
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1860
|
+
case 3: throw _d.sent();
|
|
1861
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 5: throw _d.sent();
|
|
1863
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 7: throw _d.sent();
|
|
1865
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1866
|
+
case 9: throw _d.sent();
|
|
1867
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1868
|
+
case 11: throw _d.sent();
|
|
1869
|
+
case 12:
|
|
1870
|
+
parsedBody = parsedOutput.body;
|
|
1871
|
+
throwDefaultError({
|
|
1872
|
+
output: output,
|
|
1873
|
+
parsedBody: parsedBody,
|
|
1874
|
+
exceptionCtor: __BaseException,
|
|
1875
|
+
errorCode: errorCode,
|
|
1876
|
+
});
|
|
1877
|
+
_d.label = 13;
|
|
1878
|
+
case 13: return [2];
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
}); };
|
|
1882
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1883
|
+
var contents;
|
|
1884
|
+
return __generator(this, function (_a) {
|
|
1885
|
+
switch (_a.label) {
|
|
1886
|
+
case 0:
|
|
1887
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1888
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1889
|
+
}
|
|
1890
|
+
contents = map({
|
|
1891
|
+
$metadata: deserializeMetadata(output),
|
|
1892
|
+
});
|
|
1893
|
+
return [4, collectBody(output.body, context)];
|
|
1894
|
+
case 1:
|
|
1895
|
+
_a.sent();
|
|
1896
|
+
return [2, contents];
|
|
1897
|
+
}
|
|
1898
|
+
});
|
|
1899
|
+
}); };
|
|
1900
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1901
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1902
|
+
var _c;
|
|
1903
|
+
return __generator(this, function (_d) {
|
|
1904
|
+
switch (_d.label) {
|
|
1905
|
+
case 0:
|
|
1906
|
+
_a = [__assign({}, output)];
|
|
1907
|
+
_c = {};
|
|
1908
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1909
|
+
case 1:
|
|
1910
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1911
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
+
_b = errorCode;
|
|
1913
|
+
switch (_b) {
|
|
1914
|
+
case "InternalServerException": return [3, 2];
|
|
1915
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1916
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1917
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1918
|
+
case "ValidationException": return [3, 6];
|
|
1919
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1920
|
+
}
|
|
1921
|
+
return [3, 8];
|
|
1922
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1923
|
+
case 3: throw _d.sent();
|
|
1924
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1925
|
+
case 5: throw _d.sent();
|
|
1926
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1927
|
+
case 7: throw _d.sent();
|
|
1928
|
+
case 8:
|
|
1929
|
+
parsedBody = parsedOutput.body;
|
|
1930
|
+
throwDefaultError({
|
|
1931
|
+
output: output,
|
|
1932
|
+
parsedBody: parsedBody,
|
|
1933
|
+
exceptionCtor: __BaseException,
|
|
1934
|
+
errorCode: errorCode,
|
|
1935
|
+
});
|
|
1936
|
+
_d.label = 9;
|
|
1937
|
+
case 9: return [2];
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
}); };
|
|
1941
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1942
|
+
var contents;
|
|
1943
|
+
return __generator(this, function (_a) {
|
|
1944
|
+
switch (_a.label) {
|
|
1945
|
+
case 0:
|
|
1946
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1947
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1948
|
+
}
|
|
1949
|
+
contents = map({
|
|
1950
|
+
$metadata: deserializeMetadata(output),
|
|
1951
|
+
});
|
|
1952
|
+
return [4, collectBody(output.body, context)];
|
|
1953
|
+
case 1:
|
|
1954
|
+
_a.sent();
|
|
1955
|
+
return [2, contents];
|
|
1956
|
+
}
|
|
1957
|
+
});
|
|
1958
|
+
}); };
|
|
1959
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1960
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1961
|
+
var _c;
|
|
1962
|
+
return __generator(this, function (_d) {
|
|
1963
|
+
switch (_d.label) {
|
|
1964
|
+
case 0:
|
|
1965
|
+
_a = [__assign({}, output)];
|
|
1966
|
+
_c = {};
|
|
1967
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1968
|
+
case 1:
|
|
1969
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1970
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
|
+
_b = errorCode;
|
|
1972
|
+
switch (_b) {
|
|
1973
|
+
case "InternalServerException": return [3, 2];
|
|
1974
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1975
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1976
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1977
|
+
case "ValidationException": return [3, 6];
|
|
1978
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1979
|
+
}
|
|
1980
|
+
return [3, 8];
|
|
1981
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1982
|
+
case 3: throw _d.sent();
|
|
1983
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1984
|
+
case 5: throw _d.sent();
|
|
1985
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1986
|
+
case 7: throw _d.sent();
|
|
1987
|
+
case 8:
|
|
1988
|
+
parsedBody = parsedOutput.body;
|
|
1989
|
+
throwDefaultError({
|
|
1990
|
+
output: output,
|
|
1991
|
+
parsedBody: parsedBody,
|
|
1992
|
+
exceptionCtor: __BaseException,
|
|
1993
|
+
errorCode: errorCode,
|
|
1994
|
+
});
|
|
1995
|
+
_d.label = 9;
|
|
1996
|
+
case 9: return [2];
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
}); };
|
|
2000
|
+
export var deserializeAws_restJson1UpdateDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2001
|
+
var contents;
|
|
2002
|
+
return __generator(this, function (_a) {
|
|
2003
|
+
switch (_a.label) {
|
|
2004
|
+
case 0:
|
|
2005
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
+
return [2, deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context)];
|
|
2007
|
+
}
|
|
2008
|
+
contents = map({
|
|
2009
|
+
$metadata: deserializeMetadata(output),
|
|
2010
|
+
});
|
|
2011
|
+
return [4, collectBody(output.body, context)];
|
|
2012
|
+
case 1:
|
|
2013
|
+
_a.sent();
|
|
2014
|
+
return [2, contents];
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
}); };
|
|
2018
|
+
var deserializeAws_restJson1UpdateDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2019
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2020
|
+
var _c;
|
|
2021
|
+
return __generator(this, function (_d) {
|
|
2022
|
+
switch (_d.label) {
|
|
2023
|
+
case 0:
|
|
2024
|
+
_a = [__assign({}, output)];
|
|
2025
|
+
_c = {};
|
|
2026
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2027
|
+
case 1:
|
|
2028
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2029
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
+
_b = errorCode;
|
|
2031
|
+
switch (_b) {
|
|
2032
|
+
case "InternalServerException": return [3, 2];
|
|
2033
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
2034
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2035
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
2036
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
2037
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
2038
|
+
case "ValidationException": return [3, 8];
|
|
2039
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
2040
|
+
}
|
|
2041
|
+
return [3, 10];
|
|
2042
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2043
|
+
case 3: throw _d.sent();
|
|
2044
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2045
|
+
case 5: throw _d.sent();
|
|
2046
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2047
|
+
case 7: throw _d.sent();
|
|
2048
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2049
|
+
case 9: throw _d.sent();
|
|
2050
|
+
case 10:
|
|
2051
|
+
parsedBody = parsedOutput.body;
|
|
2052
|
+
throwDefaultError({
|
|
2053
|
+
output: output,
|
|
2054
|
+
parsedBody: parsedBody,
|
|
2055
|
+
exceptionCtor: __BaseException,
|
|
2056
|
+
errorCode: errorCode,
|
|
2057
|
+
});
|
|
2058
|
+
_d.label = 11;
|
|
2059
|
+
case 11: return [2];
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
}); };
|
|
2063
|
+
export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2064
|
+
var contents;
|
|
2065
|
+
return __generator(this, function (_a) {
|
|
2066
|
+
switch (_a.label) {
|
|
2067
|
+
case 0:
|
|
2068
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2069
|
+
return [2, deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context)];
|
|
2070
|
+
}
|
|
2071
|
+
contents = map({
|
|
2072
|
+
$metadata: deserializeMetadata(output),
|
|
2073
|
+
});
|
|
2074
|
+
return [4, collectBody(output.body, context)];
|
|
2075
|
+
case 1:
|
|
2076
|
+
_a.sent();
|
|
2077
|
+
return [2, contents];
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
}); };
|
|
2081
|
+
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2082
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2083
|
+
var _c;
|
|
2084
|
+
return __generator(this, function (_d) {
|
|
2085
|
+
switch (_d.label) {
|
|
2086
|
+
case 0:
|
|
2087
|
+
_a = [__assign({}, output)];
|
|
2088
|
+
_c = {};
|
|
2089
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2090
|
+
case 1:
|
|
2091
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2092
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
|
+
_b = errorCode;
|
|
2094
|
+
switch (_b) {
|
|
2095
|
+
case "InternalServerException": return [3, 2];
|
|
2096
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
2097
|
+
case "TooManyRequestsException": return [3, 4];
|
|
2098
|
+
case "com.amazonaws.detective#TooManyRequestsException": return [3, 4];
|
|
2099
|
+
case "ValidationException": return [3, 6];
|
|
2100
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
2101
|
+
}
|
|
2102
|
+
return [3, 8];
|
|
2103
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2104
|
+
case 3: throw _d.sent();
|
|
2105
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2106
|
+
case 5: throw _d.sent();
|
|
2107
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2108
|
+
case 7: throw _d.sent();
|
|
2109
|
+
case 8:
|
|
2110
|
+
parsedBody = parsedOutput.body;
|
|
2111
|
+
throwDefaultError({
|
|
2112
|
+
output: output,
|
|
2113
|
+
parsedBody: parsedBody,
|
|
2114
|
+
exceptionCtor: __BaseException,
|
|
2115
|
+
errorCode: errorCode,
|
|
2116
|
+
});
|
|
2117
|
+
_d.label = 9;
|
|
2118
|
+
case 9: return [2];
|
|
2119
|
+
}
|
|
2120
|
+
});
|
|
2121
|
+
}); };
|
|
2122
|
+
var map = __map;
|
|
2123
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2124
|
+
var contents, data, exception;
|
|
2125
|
+
return __generator(this, function (_a) {
|
|
2126
|
+
contents = map({});
|
|
2127
|
+
data = parsedOutput.body;
|
|
2128
|
+
if (data.Message != null) {
|
|
2129
|
+
contents.Message = __expectString(data.Message);
|
|
2130
|
+
}
|
|
2131
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2132
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2133
|
+
});
|
|
2134
|
+
}); };
|
|
2135
|
+
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2136
|
+
var contents, data, exception;
|
|
2137
|
+
return __generator(this, function (_a) {
|
|
2138
|
+
contents = map({});
|
|
2139
|
+
data = parsedOutput.body;
|
|
2140
|
+
if (data.Message != null) {
|
|
2141
|
+
contents.Message = __expectString(data.Message);
|
|
2142
|
+
}
|
|
2143
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2144
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2145
|
+
});
|
|
2146
|
+
}); };
|
|
2147
|
+
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2148
|
+
var contents, data, exception;
|
|
2149
|
+
return __generator(this, function (_a) {
|
|
2150
|
+
contents = map({});
|
|
2151
|
+
data = parsedOutput.body;
|
|
2152
|
+
if (data.Message != null) {
|
|
2153
|
+
contents.Message = __expectString(data.Message);
|
|
2154
|
+
}
|
|
2155
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2156
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2157
|
+
});
|
|
2158
|
+
}); };
|
|
2159
|
+
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2160
|
+
var contents, data, exception;
|
|
2161
|
+
return __generator(this, function (_a) {
|
|
2162
|
+
contents = map({});
|
|
2163
|
+
data = parsedOutput.body;
|
|
2164
|
+
if (data.Message != null) {
|
|
2165
|
+
contents.Message = __expectString(data.Message);
|
|
2166
|
+
}
|
|
2167
|
+
if (data.Resources != null) {
|
|
2168
|
+
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
2169
|
+
}
|
|
2170
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2171
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2172
|
+
});
|
|
2173
|
+
}); };
|
|
2174
|
+
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2175
|
+
var contents, data, exception;
|
|
2176
|
+
return __generator(this, function (_a) {
|
|
2177
|
+
contents = map({});
|
|
2178
|
+
data = parsedOutput.body;
|
|
2179
|
+
if (data.Message != null) {
|
|
2180
|
+
contents.Message = __expectString(data.Message);
|
|
2181
|
+
}
|
|
2182
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2183
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2184
|
+
});
|
|
2185
|
+
}); };
|
|
2186
|
+
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2187
|
+
var contents, data, exception;
|
|
2188
|
+
return __generator(this, function (_a) {
|
|
2189
|
+
contents = map({});
|
|
2190
|
+
data = parsedOutput.body;
|
|
2191
|
+
if (data.ErrorCode != null) {
|
|
2192
|
+
contents.ErrorCode = __expectString(data.ErrorCode);
|
|
2193
|
+
}
|
|
2194
|
+
if (data.ErrorCodeReason != null) {
|
|
2195
|
+
contents.ErrorCodeReason = __expectString(data.ErrorCodeReason);
|
|
2196
|
+
}
|
|
2197
|
+
if (data.Message != null) {
|
|
2198
|
+
contents.Message = __expectString(data.Message);
|
|
2199
|
+
}
|
|
2200
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2201
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2202
|
+
});
|
|
2203
|
+
}); };
|
|
2204
|
+
var serializeAws_restJson1Account = function (input, context) {
|
|
2205
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress }));
|
|
1538
2206
|
};
|
|
1539
|
-
|
|
2207
|
+
var serializeAws_restJson1AccountIdExtendedList = function (input, context) {
|
|
1540
2208
|
return input
|
|
1541
|
-
.filter((e)
|
|
1542
|
-
.map((entry)
|
|
2209
|
+
.filter(function (e) { return e != null; })
|
|
2210
|
+
.map(function (entry) {
|
|
1543
2211
|
return entry;
|
|
1544
2212
|
});
|
|
1545
2213
|
};
|
|
1546
|
-
|
|
2214
|
+
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
1547
2215
|
return input
|
|
1548
|
-
.filter((e)
|
|
1549
|
-
.map((entry)
|
|
2216
|
+
.filter(function (e) { return e != null; })
|
|
2217
|
+
.map(function (entry) {
|
|
1550
2218
|
return entry;
|
|
1551
2219
|
});
|
|
1552
2220
|
};
|
|
1553
|
-
|
|
2221
|
+
var serializeAws_restJson1AccountList = function (input, context) {
|
|
1554
2222
|
return input
|
|
1555
|
-
.filter((e)
|
|
1556
|
-
.map((entry)
|
|
2223
|
+
.filter(function (e) { return e != null; })
|
|
2224
|
+
.map(function (entry) {
|
|
1557
2225
|
return serializeAws_restJson1Account(entry, context);
|
|
1558
2226
|
});
|
|
1559
2227
|
};
|
|
1560
|
-
|
|
2228
|
+
var serializeAws_restJson1DatasourcePackageList = function (input, context) {
|
|
1561
2229
|
return input
|
|
1562
|
-
.filter((e)
|
|
1563
|
-
.map((entry)
|
|
2230
|
+
.filter(function (e) { return e != null; })
|
|
2231
|
+
.map(function (entry) {
|
|
1564
2232
|
return entry;
|
|
1565
2233
|
});
|
|
1566
2234
|
};
|
|
1567
|
-
|
|
2235
|
+
var serializeAws_restJson1GraphArnList = function (input, context) {
|
|
1568
2236
|
return input
|
|
1569
|
-
.filter((e)
|
|
1570
|
-
.map((entry)
|
|
2237
|
+
.filter(function (e) { return e != null; })
|
|
2238
|
+
.map(function (entry) {
|
|
1571
2239
|
return entry;
|
|
1572
2240
|
});
|
|
1573
2241
|
};
|
|
1574
|
-
|
|
1575
|
-
return Object.entries(input).reduce((acc,
|
|
2242
|
+
var serializeAws_restJson1TagMap = function (input, context) {
|
|
2243
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2244
|
+
var _b;
|
|
2245
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1576
2246
|
if (value === null) {
|
|
1577
2247
|
return acc;
|
|
1578
2248
|
}
|
|
1579
|
-
return {
|
|
1580
|
-
...acc,
|
|
1581
|
-
[key]: value,
|
|
1582
|
-
};
|
|
2249
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1583
2250
|
}, {});
|
|
1584
2251
|
};
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
.filter((e)
|
|
1588
|
-
.map((entry)
|
|
2252
|
+
var deserializeAws_restJson1AccountIdList = function (output, context) {
|
|
2253
|
+
var retVal = (output || [])
|
|
2254
|
+
.filter(function (e) { return e != null; })
|
|
2255
|
+
.map(function (entry) {
|
|
1589
2256
|
if (entry === null) {
|
|
1590
2257
|
return null;
|
|
1591
2258
|
}
|
|
@@ -1593,17 +2260,17 @@ const deserializeAws_restJson1AccountIdList = (output, context) => {
|
|
|
1593
2260
|
});
|
|
1594
2261
|
return retVal;
|
|
1595
2262
|
};
|
|
1596
|
-
|
|
2263
|
+
var deserializeAws_restJson1Administrator = function (output, context) {
|
|
1597
2264
|
return {
|
|
1598
2265
|
AccountId: __expectString(output.AccountId),
|
|
1599
2266
|
DelegationTime: output.DelegationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.DelegationTime)) : undefined,
|
|
1600
2267
|
GraphArn: __expectString(output.GraphArn),
|
|
1601
2268
|
};
|
|
1602
2269
|
};
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
.filter((e)
|
|
1606
|
-
.map((entry)
|
|
2270
|
+
var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
2271
|
+
var retVal = (output || [])
|
|
2272
|
+
.filter(function (e) { return e != null; })
|
|
2273
|
+
.map(function (entry) {
|
|
1607
2274
|
if (entry === null) {
|
|
1608
2275
|
return null;
|
|
1609
2276
|
}
|
|
@@ -1611,7 +2278,7 @@ const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
|
1611
2278
|
});
|
|
1612
2279
|
return retVal;
|
|
1613
2280
|
};
|
|
1614
|
-
|
|
2281
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetail = function (output, context) {
|
|
1615
2282
|
return {
|
|
1616
2283
|
DatasourcePackageIngestState: __expectString(output.DatasourcePackageIngestState),
|
|
1617
2284
|
LastIngestStateChange: output.LastIngestStateChange != null
|
|
@@ -1619,40 +2286,37 @@ const deserializeAws_restJson1DatasourcePackageIngestDetail = (output, context)
|
|
|
1619
2286
|
: undefined,
|
|
1620
2287
|
};
|
|
1621
2288
|
};
|
|
1622
|
-
|
|
1623
|
-
return Object.entries(output).reduce((acc,
|
|
2289
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetails = function (output, context) {
|
|
2290
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2291
|
+
var _b;
|
|
2292
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1624
2293
|
if (value === null) {
|
|
1625
2294
|
return acc;
|
|
1626
2295
|
}
|
|
1627
|
-
return {
|
|
1628
|
-
...acc,
|
|
1629
|
-
[key]: deserializeAws_restJson1DatasourcePackageIngestDetail(value, context),
|
|
1630
|
-
};
|
|
2296
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageIngestDetail(value, context), _b));
|
|
1631
2297
|
}, {});
|
|
1632
2298
|
};
|
|
1633
|
-
|
|
1634
|
-
return Object.entries(output).reduce((acc,
|
|
2299
|
+
var deserializeAws_restJson1DatasourcePackageIngestHistory = function (output, context) {
|
|
2300
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2301
|
+
var _b;
|
|
2302
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1635
2303
|
if (value === null) {
|
|
1636
2304
|
return acc;
|
|
1637
2305
|
}
|
|
1638
|
-
return {
|
|
1639
|
-
...acc,
|
|
1640
|
-
[key]: deserializeAws_restJson1LastIngestStateChangeDates(value, context),
|
|
1641
|
-
};
|
|
2306
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1LastIngestStateChangeDates(value, context), _b));
|
|
1642
2307
|
}, {});
|
|
1643
2308
|
};
|
|
1644
|
-
|
|
1645
|
-
return Object.entries(output).reduce((acc,
|
|
2309
|
+
var deserializeAws_restJson1DatasourcePackageIngestStates = function (output, context) {
|
|
2310
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2311
|
+
var _b;
|
|
2312
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1646
2313
|
if (value === null) {
|
|
1647
2314
|
return acc;
|
|
1648
2315
|
}
|
|
1649
|
-
return {
|
|
1650
|
-
...acc,
|
|
1651
|
-
[key]: __expectString(value),
|
|
1652
|
-
};
|
|
2316
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1653
2317
|
}, {});
|
|
1654
2318
|
};
|
|
1655
|
-
|
|
2319
|
+
var deserializeAws_restJson1DatasourcePackageUsageInfo = function (output, context) {
|
|
1656
2320
|
return {
|
|
1657
2321
|
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1658
2322
|
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
@@ -1660,16 +2324,16 @@ const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) =>
|
|
|
1660
2324
|
: undefined,
|
|
1661
2325
|
};
|
|
1662
2326
|
};
|
|
1663
|
-
|
|
2327
|
+
var deserializeAws_restJson1Graph = function (output, context) {
|
|
1664
2328
|
return {
|
|
1665
2329
|
Arn: __expectString(output.Arn),
|
|
1666
2330
|
CreatedTime: output.CreatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTime)) : undefined,
|
|
1667
2331
|
};
|
|
1668
2332
|
};
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
.filter((e)
|
|
1672
|
-
.map((entry)
|
|
2333
|
+
var deserializeAws_restJson1GraphList = function (output, context) {
|
|
2334
|
+
var retVal = (output || [])
|
|
2335
|
+
.filter(function (e) { return e != null; })
|
|
2336
|
+
.map(function (entry) {
|
|
1673
2337
|
if (entry === null) {
|
|
1674
2338
|
return null;
|
|
1675
2339
|
}
|
|
@@ -1677,18 +2341,17 @@ const deserializeAws_restJson1GraphList = (output, context) => {
|
|
|
1677
2341
|
});
|
|
1678
2342
|
return retVal;
|
|
1679
2343
|
};
|
|
1680
|
-
|
|
1681
|
-
return Object.entries(output).reduce((acc,
|
|
2344
|
+
var deserializeAws_restJson1LastIngestStateChangeDates = function (output, context) {
|
|
2345
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2346
|
+
var _b;
|
|
2347
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1682
2348
|
if (value === null) {
|
|
1683
2349
|
return acc;
|
|
1684
2350
|
}
|
|
1685
|
-
return {
|
|
1686
|
-
...acc,
|
|
1687
|
-
[key]: deserializeAws_restJson1TimestampForCollection(value, context),
|
|
1688
|
-
};
|
|
2351
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1TimestampForCollection(value, context), _b));
|
|
1689
2352
|
}, {});
|
|
1690
2353
|
};
|
|
1691
|
-
|
|
2354
|
+
var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
1692
2355
|
return {
|
|
1693
2356
|
AccountId: __expectString(output.AccountId),
|
|
1694
2357
|
AdministratorId: __expectString(output.AdministratorId),
|
|
@@ -1716,10 +2379,10 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1716
2379
|
: undefined,
|
|
1717
2380
|
};
|
|
1718
2381
|
};
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
.filter((e)
|
|
1722
|
-
.map((entry)
|
|
2382
|
+
var deserializeAws_restJson1MemberDetailList = function (output, context) {
|
|
2383
|
+
var retVal = (output || [])
|
|
2384
|
+
.filter(function (e) { return e != null; })
|
|
2385
|
+
.map(function (entry) {
|
|
1723
2386
|
if (entry === null) {
|
|
1724
2387
|
return null;
|
|
1725
2388
|
}
|
|
@@ -1727,7 +2390,7 @@ const deserializeAws_restJson1MemberDetailList = (output, context) => {
|
|
|
1727
2390
|
});
|
|
1728
2391
|
return retVal;
|
|
1729
2392
|
};
|
|
1730
|
-
|
|
2393
|
+
var deserializeAws_restJson1MembershipDatasources = function (output, context) {
|
|
1731
2394
|
return {
|
|
1732
2395
|
AccountId: __expectString(output.AccountId),
|
|
1733
2396
|
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
@@ -1736,10 +2399,10 @@ const deserializeAws_restJson1MembershipDatasources = (output, context) => {
|
|
|
1736
2399
|
GraphArn: __expectString(output.GraphArn),
|
|
1737
2400
|
};
|
|
1738
2401
|
};
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
.filter((e)
|
|
1742
|
-
.map((entry)
|
|
2402
|
+
var deserializeAws_restJson1MembershipDatasourcesList = function (output, context) {
|
|
2403
|
+
var retVal = (output || [])
|
|
2404
|
+
.filter(function (e) { return e != null; })
|
|
2405
|
+
.map(function (entry) {
|
|
1743
2406
|
if (entry === null) {
|
|
1744
2407
|
return null;
|
|
1745
2408
|
}
|
|
@@ -1747,10 +2410,10 @@ const deserializeAws_restJson1MembershipDatasourcesList = (output, context) => {
|
|
|
1747
2410
|
});
|
|
1748
2411
|
return retVal;
|
|
1749
2412
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
.filter((e)
|
|
1753
|
-
.map((entry)
|
|
2413
|
+
var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
2414
|
+
var retVal = (output || [])
|
|
2415
|
+
.filter(function (e) { return e != null; })
|
|
2416
|
+
.map(function (entry) {
|
|
1754
2417
|
if (entry === null) {
|
|
1755
2418
|
return null;
|
|
1756
2419
|
}
|
|
@@ -1758,32 +2421,31 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
|
1758
2421
|
});
|
|
1759
2422
|
return retVal;
|
|
1760
2423
|
};
|
|
1761
|
-
|
|
1762
|
-
return Object.entries(output).reduce((acc,
|
|
2424
|
+
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
2425
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2426
|
+
var _b;
|
|
2427
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1763
2428
|
if (value === null) {
|
|
1764
2429
|
return acc;
|
|
1765
2430
|
}
|
|
1766
|
-
return {
|
|
1767
|
-
...acc,
|
|
1768
|
-
[key]: __expectString(value),
|
|
1769
|
-
};
|
|
2431
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1770
2432
|
}, {});
|
|
1771
2433
|
};
|
|
1772
|
-
|
|
2434
|
+
var deserializeAws_restJson1TimestampForCollection = function (output, context) {
|
|
1773
2435
|
return {
|
|
1774
2436
|
Timestamp: output.Timestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.Timestamp)) : undefined,
|
|
1775
2437
|
};
|
|
1776
2438
|
};
|
|
1777
|
-
|
|
2439
|
+
var deserializeAws_restJson1UnprocessedAccount = function (output, context) {
|
|
1778
2440
|
return {
|
|
1779
2441
|
AccountId: __expectString(output.AccountId),
|
|
1780
2442
|
Reason: __expectString(output.Reason),
|
|
1781
2443
|
};
|
|
1782
2444
|
};
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
.filter((e)
|
|
1786
|
-
.map((entry)
|
|
2445
|
+
var deserializeAws_restJson1UnprocessedAccountList = function (output, context) {
|
|
2446
|
+
var retVal = (output || [])
|
|
2447
|
+
.filter(function (e) { return e != null; })
|
|
2448
|
+
.map(function (entry) {
|
|
1787
2449
|
if (entry === null) {
|
|
1788
2450
|
return null;
|
|
1789
2451
|
}
|
|
@@ -1791,16 +2453,16 @@ const deserializeAws_restJson1UnprocessedAccountList = (output, context) => {
|
|
|
1791
2453
|
});
|
|
1792
2454
|
return retVal;
|
|
1793
2455
|
};
|
|
1794
|
-
|
|
2456
|
+
var deserializeAws_restJson1UnprocessedGraph = function (output, context) {
|
|
1795
2457
|
return {
|
|
1796
2458
|
GraphArn: __expectString(output.GraphArn),
|
|
1797
2459
|
Reason: __expectString(output.Reason),
|
|
1798
2460
|
};
|
|
1799
2461
|
};
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
.filter((e)
|
|
1803
|
-
.map((entry)
|
|
2462
|
+
var deserializeAws_restJson1UnprocessedGraphList = function (output, context) {
|
|
2463
|
+
var retVal = (output || [])
|
|
2464
|
+
.filter(function (e) { return e != null; })
|
|
2465
|
+
.map(function (entry) {
|
|
1804
2466
|
if (entry === null) {
|
|
1805
2467
|
return null;
|
|
1806
2468
|
}
|
|
@@ -1808,50 +2470,67 @@ const deserializeAws_restJson1UnprocessedGraphList = (output, context) => {
|
|
|
1808
2470
|
});
|
|
1809
2471
|
return retVal;
|
|
1810
2472
|
};
|
|
1811
|
-
|
|
1812
|
-
return Object.entries(output).reduce((acc,
|
|
2473
|
+
var deserializeAws_restJson1VolumeUsageByDatasourcePackage = function (output, context) {
|
|
2474
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2475
|
+
var _b;
|
|
2476
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1813
2477
|
if (value === null) {
|
|
1814
2478
|
return acc;
|
|
1815
2479
|
}
|
|
1816
|
-
return {
|
|
1817
|
-
...acc,
|
|
1818
|
-
[key]: deserializeAws_restJson1DatasourcePackageUsageInfo(value, context),
|
|
1819
|
-
};
|
|
2480
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageUsageInfo(value, context), _b));
|
|
1820
2481
|
}, {});
|
|
1821
2482
|
};
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
2483
|
+
var deserializeMetadata = function (output) {
|
|
2484
|
+
var _a, _b;
|
|
2485
|
+
return ({
|
|
2486
|
+
httpStatusCode: output.statusCode,
|
|
2487
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2488
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2489
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2490
|
+
});
|
|
2491
|
+
};
|
|
2492
|
+
var collectBody = function (streamBody, context) {
|
|
2493
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1829
2494
|
if (streamBody instanceof Uint8Array) {
|
|
1830
2495
|
return Promise.resolve(streamBody);
|
|
1831
2496
|
}
|
|
1832
2497
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1833
2498
|
};
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
value !== null &&
|
|
1837
|
-
value !== "" &&
|
|
1838
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1839
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1840
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1841
|
-
if (encoded.length) {
|
|
1842
|
-
return JSON.parse(encoded);
|
|
1843
|
-
}
|
|
1844
|
-
return {};
|
|
1845
|
-
});
|
|
1846
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1847
|
-
const value = await parseBody(errorBody, context);
|
|
1848
|
-
value.message = value.message ?? value.Message;
|
|
1849
|
-
return value;
|
|
2499
|
+
var collectBodyString = function (streamBody, context) {
|
|
2500
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1850
2501
|
};
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
2502
|
+
var isSerializableHeaderValue = function (value) {
|
|
2503
|
+
return value !== undefined &&
|
|
2504
|
+
value !== null &&
|
|
2505
|
+
value !== "" &&
|
|
2506
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2507
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2508
|
+
};
|
|
2509
|
+
var parseBody = function (streamBody, context) {
|
|
2510
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2511
|
+
if (encoded.length) {
|
|
2512
|
+
return JSON.parse(encoded);
|
|
2513
|
+
}
|
|
2514
|
+
return {};
|
|
2515
|
+
});
|
|
2516
|
+
};
|
|
2517
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2518
|
+
var value;
|
|
2519
|
+
var _a;
|
|
2520
|
+
return __generator(this, function (_b) {
|
|
2521
|
+
switch (_b.label) {
|
|
2522
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2523
|
+
case 1:
|
|
2524
|
+
value = _b.sent();
|
|
2525
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2526
|
+
return [2, value];
|
|
2527
|
+
}
|
|
2528
|
+
});
|
|
2529
|
+
}); };
|
|
2530
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2531
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2532
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2533
|
+
var cleanValue = rawValue;
|
|
1855
2534
|
if (typeof cleanValue === "number") {
|
|
1856
2535
|
cleanValue = cleanValue.toString();
|
|
1857
2536
|
}
|
|
@@ -1866,7 +2545,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1866
2545
|
}
|
|
1867
2546
|
return cleanValue;
|
|
1868
2547
|
};
|
|
1869
|
-
|
|
2548
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1870
2549
|
if (headerKey !== undefined) {
|
|
1871
2550
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1872
2551
|
}
|