@aws-sdk/client-detective 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +7 -5
- package/dist-cjs/Detective.js +60 -0
- package/dist-cjs/commands/AcceptInvitationCommand.js +1 -1
- package/dist-cjs/commands/BatchGetGraphMemberDatasourcesCommand.js +36 -0
- package/dist-cjs/commands/BatchGetMembershipDatasourcesCommand.js +36 -0
- package/dist-cjs/commands/CreateGraphCommand.js +2 -2
- package/dist-cjs/commands/CreateMembersCommand.js +2 -2
- package/dist-cjs/commands/DeleteGraphCommand.js +1 -1
- package/dist-cjs/commands/DeleteMembersCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMembershipCommand.js +1 -1
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +1 -1
- package/dist-cjs/commands/GetMembersCommand.js +2 -2
- package/dist-cjs/commands/ListDatasourcePackagesCommand.js +36 -0
- 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 +1 -1
- package/dist-cjs/commands/StartMonitoringMemberCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatasourcePackagesCommand.js +36 -0
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +1 -1
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +214 -217
- package/dist-cjs/pagination/ListDatasourcePackagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +618 -306
- package/dist-es/Detective.js +60 -0
- package/dist-es/commands/AcceptInvitationCommand.js +2 -2
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +39 -0
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +39 -0
- package/dist-es/commands/CreateGraphCommand.js +3 -3
- package/dist-es/commands/CreateMembersCommand.js +3 -3
- package/dist-es/commands/DeleteGraphCommand.js +2 -2
- package/dist-es/commands/DeleteMembersCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisassociateMembershipCommand.js +2 -2
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +2 -2
- package/dist-es/commands/GetMembersCommand.js +3 -3
- package/dist-es/commands/ListDatasourcePackagesCommand.js +39 -0
- 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 +2 -2
- package/dist-es/commands/StartMonitoringMemberCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +39 -0
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +68 -144
- package/dist-es/pagination/ListDatasourcePackagesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +779 -307
- package/dist-types/Detective.d.ts +47 -12
- package/dist-types/DetectiveClient.d.ts +12 -6
- package/dist-types/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +35 -0
- package/dist-types/commands/BatchGetMembershipDatasourcesCommand.d.ts +35 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +6 -5
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +7 -3
- package/dist-types/commands/ListDatasourcePackagesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasourcePackagesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +376 -219
- package/dist-types/pagination/ListDatasourcePackagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Detective.d.ts +20 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetMembershipDatasourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasourcePackagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDatasourcePackagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +195 -142
- package/dist-types/ts3.4/pagination/ListDatasourcePackagesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMonitoringMemberCommand = exports.deserializeAws_restJson1RejectInvitationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListGraphsCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisassociateMembershipCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteGraphCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateGraphCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMonitoringMemberCommand = exports.serializeAws_restJson1RejectInvitationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListGraphsCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisassociateMembershipCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteGraphCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateGraphCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateDatasourcePackagesCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMonitoringMemberCommand = exports.deserializeAws_restJson1RejectInvitationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListGraphsCommand = exports.deserializeAws_restJson1ListDatasourcePackagesCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisassociateMembershipCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteGraphCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateGraphCommand = exports.deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = exports.deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateDatasourcePackagesCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMonitoringMemberCommand = exports.serializeAws_restJson1RejectInvitationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListGraphsCommand = exports.serializeAws_restJson1ListDatasourcePackagesCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisassociateMembershipCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteGraphCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateGraphCommand = exports.serializeAws_restJson1BatchGetMembershipDatasourcesCommand = exports.serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = exports.serializeAws_restJson1AcceptInvitationCommand = 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");
|
|
@@ -26,6 +26,51 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
exports.serializeAws_restJson1AcceptInvitationCommand = serializeAws_restJson1AcceptInvitationCommand;
|
|
29
|
+
const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
30
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/json",
|
|
33
|
+
};
|
|
34
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify({
|
|
37
|
+
...(input.AccountIds != null && {
|
|
38
|
+
AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
|
|
39
|
+
}),
|
|
40
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
41
|
+
});
|
|
42
|
+
return new protocol_http_1.HttpRequest({
|
|
43
|
+
protocol,
|
|
44
|
+
hostname,
|
|
45
|
+
port,
|
|
46
|
+
method: "POST",
|
|
47
|
+
headers,
|
|
48
|
+
path: resolvedPath,
|
|
49
|
+
body,
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand;
|
|
53
|
+
const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
54
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
|
+
const headers = {
|
|
56
|
+
"content-type": "application/json",
|
|
57
|
+
};
|
|
58
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
|
|
59
|
+
let body;
|
|
60
|
+
body = JSON.stringify({
|
|
61
|
+
...(input.GraphArns != null && { GraphArns: serializeAws_restJson1GraphArnList(input.GraphArns, context) }),
|
|
62
|
+
});
|
|
63
|
+
return new protocol_http_1.HttpRequest({
|
|
64
|
+
protocol,
|
|
65
|
+
hostname,
|
|
66
|
+
port,
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers,
|
|
69
|
+
path: resolvedPath,
|
|
70
|
+
body,
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
exports.serializeAws_restJson1BatchGetMembershipDatasourcesCommand = serializeAws_restJson1BatchGetMembershipDatasourcesCommand;
|
|
29
74
|
const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
|
|
30
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
76
|
const headers = {
|
|
@@ -218,6 +263,29 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
218
263
|
});
|
|
219
264
|
};
|
|
220
265
|
exports.serializeAws_restJson1GetMembersCommand = serializeAws_restJson1GetMembersCommand;
|
|
266
|
+
const serializeAws_restJson1ListDatasourcePackagesCommand = async (input, context) => {
|
|
267
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
|
+
const headers = {
|
|
269
|
+
"content-type": "application/json",
|
|
270
|
+
};
|
|
271
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list";
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify({
|
|
274
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
275
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
276
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
277
|
+
});
|
|
278
|
+
return new protocol_http_1.HttpRequest({
|
|
279
|
+
protocol,
|
|
280
|
+
hostname,
|
|
281
|
+
port,
|
|
282
|
+
method: "POST",
|
|
283
|
+
headers,
|
|
284
|
+
path: resolvedPath,
|
|
285
|
+
body,
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
exports.serializeAws_restJson1ListDatasourcePackagesCommand = serializeAws_restJson1ListDatasourcePackagesCommand;
|
|
221
289
|
const serializeAws_restJson1ListGraphsCommand = async (input, context) => {
|
|
222
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
291
|
const headers = {
|
|
@@ -311,16 +379,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
311
379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
380
|
const headers = {};
|
|
313
381
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
314
|
-
|
|
315
|
-
const labelValue = input.ResourceArn;
|
|
316
|
-
if (labelValue.length <= 0) {
|
|
317
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
318
|
-
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
323
|
-
}
|
|
382
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
324
383
|
let body;
|
|
325
384
|
return new protocol_http_1.HttpRequest({
|
|
326
385
|
protocol,
|
|
@@ -382,16 +441,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
382
441
|
"content-type": "application/json",
|
|
383
442
|
};
|
|
384
443
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
385
|
-
|
|
386
|
-
const labelValue = input.ResourceArn;
|
|
387
|
-
if (labelValue.length <= 0) {
|
|
388
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
389
|
-
}
|
|
390
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
394
|
-
}
|
|
444
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
395
445
|
let body;
|
|
396
446
|
body = JSON.stringify({
|
|
397
447
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
@@ -411,19 +461,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
411
461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
412
462
|
const headers = {};
|
|
413
463
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
423
|
-
}
|
|
424
|
-
const query = {
|
|
425
|
-
...(input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map((_entry) => _entry) }),
|
|
426
|
-
};
|
|
464
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
465
|
+
const query = map({
|
|
466
|
+
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
467
|
+
});
|
|
427
468
|
let body;
|
|
428
469
|
return new protocol_http_1.HttpRequest({
|
|
429
470
|
protocol,
|
|
@@ -437,6 +478,30 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
437
478
|
});
|
|
438
479
|
};
|
|
439
480
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
481
|
+
const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
482
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
483
|
+
const headers = {
|
|
484
|
+
"content-type": "application/json",
|
|
485
|
+
};
|
|
486
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update";
|
|
487
|
+
let body;
|
|
488
|
+
body = JSON.stringify({
|
|
489
|
+
...(input.DatasourcePackages != null && {
|
|
490
|
+
DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
|
|
491
|
+
}),
|
|
492
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
493
|
+
});
|
|
494
|
+
return new protocol_http_1.HttpRequest({
|
|
495
|
+
protocol,
|
|
496
|
+
hostname,
|
|
497
|
+
port,
|
|
498
|
+
method: "POST",
|
|
499
|
+
headers,
|
|
500
|
+
path: resolvedPath,
|
|
501
|
+
body,
|
|
502
|
+
});
|
|
503
|
+
};
|
|
504
|
+
exports.serializeAws_restJson1UpdateDatasourcePackagesCommand = serializeAws_restJson1UpdateDatasourcePackagesCommand;
|
|
440
505
|
const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
441
506
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
507
|
const headers = {
|
|
@@ -463,11 +528,11 @@ const deserializeAws_restJson1AcceptInvitationCommand = async (output, context)
|
|
|
463
528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
464
529
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
465
530
|
}
|
|
466
|
-
const contents = {
|
|
531
|
+
const contents = map({
|
|
467
532
|
$metadata: deserializeMetadata(output),
|
|
468
|
-
};
|
|
533
|
+
});
|
|
469
534
|
await collectBody(output.body, context);
|
|
470
|
-
return
|
|
535
|
+
return contents;
|
|
471
536
|
};
|
|
472
537
|
exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJson1AcceptInvitationCommand;
|
|
473
538
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
@@ -475,7 +540,6 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
475
540
|
...output,
|
|
476
541
|
body: await parseBody(output.body, context),
|
|
477
542
|
};
|
|
478
|
-
let response;
|
|
479
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
544
|
switch (errorCode) {
|
|
481
545
|
case "ConflictException":
|
|
@@ -492,29 +556,112 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
492
556
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
493
557
|
default:
|
|
494
558
|
const parsedBody = parsedOutput.body;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
559
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
560
|
+
output,
|
|
561
|
+
parsedBody,
|
|
562
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
563
|
+
errorCode,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
|
|
568
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
|
+
return deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context);
|
|
570
|
+
}
|
|
571
|
+
const contents = map({
|
|
572
|
+
$metadata: deserializeMetadata(output),
|
|
573
|
+
});
|
|
574
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
575
|
+
if (data.MemberDatasources != null) {
|
|
576
|
+
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
577
|
+
}
|
|
578
|
+
if (data.UnprocessedAccounts != null) {
|
|
579
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
580
|
+
}
|
|
581
|
+
return contents;
|
|
582
|
+
};
|
|
583
|
+
exports.deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand;
|
|
584
|
+
const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
585
|
+
const parsedOutput = {
|
|
586
|
+
...output,
|
|
587
|
+
body: await parseBody(output.body, context),
|
|
588
|
+
};
|
|
589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
+
switch (errorCode) {
|
|
591
|
+
case "InternalServerException":
|
|
592
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
593
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
594
|
+
case "ResourceNotFoundException":
|
|
595
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
596
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
597
|
+
case "ValidationException":
|
|
598
|
+
case "com.amazonaws.detective#ValidationException":
|
|
599
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
600
|
+
default:
|
|
601
|
+
const parsedBody = parsedOutput.body;
|
|
602
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
603
|
+
output,
|
|
604
|
+
parsedBody,
|
|
605
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
606
|
+
errorCode,
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
const deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
+
return deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context);
|
|
613
|
+
}
|
|
614
|
+
const contents = map({
|
|
615
|
+
$metadata: deserializeMetadata(output),
|
|
616
|
+
});
|
|
617
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
618
|
+
if (data.MembershipDatasources != null) {
|
|
619
|
+
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
620
|
+
}
|
|
621
|
+
if (data.UnprocessedGraphs != null) {
|
|
622
|
+
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
623
|
+
}
|
|
624
|
+
return contents;
|
|
625
|
+
};
|
|
626
|
+
exports.deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = deserializeAws_restJson1BatchGetMembershipDatasourcesCommand;
|
|
627
|
+
const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
628
|
+
const parsedOutput = {
|
|
629
|
+
...output,
|
|
630
|
+
body: await parseBody(output.body, context),
|
|
631
|
+
};
|
|
632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
|
+
switch (errorCode) {
|
|
634
|
+
case "InternalServerException":
|
|
635
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
636
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "ResourceNotFoundException":
|
|
638
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
639
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "ValidationException":
|
|
641
|
+
case "com.amazonaws.detective#ValidationException":
|
|
642
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
643
|
+
default:
|
|
644
|
+
const parsedBody = parsedOutput.body;
|
|
645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
646
|
+
output,
|
|
647
|
+
parsedBody,
|
|
648
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
649
|
+
errorCode,
|
|
501
650
|
});
|
|
502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
503
651
|
}
|
|
504
652
|
};
|
|
505
653
|
const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
|
|
506
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
655
|
return deserializeAws_restJson1CreateGraphCommandError(output, context);
|
|
508
656
|
}
|
|
509
|
-
const contents = {
|
|
657
|
+
const contents = map({
|
|
510
658
|
$metadata: deserializeMetadata(output),
|
|
511
|
-
|
|
512
|
-
};
|
|
659
|
+
});
|
|
513
660
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
514
|
-
if (data.GraphArn
|
|
661
|
+
if (data.GraphArn != null) {
|
|
515
662
|
contents.GraphArn = (0, smithy_client_1.expectString)(data.GraphArn);
|
|
516
663
|
}
|
|
517
|
-
return
|
|
664
|
+
return contents;
|
|
518
665
|
};
|
|
519
666
|
exports.deserializeAws_restJson1CreateGraphCommand = deserializeAws_restJson1CreateGraphCommand;
|
|
520
667
|
const deserializeAws_restJson1CreateGraphCommandError = async (output, context) => {
|
|
@@ -522,7 +669,6 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
522
669
|
...output,
|
|
523
670
|
body: await parseBody(output.body, context),
|
|
524
671
|
};
|
|
525
|
-
let response;
|
|
526
672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
673
|
switch (errorCode) {
|
|
528
674
|
case "ConflictException":
|
|
@@ -536,33 +682,29 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
536
682
|
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
537
683
|
default:
|
|
538
684
|
const parsedBody = parsedOutput.body;
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
$metadata,
|
|
685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
686
|
+
output,
|
|
687
|
+
parsedBody,
|
|
688
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
689
|
+
errorCode,
|
|
545
690
|
});
|
|
546
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
547
691
|
}
|
|
548
692
|
};
|
|
549
693
|
const deserializeAws_restJson1CreateMembersCommand = async (output, context) => {
|
|
550
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
695
|
return deserializeAws_restJson1CreateMembersCommandError(output, context);
|
|
552
696
|
}
|
|
553
|
-
const contents = {
|
|
697
|
+
const contents = map({
|
|
554
698
|
$metadata: deserializeMetadata(output),
|
|
555
|
-
|
|
556
|
-
UnprocessedAccounts: undefined,
|
|
557
|
-
};
|
|
699
|
+
});
|
|
558
700
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
559
|
-
if (data.Members
|
|
701
|
+
if (data.Members != null) {
|
|
560
702
|
contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
|
|
561
703
|
}
|
|
562
|
-
if (data.UnprocessedAccounts
|
|
704
|
+
if (data.UnprocessedAccounts != null) {
|
|
563
705
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
564
706
|
}
|
|
565
|
-
return
|
|
707
|
+
return contents;
|
|
566
708
|
};
|
|
567
709
|
exports.deserializeAws_restJson1CreateMembersCommand = deserializeAws_restJson1CreateMembersCommand;
|
|
568
710
|
const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
|
|
@@ -570,7 +712,6 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
570
712
|
...output,
|
|
571
713
|
body: await parseBody(output.body, context),
|
|
572
714
|
};
|
|
573
|
-
let response;
|
|
574
715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
716
|
switch (errorCode) {
|
|
576
717
|
case "InternalServerException":
|
|
@@ -587,25 +728,23 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
587
728
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
588
729
|
default:
|
|
589
730
|
const parsedBody = parsedOutput.body;
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
$metadata,
|
|
731
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
732
|
+
output,
|
|
733
|
+
parsedBody,
|
|
734
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
735
|
+
errorCode,
|
|
596
736
|
});
|
|
597
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
598
737
|
}
|
|
599
738
|
};
|
|
600
739
|
const deserializeAws_restJson1DeleteGraphCommand = async (output, context) => {
|
|
601
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
741
|
return deserializeAws_restJson1DeleteGraphCommandError(output, context);
|
|
603
742
|
}
|
|
604
|
-
const contents = {
|
|
743
|
+
const contents = map({
|
|
605
744
|
$metadata: deserializeMetadata(output),
|
|
606
|
-
};
|
|
745
|
+
});
|
|
607
746
|
await collectBody(output.body, context);
|
|
608
|
-
return
|
|
747
|
+
return contents;
|
|
609
748
|
};
|
|
610
749
|
exports.deserializeAws_restJson1DeleteGraphCommand = deserializeAws_restJson1DeleteGraphCommand;
|
|
611
750
|
const deserializeAws_restJson1DeleteGraphCommandError = async (output, context) => {
|
|
@@ -613,7 +752,6 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
613
752
|
...output,
|
|
614
753
|
body: await parseBody(output.body, context),
|
|
615
754
|
};
|
|
616
|
-
let response;
|
|
617
755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
756
|
switch (errorCode) {
|
|
619
757
|
case "InternalServerException":
|
|
@@ -627,33 +765,29 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
627
765
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
628
766
|
default:
|
|
629
767
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
$metadata,
|
|
768
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
769
|
+
output,
|
|
770
|
+
parsedBody,
|
|
771
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
772
|
+
errorCode,
|
|
636
773
|
});
|
|
637
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
638
774
|
}
|
|
639
775
|
};
|
|
640
776
|
const deserializeAws_restJson1DeleteMembersCommand = async (output, context) => {
|
|
641
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
778
|
return deserializeAws_restJson1DeleteMembersCommandError(output, context);
|
|
643
779
|
}
|
|
644
|
-
const contents = {
|
|
780
|
+
const contents = map({
|
|
645
781
|
$metadata: deserializeMetadata(output),
|
|
646
|
-
|
|
647
|
-
UnprocessedAccounts: undefined,
|
|
648
|
-
};
|
|
782
|
+
});
|
|
649
783
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
650
|
-
if (data.AccountIds
|
|
784
|
+
if (data.AccountIds != null) {
|
|
651
785
|
contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
|
|
652
786
|
}
|
|
653
|
-
if (data.UnprocessedAccounts
|
|
787
|
+
if (data.UnprocessedAccounts != null) {
|
|
654
788
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
655
789
|
}
|
|
656
|
-
return
|
|
790
|
+
return contents;
|
|
657
791
|
};
|
|
658
792
|
exports.deserializeAws_restJson1DeleteMembersCommand = deserializeAws_restJson1DeleteMembersCommand;
|
|
659
793
|
const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
|
|
@@ -661,7 +795,6 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
661
795
|
...output,
|
|
662
796
|
body: await parseBody(output.body, context),
|
|
663
797
|
};
|
|
664
|
-
let response;
|
|
665
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
799
|
switch (errorCode) {
|
|
667
800
|
case "ConflictException":
|
|
@@ -678,29 +811,26 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
678
811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
679
812
|
default:
|
|
680
813
|
const parsedBody = parsedOutput.body;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
$metadata,
|
|
814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
818
|
+
errorCode,
|
|
687
819
|
});
|
|
688
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
689
820
|
}
|
|
690
821
|
};
|
|
691
822
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
692
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
824
|
return deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context);
|
|
694
825
|
}
|
|
695
|
-
const contents = {
|
|
826
|
+
const contents = map({
|
|
696
827
|
$metadata: deserializeMetadata(output),
|
|
697
|
-
|
|
698
|
-
};
|
|
828
|
+
});
|
|
699
829
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
700
|
-
if (data.AutoEnable
|
|
830
|
+
if (data.AutoEnable != null) {
|
|
701
831
|
contents.AutoEnable = (0, smithy_client_1.expectBoolean)(data.AutoEnable);
|
|
702
832
|
}
|
|
703
|
-
return
|
|
833
|
+
return contents;
|
|
704
834
|
};
|
|
705
835
|
exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deserializeAws_restJson1DescribeOrganizationConfigurationCommand;
|
|
706
836
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -708,7 +838,6 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
708
838
|
...output,
|
|
709
839
|
body: await parseBody(output.body, context),
|
|
710
840
|
};
|
|
711
|
-
let response;
|
|
712
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
842
|
switch (errorCode) {
|
|
714
843
|
case "InternalServerException":
|
|
@@ -722,25 +851,23 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
722
851
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
723
852
|
default:
|
|
724
853
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
$metadata,
|
|
854
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
855
|
+
output,
|
|
856
|
+
parsedBody,
|
|
857
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
858
|
+
errorCode,
|
|
731
859
|
});
|
|
732
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
733
860
|
}
|
|
734
861
|
};
|
|
735
862
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
736
863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
864
|
return deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context);
|
|
738
865
|
}
|
|
739
|
-
const contents = {
|
|
866
|
+
const contents = map({
|
|
740
867
|
$metadata: deserializeMetadata(output),
|
|
741
|
-
};
|
|
868
|
+
});
|
|
742
869
|
await collectBody(output.body, context);
|
|
743
|
-
return
|
|
870
|
+
return contents;
|
|
744
871
|
};
|
|
745
872
|
exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deserializeAws_restJson1DisableOrganizationAdminAccountCommand;
|
|
746
873
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -748,7 +875,6 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
748
875
|
...output,
|
|
749
876
|
body: await parseBody(output.body, context),
|
|
750
877
|
};
|
|
751
|
-
let response;
|
|
752
878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
879
|
switch (errorCode) {
|
|
754
880
|
case "InternalServerException":
|
|
@@ -762,25 +888,23 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
762
888
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
763
889
|
default:
|
|
764
890
|
const parsedBody = parsedOutput.body;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
$metadata,
|
|
891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
892
|
+
output,
|
|
893
|
+
parsedBody,
|
|
894
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
895
|
+
errorCode,
|
|
771
896
|
});
|
|
772
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
773
897
|
}
|
|
774
898
|
};
|
|
775
899
|
const deserializeAws_restJson1DisassociateMembershipCommand = async (output, context) => {
|
|
776
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
901
|
return deserializeAws_restJson1DisassociateMembershipCommandError(output, context);
|
|
778
902
|
}
|
|
779
|
-
const contents = {
|
|
903
|
+
const contents = map({
|
|
780
904
|
$metadata: deserializeMetadata(output),
|
|
781
|
-
};
|
|
905
|
+
});
|
|
782
906
|
await collectBody(output.body, context);
|
|
783
|
-
return
|
|
907
|
+
return contents;
|
|
784
908
|
};
|
|
785
909
|
exports.deserializeAws_restJson1DisassociateMembershipCommand = deserializeAws_restJson1DisassociateMembershipCommand;
|
|
786
910
|
const deserializeAws_restJson1DisassociateMembershipCommandError = async (output, context) => {
|
|
@@ -788,7 +912,6 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
788
912
|
...output,
|
|
789
913
|
body: await parseBody(output.body, context),
|
|
790
914
|
};
|
|
791
|
-
let response;
|
|
792
915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
916
|
switch (errorCode) {
|
|
794
917
|
case "ConflictException":
|
|
@@ -805,25 +928,23 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
805
928
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
806
929
|
default:
|
|
807
930
|
const parsedBody = parsedOutput.body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
$metadata,
|
|
931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
932
|
+
output,
|
|
933
|
+
parsedBody,
|
|
934
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
935
|
+
errorCode,
|
|
814
936
|
});
|
|
815
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
816
937
|
}
|
|
817
938
|
};
|
|
818
939
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
819
940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
941
|
return deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context);
|
|
821
942
|
}
|
|
822
|
-
const contents = {
|
|
943
|
+
const contents = map({
|
|
823
944
|
$metadata: deserializeMetadata(output),
|
|
824
|
-
};
|
|
945
|
+
});
|
|
825
946
|
await collectBody(output.body, context);
|
|
826
|
-
return
|
|
947
|
+
return contents;
|
|
827
948
|
};
|
|
828
949
|
exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserializeAws_restJson1EnableOrganizationAdminAccountCommand;
|
|
829
950
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -831,7 +952,6 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
831
952
|
...output,
|
|
832
953
|
body: await parseBody(output.body, context),
|
|
833
954
|
};
|
|
834
|
-
let response;
|
|
835
955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
956
|
switch (errorCode) {
|
|
837
957
|
case "InternalServerException":
|
|
@@ -845,33 +965,29 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
845
965
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
846
966
|
default:
|
|
847
967
|
const parsedBody = parsedOutput.body;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
$metadata,
|
|
968
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
969
|
+
output,
|
|
970
|
+
parsedBody,
|
|
971
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
972
|
+
errorCode,
|
|
854
973
|
});
|
|
855
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
856
974
|
}
|
|
857
975
|
};
|
|
858
976
|
const deserializeAws_restJson1GetMembersCommand = async (output, context) => {
|
|
859
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
978
|
return deserializeAws_restJson1GetMembersCommandError(output, context);
|
|
861
979
|
}
|
|
862
|
-
const contents = {
|
|
980
|
+
const contents = map({
|
|
863
981
|
$metadata: deserializeMetadata(output),
|
|
864
|
-
|
|
865
|
-
UnprocessedAccounts: undefined,
|
|
866
|
-
};
|
|
982
|
+
});
|
|
867
983
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
868
|
-
if (data.MemberDetails
|
|
984
|
+
if (data.MemberDetails != null) {
|
|
869
985
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
870
986
|
}
|
|
871
|
-
if (data.UnprocessedAccounts
|
|
987
|
+
if (data.UnprocessedAccounts != null) {
|
|
872
988
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
873
989
|
}
|
|
874
|
-
return
|
|
990
|
+
return contents;
|
|
875
991
|
};
|
|
876
992
|
exports.deserializeAws_restJson1GetMembersCommand = deserializeAws_restJson1GetMembersCommand;
|
|
877
993
|
const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
|
|
@@ -879,7 +995,6 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
879
995
|
...output,
|
|
880
996
|
body: await parseBody(output.body, context),
|
|
881
997
|
};
|
|
882
|
-
let response;
|
|
883
998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
999
|
switch (errorCode) {
|
|
885
1000
|
case "InternalServerException":
|
|
@@ -893,33 +1008,72 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
893
1008
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
894
1009
|
default:
|
|
895
1010
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1011
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1012
|
+
output,
|
|
1013
|
+
parsedBody,
|
|
1014
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1015
|
+
errorCode,
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
const deserializeAws_restJson1ListDatasourcePackagesCommand = async (output, context) => {
|
|
1020
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
+
return deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context);
|
|
1022
|
+
}
|
|
1023
|
+
const contents = map({
|
|
1024
|
+
$metadata: deserializeMetadata(output),
|
|
1025
|
+
});
|
|
1026
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1027
|
+
if (data.DatasourcePackages != null) {
|
|
1028
|
+
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1029
|
+
}
|
|
1030
|
+
if (data.NextToken != null) {
|
|
1031
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1032
|
+
}
|
|
1033
|
+
return contents;
|
|
1034
|
+
};
|
|
1035
|
+
exports.deserializeAws_restJson1ListDatasourcePackagesCommand = deserializeAws_restJson1ListDatasourcePackagesCommand;
|
|
1036
|
+
const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output, context) => {
|
|
1037
|
+
const parsedOutput = {
|
|
1038
|
+
...output,
|
|
1039
|
+
body: await parseBody(output.body, context),
|
|
1040
|
+
};
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
switch (errorCode) {
|
|
1043
|
+
case "InternalServerException":
|
|
1044
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
1045
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1046
|
+
case "ResourceNotFoundException":
|
|
1047
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1048
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1049
|
+
case "ValidationException":
|
|
1050
|
+
case "com.amazonaws.detective#ValidationException":
|
|
1051
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1052
|
+
default:
|
|
1053
|
+
const parsedBody = parsedOutput.body;
|
|
1054
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1055
|
+
output,
|
|
1056
|
+
parsedBody,
|
|
1057
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1058
|
+
errorCode,
|
|
902
1059
|
});
|
|
903
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
904
1060
|
}
|
|
905
1061
|
};
|
|
906
1062
|
const deserializeAws_restJson1ListGraphsCommand = async (output, context) => {
|
|
907
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
1064
|
return deserializeAws_restJson1ListGraphsCommandError(output, context);
|
|
909
1065
|
}
|
|
910
|
-
const contents = {
|
|
1066
|
+
const contents = map({
|
|
911
1067
|
$metadata: deserializeMetadata(output),
|
|
912
|
-
|
|
913
|
-
NextToken: undefined,
|
|
914
|
-
};
|
|
1068
|
+
});
|
|
915
1069
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
916
|
-
if (data.GraphList
|
|
1070
|
+
if (data.GraphList != null) {
|
|
917
1071
|
contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
|
|
918
1072
|
}
|
|
919
|
-
if (data.NextToken
|
|
1073
|
+
if (data.NextToken != null) {
|
|
920
1074
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
921
1075
|
}
|
|
922
|
-
return
|
|
1076
|
+
return contents;
|
|
923
1077
|
};
|
|
924
1078
|
exports.deserializeAws_restJson1ListGraphsCommand = deserializeAws_restJson1ListGraphsCommand;
|
|
925
1079
|
const deserializeAws_restJson1ListGraphsCommandError = async (output, context) => {
|
|
@@ -927,7 +1081,6 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
927
1081
|
...output,
|
|
928
1082
|
body: await parseBody(output.body, context),
|
|
929
1083
|
};
|
|
930
|
-
let response;
|
|
931
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
1085
|
switch (errorCode) {
|
|
933
1086
|
case "InternalServerException":
|
|
@@ -938,33 +1091,29 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
938
1091
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
939
1092
|
default:
|
|
940
1093
|
const parsedBody = parsedOutput.body;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
$metadata,
|
|
1094
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1095
|
+
output,
|
|
1096
|
+
parsedBody,
|
|
1097
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1098
|
+
errorCode,
|
|
947
1099
|
});
|
|
948
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
949
1100
|
}
|
|
950
1101
|
};
|
|
951
1102
|
const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
|
|
952
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
1104
|
return deserializeAws_restJson1ListInvitationsCommandError(output, context);
|
|
954
1105
|
}
|
|
955
|
-
const contents = {
|
|
1106
|
+
const contents = map({
|
|
956
1107
|
$metadata: deserializeMetadata(output),
|
|
957
|
-
|
|
958
|
-
NextToken: undefined,
|
|
959
|
-
};
|
|
1108
|
+
});
|
|
960
1109
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
961
|
-
if (data.Invitations
|
|
1110
|
+
if (data.Invitations != null) {
|
|
962
1111
|
contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
|
|
963
1112
|
}
|
|
964
|
-
if (data.NextToken
|
|
1113
|
+
if (data.NextToken != null) {
|
|
965
1114
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
966
1115
|
}
|
|
967
|
-
return
|
|
1116
|
+
return contents;
|
|
968
1117
|
};
|
|
969
1118
|
exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson1ListInvitationsCommand;
|
|
970
1119
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
@@ -972,7 +1121,6 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
972
1121
|
...output,
|
|
973
1122
|
body: await parseBody(output.body, context),
|
|
974
1123
|
};
|
|
975
|
-
let response;
|
|
976
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
1125
|
switch (errorCode) {
|
|
978
1126
|
case "InternalServerException":
|
|
@@ -983,33 +1131,29 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
983
1131
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
984
1132
|
default:
|
|
985
1133
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
$metadata,
|
|
1134
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1135
|
+
output,
|
|
1136
|
+
parsedBody,
|
|
1137
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1138
|
+
errorCode,
|
|
992
1139
|
});
|
|
993
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
994
1140
|
}
|
|
995
1141
|
};
|
|
996
1142
|
const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
997
1143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
998
1144
|
return deserializeAws_restJson1ListMembersCommandError(output, context);
|
|
999
1145
|
}
|
|
1000
|
-
const contents = {
|
|
1146
|
+
const contents = map({
|
|
1001
1147
|
$metadata: deserializeMetadata(output),
|
|
1002
|
-
|
|
1003
|
-
NextToken: undefined,
|
|
1004
|
-
};
|
|
1148
|
+
});
|
|
1005
1149
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1006
|
-
if (data.MemberDetails
|
|
1150
|
+
if (data.MemberDetails != null) {
|
|
1007
1151
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1008
1152
|
}
|
|
1009
|
-
if (data.NextToken
|
|
1153
|
+
if (data.NextToken != null) {
|
|
1010
1154
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1011
1155
|
}
|
|
1012
|
-
return
|
|
1156
|
+
return contents;
|
|
1013
1157
|
};
|
|
1014
1158
|
exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1ListMembersCommand;
|
|
1015
1159
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
@@ -1017,7 +1161,6 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1017
1161
|
...output,
|
|
1018
1162
|
body: await parseBody(output.body, context),
|
|
1019
1163
|
};
|
|
1020
|
-
let response;
|
|
1021
1164
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
1165
|
switch (errorCode) {
|
|
1023
1166
|
case "InternalServerException":
|
|
@@ -1031,33 +1174,29 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1031
1174
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1032
1175
|
default:
|
|
1033
1176
|
const parsedBody = parsedOutput.body;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
$metadata,
|
|
1177
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1178
|
+
output,
|
|
1179
|
+
parsedBody,
|
|
1180
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1181
|
+
errorCode,
|
|
1040
1182
|
});
|
|
1041
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1042
1183
|
}
|
|
1043
1184
|
};
|
|
1044
1185
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
1045
1186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
1187
|
return deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context);
|
|
1047
1188
|
}
|
|
1048
|
-
const contents = {
|
|
1189
|
+
const contents = map({
|
|
1049
1190
|
$metadata: deserializeMetadata(output),
|
|
1050
|
-
|
|
1051
|
-
NextToken: undefined,
|
|
1052
|
-
};
|
|
1191
|
+
});
|
|
1053
1192
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1054
|
-
if (data.Administrators
|
|
1193
|
+
if (data.Administrators != null) {
|
|
1055
1194
|
contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
|
|
1056
1195
|
}
|
|
1057
|
-
if (data.NextToken
|
|
1196
|
+
if (data.NextToken != null) {
|
|
1058
1197
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1059
1198
|
}
|
|
1060
|
-
return
|
|
1199
|
+
return contents;
|
|
1061
1200
|
};
|
|
1062
1201
|
exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deserializeAws_restJson1ListOrganizationAdminAccountsCommand;
|
|
1063
1202
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
@@ -1065,7 +1204,6 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1065
1204
|
...output,
|
|
1066
1205
|
body: await parseBody(output.body, context),
|
|
1067
1206
|
};
|
|
1068
|
-
let response;
|
|
1069
1207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1208
|
switch (errorCode) {
|
|
1071
1209
|
case "InternalServerException":
|
|
@@ -1079,29 +1217,26 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1079
1217
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1080
1218
|
default:
|
|
1081
1219
|
const parsedBody = parsedOutput.body;
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
$metadata,
|
|
1220
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1221
|
+
output,
|
|
1222
|
+
parsedBody,
|
|
1223
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1224
|
+
errorCode,
|
|
1088
1225
|
});
|
|
1089
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1090
1226
|
}
|
|
1091
1227
|
};
|
|
1092
1228
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1093
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
1230
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1095
1231
|
}
|
|
1096
|
-
const contents = {
|
|
1232
|
+
const contents = map({
|
|
1097
1233
|
$metadata: deserializeMetadata(output),
|
|
1098
|
-
|
|
1099
|
-
};
|
|
1234
|
+
});
|
|
1100
1235
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1101
|
-
if (data.Tags
|
|
1236
|
+
if (data.Tags != null) {
|
|
1102
1237
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1103
1238
|
}
|
|
1104
|
-
return
|
|
1239
|
+
return contents;
|
|
1105
1240
|
};
|
|
1106
1241
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
1107
1242
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1109,7 +1244,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1109
1244
|
...output,
|
|
1110
1245
|
body: await parseBody(output.body, context),
|
|
1111
1246
|
};
|
|
1112
|
-
let response;
|
|
1113
1247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1248
|
switch (errorCode) {
|
|
1115
1249
|
case "InternalServerException":
|
|
@@ -1123,25 +1257,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1123
1257
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1124
1258
|
default:
|
|
1125
1259
|
const parsedBody = parsedOutput.body;
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
$metadata,
|
|
1260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1261
|
+
output,
|
|
1262
|
+
parsedBody,
|
|
1263
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1264
|
+
errorCode,
|
|
1132
1265
|
});
|
|
1133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
1266
|
}
|
|
1135
1267
|
};
|
|
1136
1268
|
const deserializeAws_restJson1RejectInvitationCommand = async (output, context) => {
|
|
1137
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
1270
|
return deserializeAws_restJson1RejectInvitationCommandError(output, context);
|
|
1139
1271
|
}
|
|
1140
|
-
const contents = {
|
|
1272
|
+
const contents = map({
|
|
1141
1273
|
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1274
|
+
});
|
|
1143
1275
|
await collectBody(output.body, context);
|
|
1144
|
-
return
|
|
1276
|
+
return contents;
|
|
1145
1277
|
};
|
|
1146
1278
|
exports.deserializeAws_restJson1RejectInvitationCommand = deserializeAws_restJson1RejectInvitationCommand;
|
|
1147
1279
|
const deserializeAws_restJson1RejectInvitationCommandError = async (output, context) => {
|
|
@@ -1149,7 +1281,6 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1149
1281
|
...output,
|
|
1150
1282
|
body: await parseBody(output.body, context),
|
|
1151
1283
|
};
|
|
1152
|
-
let response;
|
|
1153
1284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1285
|
switch (errorCode) {
|
|
1155
1286
|
case "ConflictException":
|
|
@@ -1166,25 +1297,23 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1166
1297
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1167
1298
|
default:
|
|
1168
1299
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
$metadata,
|
|
1300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1301
|
+
output,
|
|
1302
|
+
parsedBody,
|
|
1303
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1304
|
+
errorCode,
|
|
1175
1305
|
});
|
|
1176
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1306
|
}
|
|
1178
1307
|
};
|
|
1179
1308
|
const deserializeAws_restJson1StartMonitoringMemberCommand = async (output, context) => {
|
|
1180
1309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1181
1310
|
return deserializeAws_restJson1StartMonitoringMemberCommandError(output, context);
|
|
1182
1311
|
}
|
|
1183
|
-
const contents = {
|
|
1312
|
+
const contents = map({
|
|
1184
1313
|
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1314
|
+
});
|
|
1186
1315
|
await collectBody(output.body, context);
|
|
1187
|
-
return
|
|
1316
|
+
return contents;
|
|
1188
1317
|
};
|
|
1189
1318
|
exports.deserializeAws_restJson1StartMonitoringMemberCommand = deserializeAws_restJson1StartMonitoringMemberCommand;
|
|
1190
1319
|
const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output, context) => {
|
|
@@ -1192,7 +1321,6 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1192
1321
|
...output,
|
|
1193
1322
|
body: await parseBody(output.body, context),
|
|
1194
1323
|
};
|
|
1195
|
-
let response;
|
|
1196
1324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1325
|
switch (errorCode) {
|
|
1198
1326
|
case "ConflictException":
|
|
@@ -1212,25 +1340,23 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1212
1340
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1213
1341
|
default:
|
|
1214
1342
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata,
|
|
1343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1344
|
+
output,
|
|
1345
|
+
parsedBody,
|
|
1346
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1347
|
+
errorCode,
|
|
1221
1348
|
});
|
|
1222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1223
1349
|
}
|
|
1224
1350
|
};
|
|
1225
1351
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1226
1352
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1227
1353
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1228
1354
|
}
|
|
1229
|
-
const contents = {
|
|
1355
|
+
const contents = map({
|
|
1230
1356
|
$metadata: deserializeMetadata(output),
|
|
1231
|
-
};
|
|
1357
|
+
});
|
|
1232
1358
|
await collectBody(output.body, context);
|
|
1233
|
-
return
|
|
1359
|
+
return contents;
|
|
1234
1360
|
};
|
|
1235
1361
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
1236
1362
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -1238,7 +1364,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1238
1364
|
...output,
|
|
1239
1365
|
body: await parseBody(output.body, context),
|
|
1240
1366
|
};
|
|
1241
|
-
let response;
|
|
1242
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1368
|
switch (errorCode) {
|
|
1244
1369
|
case "InternalServerException":
|
|
@@ -1252,25 +1377,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1252
1377
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1253
1378
|
default:
|
|
1254
1379
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
$metadata,
|
|
1380
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1381
|
+
output,
|
|
1382
|
+
parsedBody,
|
|
1383
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1384
|
+
errorCode,
|
|
1261
1385
|
});
|
|
1262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1263
1386
|
}
|
|
1264
1387
|
};
|
|
1265
1388
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1266
1389
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1267
1390
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1268
1391
|
}
|
|
1269
|
-
const contents = {
|
|
1392
|
+
const contents = map({
|
|
1270
1393
|
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1394
|
+
});
|
|
1272
1395
|
await collectBody(output.body, context);
|
|
1273
|
-
return
|
|
1396
|
+
return contents;
|
|
1274
1397
|
};
|
|
1275
1398
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
1276
1399
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -1278,7 +1401,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1278
1401
|
...output,
|
|
1279
1402
|
body: await parseBody(output.body, context),
|
|
1280
1403
|
};
|
|
1281
|
-
let response;
|
|
1282
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1405
|
switch (errorCode) {
|
|
1284
1406
|
case "InternalServerException":
|
|
@@ -1292,25 +1414,63 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1292
1414
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1293
1415
|
default:
|
|
1294
1416
|
const parsedBody = parsedOutput.body;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1417
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1418
|
+
output,
|
|
1419
|
+
parsedBody,
|
|
1420
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1421
|
+
errorCode,
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
1426
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
+
return deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context);
|
|
1428
|
+
}
|
|
1429
|
+
const contents = map({
|
|
1430
|
+
$metadata: deserializeMetadata(output),
|
|
1431
|
+
});
|
|
1432
|
+
await collectBody(output.body, context);
|
|
1433
|
+
return contents;
|
|
1434
|
+
};
|
|
1435
|
+
exports.deserializeAws_restJson1UpdateDatasourcePackagesCommand = deserializeAws_restJson1UpdateDatasourcePackagesCommand;
|
|
1436
|
+
const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
1437
|
+
const parsedOutput = {
|
|
1438
|
+
...output,
|
|
1439
|
+
body: await parseBody(output.body, context),
|
|
1440
|
+
};
|
|
1441
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
switch (errorCode) {
|
|
1443
|
+
case "InternalServerException":
|
|
1444
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
1445
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1446
|
+
case "ResourceNotFoundException":
|
|
1447
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1448
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1449
|
+
case "ServiceQuotaExceededException":
|
|
1450
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1451
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1452
|
+
case "ValidationException":
|
|
1453
|
+
case "com.amazonaws.detective#ValidationException":
|
|
1454
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1455
|
+
default:
|
|
1456
|
+
const parsedBody = parsedOutput.body;
|
|
1457
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1458
|
+
output,
|
|
1459
|
+
parsedBody,
|
|
1460
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1461
|
+
errorCode,
|
|
1301
1462
|
});
|
|
1302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
1463
|
}
|
|
1304
1464
|
};
|
|
1305
1465
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
1306
1466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
1467
|
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
1308
1468
|
}
|
|
1309
|
-
const contents = {
|
|
1469
|
+
const contents = map({
|
|
1310
1470
|
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1471
|
+
});
|
|
1312
1472
|
await collectBody(output.body, context);
|
|
1313
|
-
return
|
|
1473
|
+
return contents;
|
|
1314
1474
|
};
|
|
1315
1475
|
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deserializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
1316
1476
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -1318,7 +1478,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1318
1478
|
...output,
|
|
1319
1479
|
body: await parseBody(output.body, context),
|
|
1320
1480
|
};
|
|
1321
|
-
let response;
|
|
1322
1481
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1482
|
switch (errorCode) {
|
|
1324
1483
|
case "InternalServerException":
|
|
@@ -1332,20 +1491,19 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1332
1491
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1333
1492
|
default:
|
|
1334
1493
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
$metadata,
|
|
1494
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1495
|
+
output,
|
|
1496
|
+
parsedBody,
|
|
1497
|
+
exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
|
|
1498
|
+
errorCode,
|
|
1341
1499
|
});
|
|
1342
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1343
1500
|
}
|
|
1344
1501
|
};
|
|
1502
|
+
const map = smithy_client_1.map;
|
|
1345
1503
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1346
|
-
const contents = {};
|
|
1504
|
+
const contents = map({});
|
|
1347
1505
|
const data = parsedOutput.body;
|
|
1348
|
-
if (data.Message
|
|
1506
|
+
if (data.Message != null) {
|
|
1349
1507
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1350
1508
|
}
|
|
1351
1509
|
const exception = new models_0_1.ConflictException({
|
|
@@ -1355,9 +1513,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1355
1513
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1356
1514
|
};
|
|
1357
1515
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1358
|
-
const contents = {};
|
|
1516
|
+
const contents = map({});
|
|
1359
1517
|
const data = parsedOutput.body;
|
|
1360
|
-
if (data.Message
|
|
1518
|
+
if (data.Message != null) {
|
|
1361
1519
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1362
1520
|
}
|
|
1363
1521
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -1367,9 +1525,9 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1367
1525
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1368
1526
|
};
|
|
1369
1527
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1370
|
-
const contents = {};
|
|
1528
|
+
const contents = map({});
|
|
1371
1529
|
const data = parsedOutput.body;
|
|
1372
|
-
if (data.Message
|
|
1530
|
+
if (data.Message != null) {
|
|
1373
1531
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1374
1532
|
}
|
|
1375
1533
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -1379,11 +1537,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1379
1537
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1380
1538
|
};
|
|
1381
1539
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1382
|
-
const contents = {};
|
|
1540
|
+
const contents = map({});
|
|
1383
1541
|
const data = parsedOutput.body;
|
|
1384
|
-
if (data.Message
|
|
1542
|
+
if (data.Message != null) {
|
|
1385
1543
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1386
1544
|
}
|
|
1545
|
+
if (data.Resources != null) {
|
|
1546
|
+
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
1547
|
+
}
|
|
1387
1548
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1388
1549
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1389
1550
|
...contents,
|
|
@@ -1391,9 +1552,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1391
1552
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1392
1553
|
};
|
|
1393
1554
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1394
|
-
const contents = {};
|
|
1555
|
+
const contents = map({});
|
|
1395
1556
|
const data = parsedOutput.body;
|
|
1396
|
-
if (data.Message
|
|
1557
|
+
if (data.Message != null) {
|
|
1397
1558
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1398
1559
|
}
|
|
1399
1560
|
const exception = new models_0_1.TooManyRequestsException({
|
|
@@ -1403,9 +1564,15 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1403
1564
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1404
1565
|
};
|
|
1405
1566
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1406
|
-
const contents = {};
|
|
1567
|
+
const contents = map({});
|
|
1407
1568
|
const data = parsedOutput.body;
|
|
1408
|
-
if (data.
|
|
1569
|
+
if (data.ErrorCode != null) {
|
|
1570
|
+
contents.ErrorCode = (0, smithy_client_1.expectString)(data.ErrorCode);
|
|
1571
|
+
}
|
|
1572
|
+
if (data.ErrorCodeReason != null) {
|
|
1573
|
+
contents.ErrorCodeReason = (0, smithy_client_1.expectString)(data.ErrorCodeReason);
|
|
1574
|
+
}
|
|
1575
|
+
if (data.Message != null) {
|
|
1409
1576
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1410
1577
|
}
|
|
1411
1578
|
const exception = new models_0_1.ValidationException({
|
|
@@ -1420,13 +1587,17 @@ const serializeAws_restJson1Account = (input, context) => {
|
|
|
1420
1587
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1421
1588
|
};
|
|
1422
1589
|
};
|
|
1590
|
+
const serializeAws_restJson1AccountIdExtendedList = (input, context) => {
|
|
1591
|
+
return input
|
|
1592
|
+
.filter((e) => e != null)
|
|
1593
|
+
.map((entry) => {
|
|
1594
|
+
return entry;
|
|
1595
|
+
});
|
|
1596
|
+
};
|
|
1423
1597
|
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
1424
1598
|
return input
|
|
1425
1599
|
.filter((e) => e != null)
|
|
1426
1600
|
.map((entry) => {
|
|
1427
|
-
if (entry === null) {
|
|
1428
|
-
return null;
|
|
1429
|
-
}
|
|
1430
1601
|
return entry;
|
|
1431
1602
|
});
|
|
1432
1603
|
};
|
|
@@ -1434,12 +1605,23 @@ const serializeAws_restJson1AccountList = (input, context) => {
|
|
|
1434
1605
|
return input
|
|
1435
1606
|
.filter((e) => e != null)
|
|
1436
1607
|
.map((entry) => {
|
|
1437
|
-
if (entry === null) {
|
|
1438
|
-
return null;
|
|
1439
|
-
}
|
|
1440
1608
|
return serializeAws_restJson1Account(entry, context);
|
|
1441
1609
|
});
|
|
1442
1610
|
};
|
|
1611
|
+
const serializeAws_restJson1DatasourcePackageList = (input, context) => {
|
|
1612
|
+
return input
|
|
1613
|
+
.filter((e) => e != null)
|
|
1614
|
+
.map((entry) => {
|
|
1615
|
+
return entry;
|
|
1616
|
+
});
|
|
1617
|
+
};
|
|
1618
|
+
const serializeAws_restJson1GraphArnList = (input, context) => {
|
|
1619
|
+
return input
|
|
1620
|
+
.filter((e) => e != null)
|
|
1621
|
+
.map((entry) => {
|
|
1622
|
+
return entry;
|
|
1623
|
+
});
|
|
1624
|
+
};
|
|
1443
1625
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
1444
1626
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1445
1627
|
if (value === null) {
|
|
@@ -1480,6 +1662,55 @@ const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
|
1480
1662
|
});
|
|
1481
1663
|
return retVal;
|
|
1482
1664
|
};
|
|
1665
|
+
const deserializeAws_restJson1DatasourcePackageIngestDetail = (output, context) => {
|
|
1666
|
+
return {
|
|
1667
|
+
DatasourcePackageIngestState: (0, smithy_client_1.expectString)(output.DatasourcePackageIngestState),
|
|
1668
|
+
LastIngestStateChange: output.LastIngestStateChange != null
|
|
1669
|
+
? deserializeAws_restJson1LastIngestStateChangeDates(output.LastIngestStateChange, context)
|
|
1670
|
+
: undefined,
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
const deserializeAws_restJson1DatasourcePackageIngestDetails = (output, context) => {
|
|
1674
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1675
|
+
if (value === null) {
|
|
1676
|
+
return acc;
|
|
1677
|
+
}
|
|
1678
|
+
return {
|
|
1679
|
+
...acc,
|
|
1680
|
+
[key]: deserializeAws_restJson1DatasourcePackageIngestDetail(value, context),
|
|
1681
|
+
};
|
|
1682
|
+
}, {});
|
|
1683
|
+
};
|
|
1684
|
+
const deserializeAws_restJson1DatasourcePackageIngestHistory = (output, context) => {
|
|
1685
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1686
|
+
if (value === null) {
|
|
1687
|
+
return acc;
|
|
1688
|
+
}
|
|
1689
|
+
return {
|
|
1690
|
+
...acc,
|
|
1691
|
+
[key]: deserializeAws_restJson1LastIngestStateChangeDates(value, context),
|
|
1692
|
+
};
|
|
1693
|
+
}, {});
|
|
1694
|
+
};
|
|
1695
|
+
const deserializeAws_restJson1DatasourcePackageIngestStates = (output, context) => {
|
|
1696
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1697
|
+
if (value === null) {
|
|
1698
|
+
return acc;
|
|
1699
|
+
}
|
|
1700
|
+
return {
|
|
1701
|
+
...acc,
|
|
1702
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1703
|
+
};
|
|
1704
|
+
}, {});
|
|
1705
|
+
};
|
|
1706
|
+
const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) => {
|
|
1707
|
+
return {
|
|
1708
|
+
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1709
|
+
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
1710
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdateTime))
|
|
1711
|
+
: undefined,
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1483
1714
|
const deserializeAws_restJson1Graph = (output, context) => {
|
|
1484
1715
|
return {
|
|
1485
1716
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -1497,10 +1728,24 @@ const deserializeAws_restJson1GraphList = (output, context) => {
|
|
|
1497
1728
|
});
|
|
1498
1729
|
return retVal;
|
|
1499
1730
|
};
|
|
1731
|
+
const deserializeAws_restJson1LastIngestStateChangeDates = (output, context) => {
|
|
1732
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1733
|
+
if (value === null) {
|
|
1734
|
+
return acc;
|
|
1735
|
+
}
|
|
1736
|
+
return {
|
|
1737
|
+
...acc,
|
|
1738
|
+
[key]: deserializeAws_restJson1TimestampForCollection(value, context),
|
|
1739
|
+
};
|
|
1740
|
+
}, {});
|
|
1741
|
+
};
|
|
1500
1742
|
const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
1501
1743
|
return {
|
|
1502
1744
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1503
1745
|
AdministratorId: (0, smithy_client_1.expectString)(output.AdministratorId),
|
|
1746
|
+
DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
|
|
1747
|
+
? deserializeAws_restJson1DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
|
|
1748
|
+
: undefined,
|
|
1504
1749
|
DisabledReason: (0, smithy_client_1.expectString)(output.DisabledReason),
|
|
1505
1750
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
1506
1751
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
@@ -1513,6 +1758,9 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1513
1758
|
: undefined,
|
|
1514
1759
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1515
1760
|
UpdatedTime: output.UpdatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTime)) : undefined,
|
|
1761
|
+
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
1762
|
+
? deserializeAws_restJson1VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
1763
|
+
: undefined,
|
|
1516
1764
|
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1517
1765
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1518
1766
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdatedTime))
|
|
@@ -1530,6 +1778,37 @@ const deserializeAws_restJson1MemberDetailList = (output, context) => {
|
|
|
1530
1778
|
});
|
|
1531
1779
|
return retVal;
|
|
1532
1780
|
};
|
|
1781
|
+
const deserializeAws_restJson1MembershipDatasources = (output, context) => {
|
|
1782
|
+
return {
|
|
1783
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1784
|
+
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
1785
|
+
? deserializeAws_restJson1DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
|
|
1786
|
+
: undefined,
|
|
1787
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
const deserializeAws_restJson1MembershipDatasourcesList = (output, context) => {
|
|
1791
|
+
const retVal = (output || [])
|
|
1792
|
+
.filter((e) => e != null)
|
|
1793
|
+
.map((entry) => {
|
|
1794
|
+
if (entry === null) {
|
|
1795
|
+
return null;
|
|
1796
|
+
}
|
|
1797
|
+
return deserializeAws_restJson1MembershipDatasources(entry, context);
|
|
1798
|
+
});
|
|
1799
|
+
return retVal;
|
|
1800
|
+
};
|
|
1801
|
+
const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
1802
|
+
const retVal = (output || [])
|
|
1803
|
+
.filter((e) => e != null)
|
|
1804
|
+
.map((entry) => {
|
|
1805
|
+
if (entry === null) {
|
|
1806
|
+
return null;
|
|
1807
|
+
}
|
|
1808
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1809
|
+
});
|
|
1810
|
+
return retVal;
|
|
1811
|
+
};
|
|
1533
1812
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
1534
1813
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1535
1814
|
if (value === null) {
|
|
@@ -1541,6 +1820,11 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1541
1820
|
};
|
|
1542
1821
|
}, {});
|
|
1543
1822
|
};
|
|
1823
|
+
const deserializeAws_restJson1TimestampForCollection = (output, context) => {
|
|
1824
|
+
return {
|
|
1825
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.Timestamp)) : undefined,
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1544
1828
|
const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
|
|
1545
1829
|
return {
|
|
1546
1830
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
@@ -1558,6 +1842,34 @@ const deserializeAws_restJson1UnprocessedAccountList = (output, context) => {
|
|
|
1558
1842
|
});
|
|
1559
1843
|
return retVal;
|
|
1560
1844
|
};
|
|
1845
|
+
const deserializeAws_restJson1UnprocessedGraph = (output, context) => {
|
|
1846
|
+
return {
|
|
1847
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1848
|
+
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
const deserializeAws_restJson1UnprocessedGraphList = (output, context) => {
|
|
1852
|
+
const retVal = (output || [])
|
|
1853
|
+
.filter((e) => e != null)
|
|
1854
|
+
.map((entry) => {
|
|
1855
|
+
if (entry === null) {
|
|
1856
|
+
return null;
|
|
1857
|
+
}
|
|
1858
|
+
return deserializeAws_restJson1UnprocessedGraph(entry, context);
|
|
1859
|
+
});
|
|
1860
|
+
return retVal;
|
|
1861
|
+
};
|
|
1862
|
+
const deserializeAws_restJson1VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1863
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1864
|
+
if (value === null) {
|
|
1865
|
+
return acc;
|
|
1866
|
+
}
|
|
1867
|
+
return {
|
|
1868
|
+
...acc,
|
|
1869
|
+
[key]: deserializeAws_restJson1DatasourcePackageUsageInfo(value, context),
|
|
1870
|
+
};
|
|
1871
|
+
}, {});
|
|
1872
|
+
};
|
|
1561
1873
|
const deserializeMetadata = (output) => {
|
|
1562
1874
|
var _a;
|
|
1563
1875
|
return ({
|