@aws-sdk/client-detective 3.303.0 → 3.309.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/dist-cjs/commands/AcceptInvitationCommand.js +2 -2
- package/dist-cjs/commands/BatchGetGraphMemberDatasourcesCommand.js +2 -2
- package/dist-cjs/commands/BatchGetMembershipDatasourcesCommand.js +2 -2
- package/dist-cjs/commands/CreateGraphCommand.js +2 -2
- package/dist-cjs/commands/CreateMembersCommand.js +2 -2
- package/dist-cjs/commands/DeleteGraphCommand.js +2 -2
- package/dist-cjs/commands/DeleteMembersCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMembershipCommand.js +2 -2
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetMembersCommand.js +2 -2
- package/dist-cjs/commands/ListDatasourcePackagesCommand.js +2 -2
- package/dist-cjs/commands/ListGraphsCommand.js +2 -2
- package/dist-cjs/commands/ListInvitationsCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RejectInvitationCommand.js +2 -2
- package/dist-cjs/commands/StartMonitoringMemberCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatasourcePackagesCommand.js +2 -2
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +324 -326
- package/dist-es/commands/AcceptInvitationCommand.js +3 -3
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +3 -3
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +3 -3
- package/dist-es/commands/CreateGraphCommand.js +3 -3
- package/dist-es/commands/CreateMembersCommand.js +3 -3
- package/dist-es/commands/DeleteGraphCommand.js +3 -3
- package/dist-es/commands/DeleteMembersCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateMembershipCommand.js +3 -3
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetMembersCommand.js +3 -3
- package/dist-es/commands/ListDatasourcePackagesCommand.js +3 -3
- package/dist-es/commands/ListGraphsCommand.js +3 -3
- package/dist-es/commands/ListInvitationsCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RejectInvitationCommand.js +3 -3
- package/dist-es/commands/StartMonitoringMemberCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +3 -3
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +275 -277
- package/dist-types/protocols/Aws_restJson1.d.ts +192 -48
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -48
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateDatasourcePackagesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMonitoringMemberCommand = exports.de_RejectInvitationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListGraphsCommand = exports.de_ListDatasourcePackagesCommand = exports.de_GetMembersCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_DisassociateMembershipCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DeleteMembersCommand = exports.de_DeleteGraphCommand = exports.de_CreateMembersCommand = exports.de_CreateGraphCommand = exports.de_BatchGetMembershipDatasourcesCommand = exports.de_BatchGetGraphMemberDatasourcesCommand = exports.de_AcceptInvitationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateDatasourcePackagesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMonitoringMemberCommand = exports.se_RejectInvitationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListGraphsCommand = exports.se_ListDatasourcePackagesCommand = exports.se_GetMembersCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_DisassociateMembershipCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DeleteMembersCommand = exports.se_DeleteGraphCommand = exports.se_CreateMembersCommand = exports.se_CreateGraphCommand = exports.se_BatchGetMembershipDatasourcesCommand = exports.se_BatchGetGraphMemberDatasourcesCommand = exports.se_AcceptInvitationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const DetectiveServiceException_1 = require("../models/DetectiveServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_AcceptInvitationCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -25,8 +25,8 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
|
|
29
|
+
const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
30
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/json",
|
|
@@ -34,9 +34,7 @@ const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (input
|
|
|
34
34
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
|
|
35
35
|
let body;
|
|
36
36
|
body = JSON.stringify({
|
|
37
|
-
...(input.AccountIds != null && {
|
|
38
|
-
AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
|
|
39
|
-
}),
|
|
37
|
+
...(input.AccountIds != null && { AccountIds: se_AccountIdExtendedList(input.AccountIds, context) }),
|
|
40
38
|
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
41
39
|
});
|
|
42
40
|
return new protocol_http_1.HttpRequest({
|
|
@@ -49,8 +47,8 @@ const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (input
|
|
|
49
47
|
body,
|
|
50
48
|
});
|
|
51
49
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const
|
|
50
|
+
exports.se_BatchGetGraphMemberDatasourcesCommand = se_BatchGetGraphMemberDatasourcesCommand;
|
|
51
|
+
const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
54
52
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
53
|
const headers = {
|
|
56
54
|
"content-type": "application/json",
|
|
@@ -58,7 +56,7 @@ const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (input,
|
|
|
58
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
|
|
59
57
|
let body;
|
|
60
58
|
body = JSON.stringify({
|
|
61
|
-
...(input.GraphArns != null && { GraphArns:
|
|
59
|
+
...(input.GraphArns != null && { GraphArns: se_GraphArnList(input.GraphArns, context) }),
|
|
62
60
|
});
|
|
63
61
|
return new protocol_http_1.HttpRequest({
|
|
64
62
|
protocol,
|
|
@@ -70,8 +68,8 @@ const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (input,
|
|
|
70
68
|
body,
|
|
71
69
|
});
|
|
72
70
|
};
|
|
73
|
-
exports.
|
|
74
|
-
const
|
|
71
|
+
exports.se_BatchGetMembershipDatasourcesCommand = se_BatchGetMembershipDatasourcesCommand;
|
|
72
|
+
const se_CreateGraphCommand = async (input, context) => {
|
|
75
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
74
|
const headers = {
|
|
77
75
|
"content-type": "application/json",
|
|
@@ -79,7 +77,7 @@ const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
|
|
|
79
77
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
|
|
80
78
|
let body;
|
|
81
79
|
body = JSON.stringify({
|
|
82
|
-
...(input.Tags != null && { Tags:
|
|
80
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
83
81
|
});
|
|
84
82
|
return new protocol_http_1.HttpRequest({
|
|
85
83
|
protocol,
|
|
@@ -91,8 +89,8 @@ const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
|
|
|
91
89
|
body,
|
|
92
90
|
});
|
|
93
91
|
};
|
|
94
|
-
exports.
|
|
95
|
-
const
|
|
92
|
+
exports.se_CreateGraphCommand = se_CreateGraphCommand;
|
|
93
|
+
const se_CreateMembersCommand = async (input, context) => {
|
|
96
94
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
97
95
|
const headers = {
|
|
98
96
|
"content-type": "application/json",
|
|
@@ -100,7 +98,7 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
|
|
|
100
98
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
|
|
101
99
|
let body;
|
|
102
100
|
body = JSON.stringify({
|
|
103
|
-
...(input.Accounts != null && { Accounts:
|
|
101
|
+
...(input.Accounts != null && { Accounts: se_AccountList(input.Accounts, context) }),
|
|
104
102
|
...(input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification }),
|
|
105
103
|
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
106
104
|
...(input.Message != null && { Message: input.Message }),
|
|
@@ -115,8 +113,8 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
|
|
|
115
113
|
body,
|
|
116
114
|
});
|
|
117
115
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
116
|
+
exports.se_CreateMembersCommand = se_CreateMembersCommand;
|
|
117
|
+
const se_DeleteGraphCommand = async (input, context) => {
|
|
120
118
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
119
|
const headers = {
|
|
122
120
|
"content-type": "application/json",
|
|
@@ -136,8 +134,8 @@ const serializeAws_restJson1DeleteGraphCommand = async (input, context) => {
|
|
|
136
134
|
body,
|
|
137
135
|
});
|
|
138
136
|
};
|
|
139
|
-
exports.
|
|
140
|
-
const
|
|
137
|
+
exports.se_DeleteGraphCommand = se_DeleteGraphCommand;
|
|
138
|
+
const se_DeleteMembersCommand = async (input, context) => {
|
|
141
139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
140
|
const headers = {
|
|
143
141
|
"content-type": "application/json",
|
|
@@ -145,7 +143,7 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
|
|
|
145
143
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
|
|
146
144
|
let body;
|
|
147
145
|
body = JSON.stringify({
|
|
148
|
-
...(input.AccountIds != null && { AccountIds:
|
|
146
|
+
...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
|
|
149
147
|
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
150
148
|
});
|
|
151
149
|
return new protocol_http_1.HttpRequest({
|
|
@@ -158,8 +156,8 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
|
|
|
158
156
|
body,
|
|
159
157
|
});
|
|
160
158
|
};
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
159
|
+
exports.se_DeleteMembersCommand = se_DeleteMembersCommand;
|
|
160
|
+
const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
163
161
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
162
|
const headers = {
|
|
165
163
|
"content-type": "application/json",
|
|
@@ -179,8 +177,8 @@ const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (in
|
|
|
179
177
|
body,
|
|
180
178
|
});
|
|
181
179
|
};
|
|
182
|
-
exports.
|
|
183
|
-
const
|
|
180
|
+
exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
|
|
181
|
+
const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
184
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
185
183
|
const headers = {
|
|
186
184
|
"content-type": "application/json",
|
|
@@ -198,8 +196,8 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
|
|
|
198
196
|
body,
|
|
199
197
|
});
|
|
200
198
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
199
|
+
exports.se_DisableOrganizationAdminAccountCommand = se_DisableOrganizationAdminAccountCommand;
|
|
200
|
+
const se_DisassociateMembershipCommand = async (input, context) => {
|
|
203
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
202
|
const headers = {
|
|
205
203
|
"content-type": "application/json",
|
|
@@ -219,8 +217,8 @@ const serializeAws_restJson1DisassociateMembershipCommand = async (input, contex
|
|
|
219
217
|
body,
|
|
220
218
|
});
|
|
221
219
|
};
|
|
222
|
-
exports.
|
|
223
|
-
const
|
|
220
|
+
exports.se_DisassociateMembershipCommand = se_DisassociateMembershipCommand;
|
|
221
|
+
const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
224
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
223
|
const headers = {
|
|
226
224
|
"content-type": "application/json",
|
|
@@ -240,8 +238,8 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
240
238
|
body,
|
|
241
239
|
});
|
|
242
240
|
};
|
|
243
|
-
exports.
|
|
244
|
-
const
|
|
241
|
+
exports.se_EnableOrganizationAdminAccountCommand = se_EnableOrganizationAdminAccountCommand;
|
|
242
|
+
const se_GetMembersCommand = async (input, context) => {
|
|
245
243
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
244
|
const headers = {
|
|
247
245
|
"content-type": "application/json",
|
|
@@ -249,7 +247,7 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
249
247
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
|
|
250
248
|
let body;
|
|
251
249
|
body = JSON.stringify({
|
|
252
|
-
...(input.AccountIds != null && { AccountIds:
|
|
250
|
+
...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
|
|
253
251
|
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
254
252
|
});
|
|
255
253
|
return new protocol_http_1.HttpRequest({
|
|
@@ -262,8 +260,8 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
262
260
|
body,
|
|
263
261
|
});
|
|
264
262
|
};
|
|
265
|
-
exports.
|
|
266
|
-
const
|
|
263
|
+
exports.se_GetMembersCommand = se_GetMembersCommand;
|
|
264
|
+
const se_ListDatasourcePackagesCommand = async (input, context) => {
|
|
267
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
266
|
const headers = {
|
|
269
267
|
"content-type": "application/json",
|
|
@@ -285,8 +283,8 @@ const serializeAws_restJson1ListDatasourcePackagesCommand = async (input, contex
|
|
|
285
283
|
body,
|
|
286
284
|
});
|
|
287
285
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
286
|
+
exports.se_ListDatasourcePackagesCommand = se_ListDatasourcePackagesCommand;
|
|
287
|
+
const se_ListGraphsCommand = async (input, context) => {
|
|
290
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
289
|
const headers = {
|
|
292
290
|
"content-type": "application/json",
|
|
@@ -307,8 +305,8 @@ const serializeAws_restJson1ListGraphsCommand = async (input, context) => {
|
|
|
307
305
|
body,
|
|
308
306
|
});
|
|
309
307
|
};
|
|
310
|
-
exports.
|
|
311
|
-
const
|
|
308
|
+
exports.se_ListGraphsCommand = se_ListGraphsCommand;
|
|
309
|
+
const se_ListInvitationsCommand = async (input, context) => {
|
|
312
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
311
|
const headers = {
|
|
314
312
|
"content-type": "application/json",
|
|
@@ -329,8 +327,8 @@ const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
|
329
327
|
body,
|
|
330
328
|
});
|
|
331
329
|
};
|
|
332
|
-
exports.
|
|
333
|
-
const
|
|
330
|
+
exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
|
|
331
|
+
const se_ListMembersCommand = async (input, context) => {
|
|
334
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
333
|
const headers = {
|
|
336
334
|
"content-type": "application/json",
|
|
@@ -352,8 +350,8 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
|
352
350
|
body,
|
|
353
351
|
});
|
|
354
352
|
};
|
|
355
|
-
exports.
|
|
356
|
-
const
|
|
353
|
+
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
354
|
+
const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
357
355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
358
356
|
const headers = {
|
|
359
357
|
"content-type": "application/json",
|
|
@@ -374,8 +372,8 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
|
|
|
374
372
|
body,
|
|
375
373
|
});
|
|
376
374
|
};
|
|
377
|
-
exports.
|
|
378
|
-
const
|
|
375
|
+
exports.se_ListOrganizationAdminAccountsCommand = se_ListOrganizationAdminAccountsCommand;
|
|
376
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
379
377
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
378
|
const headers = {};
|
|
381
379
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -391,8 +389,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
391
389
|
body,
|
|
392
390
|
});
|
|
393
391
|
};
|
|
394
|
-
exports.
|
|
395
|
-
const
|
|
392
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
393
|
+
const se_RejectInvitationCommand = async (input, context) => {
|
|
396
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
395
|
const headers = {
|
|
398
396
|
"content-type": "application/json",
|
|
@@ -412,8 +410,8 @@ const serializeAws_restJson1RejectInvitationCommand = async (input, context) =>
|
|
|
412
410
|
body,
|
|
413
411
|
});
|
|
414
412
|
};
|
|
415
|
-
exports.
|
|
416
|
-
const
|
|
413
|
+
exports.se_RejectInvitationCommand = se_RejectInvitationCommand;
|
|
414
|
+
const se_StartMonitoringMemberCommand = async (input, context) => {
|
|
417
415
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
416
|
const headers = {
|
|
419
417
|
"content-type": "application/json",
|
|
@@ -434,8 +432,8 @@ const serializeAws_restJson1StartMonitoringMemberCommand = async (input, context
|
|
|
434
432
|
body,
|
|
435
433
|
});
|
|
436
434
|
};
|
|
437
|
-
exports.
|
|
438
|
-
const
|
|
435
|
+
exports.se_StartMonitoringMemberCommand = se_StartMonitoringMemberCommand;
|
|
436
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
439
437
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
440
438
|
const headers = {
|
|
441
439
|
"content-type": "application/json",
|
|
@@ -444,7 +442,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
444
442
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
445
443
|
let body;
|
|
446
444
|
body = JSON.stringify({
|
|
447
|
-
...(input.Tags != null && { Tags:
|
|
445
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
448
446
|
});
|
|
449
447
|
return new protocol_http_1.HttpRequest({
|
|
450
448
|
protocol,
|
|
@@ -456,8 +454,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
456
454
|
body,
|
|
457
455
|
});
|
|
458
456
|
};
|
|
459
|
-
exports.
|
|
460
|
-
const
|
|
457
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
458
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
461
459
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
460
|
const headers = {};
|
|
463
461
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -480,8 +478,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
480
478
|
body,
|
|
481
479
|
});
|
|
482
480
|
};
|
|
483
|
-
exports.
|
|
484
|
-
const
|
|
481
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
482
|
+
const se_UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
485
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
486
484
|
const headers = {
|
|
487
485
|
"content-type": "application/json",
|
|
@@ -490,7 +488,7 @@ const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (input, cont
|
|
|
490
488
|
let body;
|
|
491
489
|
body = JSON.stringify({
|
|
492
490
|
...(input.DatasourcePackages != null && {
|
|
493
|
-
DatasourcePackages:
|
|
491
|
+
DatasourcePackages: se_DatasourcePackageList(input.DatasourcePackages, context),
|
|
494
492
|
}),
|
|
495
493
|
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
496
494
|
});
|
|
@@ -504,8 +502,8 @@ const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (input, cont
|
|
|
504
502
|
body,
|
|
505
503
|
});
|
|
506
504
|
};
|
|
507
|
-
exports.
|
|
508
|
-
const
|
|
505
|
+
exports.se_UpdateDatasourcePackagesCommand = se_UpdateDatasourcePackagesCommand;
|
|
506
|
+
const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
509
507
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
508
|
const headers = {
|
|
511
509
|
"content-type": "application/json",
|
|
@@ -526,10 +524,10 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
526
524
|
body,
|
|
527
525
|
});
|
|
528
526
|
};
|
|
529
|
-
exports.
|
|
530
|
-
const
|
|
527
|
+
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
528
|
+
const de_AcceptInvitationCommand = async (output, context) => {
|
|
531
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
532
|
-
return
|
|
530
|
+
return de_AcceptInvitationCommandError(output, context);
|
|
533
531
|
}
|
|
534
532
|
const contents = map({
|
|
535
533
|
$metadata: deserializeMetadata(output),
|
|
@@ -537,8 +535,8 @@ const deserializeAws_restJson1AcceptInvitationCommand = async (output, context)
|
|
|
537
535
|
await collectBody(output.body, context);
|
|
538
536
|
return contents;
|
|
539
537
|
};
|
|
540
|
-
exports.
|
|
541
|
-
const
|
|
538
|
+
exports.de_AcceptInvitationCommand = de_AcceptInvitationCommand;
|
|
539
|
+
const de_AcceptInvitationCommandError = async (output, context) => {
|
|
542
540
|
const parsedOutput = {
|
|
543
541
|
...output,
|
|
544
542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -547,19 +545,19 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
547
545
|
switch (errorCode) {
|
|
548
546
|
case "AccessDeniedException":
|
|
549
547
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
550
|
-
throw await
|
|
548
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
551
549
|
case "ConflictException":
|
|
552
550
|
case "com.amazonaws.detective#ConflictException":
|
|
553
|
-
throw await
|
|
551
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
554
552
|
case "InternalServerException":
|
|
555
553
|
case "com.amazonaws.detective#InternalServerException":
|
|
556
|
-
throw await
|
|
554
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
557
555
|
case "ResourceNotFoundException":
|
|
558
556
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
559
|
-
throw await
|
|
557
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
560
558
|
case "ValidationException":
|
|
561
559
|
case "com.amazonaws.detective#ValidationException":
|
|
562
|
-
throw await
|
|
560
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
561
|
default:
|
|
564
562
|
const parsedBody = parsedOutput.body;
|
|
565
563
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -570,24 +568,24 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
570
568
|
});
|
|
571
569
|
}
|
|
572
570
|
};
|
|
573
|
-
const
|
|
571
|
+
const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
|
|
574
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return
|
|
573
|
+
return de_BatchGetGraphMemberDatasourcesCommandError(output, context);
|
|
576
574
|
}
|
|
577
575
|
const contents = map({
|
|
578
576
|
$metadata: deserializeMetadata(output),
|
|
579
577
|
});
|
|
580
578
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
581
579
|
if (data.MemberDatasources != null) {
|
|
582
|
-
contents.MemberDatasources =
|
|
580
|
+
contents.MemberDatasources = de_MembershipDatasourcesList(data.MemberDatasources, context);
|
|
583
581
|
}
|
|
584
582
|
if (data.UnprocessedAccounts != null) {
|
|
585
|
-
contents.UnprocessedAccounts =
|
|
583
|
+
contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
586
584
|
}
|
|
587
585
|
return contents;
|
|
588
586
|
};
|
|
589
|
-
exports.
|
|
590
|
-
const
|
|
587
|
+
exports.de_BatchGetGraphMemberDatasourcesCommand = de_BatchGetGraphMemberDatasourcesCommand;
|
|
588
|
+
const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
591
589
|
const parsedOutput = {
|
|
592
590
|
...output,
|
|
593
591
|
body: await parseErrorBody(output.body, context),
|
|
@@ -596,16 +594,16 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
|
|
|
596
594
|
switch (errorCode) {
|
|
597
595
|
case "AccessDeniedException":
|
|
598
596
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
599
|
-
throw await
|
|
597
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
600
598
|
case "InternalServerException":
|
|
601
599
|
case "com.amazonaws.detective#InternalServerException":
|
|
602
|
-
throw await
|
|
600
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
601
|
case "ResourceNotFoundException":
|
|
604
602
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
605
|
-
throw await
|
|
603
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
604
|
case "ValidationException":
|
|
607
605
|
case "com.amazonaws.detective#ValidationException":
|
|
608
|
-
throw await
|
|
606
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
607
|
default:
|
|
610
608
|
const parsedBody = parsedOutput.body;
|
|
611
609
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -616,24 +614,24 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
|
|
|
616
614
|
});
|
|
617
615
|
}
|
|
618
616
|
};
|
|
619
|
-
const
|
|
617
|
+
const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
620
618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
-
return
|
|
619
|
+
return de_BatchGetMembershipDatasourcesCommandError(output, context);
|
|
622
620
|
}
|
|
623
621
|
const contents = map({
|
|
624
622
|
$metadata: deserializeMetadata(output),
|
|
625
623
|
});
|
|
626
624
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
627
625
|
if (data.MembershipDatasources != null) {
|
|
628
|
-
contents.MembershipDatasources =
|
|
626
|
+
contents.MembershipDatasources = de_MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
629
627
|
}
|
|
630
628
|
if (data.UnprocessedGraphs != null) {
|
|
631
|
-
contents.UnprocessedGraphs =
|
|
629
|
+
contents.UnprocessedGraphs = de_UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
632
630
|
}
|
|
633
631
|
return contents;
|
|
634
632
|
};
|
|
635
|
-
exports.
|
|
636
|
-
const
|
|
633
|
+
exports.de_BatchGetMembershipDatasourcesCommand = de_BatchGetMembershipDatasourcesCommand;
|
|
634
|
+
const de_BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
637
635
|
const parsedOutput = {
|
|
638
636
|
...output,
|
|
639
637
|
body: await parseErrorBody(output.body, context),
|
|
@@ -642,16 +640,16 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
|
|
|
642
640
|
switch (errorCode) {
|
|
643
641
|
case "AccessDeniedException":
|
|
644
642
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
645
|
-
throw await
|
|
643
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
646
644
|
case "InternalServerException":
|
|
647
645
|
case "com.amazonaws.detective#InternalServerException":
|
|
648
|
-
throw await
|
|
646
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
649
647
|
case "ResourceNotFoundException":
|
|
650
648
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
651
|
-
throw await
|
|
649
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
650
|
case "ValidationException":
|
|
653
651
|
case "com.amazonaws.detective#ValidationException":
|
|
654
|
-
throw await
|
|
652
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
653
|
default:
|
|
656
654
|
const parsedBody = parsedOutput.body;
|
|
657
655
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -662,9 +660,9 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
|
|
|
662
660
|
});
|
|
663
661
|
}
|
|
664
662
|
};
|
|
665
|
-
const
|
|
663
|
+
const de_CreateGraphCommand = async (output, context) => {
|
|
666
664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
|
-
return
|
|
665
|
+
return de_CreateGraphCommandError(output, context);
|
|
668
666
|
}
|
|
669
667
|
const contents = map({
|
|
670
668
|
$metadata: deserializeMetadata(output),
|
|
@@ -675,8 +673,8 @@ const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
|
|
|
675
673
|
}
|
|
676
674
|
return contents;
|
|
677
675
|
};
|
|
678
|
-
exports.
|
|
679
|
-
const
|
|
676
|
+
exports.de_CreateGraphCommand = de_CreateGraphCommand;
|
|
677
|
+
const de_CreateGraphCommandError = async (output, context) => {
|
|
680
678
|
const parsedOutput = {
|
|
681
679
|
...output,
|
|
682
680
|
body: await parseErrorBody(output.body, context),
|
|
@@ -685,16 +683,16 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
685
683
|
switch (errorCode) {
|
|
686
684
|
case "AccessDeniedException":
|
|
687
685
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
688
|
-
throw await
|
|
686
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
689
687
|
case "ConflictException":
|
|
690
688
|
case "com.amazonaws.detective#ConflictException":
|
|
691
|
-
throw await
|
|
689
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
692
690
|
case "InternalServerException":
|
|
693
691
|
case "com.amazonaws.detective#InternalServerException":
|
|
694
|
-
throw await
|
|
692
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
693
|
case "ServiceQuotaExceededException":
|
|
696
694
|
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
697
|
-
throw await
|
|
695
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
698
696
|
default:
|
|
699
697
|
const parsedBody = parsedOutput.body;
|
|
700
698
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -705,24 +703,24 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
705
703
|
});
|
|
706
704
|
}
|
|
707
705
|
};
|
|
708
|
-
const
|
|
706
|
+
const de_CreateMembersCommand = async (output, context) => {
|
|
709
707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
-
return
|
|
708
|
+
return de_CreateMembersCommandError(output, context);
|
|
711
709
|
}
|
|
712
710
|
const contents = map({
|
|
713
711
|
$metadata: deserializeMetadata(output),
|
|
714
712
|
});
|
|
715
713
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
716
714
|
if (data.Members != null) {
|
|
717
|
-
contents.Members =
|
|
715
|
+
contents.Members = de_MemberDetailList(data.Members, context);
|
|
718
716
|
}
|
|
719
717
|
if (data.UnprocessedAccounts != null) {
|
|
720
|
-
contents.UnprocessedAccounts =
|
|
718
|
+
contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
721
719
|
}
|
|
722
720
|
return contents;
|
|
723
721
|
};
|
|
724
|
-
exports.
|
|
725
|
-
const
|
|
722
|
+
exports.de_CreateMembersCommand = de_CreateMembersCommand;
|
|
723
|
+
const de_CreateMembersCommandError = async (output, context) => {
|
|
726
724
|
const parsedOutput = {
|
|
727
725
|
...output,
|
|
728
726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -731,19 +729,19 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
731
729
|
switch (errorCode) {
|
|
732
730
|
case "AccessDeniedException":
|
|
733
731
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
734
|
-
throw await
|
|
732
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
733
|
case "InternalServerException":
|
|
736
734
|
case "com.amazonaws.detective#InternalServerException":
|
|
737
|
-
throw await
|
|
735
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
738
736
|
case "ResourceNotFoundException":
|
|
739
737
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
740
|
-
throw await
|
|
738
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
739
|
case "ServiceQuotaExceededException":
|
|
742
740
|
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
743
|
-
throw await
|
|
741
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
744
742
|
case "ValidationException":
|
|
745
743
|
case "com.amazonaws.detective#ValidationException":
|
|
746
|
-
throw await
|
|
744
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
747
745
|
default:
|
|
748
746
|
const parsedBody = parsedOutput.body;
|
|
749
747
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -754,9 +752,9 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
754
752
|
});
|
|
755
753
|
}
|
|
756
754
|
};
|
|
757
|
-
const
|
|
755
|
+
const de_DeleteGraphCommand = async (output, context) => {
|
|
758
756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
|
-
return
|
|
757
|
+
return de_DeleteGraphCommandError(output, context);
|
|
760
758
|
}
|
|
761
759
|
const contents = map({
|
|
762
760
|
$metadata: deserializeMetadata(output),
|
|
@@ -764,8 +762,8 @@ const deserializeAws_restJson1DeleteGraphCommand = async (output, context) => {
|
|
|
764
762
|
await collectBody(output.body, context);
|
|
765
763
|
return contents;
|
|
766
764
|
};
|
|
767
|
-
exports.
|
|
768
|
-
const
|
|
765
|
+
exports.de_DeleteGraphCommand = de_DeleteGraphCommand;
|
|
766
|
+
const de_DeleteGraphCommandError = async (output, context) => {
|
|
769
767
|
const parsedOutput = {
|
|
770
768
|
...output,
|
|
771
769
|
body: await parseErrorBody(output.body, context),
|
|
@@ -774,16 +772,16 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
774
772
|
switch (errorCode) {
|
|
775
773
|
case "AccessDeniedException":
|
|
776
774
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
777
|
-
throw await
|
|
775
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
776
|
case "InternalServerException":
|
|
779
777
|
case "com.amazonaws.detective#InternalServerException":
|
|
780
|
-
throw await
|
|
778
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
781
779
|
case "ResourceNotFoundException":
|
|
782
780
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
783
|
-
throw await
|
|
781
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
784
782
|
case "ValidationException":
|
|
785
783
|
case "com.amazonaws.detective#ValidationException":
|
|
786
|
-
throw await
|
|
784
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
787
785
|
default:
|
|
788
786
|
const parsedBody = parsedOutput.body;
|
|
789
787
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -794,24 +792,24 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
794
792
|
});
|
|
795
793
|
}
|
|
796
794
|
};
|
|
797
|
-
const
|
|
795
|
+
const de_DeleteMembersCommand = async (output, context) => {
|
|
798
796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return
|
|
797
|
+
return de_DeleteMembersCommandError(output, context);
|
|
800
798
|
}
|
|
801
799
|
const contents = map({
|
|
802
800
|
$metadata: deserializeMetadata(output),
|
|
803
801
|
});
|
|
804
802
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
805
803
|
if (data.AccountIds != null) {
|
|
806
|
-
contents.AccountIds =
|
|
804
|
+
contents.AccountIds = de_AccountIdList(data.AccountIds, context);
|
|
807
805
|
}
|
|
808
806
|
if (data.UnprocessedAccounts != null) {
|
|
809
|
-
contents.UnprocessedAccounts =
|
|
807
|
+
contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
810
808
|
}
|
|
811
809
|
return contents;
|
|
812
810
|
};
|
|
813
|
-
exports.
|
|
814
|
-
const
|
|
811
|
+
exports.de_DeleteMembersCommand = de_DeleteMembersCommand;
|
|
812
|
+
const de_DeleteMembersCommandError = async (output, context) => {
|
|
815
813
|
const parsedOutput = {
|
|
816
814
|
...output,
|
|
817
815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -820,19 +818,19 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
820
818
|
switch (errorCode) {
|
|
821
819
|
case "AccessDeniedException":
|
|
822
820
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
823
|
-
throw await
|
|
821
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
824
822
|
case "ConflictException":
|
|
825
823
|
case "com.amazonaws.detective#ConflictException":
|
|
826
|
-
throw await
|
|
824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
827
825
|
case "InternalServerException":
|
|
828
826
|
case "com.amazonaws.detective#InternalServerException":
|
|
829
|
-
throw await
|
|
827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
830
828
|
case "ResourceNotFoundException":
|
|
831
829
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
832
|
-
throw await
|
|
830
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
831
|
case "ValidationException":
|
|
834
832
|
case "com.amazonaws.detective#ValidationException":
|
|
835
|
-
throw await
|
|
833
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
836
834
|
default:
|
|
837
835
|
const parsedBody = parsedOutput.body;
|
|
838
836
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -843,9 +841,9 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
843
841
|
});
|
|
844
842
|
}
|
|
845
843
|
};
|
|
846
|
-
const
|
|
844
|
+
const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
847
845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
-
return
|
|
846
|
+
return de_DescribeOrganizationConfigurationCommandError(output, context);
|
|
849
847
|
}
|
|
850
848
|
const contents = map({
|
|
851
849
|
$metadata: deserializeMetadata(output),
|
|
@@ -856,8 +854,8 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (
|
|
|
856
854
|
}
|
|
857
855
|
return contents;
|
|
858
856
|
};
|
|
859
|
-
exports.
|
|
860
|
-
const
|
|
857
|
+
exports.de_DescribeOrganizationConfigurationCommand = de_DescribeOrganizationConfigurationCommand;
|
|
858
|
+
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
861
859
|
const parsedOutput = {
|
|
862
860
|
...output,
|
|
863
861
|
body: await parseErrorBody(output.body, context),
|
|
@@ -866,16 +864,16 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
866
864
|
switch (errorCode) {
|
|
867
865
|
case "AccessDeniedException":
|
|
868
866
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
869
|
-
throw await
|
|
867
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
870
868
|
case "InternalServerException":
|
|
871
869
|
case "com.amazonaws.detective#InternalServerException":
|
|
872
|
-
throw await
|
|
870
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
873
871
|
case "TooManyRequestsException":
|
|
874
872
|
case "com.amazonaws.detective#TooManyRequestsException":
|
|
875
|
-
throw await
|
|
873
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
876
874
|
case "ValidationException":
|
|
877
875
|
case "com.amazonaws.detective#ValidationException":
|
|
878
|
-
throw await
|
|
876
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
877
|
default:
|
|
880
878
|
const parsedBody = parsedOutput.body;
|
|
881
879
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -886,9 +884,9 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
886
884
|
});
|
|
887
885
|
}
|
|
888
886
|
};
|
|
889
|
-
const
|
|
887
|
+
const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
890
888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
889
|
+
return de_DisableOrganizationAdminAccountCommandError(output, context);
|
|
892
890
|
}
|
|
893
891
|
const contents = map({
|
|
894
892
|
$metadata: deserializeMetadata(output),
|
|
@@ -896,8 +894,8 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (ou
|
|
|
896
894
|
await collectBody(output.body, context);
|
|
897
895
|
return contents;
|
|
898
896
|
};
|
|
899
|
-
exports.
|
|
900
|
-
const
|
|
897
|
+
exports.de_DisableOrganizationAdminAccountCommand = de_DisableOrganizationAdminAccountCommand;
|
|
898
|
+
const de_DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
901
899
|
const parsedOutput = {
|
|
902
900
|
...output,
|
|
903
901
|
body: await parseErrorBody(output.body, context),
|
|
@@ -906,16 +904,16 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
906
904
|
switch (errorCode) {
|
|
907
905
|
case "AccessDeniedException":
|
|
908
906
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
909
|
-
throw await
|
|
907
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
910
908
|
case "InternalServerException":
|
|
911
909
|
case "com.amazonaws.detective#InternalServerException":
|
|
912
|
-
throw await
|
|
910
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
913
911
|
case "TooManyRequestsException":
|
|
914
912
|
case "com.amazonaws.detective#TooManyRequestsException":
|
|
915
|
-
throw await
|
|
913
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
916
914
|
case "ValidationException":
|
|
917
915
|
case "com.amazonaws.detective#ValidationException":
|
|
918
|
-
throw await
|
|
916
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
917
|
default:
|
|
920
918
|
const parsedBody = parsedOutput.body;
|
|
921
919
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -926,9 +924,9 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
926
924
|
});
|
|
927
925
|
}
|
|
928
926
|
};
|
|
929
|
-
const
|
|
927
|
+
const de_DisassociateMembershipCommand = async (output, context) => {
|
|
930
928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return
|
|
929
|
+
return de_DisassociateMembershipCommandError(output, context);
|
|
932
930
|
}
|
|
933
931
|
const contents = map({
|
|
934
932
|
$metadata: deserializeMetadata(output),
|
|
@@ -936,8 +934,8 @@ const deserializeAws_restJson1DisassociateMembershipCommand = async (output, con
|
|
|
936
934
|
await collectBody(output.body, context);
|
|
937
935
|
return contents;
|
|
938
936
|
};
|
|
939
|
-
exports.
|
|
940
|
-
const
|
|
937
|
+
exports.de_DisassociateMembershipCommand = de_DisassociateMembershipCommand;
|
|
938
|
+
const de_DisassociateMembershipCommandError = async (output, context) => {
|
|
941
939
|
const parsedOutput = {
|
|
942
940
|
...output,
|
|
943
941
|
body: await parseErrorBody(output.body, context),
|
|
@@ -946,19 +944,19 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
946
944
|
switch (errorCode) {
|
|
947
945
|
case "AccessDeniedException":
|
|
948
946
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
949
|
-
throw await
|
|
947
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
948
|
case "ConflictException":
|
|
951
949
|
case "com.amazonaws.detective#ConflictException":
|
|
952
|
-
throw await
|
|
950
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
953
951
|
case "InternalServerException":
|
|
954
952
|
case "com.amazonaws.detective#InternalServerException":
|
|
955
|
-
throw await
|
|
953
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
954
|
case "ResourceNotFoundException":
|
|
957
955
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
958
|
-
throw await
|
|
956
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
957
|
case "ValidationException":
|
|
960
958
|
case "com.amazonaws.detective#ValidationException":
|
|
961
|
-
throw await
|
|
959
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
960
|
default:
|
|
963
961
|
const parsedBody = parsedOutput.body;
|
|
964
962
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -969,9 +967,9 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
969
967
|
});
|
|
970
968
|
}
|
|
971
969
|
};
|
|
972
|
-
const
|
|
970
|
+
const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
973
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return
|
|
972
|
+
return de_EnableOrganizationAdminAccountCommandError(output, context);
|
|
975
973
|
}
|
|
976
974
|
const contents = map({
|
|
977
975
|
$metadata: deserializeMetadata(output),
|
|
@@ -979,8 +977,8 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (out
|
|
|
979
977
|
await collectBody(output.body, context);
|
|
980
978
|
return contents;
|
|
981
979
|
};
|
|
982
|
-
exports.
|
|
983
|
-
const
|
|
980
|
+
exports.de_EnableOrganizationAdminAccountCommand = de_EnableOrganizationAdminAccountCommand;
|
|
981
|
+
const de_EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
984
982
|
const parsedOutput = {
|
|
985
983
|
...output,
|
|
986
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -989,16 +987,16 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
989
987
|
switch (errorCode) {
|
|
990
988
|
case "AccessDeniedException":
|
|
991
989
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
992
|
-
throw await
|
|
990
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
993
991
|
case "InternalServerException":
|
|
994
992
|
case "com.amazonaws.detective#InternalServerException":
|
|
995
|
-
throw await
|
|
993
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
996
994
|
case "TooManyRequestsException":
|
|
997
995
|
case "com.amazonaws.detective#TooManyRequestsException":
|
|
998
|
-
throw await
|
|
996
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
999
997
|
case "ValidationException":
|
|
1000
998
|
case "com.amazonaws.detective#ValidationException":
|
|
1001
|
-
throw await
|
|
999
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1002
1000
|
default:
|
|
1003
1001
|
const parsedBody = parsedOutput.body;
|
|
1004
1002
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1009,24 +1007,24 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
1009
1007
|
});
|
|
1010
1008
|
}
|
|
1011
1009
|
};
|
|
1012
|
-
const
|
|
1010
|
+
const de_GetMembersCommand = async (output, context) => {
|
|
1013
1011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
1012
|
+
return de_GetMembersCommandError(output, context);
|
|
1015
1013
|
}
|
|
1016
1014
|
const contents = map({
|
|
1017
1015
|
$metadata: deserializeMetadata(output),
|
|
1018
1016
|
});
|
|
1019
1017
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1020
1018
|
if (data.MemberDetails != null) {
|
|
1021
|
-
contents.MemberDetails =
|
|
1019
|
+
contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
|
|
1022
1020
|
}
|
|
1023
1021
|
if (data.UnprocessedAccounts != null) {
|
|
1024
|
-
contents.UnprocessedAccounts =
|
|
1022
|
+
contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
1025
1023
|
}
|
|
1026
1024
|
return contents;
|
|
1027
1025
|
};
|
|
1028
|
-
exports.
|
|
1029
|
-
const
|
|
1026
|
+
exports.de_GetMembersCommand = de_GetMembersCommand;
|
|
1027
|
+
const de_GetMembersCommandError = async (output, context) => {
|
|
1030
1028
|
const parsedOutput = {
|
|
1031
1029
|
...output,
|
|
1032
1030
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1035,16 +1033,16 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
1035
1033
|
switch (errorCode) {
|
|
1036
1034
|
case "AccessDeniedException":
|
|
1037
1035
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1038
|
-
throw await
|
|
1036
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1039
1037
|
case "InternalServerException":
|
|
1040
1038
|
case "com.amazonaws.detective#InternalServerException":
|
|
1041
|
-
throw await
|
|
1039
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1042
1040
|
case "ResourceNotFoundException":
|
|
1043
1041
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1044
|
-
throw await
|
|
1042
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
1043
|
case "ValidationException":
|
|
1046
1044
|
case "com.amazonaws.detective#ValidationException":
|
|
1047
|
-
throw await
|
|
1045
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1048
1046
|
default:
|
|
1049
1047
|
const parsedBody = parsedOutput.body;
|
|
1050
1048
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1055,24 +1053,24 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
1055
1053
|
});
|
|
1056
1054
|
}
|
|
1057
1055
|
};
|
|
1058
|
-
const
|
|
1056
|
+
const de_ListDatasourcePackagesCommand = async (output, context) => {
|
|
1059
1057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
1058
|
+
return de_ListDatasourcePackagesCommandError(output, context);
|
|
1061
1059
|
}
|
|
1062
1060
|
const contents = map({
|
|
1063
1061
|
$metadata: deserializeMetadata(output),
|
|
1064
1062
|
});
|
|
1065
1063
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1066
1064
|
if (data.DatasourcePackages != null) {
|
|
1067
|
-
contents.DatasourcePackages =
|
|
1065
|
+
contents.DatasourcePackages = de_DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1068
1066
|
}
|
|
1069
1067
|
if (data.NextToken != null) {
|
|
1070
1068
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1071
1069
|
}
|
|
1072
1070
|
return contents;
|
|
1073
1071
|
};
|
|
1074
|
-
exports.
|
|
1075
|
-
const
|
|
1072
|
+
exports.de_ListDatasourcePackagesCommand = de_ListDatasourcePackagesCommand;
|
|
1073
|
+
const de_ListDatasourcePackagesCommandError = async (output, context) => {
|
|
1076
1074
|
const parsedOutput = {
|
|
1077
1075
|
...output,
|
|
1078
1076
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1081,16 +1079,16 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
|
|
|
1081
1079
|
switch (errorCode) {
|
|
1082
1080
|
case "AccessDeniedException":
|
|
1083
1081
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1084
|
-
throw await
|
|
1082
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
1083
|
case "InternalServerException":
|
|
1086
1084
|
case "com.amazonaws.detective#InternalServerException":
|
|
1087
|
-
throw await
|
|
1085
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1088
1086
|
case "ResourceNotFoundException":
|
|
1089
1087
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1090
|
-
throw await
|
|
1088
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
1089
|
case "ValidationException":
|
|
1092
1090
|
case "com.amazonaws.detective#ValidationException":
|
|
1093
|
-
throw await
|
|
1091
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
1092
|
default:
|
|
1095
1093
|
const parsedBody = parsedOutput.body;
|
|
1096
1094
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1101,24 +1099,24 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
|
|
|
1101
1099
|
});
|
|
1102
1100
|
}
|
|
1103
1101
|
};
|
|
1104
|
-
const
|
|
1102
|
+
const de_ListGraphsCommand = async (output, context) => {
|
|
1105
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
1104
|
+
return de_ListGraphsCommandError(output, context);
|
|
1107
1105
|
}
|
|
1108
1106
|
const contents = map({
|
|
1109
1107
|
$metadata: deserializeMetadata(output),
|
|
1110
1108
|
});
|
|
1111
1109
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1112
1110
|
if (data.GraphList != null) {
|
|
1113
|
-
contents.GraphList =
|
|
1111
|
+
contents.GraphList = de_GraphList(data.GraphList, context);
|
|
1114
1112
|
}
|
|
1115
1113
|
if (data.NextToken != null) {
|
|
1116
1114
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1117
1115
|
}
|
|
1118
1116
|
return contents;
|
|
1119
1117
|
};
|
|
1120
|
-
exports.
|
|
1121
|
-
const
|
|
1118
|
+
exports.de_ListGraphsCommand = de_ListGraphsCommand;
|
|
1119
|
+
const de_ListGraphsCommandError = async (output, context) => {
|
|
1122
1120
|
const parsedOutput = {
|
|
1123
1121
|
...output,
|
|
1124
1122
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1127,13 +1125,13 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
1127
1125
|
switch (errorCode) {
|
|
1128
1126
|
case "AccessDeniedException":
|
|
1129
1127
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1130
|
-
throw await
|
|
1128
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1131
1129
|
case "InternalServerException":
|
|
1132
1130
|
case "com.amazonaws.detective#InternalServerException":
|
|
1133
|
-
throw await
|
|
1131
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1134
1132
|
case "ValidationException":
|
|
1135
1133
|
case "com.amazonaws.detective#ValidationException":
|
|
1136
|
-
throw await
|
|
1134
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1137
1135
|
default:
|
|
1138
1136
|
const parsedBody = parsedOutput.body;
|
|
1139
1137
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1144,24 +1142,24 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
1144
1142
|
});
|
|
1145
1143
|
}
|
|
1146
1144
|
};
|
|
1147
|
-
const
|
|
1145
|
+
const de_ListInvitationsCommand = async (output, context) => {
|
|
1148
1146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1149
|
-
return
|
|
1147
|
+
return de_ListInvitationsCommandError(output, context);
|
|
1150
1148
|
}
|
|
1151
1149
|
const contents = map({
|
|
1152
1150
|
$metadata: deserializeMetadata(output),
|
|
1153
1151
|
});
|
|
1154
1152
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1155
1153
|
if (data.Invitations != null) {
|
|
1156
|
-
contents.Invitations =
|
|
1154
|
+
contents.Invitations = de_MemberDetailList(data.Invitations, context);
|
|
1157
1155
|
}
|
|
1158
1156
|
if (data.NextToken != null) {
|
|
1159
1157
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1160
1158
|
}
|
|
1161
1159
|
return contents;
|
|
1162
1160
|
};
|
|
1163
|
-
exports.
|
|
1164
|
-
const
|
|
1161
|
+
exports.de_ListInvitationsCommand = de_ListInvitationsCommand;
|
|
1162
|
+
const de_ListInvitationsCommandError = async (output, context) => {
|
|
1165
1163
|
const parsedOutput = {
|
|
1166
1164
|
...output,
|
|
1167
1165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1170,13 +1168,13 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
1170
1168
|
switch (errorCode) {
|
|
1171
1169
|
case "AccessDeniedException":
|
|
1172
1170
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1173
|
-
throw await
|
|
1171
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1174
1172
|
case "InternalServerException":
|
|
1175
1173
|
case "com.amazonaws.detective#InternalServerException":
|
|
1176
|
-
throw await
|
|
1174
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1177
1175
|
case "ValidationException":
|
|
1178
1176
|
case "com.amazonaws.detective#ValidationException":
|
|
1179
|
-
throw await
|
|
1177
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
1178
|
default:
|
|
1181
1179
|
const parsedBody = parsedOutput.body;
|
|
1182
1180
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1187,24 +1185,24 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
1187
1185
|
});
|
|
1188
1186
|
}
|
|
1189
1187
|
};
|
|
1190
|
-
const
|
|
1188
|
+
const de_ListMembersCommand = async (output, context) => {
|
|
1191
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
1190
|
+
return de_ListMembersCommandError(output, context);
|
|
1193
1191
|
}
|
|
1194
1192
|
const contents = map({
|
|
1195
1193
|
$metadata: deserializeMetadata(output),
|
|
1196
1194
|
});
|
|
1197
1195
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1198
1196
|
if (data.MemberDetails != null) {
|
|
1199
|
-
contents.MemberDetails =
|
|
1197
|
+
contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
|
|
1200
1198
|
}
|
|
1201
1199
|
if (data.NextToken != null) {
|
|
1202
1200
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1203
1201
|
}
|
|
1204
1202
|
return contents;
|
|
1205
1203
|
};
|
|
1206
|
-
exports.
|
|
1207
|
-
const
|
|
1204
|
+
exports.de_ListMembersCommand = de_ListMembersCommand;
|
|
1205
|
+
const de_ListMembersCommandError = async (output, context) => {
|
|
1208
1206
|
const parsedOutput = {
|
|
1209
1207
|
...output,
|
|
1210
1208
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1213,16 +1211,16 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1213
1211
|
switch (errorCode) {
|
|
1214
1212
|
case "AccessDeniedException":
|
|
1215
1213
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1216
|
-
throw await
|
|
1214
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
1215
|
case "InternalServerException":
|
|
1218
1216
|
case "com.amazonaws.detective#InternalServerException":
|
|
1219
|
-
throw await
|
|
1217
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
1218
|
case "ResourceNotFoundException":
|
|
1221
1219
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1222
|
-
throw await
|
|
1220
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
1221
|
case "ValidationException":
|
|
1224
1222
|
case "com.amazonaws.detective#ValidationException":
|
|
1225
|
-
throw await
|
|
1223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1226
1224
|
default:
|
|
1227
1225
|
const parsedBody = parsedOutput.body;
|
|
1228
1226
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1233,24 +1231,24 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1233
1231
|
});
|
|
1234
1232
|
}
|
|
1235
1233
|
};
|
|
1236
|
-
const
|
|
1234
|
+
const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
1237
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
-
return
|
|
1236
|
+
return de_ListOrganizationAdminAccountsCommandError(output, context);
|
|
1239
1237
|
}
|
|
1240
1238
|
const contents = map({
|
|
1241
1239
|
$metadata: deserializeMetadata(output),
|
|
1242
1240
|
});
|
|
1243
1241
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1244
1242
|
if (data.Administrators != null) {
|
|
1245
|
-
contents.Administrators =
|
|
1243
|
+
contents.Administrators = de_AdministratorList(data.Administrators, context);
|
|
1246
1244
|
}
|
|
1247
1245
|
if (data.NextToken != null) {
|
|
1248
1246
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1249
1247
|
}
|
|
1250
1248
|
return contents;
|
|
1251
1249
|
};
|
|
1252
|
-
exports.
|
|
1253
|
-
const
|
|
1250
|
+
exports.de_ListOrganizationAdminAccountsCommand = de_ListOrganizationAdminAccountsCommand;
|
|
1251
|
+
const de_ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
1254
1252
|
const parsedOutput = {
|
|
1255
1253
|
...output,
|
|
1256
1254
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1259,16 +1257,16 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1259
1257
|
switch (errorCode) {
|
|
1260
1258
|
case "AccessDeniedException":
|
|
1261
1259
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1262
|
-
throw await
|
|
1260
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1263
1261
|
case "InternalServerException":
|
|
1264
1262
|
case "com.amazonaws.detective#InternalServerException":
|
|
1265
|
-
throw await
|
|
1263
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1266
1264
|
case "TooManyRequestsException":
|
|
1267
1265
|
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1268
|
-
throw await
|
|
1266
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1269
1267
|
case "ValidationException":
|
|
1270
1268
|
case "com.amazonaws.detective#ValidationException":
|
|
1271
|
-
throw await
|
|
1269
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1272
1270
|
default:
|
|
1273
1271
|
const parsedBody = parsedOutput.body;
|
|
1274
1272
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1279,21 +1277,21 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1279
1277
|
});
|
|
1280
1278
|
}
|
|
1281
1279
|
};
|
|
1282
|
-
const
|
|
1280
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1283
1281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1284
|
-
return
|
|
1282
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1285
1283
|
}
|
|
1286
1284
|
const contents = map({
|
|
1287
1285
|
$metadata: deserializeMetadata(output),
|
|
1288
1286
|
});
|
|
1289
1287
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1290
1288
|
if (data.Tags != null) {
|
|
1291
|
-
contents.Tags =
|
|
1289
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1292
1290
|
}
|
|
1293
1291
|
return contents;
|
|
1294
1292
|
};
|
|
1295
|
-
exports.
|
|
1296
|
-
const
|
|
1293
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1294
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1297
1295
|
const parsedOutput = {
|
|
1298
1296
|
...output,
|
|
1299
1297
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1302,16 +1300,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1302
1300
|
switch (errorCode) {
|
|
1303
1301
|
case "AccessDeniedException":
|
|
1304
1302
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1305
|
-
throw await
|
|
1303
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1306
1304
|
case "InternalServerException":
|
|
1307
1305
|
case "com.amazonaws.detective#InternalServerException":
|
|
1308
|
-
throw await
|
|
1306
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
1307
|
case "ResourceNotFoundException":
|
|
1310
1308
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1311
|
-
throw await
|
|
1309
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1312
1310
|
case "ValidationException":
|
|
1313
1311
|
case "com.amazonaws.detective#ValidationException":
|
|
1314
|
-
throw await
|
|
1312
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
1313
|
default:
|
|
1316
1314
|
const parsedBody = parsedOutput.body;
|
|
1317
1315
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1322,9 +1320,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1322
1320
|
});
|
|
1323
1321
|
}
|
|
1324
1322
|
};
|
|
1325
|
-
const
|
|
1323
|
+
const de_RejectInvitationCommand = async (output, context) => {
|
|
1326
1324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
1325
|
+
return de_RejectInvitationCommandError(output, context);
|
|
1328
1326
|
}
|
|
1329
1327
|
const contents = map({
|
|
1330
1328
|
$metadata: deserializeMetadata(output),
|
|
@@ -1332,8 +1330,8 @@ const deserializeAws_restJson1RejectInvitationCommand = async (output, context)
|
|
|
1332
1330
|
await collectBody(output.body, context);
|
|
1333
1331
|
return contents;
|
|
1334
1332
|
};
|
|
1335
|
-
exports.
|
|
1336
|
-
const
|
|
1333
|
+
exports.de_RejectInvitationCommand = de_RejectInvitationCommand;
|
|
1334
|
+
const de_RejectInvitationCommandError = async (output, context) => {
|
|
1337
1335
|
const parsedOutput = {
|
|
1338
1336
|
...output,
|
|
1339
1337
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1342,19 +1340,19 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1342
1340
|
switch (errorCode) {
|
|
1343
1341
|
case "AccessDeniedException":
|
|
1344
1342
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1345
|
-
throw await
|
|
1343
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1346
1344
|
case "ConflictException":
|
|
1347
1345
|
case "com.amazonaws.detective#ConflictException":
|
|
1348
|
-
throw await
|
|
1346
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1349
1347
|
case "InternalServerException":
|
|
1350
1348
|
case "com.amazonaws.detective#InternalServerException":
|
|
1351
|
-
throw await
|
|
1349
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1352
1350
|
case "ResourceNotFoundException":
|
|
1353
1351
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1354
|
-
throw await
|
|
1352
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1355
1353
|
case "ValidationException":
|
|
1356
1354
|
case "com.amazonaws.detective#ValidationException":
|
|
1357
|
-
throw await
|
|
1355
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1358
1356
|
default:
|
|
1359
1357
|
const parsedBody = parsedOutput.body;
|
|
1360
1358
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1365,9 +1363,9 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1365
1363
|
});
|
|
1366
1364
|
}
|
|
1367
1365
|
};
|
|
1368
|
-
const
|
|
1366
|
+
const de_StartMonitoringMemberCommand = async (output, context) => {
|
|
1369
1367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
-
return
|
|
1368
|
+
return de_StartMonitoringMemberCommandError(output, context);
|
|
1371
1369
|
}
|
|
1372
1370
|
const contents = map({
|
|
1373
1371
|
$metadata: deserializeMetadata(output),
|
|
@@ -1375,8 +1373,8 @@ const deserializeAws_restJson1StartMonitoringMemberCommand = async (output, cont
|
|
|
1375
1373
|
await collectBody(output.body, context);
|
|
1376
1374
|
return contents;
|
|
1377
1375
|
};
|
|
1378
|
-
exports.
|
|
1379
|
-
const
|
|
1376
|
+
exports.de_StartMonitoringMemberCommand = de_StartMonitoringMemberCommand;
|
|
1377
|
+
const de_StartMonitoringMemberCommandError = async (output, context) => {
|
|
1380
1378
|
const parsedOutput = {
|
|
1381
1379
|
...output,
|
|
1382
1380
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1385,22 +1383,22 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1385
1383
|
switch (errorCode) {
|
|
1386
1384
|
case "AccessDeniedException":
|
|
1387
1385
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1388
|
-
throw await
|
|
1386
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1389
1387
|
case "ConflictException":
|
|
1390
1388
|
case "com.amazonaws.detective#ConflictException":
|
|
1391
|
-
throw await
|
|
1389
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1392
1390
|
case "InternalServerException":
|
|
1393
1391
|
case "com.amazonaws.detective#InternalServerException":
|
|
1394
|
-
throw await
|
|
1392
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1395
1393
|
case "ResourceNotFoundException":
|
|
1396
1394
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1397
|
-
throw await
|
|
1395
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1398
1396
|
case "ServiceQuotaExceededException":
|
|
1399
1397
|
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1400
|
-
throw await
|
|
1398
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1401
1399
|
case "ValidationException":
|
|
1402
1400
|
case "com.amazonaws.detective#ValidationException":
|
|
1403
|
-
throw await
|
|
1401
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1404
1402
|
default:
|
|
1405
1403
|
const parsedBody = parsedOutput.body;
|
|
1406
1404
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1411,9 +1409,9 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1411
1409
|
});
|
|
1412
1410
|
}
|
|
1413
1411
|
};
|
|
1414
|
-
const
|
|
1412
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1415
1413
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1416
|
-
return
|
|
1414
|
+
return de_TagResourceCommandError(output, context);
|
|
1417
1415
|
}
|
|
1418
1416
|
const contents = map({
|
|
1419
1417
|
$metadata: deserializeMetadata(output),
|
|
@@ -1421,8 +1419,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1421
1419
|
await collectBody(output.body, context);
|
|
1422
1420
|
return contents;
|
|
1423
1421
|
};
|
|
1424
|
-
exports.
|
|
1425
|
-
const
|
|
1422
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1423
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1426
1424
|
const parsedOutput = {
|
|
1427
1425
|
...output,
|
|
1428
1426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1431,16 +1429,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1431
1429
|
switch (errorCode) {
|
|
1432
1430
|
case "AccessDeniedException":
|
|
1433
1431
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1434
|
-
throw await
|
|
1432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1435
1433
|
case "InternalServerException":
|
|
1436
1434
|
case "com.amazonaws.detective#InternalServerException":
|
|
1437
|
-
throw await
|
|
1435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1438
1436
|
case "ResourceNotFoundException":
|
|
1439
1437
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1440
|
-
throw await
|
|
1438
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1441
1439
|
case "ValidationException":
|
|
1442
1440
|
case "com.amazonaws.detective#ValidationException":
|
|
1443
|
-
throw await
|
|
1441
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1444
1442
|
default:
|
|
1445
1443
|
const parsedBody = parsedOutput.body;
|
|
1446
1444
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1451,9 +1449,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1451
1449
|
});
|
|
1452
1450
|
}
|
|
1453
1451
|
};
|
|
1454
|
-
const
|
|
1452
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1455
1453
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1456
|
-
return
|
|
1454
|
+
return de_UntagResourceCommandError(output, context);
|
|
1457
1455
|
}
|
|
1458
1456
|
const contents = map({
|
|
1459
1457
|
$metadata: deserializeMetadata(output),
|
|
@@ -1461,8 +1459,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1461
1459
|
await collectBody(output.body, context);
|
|
1462
1460
|
return contents;
|
|
1463
1461
|
};
|
|
1464
|
-
exports.
|
|
1465
|
-
const
|
|
1462
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1463
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1466
1464
|
const parsedOutput = {
|
|
1467
1465
|
...output,
|
|
1468
1466
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1471,16 +1469,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1471
1469
|
switch (errorCode) {
|
|
1472
1470
|
case "AccessDeniedException":
|
|
1473
1471
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1474
|
-
throw await
|
|
1472
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1475
1473
|
case "InternalServerException":
|
|
1476
1474
|
case "com.amazonaws.detective#InternalServerException":
|
|
1477
|
-
throw await
|
|
1475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1478
1476
|
case "ResourceNotFoundException":
|
|
1479
1477
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1480
|
-
throw await
|
|
1478
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
1479
|
case "ValidationException":
|
|
1482
1480
|
case "com.amazonaws.detective#ValidationException":
|
|
1483
|
-
throw await
|
|
1481
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1484
1482
|
default:
|
|
1485
1483
|
const parsedBody = parsedOutput.body;
|
|
1486
1484
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1491,9 +1489,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1491
1489
|
});
|
|
1492
1490
|
}
|
|
1493
1491
|
};
|
|
1494
|
-
const
|
|
1492
|
+
const de_UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
1495
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return
|
|
1494
|
+
return de_UpdateDatasourcePackagesCommandError(output, context);
|
|
1497
1495
|
}
|
|
1498
1496
|
const contents = map({
|
|
1499
1497
|
$metadata: deserializeMetadata(output),
|
|
@@ -1501,8 +1499,8 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (output, c
|
|
|
1501
1499
|
await collectBody(output.body, context);
|
|
1502
1500
|
return contents;
|
|
1503
1501
|
};
|
|
1504
|
-
exports.
|
|
1505
|
-
const
|
|
1502
|
+
exports.de_UpdateDatasourcePackagesCommand = de_UpdateDatasourcePackagesCommand;
|
|
1503
|
+
const de_UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
1506
1504
|
const parsedOutput = {
|
|
1507
1505
|
...output,
|
|
1508
1506
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1511,19 +1509,19 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
|
|
|
1511
1509
|
switch (errorCode) {
|
|
1512
1510
|
case "AccessDeniedException":
|
|
1513
1511
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1514
|
-
throw await
|
|
1512
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1515
1513
|
case "InternalServerException":
|
|
1516
1514
|
case "com.amazonaws.detective#InternalServerException":
|
|
1517
|
-
throw await
|
|
1515
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1518
1516
|
case "ResourceNotFoundException":
|
|
1519
1517
|
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1520
|
-
throw await
|
|
1518
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1521
1519
|
case "ServiceQuotaExceededException":
|
|
1522
1520
|
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1523
|
-
throw await
|
|
1521
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1524
1522
|
case "ValidationException":
|
|
1525
1523
|
case "com.amazonaws.detective#ValidationException":
|
|
1526
|
-
throw await
|
|
1524
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1527
1525
|
default:
|
|
1528
1526
|
const parsedBody = parsedOutput.body;
|
|
1529
1527
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1534,9 +1532,9 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
|
|
|
1534
1532
|
});
|
|
1535
1533
|
}
|
|
1536
1534
|
};
|
|
1537
|
-
const
|
|
1535
|
+
const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
1538
1536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
1537
|
+
return de_UpdateOrganizationConfigurationCommandError(output, context);
|
|
1540
1538
|
}
|
|
1541
1539
|
const contents = map({
|
|
1542
1540
|
$metadata: deserializeMetadata(output),
|
|
@@ -1544,8 +1542,8 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (ou
|
|
|
1544
1542
|
await collectBody(output.body, context);
|
|
1545
1543
|
return contents;
|
|
1546
1544
|
};
|
|
1547
|
-
exports.
|
|
1548
|
-
const
|
|
1545
|
+
exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
|
|
1546
|
+
const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
1549
1547
|
const parsedOutput = {
|
|
1550
1548
|
...output,
|
|
1551
1549
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1554,16 +1552,16 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1554
1552
|
switch (errorCode) {
|
|
1555
1553
|
case "AccessDeniedException":
|
|
1556
1554
|
case "com.amazonaws.detective#AccessDeniedException":
|
|
1557
|
-
throw await
|
|
1555
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1558
1556
|
case "InternalServerException":
|
|
1559
1557
|
case "com.amazonaws.detective#InternalServerException":
|
|
1560
|
-
throw await
|
|
1558
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1561
1559
|
case "TooManyRequestsException":
|
|
1562
1560
|
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1563
|
-
throw await
|
|
1561
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1564
1562
|
case "ValidationException":
|
|
1565
1563
|
case "com.amazonaws.detective#ValidationException":
|
|
1566
|
-
throw await
|
|
1564
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
1565
|
default:
|
|
1568
1566
|
const parsedBody = parsedOutput.body;
|
|
1569
1567
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1575,7 +1573,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1575
1573
|
}
|
|
1576
1574
|
};
|
|
1577
1575
|
const map = smithy_client_1.map;
|
|
1578
|
-
const
|
|
1576
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1579
1577
|
const contents = map({});
|
|
1580
1578
|
const data = parsedOutput.body;
|
|
1581
1579
|
if (data.ErrorCode != null) {
|
|
@@ -1599,7 +1597,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1599
1597
|
});
|
|
1600
1598
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1601
1599
|
};
|
|
1602
|
-
const
|
|
1600
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1603
1601
|
const contents = map({});
|
|
1604
1602
|
const data = parsedOutput.body;
|
|
1605
1603
|
if (data.Message != null) {
|
|
@@ -1611,7 +1609,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1611
1609
|
});
|
|
1612
1610
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1613
1611
|
};
|
|
1614
|
-
const
|
|
1612
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1615
1613
|
const contents = map({});
|
|
1616
1614
|
const data = parsedOutput.body;
|
|
1617
1615
|
if (data.Message != null) {
|
|
@@ -1623,7 +1621,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1623
1621
|
});
|
|
1624
1622
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1625
1623
|
};
|
|
1626
|
-
const
|
|
1624
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1627
1625
|
const contents = map({});
|
|
1628
1626
|
const data = parsedOutput.body;
|
|
1629
1627
|
if (data.Message != null) {
|
|
@@ -1635,14 +1633,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1635
1633
|
});
|
|
1636
1634
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1637
1635
|
};
|
|
1638
|
-
const
|
|
1636
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1639
1637
|
const contents = map({});
|
|
1640
1638
|
const data = parsedOutput.body;
|
|
1641
1639
|
if (data.Message != null) {
|
|
1642
1640
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1643
1641
|
}
|
|
1644
1642
|
if (data.Resources != null) {
|
|
1645
|
-
contents.Resources =
|
|
1643
|
+
contents.Resources = de_ResourceList(data.Resources, context);
|
|
1646
1644
|
}
|
|
1647
1645
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1648
1646
|
$metadata: deserializeMetadata(parsedOutput),
|
|
@@ -1650,7 +1648,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1650
1648
|
});
|
|
1651
1649
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1652
1650
|
};
|
|
1653
|
-
const
|
|
1651
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1654
1652
|
const contents = map({});
|
|
1655
1653
|
const data = parsedOutput.body;
|
|
1656
1654
|
if (data.Message != null) {
|
|
@@ -1662,7 +1660,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1662
1660
|
});
|
|
1663
1661
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1664
1662
|
};
|
|
1665
|
-
const
|
|
1663
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1666
1664
|
const contents = map({});
|
|
1667
1665
|
const data = parsedOutput.body;
|
|
1668
1666
|
if (data.ErrorCode != null) {
|
|
@@ -1680,48 +1678,48 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1680
1678
|
});
|
|
1681
1679
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1682
1680
|
};
|
|
1683
|
-
const
|
|
1681
|
+
const se_Account = (input, context) => {
|
|
1684
1682
|
return {
|
|
1685
1683
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1686
1684
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1687
1685
|
};
|
|
1688
1686
|
};
|
|
1689
|
-
const
|
|
1687
|
+
const se_AccountIdExtendedList = (input, context) => {
|
|
1690
1688
|
return input
|
|
1691
1689
|
.filter((e) => e != null)
|
|
1692
1690
|
.map((entry) => {
|
|
1693
1691
|
return entry;
|
|
1694
1692
|
});
|
|
1695
1693
|
};
|
|
1696
|
-
const
|
|
1694
|
+
const se_AccountIdList = (input, context) => {
|
|
1697
1695
|
return input
|
|
1698
1696
|
.filter((e) => e != null)
|
|
1699
1697
|
.map((entry) => {
|
|
1700
1698
|
return entry;
|
|
1701
1699
|
});
|
|
1702
1700
|
};
|
|
1703
|
-
const
|
|
1701
|
+
const se_AccountList = (input, context) => {
|
|
1704
1702
|
return input
|
|
1705
1703
|
.filter((e) => e != null)
|
|
1706
1704
|
.map((entry) => {
|
|
1707
|
-
return
|
|
1705
|
+
return se_Account(entry, context);
|
|
1708
1706
|
});
|
|
1709
1707
|
};
|
|
1710
|
-
const
|
|
1708
|
+
const se_DatasourcePackageList = (input, context) => {
|
|
1711
1709
|
return input
|
|
1712
1710
|
.filter((e) => e != null)
|
|
1713
1711
|
.map((entry) => {
|
|
1714
1712
|
return entry;
|
|
1715
1713
|
});
|
|
1716
1714
|
};
|
|
1717
|
-
const
|
|
1715
|
+
const se_GraphArnList = (input, context) => {
|
|
1718
1716
|
return input
|
|
1719
1717
|
.filter((e) => e != null)
|
|
1720
1718
|
.map((entry) => {
|
|
1721
1719
|
return entry;
|
|
1722
1720
|
});
|
|
1723
1721
|
};
|
|
1724
|
-
const
|
|
1722
|
+
const se_TagMap = (input, context) => {
|
|
1725
1723
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1726
1724
|
if (value === null) {
|
|
1727
1725
|
return acc;
|
|
@@ -1730,7 +1728,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1730
1728
|
return acc;
|
|
1731
1729
|
}, {});
|
|
1732
1730
|
};
|
|
1733
|
-
const
|
|
1731
|
+
const de_AccountIdList = (output, context) => {
|
|
1734
1732
|
const retVal = (output || [])
|
|
1735
1733
|
.filter((e) => e != null)
|
|
1736
1734
|
.map((entry) => {
|
|
@@ -1741,7 +1739,7 @@ const deserializeAws_restJson1AccountIdList = (output, context) => {
|
|
|
1741
1739
|
});
|
|
1742
1740
|
return retVal;
|
|
1743
1741
|
};
|
|
1744
|
-
const
|
|
1742
|
+
const de_Administrator = (output, context) => {
|
|
1745
1743
|
return {
|
|
1746
1744
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1747
1745
|
DelegationTime: output.DelegationTime != null
|
|
@@ -1750,44 +1748,44 @@ const deserializeAws_restJson1Administrator = (output, context) => {
|
|
|
1750
1748
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1751
1749
|
};
|
|
1752
1750
|
};
|
|
1753
|
-
const
|
|
1751
|
+
const de_AdministratorList = (output, context) => {
|
|
1754
1752
|
const retVal = (output || [])
|
|
1755
1753
|
.filter((e) => e != null)
|
|
1756
1754
|
.map((entry) => {
|
|
1757
1755
|
if (entry === null) {
|
|
1758
1756
|
return null;
|
|
1759
1757
|
}
|
|
1760
|
-
return
|
|
1758
|
+
return de_Administrator(entry, context);
|
|
1761
1759
|
});
|
|
1762
1760
|
return retVal;
|
|
1763
1761
|
};
|
|
1764
|
-
const
|
|
1762
|
+
const de_DatasourcePackageIngestDetail = (output, context) => {
|
|
1765
1763
|
return {
|
|
1766
1764
|
DatasourcePackageIngestState: (0, smithy_client_1.expectString)(output.DatasourcePackageIngestState),
|
|
1767
1765
|
LastIngestStateChange: output.LastIngestStateChange != null
|
|
1768
|
-
?
|
|
1766
|
+
? de_LastIngestStateChangeDates(output.LastIngestStateChange, context)
|
|
1769
1767
|
: undefined,
|
|
1770
1768
|
};
|
|
1771
1769
|
};
|
|
1772
|
-
const
|
|
1770
|
+
const de_DatasourcePackageIngestDetails = (output, context) => {
|
|
1773
1771
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1774
1772
|
if (value === null) {
|
|
1775
1773
|
return acc;
|
|
1776
1774
|
}
|
|
1777
|
-
acc[key] =
|
|
1775
|
+
acc[key] = de_DatasourcePackageIngestDetail(value, context);
|
|
1778
1776
|
return acc;
|
|
1779
1777
|
}, {});
|
|
1780
1778
|
};
|
|
1781
|
-
const
|
|
1779
|
+
const de_DatasourcePackageIngestHistory = (output, context) => {
|
|
1782
1780
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1783
1781
|
if (value === null) {
|
|
1784
1782
|
return acc;
|
|
1785
1783
|
}
|
|
1786
|
-
acc[key] =
|
|
1784
|
+
acc[key] = de_LastIngestStateChangeDates(value, context);
|
|
1787
1785
|
return acc;
|
|
1788
1786
|
}, {});
|
|
1789
1787
|
};
|
|
1790
|
-
const
|
|
1788
|
+
const de_DatasourcePackageIngestStates = (output, context) => {
|
|
1791
1789
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1792
1790
|
if (value === null) {
|
|
1793
1791
|
return acc;
|
|
@@ -1796,7 +1794,7 @@ const deserializeAws_restJson1DatasourcePackageIngestStates = (output, context)
|
|
|
1796
1794
|
return acc;
|
|
1797
1795
|
}, {});
|
|
1798
1796
|
};
|
|
1799
|
-
const
|
|
1797
|
+
const de_DatasourcePackageUsageInfo = (output, context) => {
|
|
1800
1798
|
return {
|
|
1801
1799
|
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1802
1800
|
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
@@ -1804,38 +1802,38 @@ const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) =>
|
|
|
1804
1802
|
: undefined,
|
|
1805
1803
|
};
|
|
1806
1804
|
};
|
|
1807
|
-
const
|
|
1805
|
+
const de_Graph = (output, context) => {
|
|
1808
1806
|
return {
|
|
1809
1807
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1810
1808
|
CreatedTime: output.CreatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTime)) : undefined,
|
|
1811
1809
|
};
|
|
1812
1810
|
};
|
|
1813
|
-
const
|
|
1811
|
+
const de_GraphList = (output, context) => {
|
|
1814
1812
|
const retVal = (output || [])
|
|
1815
1813
|
.filter((e) => e != null)
|
|
1816
1814
|
.map((entry) => {
|
|
1817
1815
|
if (entry === null) {
|
|
1818
1816
|
return null;
|
|
1819
1817
|
}
|
|
1820
|
-
return
|
|
1818
|
+
return de_Graph(entry, context);
|
|
1821
1819
|
});
|
|
1822
1820
|
return retVal;
|
|
1823
1821
|
};
|
|
1824
|
-
const
|
|
1822
|
+
const de_LastIngestStateChangeDates = (output, context) => {
|
|
1825
1823
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1826
1824
|
if (value === null) {
|
|
1827
1825
|
return acc;
|
|
1828
1826
|
}
|
|
1829
|
-
acc[key] =
|
|
1827
|
+
acc[key] = de_TimestampForCollection(value, context);
|
|
1830
1828
|
return acc;
|
|
1831
1829
|
}, {});
|
|
1832
1830
|
};
|
|
1833
|
-
const
|
|
1831
|
+
const de_MemberDetail = (output, context) => {
|
|
1834
1832
|
return {
|
|
1835
1833
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1836
1834
|
AdministratorId: (0, smithy_client_1.expectString)(output.AdministratorId),
|
|
1837
1835
|
DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
|
|
1838
|
-
?
|
|
1836
|
+
? de_DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
|
|
1839
1837
|
: undefined,
|
|
1840
1838
|
DisabledReason: (0, smithy_client_1.expectString)(output.DisabledReason),
|
|
1841
1839
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
@@ -1850,7 +1848,7 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1850
1848
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1851
1849
|
UpdatedTime: output.UpdatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTime)) : undefined,
|
|
1852
1850
|
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
1853
|
-
?
|
|
1851
|
+
? de_VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
1854
1852
|
: undefined,
|
|
1855
1853
|
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1856
1854
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
@@ -1858,38 +1856,38 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1858
1856
|
: undefined,
|
|
1859
1857
|
};
|
|
1860
1858
|
};
|
|
1861
|
-
const
|
|
1859
|
+
const de_MemberDetailList = (output, context) => {
|
|
1862
1860
|
const retVal = (output || [])
|
|
1863
1861
|
.filter((e) => e != null)
|
|
1864
1862
|
.map((entry) => {
|
|
1865
1863
|
if (entry === null) {
|
|
1866
1864
|
return null;
|
|
1867
1865
|
}
|
|
1868
|
-
return
|
|
1866
|
+
return de_MemberDetail(entry, context);
|
|
1869
1867
|
});
|
|
1870
1868
|
return retVal;
|
|
1871
1869
|
};
|
|
1872
|
-
const
|
|
1870
|
+
const de_MembershipDatasources = (output, context) => {
|
|
1873
1871
|
return {
|
|
1874
1872
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1875
1873
|
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
1876
|
-
?
|
|
1874
|
+
? de_DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
|
|
1877
1875
|
: undefined,
|
|
1878
1876
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1879
1877
|
};
|
|
1880
1878
|
};
|
|
1881
|
-
const
|
|
1879
|
+
const de_MembershipDatasourcesList = (output, context) => {
|
|
1882
1880
|
const retVal = (output || [])
|
|
1883
1881
|
.filter((e) => e != null)
|
|
1884
1882
|
.map((entry) => {
|
|
1885
1883
|
if (entry === null) {
|
|
1886
1884
|
return null;
|
|
1887
1885
|
}
|
|
1888
|
-
return
|
|
1886
|
+
return de_MembershipDatasources(entry, context);
|
|
1889
1887
|
});
|
|
1890
1888
|
return retVal;
|
|
1891
1889
|
};
|
|
1892
|
-
const
|
|
1890
|
+
const de_ResourceList = (output, context) => {
|
|
1893
1891
|
const retVal = (output || [])
|
|
1894
1892
|
.filter((e) => e != null)
|
|
1895
1893
|
.map((entry) => {
|
|
@@ -1900,7 +1898,7 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
|
1900
1898
|
});
|
|
1901
1899
|
return retVal;
|
|
1902
1900
|
};
|
|
1903
|
-
const
|
|
1901
|
+
const de_TagMap = (output, context) => {
|
|
1904
1902
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1905
1903
|
if (value === null) {
|
|
1906
1904
|
return acc;
|
|
@@ -1909,51 +1907,51 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1909
1907
|
return acc;
|
|
1910
1908
|
}, {});
|
|
1911
1909
|
};
|
|
1912
|
-
const
|
|
1910
|
+
const de_TimestampForCollection = (output, context) => {
|
|
1913
1911
|
return {
|
|
1914
1912
|
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.Timestamp)) : undefined,
|
|
1915
1913
|
};
|
|
1916
1914
|
};
|
|
1917
|
-
const
|
|
1915
|
+
const de_UnprocessedAccount = (output, context) => {
|
|
1918
1916
|
return {
|
|
1919
1917
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1920
1918
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1921
1919
|
};
|
|
1922
1920
|
};
|
|
1923
|
-
const
|
|
1921
|
+
const de_UnprocessedAccountList = (output, context) => {
|
|
1924
1922
|
const retVal = (output || [])
|
|
1925
1923
|
.filter((e) => e != null)
|
|
1926
1924
|
.map((entry) => {
|
|
1927
1925
|
if (entry === null) {
|
|
1928
1926
|
return null;
|
|
1929
1927
|
}
|
|
1930
|
-
return
|
|
1928
|
+
return de_UnprocessedAccount(entry, context);
|
|
1931
1929
|
});
|
|
1932
1930
|
return retVal;
|
|
1933
1931
|
};
|
|
1934
|
-
const
|
|
1932
|
+
const de_UnprocessedGraph = (output, context) => {
|
|
1935
1933
|
return {
|
|
1936
1934
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1937
1935
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1938
1936
|
};
|
|
1939
1937
|
};
|
|
1940
|
-
const
|
|
1938
|
+
const de_UnprocessedGraphList = (output, context) => {
|
|
1941
1939
|
const retVal = (output || [])
|
|
1942
1940
|
.filter((e) => e != null)
|
|
1943
1941
|
.map((entry) => {
|
|
1944
1942
|
if (entry === null) {
|
|
1945
1943
|
return null;
|
|
1946
1944
|
}
|
|
1947
|
-
return
|
|
1945
|
+
return de_UnprocessedGraph(entry, context);
|
|
1948
1946
|
});
|
|
1949
1947
|
return retVal;
|
|
1950
1948
|
};
|
|
1951
|
-
const
|
|
1949
|
+
const de_VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1952
1950
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1953
1951
|
if (value === null) {
|
|
1954
1952
|
return acc;
|
|
1955
1953
|
}
|
|
1956
|
-
acc[key] =
|
|
1954
|
+
acc[key] = de_DatasourcePackageUsageInfo(value, context);
|
|
1957
1955
|
return acc;
|
|
1958
1956
|
}, {});
|
|
1959
1957
|
};
|