@aws-sdk/client-detective 3.130.0 → 3.141.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 +31 -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 +449 -1
- 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 +534 -0
- 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 +7 -7
|
@@ -27,6 +27,56 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
}); };
|
|
30
|
+
export var serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
31
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
32
|
+
return __generator(this, function (_c) {
|
|
33
|
+
switch (_c.label) {
|
|
34
|
+
case 0: return [4, context.endpoint()];
|
|
35
|
+
case 1:
|
|
36
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
37
|
+
headers = {
|
|
38
|
+
"content-type": "application/json",
|
|
39
|
+
};
|
|
40
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/get";
|
|
41
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && {
|
|
42
|
+
AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
|
|
43
|
+
})), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
44
|
+
return [2, new __HttpRequest({
|
|
45
|
+
protocol: protocol,
|
|
46
|
+
hostname: hostname,
|
|
47
|
+
port: port,
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: headers,
|
|
50
|
+
path: resolvedPath,
|
|
51
|
+
body: body,
|
|
52
|
+
})];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}); };
|
|
56
|
+
export var serializeAws_restJson1BatchGetMembershipDatasourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
58
|
+
return __generator(this, function (_c) {
|
|
59
|
+
switch (_c.label) {
|
|
60
|
+
case 0: return [4, context.endpoint()];
|
|
61
|
+
case 1:
|
|
62
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
63
|
+
headers = {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
};
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/datasources/get";
|
|
67
|
+
body = JSON.stringify(__assign({}, (input.GraphArns != null && { GraphArns: serializeAws_restJson1GraphArnList(input.GraphArns, context) })));
|
|
68
|
+
return [2, new __HttpRequest({
|
|
69
|
+
protocol: protocol,
|
|
70
|
+
hostname: hostname,
|
|
71
|
+
port: port,
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: headers,
|
|
74
|
+
path: resolvedPath,
|
|
75
|
+
body: body,
|
|
76
|
+
})];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}); };
|
|
30
80
|
export var serializeAws_restJson1CreateGraphCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
31
81
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
32
82
|
return __generator(this, function (_c) {
|
|
@@ -243,6 +293,30 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
|
|
|
243
293
|
}
|
|
244
294
|
});
|
|
245
295
|
}); };
|
|
296
|
+
export var serializeAws_restJson1ListDatasourcePackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
298
|
+
return __generator(this, function (_c) {
|
|
299
|
+
switch (_c.label) {
|
|
300
|
+
case 0: return [4, context.endpoint()];
|
|
301
|
+
case 1:
|
|
302
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
303
|
+
headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/list";
|
|
307
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
|
+
protocol: protocol,
|
|
310
|
+
hostname: hostname,
|
|
311
|
+
port: port,
|
|
312
|
+
method: "POST",
|
|
313
|
+
headers: headers,
|
|
314
|
+
path: resolvedPath,
|
|
315
|
+
body: body,
|
|
316
|
+
})];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}); };
|
|
246
320
|
export var serializeAws_restJson1ListGraphsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
321
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
248
322
|
return __generator(this, function (_c) {
|
|
@@ -485,6 +559,32 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
485
559
|
}
|
|
486
560
|
});
|
|
487
561
|
}); };
|
|
562
|
+
export var serializeAws_restJson1UpdateDatasourcePackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
563
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
564
|
+
return __generator(this, function (_c) {
|
|
565
|
+
switch (_c.label) {
|
|
566
|
+
case 0: return [4, context.endpoint()];
|
|
567
|
+
case 1:
|
|
568
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
569
|
+
headers = {
|
|
570
|
+
"content-type": "application/json",
|
|
571
|
+
};
|
|
572
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/update";
|
|
573
|
+
body = JSON.stringify(__assign(__assign({}, (input.DatasourcePackages != null && {
|
|
574
|
+
DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
|
|
575
|
+
})), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
576
|
+
return [2, new __HttpRequest({
|
|
577
|
+
protocol: protocol,
|
|
578
|
+
hostname: hostname,
|
|
579
|
+
port: port,
|
|
580
|
+
method: "POST",
|
|
581
|
+
headers: headers,
|
|
582
|
+
path: resolvedPath,
|
|
583
|
+
body: body,
|
|
584
|
+
})];
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}); };
|
|
488
588
|
export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
589
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
490
590
|
return __generator(this, function (_c) {
|
|
@@ -572,6 +672,144 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
572
672
|
}
|
|
573
673
|
});
|
|
574
674
|
}); };
|
|
675
|
+
export var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
676
|
+
var contents, data, _a, _b;
|
|
677
|
+
return __generator(this, function (_c) {
|
|
678
|
+
switch (_c.label) {
|
|
679
|
+
case 0:
|
|
680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
+
return [2, deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context)];
|
|
682
|
+
}
|
|
683
|
+
contents = {
|
|
684
|
+
$metadata: deserializeMetadata(output),
|
|
685
|
+
MemberDatasources: undefined,
|
|
686
|
+
UnprocessedAccounts: undefined,
|
|
687
|
+
};
|
|
688
|
+
_a = __expectNonNull;
|
|
689
|
+
_b = __expectObject;
|
|
690
|
+
return [4, parseBody(output.body, context)];
|
|
691
|
+
case 1:
|
|
692
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
693
|
+
if (data.MemberDatasources !== undefined && data.MemberDatasources !== null) {
|
|
694
|
+
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
695
|
+
}
|
|
696
|
+
if (data.UnprocessedAccounts !== undefined && data.UnprocessedAccounts !== null) {
|
|
697
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
698
|
+
}
|
|
699
|
+
return [2, Promise.resolve(contents)];
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}); };
|
|
703
|
+
var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
705
|
+
var _c;
|
|
706
|
+
return __generator(this, function (_d) {
|
|
707
|
+
switch (_d.label) {
|
|
708
|
+
case 0:
|
|
709
|
+
_a = [__assign({}, output)];
|
|
710
|
+
_c = {};
|
|
711
|
+
return [4, parseBody(output.body, context)];
|
|
712
|
+
case 1:
|
|
713
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
714
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
_b = errorCode;
|
|
716
|
+
switch (_b) {
|
|
717
|
+
case "InternalServerException": return [3, 2];
|
|
718
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
719
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
720
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
721
|
+
case "ValidationException": return [3, 6];
|
|
722
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
723
|
+
}
|
|
724
|
+
return [3, 8];
|
|
725
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
726
|
+
case 3: throw _d.sent();
|
|
727
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
728
|
+
case 5: throw _d.sent();
|
|
729
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
730
|
+
case 7: throw _d.sent();
|
|
731
|
+
case 8:
|
|
732
|
+
parsedBody = parsedOutput.body;
|
|
733
|
+
$metadata = deserializeMetadata(output);
|
|
734
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
735
|
+
response = new __BaseException({
|
|
736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
737
|
+
$fault: "client",
|
|
738
|
+
$metadata: $metadata,
|
|
739
|
+
});
|
|
740
|
+
throw __decorateServiceException(response, parsedBody);
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
}); };
|
|
744
|
+
export var deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
745
|
+
var contents, data, _a, _b;
|
|
746
|
+
return __generator(this, function (_c) {
|
|
747
|
+
switch (_c.label) {
|
|
748
|
+
case 0:
|
|
749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
+
return [2, deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context)];
|
|
751
|
+
}
|
|
752
|
+
contents = {
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
MembershipDatasources: undefined,
|
|
755
|
+
UnprocessedGraphs: undefined,
|
|
756
|
+
};
|
|
757
|
+
_a = __expectNonNull;
|
|
758
|
+
_b = __expectObject;
|
|
759
|
+
return [4, parseBody(output.body, context)];
|
|
760
|
+
case 1:
|
|
761
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
762
|
+
if (data.MembershipDatasources !== undefined && data.MembershipDatasources !== null) {
|
|
763
|
+
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
764
|
+
}
|
|
765
|
+
if (data.UnprocessedGraphs !== undefined && data.UnprocessedGraphs !== null) {
|
|
766
|
+
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
767
|
+
}
|
|
768
|
+
return [2, Promise.resolve(contents)];
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
}); };
|
|
772
|
+
var deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
773
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
774
|
+
var _c;
|
|
775
|
+
return __generator(this, function (_d) {
|
|
776
|
+
switch (_d.label) {
|
|
777
|
+
case 0:
|
|
778
|
+
_a = [__assign({}, output)];
|
|
779
|
+
_c = {};
|
|
780
|
+
return [4, parseBody(output.body, context)];
|
|
781
|
+
case 1:
|
|
782
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
783
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
+
_b = errorCode;
|
|
785
|
+
switch (_b) {
|
|
786
|
+
case "InternalServerException": return [3, 2];
|
|
787
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
788
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
789
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
790
|
+
case "ValidationException": return [3, 6];
|
|
791
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
792
|
+
}
|
|
793
|
+
return [3, 8];
|
|
794
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
795
|
+
case 3: throw _d.sent();
|
|
796
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
797
|
+
case 5: throw _d.sent();
|
|
798
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
799
|
+
case 7: throw _d.sent();
|
|
800
|
+
case 8:
|
|
801
|
+
parsedBody = parsedOutput.body;
|
|
802
|
+
$metadata = deserializeMetadata(output);
|
|
803
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
804
|
+
response = new __BaseException({
|
|
805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
806
|
+
$fault: "client",
|
|
807
|
+
$metadata: $metadata,
|
|
808
|
+
});
|
|
809
|
+
throw __decorateServiceException(response, parsedBody);
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}); };
|
|
575
813
|
export var deserializeAws_restJson1CreateGraphCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
576
814
|
var contents, data, _a, _b;
|
|
577
815
|
return __generator(this, function (_c) {
|
|
@@ -1157,6 +1395,75 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1157
1395
|
}
|
|
1158
1396
|
});
|
|
1159
1397
|
}); };
|
|
1398
|
+
export var deserializeAws_restJson1ListDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1399
|
+
var contents, data, _a, _b;
|
|
1400
|
+
return __generator(this, function (_c) {
|
|
1401
|
+
switch (_c.label) {
|
|
1402
|
+
case 0:
|
|
1403
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
|
+
return [2, deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context)];
|
|
1405
|
+
}
|
|
1406
|
+
contents = {
|
|
1407
|
+
$metadata: deserializeMetadata(output),
|
|
1408
|
+
DatasourcePackages: undefined,
|
|
1409
|
+
NextToken: undefined,
|
|
1410
|
+
};
|
|
1411
|
+
_a = __expectNonNull;
|
|
1412
|
+
_b = __expectObject;
|
|
1413
|
+
return [4, parseBody(output.body, context)];
|
|
1414
|
+
case 1:
|
|
1415
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1416
|
+
if (data.DatasourcePackages !== undefined && data.DatasourcePackages !== null) {
|
|
1417
|
+
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1418
|
+
}
|
|
1419
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1420
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1421
|
+
}
|
|
1422
|
+
return [2, Promise.resolve(contents)];
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}); };
|
|
1426
|
+
var deserializeAws_restJson1ListDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1428
|
+
var _c;
|
|
1429
|
+
return __generator(this, function (_d) {
|
|
1430
|
+
switch (_d.label) {
|
|
1431
|
+
case 0:
|
|
1432
|
+
_a = [__assign({}, output)];
|
|
1433
|
+
_c = {};
|
|
1434
|
+
return [4, parseBody(output.body, context)];
|
|
1435
|
+
case 1:
|
|
1436
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1437
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
+
_b = errorCode;
|
|
1439
|
+
switch (_b) {
|
|
1440
|
+
case "InternalServerException": return [3, 2];
|
|
1441
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1442
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1443
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1444
|
+
case "ValidationException": return [3, 6];
|
|
1445
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1446
|
+
}
|
|
1447
|
+
return [3, 8];
|
|
1448
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1449
|
+
case 3: throw _d.sent();
|
|
1450
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 5: throw _d.sent();
|
|
1452
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1453
|
+
case 7: throw _d.sent();
|
|
1454
|
+
case 8:
|
|
1455
|
+
parsedBody = parsedOutput.body;
|
|
1456
|
+
$metadata = deserializeMetadata(output);
|
|
1457
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1458
|
+
response = new __BaseException({
|
|
1459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1460
|
+
$fault: "client",
|
|
1461
|
+
$metadata: $metadata,
|
|
1462
|
+
});
|
|
1463
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}); };
|
|
1160
1467
|
export var deserializeAws_restJson1ListGraphsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1161
1468
|
var contents, data, _a, _b;
|
|
1162
1469
|
return __generator(this, function (_c) {
|
|
@@ -1738,6 +2045,69 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1738
2045
|
}
|
|
1739
2046
|
});
|
|
1740
2047
|
}); };
|
|
2048
|
+
export var deserializeAws_restJson1UpdateDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2049
|
+
var contents;
|
|
2050
|
+
return __generator(this, function (_a) {
|
|
2051
|
+
switch (_a.label) {
|
|
2052
|
+
case 0:
|
|
2053
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
|
+
return [2, deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context)];
|
|
2055
|
+
}
|
|
2056
|
+
contents = {
|
|
2057
|
+
$metadata: deserializeMetadata(output),
|
|
2058
|
+
};
|
|
2059
|
+
return [4, collectBody(output.body, context)];
|
|
2060
|
+
case 1:
|
|
2061
|
+
_a.sent();
|
|
2062
|
+
return [2, Promise.resolve(contents)];
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
}); };
|
|
2066
|
+
var deserializeAws_restJson1UpdateDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2067
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2068
|
+
var _c;
|
|
2069
|
+
return __generator(this, function (_d) {
|
|
2070
|
+
switch (_d.label) {
|
|
2071
|
+
case 0:
|
|
2072
|
+
_a = [__assign({}, output)];
|
|
2073
|
+
_c = {};
|
|
2074
|
+
return [4, parseBody(output.body, context)];
|
|
2075
|
+
case 1:
|
|
2076
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2077
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
|
+
_b = errorCode;
|
|
2079
|
+
switch (_b) {
|
|
2080
|
+
case "InternalServerException": return [3, 2];
|
|
2081
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
2082
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2083
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
2084
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
2085
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
2086
|
+
case "ValidationException": return [3, 8];
|
|
2087
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
2088
|
+
}
|
|
2089
|
+
return [3, 10];
|
|
2090
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2091
|
+
case 3: throw _d.sent();
|
|
2092
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2093
|
+
case 5: throw _d.sent();
|
|
2094
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2095
|
+
case 7: throw _d.sent();
|
|
2096
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2097
|
+
case 9: throw _d.sent();
|
|
2098
|
+
case 10:
|
|
2099
|
+
parsedBody = parsedOutput.body;
|
|
2100
|
+
$metadata = deserializeMetadata(output);
|
|
2101
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2102
|
+
response = new __BaseException({
|
|
2103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2104
|
+
$fault: "client",
|
|
2105
|
+
$metadata: $metadata,
|
|
2106
|
+
});
|
|
2107
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2108
|
+
}
|
|
2109
|
+
});
|
|
2110
|
+
}); };
|
|
1741
2111
|
export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1742
2112
|
var contents;
|
|
1743
2113
|
return __generator(this, function (_a) {
|
|
@@ -1841,6 +2211,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1841
2211
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1842
2212
|
contents.Message = __expectString(data.Message);
|
|
1843
2213
|
}
|
|
2214
|
+
if (data.Resources !== undefined && data.Resources !== null) {
|
|
2215
|
+
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
2216
|
+
}
|
|
1844
2217
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1845
2218
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1846
2219
|
});
|
|
@@ -1862,6 +2235,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1862
2235
|
return __generator(this, function (_a) {
|
|
1863
2236
|
contents = {};
|
|
1864
2237
|
data = parsedOutput.body;
|
|
2238
|
+
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
2239
|
+
contents.ErrorCode = __expectString(data.ErrorCode);
|
|
2240
|
+
}
|
|
2241
|
+
if (data.ErrorCodeReason !== undefined && data.ErrorCodeReason !== null) {
|
|
2242
|
+
contents.ErrorCodeReason = __expectString(data.ErrorCodeReason);
|
|
2243
|
+
}
|
|
1865
2244
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1866
2245
|
contents.Message = __expectString(data.Message);
|
|
1867
2246
|
}
|
|
@@ -1872,6 +2251,16 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1872
2251
|
var serializeAws_restJson1Account = function (input, context) {
|
|
1873
2252
|
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress }));
|
|
1874
2253
|
};
|
|
2254
|
+
var serializeAws_restJson1AccountIdExtendedList = function (input, context) {
|
|
2255
|
+
return input
|
|
2256
|
+
.filter(function (e) { return e != null; })
|
|
2257
|
+
.map(function (entry) {
|
|
2258
|
+
if (entry === null) {
|
|
2259
|
+
return null;
|
|
2260
|
+
}
|
|
2261
|
+
return entry;
|
|
2262
|
+
});
|
|
2263
|
+
};
|
|
1875
2264
|
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
1876
2265
|
return input
|
|
1877
2266
|
.filter(function (e) { return e != null; })
|
|
@@ -1892,6 +2281,26 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
1892
2281
|
return serializeAws_restJson1Account(entry, context);
|
|
1893
2282
|
});
|
|
1894
2283
|
};
|
|
2284
|
+
var serializeAws_restJson1DatasourcePackageList = function (input, context) {
|
|
2285
|
+
return input
|
|
2286
|
+
.filter(function (e) { return e != null; })
|
|
2287
|
+
.map(function (entry) {
|
|
2288
|
+
if (entry === null) {
|
|
2289
|
+
return null;
|
|
2290
|
+
}
|
|
2291
|
+
return entry;
|
|
2292
|
+
});
|
|
2293
|
+
};
|
|
2294
|
+
var serializeAws_restJson1GraphArnList = function (input, context) {
|
|
2295
|
+
return input
|
|
2296
|
+
.filter(function (e) { return e != null; })
|
|
2297
|
+
.map(function (entry) {
|
|
2298
|
+
if (entry === null) {
|
|
2299
|
+
return null;
|
|
2300
|
+
}
|
|
2301
|
+
return entry;
|
|
2302
|
+
});
|
|
2303
|
+
};
|
|
1895
2304
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1896
2305
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1897
2306
|
var _b;
|
|
@@ -1931,6 +2340,52 @@ var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
|
1931
2340
|
});
|
|
1932
2341
|
return retVal;
|
|
1933
2342
|
};
|
|
2343
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetail = function (output, context) {
|
|
2344
|
+
return {
|
|
2345
|
+
DatasourcePackageIngestState: __expectString(output.DatasourcePackageIngestState),
|
|
2346
|
+
LastIngestStateChange: output.LastIngestStateChange != null
|
|
2347
|
+
? deserializeAws_restJson1LastIngestStateChangeDates(output.LastIngestStateChange, context)
|
|
2348
|
+
: undefined,
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2351
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetails = function (output, context) {
|
|
2352
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2353
|
+
var _b;
|
|
2354
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2355
|
+
if (value === null) {
|
|
2356
|
+
return acc;
|
|
2357
|
+
}
|
|
2358
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageIngestDetail(value, context), _b));
|
|
2359
|
+
}, {});
|
|
2360
|
+
};
|
|
2361
|
+
var deserializeAws_restJson1DatasourcePackageIngestHistory = function (output, context) {
|
|
2362
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2363
|
+
var _b;
|
|
2364
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2365
|
+
if (value === null) {
|
|
2366
|
+
return acc;
|
|
2367
|
+
}
|
|
2368
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1LastIngestStateChangeDates(value, context), _b));
|
|
2369
|
+
}, {});
|
|
2370
|
+
};
|
|
2371
|
+
var deserializeAws_restJson1DatasourcePackageIngestStates = function (output, context) {
|
|
2372
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2373
|
+
var _b;
|
|
2374
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2375
|
+
if (value === null) {
|
|
2376
|
+
return acc;
|
|
2377
|
+
}
|
|
2378
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2379
|
+
}, {});
|
|
2380
|
+
};
|
|
2381
|
+
var deserializeAws_restJson1DatasourcePackageUsageInfo = function (output, context) {
|
|
2382
|
+
return {
|
|
2383
|
+
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
2384
|
+
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
2385
|
+
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdateTime))
|
|
2386
|
+
: undefined,
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
1934
2389
|
var deserializeAws_restJson1Graph = function (output, context) {
|
|
1935
2390
|
return {
|
|
1936
2391
|
Arn: __expectString(output.Arn),
|
|
@@ -1948,10 +2403,23 @@ var deserializeAws_restJson1GraphList = function (output, context) {
|
|
|
1948
2403
|
});
|
|
1949
2404
|
return retVal;
|
|
1950
2405
|
};
|
|
2406
|
+
var deserializeAws_restJson1LastIngestStateChangeDates = function (output, context) {
|
|
2407
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2408
|
+
var _b;
|
|
2409
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2410
|
+
if (value === null) {
|
|
2411
|
+
return acc;
|
|
2412
|
+
}
|
|
2413
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1TimestampForCollection(value, context), _b));
|
|
2414
|
+
}, {});
|
|
2415
|
+
};
|
|
1951
2416
|
var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
1952
2417
|
return {
|
|
1953
2418
|
AccountId: __expectString(output.AccountId),
|
|
1954
2419
|
AdministratorId: __expectString(output.AdministratorId),
|
|
2420
|
+
DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
|
|
2421
|
+
? deserializeAws_restJson1DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
|
|
2422
|
+
: undefined,
|
|
1955
2423
|
DisabledReason: __expectString(output.DisabledReason),
|
|
1956
2424
|
EmailAddress: __expectString(output.EmailAddress),
|
|
1957
2425
|
GraphArn: __expectString(output.GraphArn),
|
|
@@ -1964,6 +2432,9 @@ var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
|
1964
2432
|
: undefined,
|
|
1965
2433
|
Status: __expectString(output.Status),
|
|
1966
2434
|
UpdatedTime: output.UpdatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime)) : undefined,
|
|
2435
|
+
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
2436
|
+
? deserializeAws_restJson1VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
2437
|
+
: undefined,
|
|
1967
2438
|
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1968
2439
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1969
2440
|
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdatedTime))
|
|
@@ -1981,6 +2452,37 @@ var deserializeAws_restJson1MemberDetailList = function (output, context) {
|
|
|
1981
2452
|
});
|
|
1982
2453
|
return retVal;
|
|
1983
2454
|
};
|
|
2455
|
+
var deserializeAws_restJson1MembershipDatasources = function (output, context) {
|
|
2456
|
+
return {
|
|
2457
|
+
AccountId: __expectString(output.AccountId),
|
|
2458
|
+
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
2459
|
+
? deserializeAws_restJson1DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
|
|
2460
|
+
: undefined,
|
|
2461
|
+
GraphArn: __expectString(output.GraphArn),
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
var deserializeAws_restJson1MembershipDatasourcesList = function (output, context) {
|
|
2465
|
+
var retVal = (output || [])
|
|
2466
|
+
.filter(function (e) { return e != null; })
|
|
2467
|
+
.map(function (entry) {
|
|
2468
|
+
if (entry === null) {
|
|
2469
|
+
return null;
|
|
2470
|
+
}
|
|
2471
|
+
return deserializeAws_restJson1MembershipDatasources(entry, context);
|
|
2472
|
+
});
|
|
2473
|
+
return retVal;
|
|
2474
|
+
};
|
|
2475
|
+
var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
2476
|
+
var retVal = (output || [])
|
|
2477
|
+
.filter(function (e) { return e != null; })
|
|
2478
|
+
.map(function (entry) {
|
|
2479
|
+
if (entry === null) {
|
|
2480
|
+
return null;
|
|
2481
|
+
}
|
|
2482
|
+
return __expectString(entry);
|
|
2483
|
+
});
|
|
2484
|
+
return retVal;
|
|
2485
|
+
};
|
|
1984
2486
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
1985
2487
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
1986
2488
|
var _b;
|
|
@@ -1991,6 +2493,11 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
1991
2493
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1992
2494
|
}, {});
|
|
1993
2495
|
};
|
|
2496
|
+
var deserializeAws_restJson1TimestampForCollection = function (output, context) {
|
|
2497
|
+
return {
|
|
2498
|
+
Timestamp: output.Timestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.Timestamp)) : undefined,
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
1994
2501
|
var deserializeAws_restJson1UnprocessedAccount = function (output, context) {
|
|
1995
2502
|
return {
|
|
1996
2503
|
AccountId: __expectString(output.AccountId),
|
|
@@ -2008,6 +2515,33 @@ var deserializeAws_restJson1UnprocessedAccountList = function (output, context)
|
|
|
2008
2515
|
});
|
|
2009
2516
|
return retVal;
|
|
2010
2517
|
};
|
|
2518
|
+
var deserializeAws_restJson1UnprocessedGraph = function (output, context) {
|
|
2519
|
+
return {
|
|
2520
|
+
GraphArn: __expectString(output.GraphArn),
|
|
2521
|
+
Reason: __expectString(output.Reason),
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
var deserializeAws_restJson1UnprocessedGraphList = function (output, context) {
|
|
2525
|
+
var retVal = (output || [])
|
|
2526
|
+
.filter(function (e) { return e != null; })
|
|
2527
|
+
.map(function (entry) {
|
|
2528
|
+
if (entry === null) {
|
|
2529
|
+
return null;
|
|
2530
|
+
}
|
|
2531
|
+
return deserializeAws_restJson1UnprocessedGraph(entry, context);
|
|
2532
|
+
});
|
|
2533
|
+
return retVal;
|
|
2534
|
+
};
|
|
2535
|
+
var deserializeAws_restJson1VolumeUsageByDatasourcePackage = function (output, context) {
|
|
2536
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2537
|
+
var _b;
|
|
2538
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2539
|
+
if (value === null) {
|
|
2540
|
+
return acc;
|
|
2541
|
+
}
|
|
2542
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageUsageInfo(value, context), _b));
|
|
2543
|
+
}, {});
|
|
2544
|
+
};
|
|
2011
2545
|
var deserializeMetadata = function (output) {
|
|
2012
2546
|
var _a;
|
|
2013
2547
|
return ({
|