@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
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
5
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AcceptInvitationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -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) {
|
|
@@ -340,7 +414,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
340
414
|
});
|
|
341
415
|
}); };
|
|
342
416
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
417
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
344
418
|
return __generator(this, function (_c) {
|
|
345
419
|
switch (_c.label) {
|
|
346
420
|
case 0: return [4, context.endpoint()];
|
|
@@ -348,16 +422,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
348
422
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
349
423
|
headers = {};
|
|
350
424
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
351
|
-
|
|
352
|
-
labelValue = input.ResourceArn;
|
|
353
|
-
if (labelValue.length <= 0) {
|
|
354
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
355
|
-
}
|
|
356
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
360
|
-
}
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
361
426
|
return [2, new __HttpRequest({
|
|
362
427
|
protocol: protocol,
|
|
363
428
|
hostname: hostname,
|
|
@@ -419,7 +484,7 @@ export var serializeAws_restJson1StartMonitoringMemberCommand = function (input,
|
|
|
419
484
|
});
|
|
420
485
|
}); };
|
|
421
486
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
422
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
423
488
|
return __generator(this, function (_c) {
|
|
424
489
|
switch (_c.label) {
|
|
425
490
|
case 0: return [4, context.endpoint()];
|
|
@@ -429,16 +494,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
429
494
|
"content-type": "application/json",
|
|
430
495
|
};
|
|
431
496
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
432
|
-
|
|
433
|
-
labelValue = input.ResourceArn;
|
|
434
|
-
if (labelValue.length <= 0) {
|
|
435
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
436
|
-
}
|
|
437
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
441
|
-
}
|
|
497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
442
498
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
443
499
|
return [2, new __HttpRequest({
|
|
444
500
|
protocol: protocol,
|
|
@@ -453,7 +509,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
453
509
|
});
|
|
454
510
|
}); };
|
|
455
511
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
456
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
512
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
457
513
|
return __generator(this, function (_c) {
|
|
458
514
|
switch (_c.label) {
|
|
459
515
|
case 0: return [4, context.endpoint()];
|
|
@@ -461,17 +517,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
461
517
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
462
518
|
headers = {};
|
|
463
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
473
|
-
}
|
|
474
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
520
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
521
|
+
query = map({
|
|
522
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
523
|
+
});
|
|
475
524
|
return [2, new __HttpRequest({
|
|
476
525
|
protocol: protocol,
|
|
477
526
|
hostname: hostname,
|
|
@@ -485,6 +534,32 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
485
534
|
}
|
|
486
535
|
});
|
|
487
536
|
}); };
|
|
537
|
+
export var serializeAws_restJson1UpdateDatasourcePackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
539
|
+
return __generator(this, function (_c) {
|
|
540
|
+
switch (_c.label) {
|
|
541
|
+
case 0: return [4, context.endpoint()];
|
|
542
|
+
case 1:
|
|
543
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
544
|
+
headers = {
|
|
545
|
+
"content-type": "application/json",
|
|
546
|
+
};
|
|
547
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/datasources/update";
|
|
548
|
+
body = JSON.stringify(__assign(__assign({}, (input.DatasourcePackages != null && {
|
|
549
|
+
DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
|
|
550
|
+
})), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
551
|
+
return [2, new __HttpRequest({
|
|
552
|
+
protocol: protocol,
|
|
553
|
+
hostname: hostname,
|
|
554
|
+
port: port,
|
|
555
|
+
method: "POST",
|
|
556
|
+
headers: headers,
|
|
557
|
+
path: resolvedPath,
|
|
558
|
+
body: body,
|
|
559
|
+
})];
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}); };
|
|
488
563
|
export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
564
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
490
565
|
return __generator(this, function (_c) {
|
|
@@ -517,18 +592,18 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
517
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
593
|
return [2, deserializeAws_restJson1AcceptInvitationCommandError(output, context)];
|
|
519
594
|
}
|
|
520
|
-
contents = {
|
|
595
|
+
contents = map({
|
|
521
596
|
$metadata: deserializeMetadata(output),
|
|
522
|
-
};
|
|
597
|
+
});
|
|
523
598
|
return [4, collectBody(output.body, context)];
|
|
524
599
|
case 1:
|
|
525
600
|
_a.sent();
|
|
526
|
-
return [2,
|
|
601
|
+
return [2, contents];
|
|
527
602
|
}
|
|
528
603
|
});
|
|
529
604
|
}); };
|
|
530
605
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
531
|
-
var parsedOutput, _a,
|
|
606
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
532
607
|
var _c;
|
|
533
608
|
return __generator(this, function (_d) {
|
|
534
609
|
switch (_d.label) {
|
|
@@ -561,14 +636,148 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
561
636
|
case 9: throw _d.sent();
|
|
562
637
|
case 10:
|
|
563
638
|
parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
639
|
+
throwDefaultError({
|
|
640
|
+
output: output,
|
|
641
|
+
parsedBody: parsedBody,
|
|
642
|
+
exceptionCtor: __BaseException,
|
|
643
|
+
errorCode: errorCode,
|
|
644
|
+
});
|
|
645
|
+
_d.label = 11;
|
|
646
|
+
case 11: return [2];
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}); };
|
|
650
|
+
export var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
651
|
+
var contents, data, _a, _b;
|
|
652
|
+
return __generator(this, function (_c) {
|
|
653
|
+
switch (_c.label) {
|
|
654
|
+
case 0:
|
|
655
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
+
return [2, deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context)];
|
|
657
|
+
}
|
|
658
|
+
contents = map({
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
570
660
|
});
|
|
571
|
-
|
|
661
|
+
_a = __expectNonNull;
|
|
662
|
+
_b = __expectObject;
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
|
+
case 1:
|
|
665
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
666
|
+
if (data.MemberDatasources != null) {
|
|
667
|
+
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
668
|
+
}
|
|
669
|
+
if (data.UnprocessedAccounts != null) {
|
|
670
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
671
|
+
}
|
|
672
|
+
return [2, contents];
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
}); };
|
|
676
|
+
var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
677
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
678
|
+
var _c;
|
|
679
|
+
return __generator(this, function (_d) {
|
|
680
|
+
switch (_d.label) {
|
|
681
|
+
case 0:
|
|
682
|
+
_a = [__assign({}, output)];
|
|
683
|
+
_c = {};
|
|
684
|
+
return [4, parseBody(output.body, context)];
|
|
685
|
+
case 1:
|
|
686
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
687
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
+
_b = errorCode;
|
|
689
|
+
switch (_b) {
|
|
690
|
+
case "InternalServerException": return [3, 2];
|
|
691
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
692
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
693
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
694
|
+
case "ValidationException": return [3, 6];
|
|
695
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
696
|
+
}
|
|
697
|
+
return [3, 8];
|
|
698
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
699
|
+
case 3: throw _d.sent();
|
|
700
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
701
|
+
case 5: throw _d.sent();
|
|
702
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
703
|
+
case 7: throw _d.sent();
|
|
704
|
+
case 8:
|
|
705
|
+
parsedBody = parsedOutput.body;
|
|
706
|
+
throwDefaultError({
|
|
707
|
+
output: output,
|
|
708
|
+
parsedBody: parsedBody,
|
|
709
|
+
exceptionCtor: __BaseException,
|
|
710
|
+
errorCode: errorCode,
|
|
711
|
+
});
|
|
712
|
+
_d.label = 9;
|
|
713
|
+
case 9: return [2];
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
}); };
|
|
717
|
+
export var deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
718
|
+
var contents, data, _a, _b;
|
|
719
|
+
return __generator(this, function (_c) {
|
|
720
|
+
switch (_c.label) {
|
|
721
|
+
case 0:
|
|
722
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
+
return [2, deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context)];
|
|
724
|
+
}
|
|
725
|
+
contents = map({
|
|
726
|
+
$metadata: deserializeMetadata(output),
|
|
727
|
+
});
|
|
728
|
+
_a = __expectNonNull;
|
|
729
|
+
_b = __expectObject;
|
|
730
|
+
return [4, parseBody(output.body, context)];
|
|
731
|
+
case 1:
|
|
732
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
733
|
+
if (data.MembershipDatasources != null) {
|
|
734
|
+
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
735
|
+
}
|
|
736
|
+
if (data.UnprocessedGraphs != null) {
|
|
737
|
+
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
738
|
+
}
|
|
739
|
+
return [2, contents];
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
}); };
|
|
743
|
+
var deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
745
|
+
var _c;
|
|
746
|
+
return __generator(this, function (_d) {
|
|
747
|
+
switch (_d.label) {
|
|
748
|
+
case 0:
|
|
749
|
+
_a = [__assign({}, output)];
|
|
750
|
+
_c = {};
|
|
751
|
+
return [4, parseBody(output.body, context)];
|
|
752
|
+
case 1:
|
|
753
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
754
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
_b = errorCode;
|
|
756
|
+
switch (_b) {
|
|
757
|
+
case "InternalServerException": return [3, 2];
|
|
758
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
759
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
760
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
761
|
+
case "ValidationException": return [3, 6];
|
|
762
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
763
|
+
}
|
|
764
|
+
return [3, 8];
|
|
765
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
766
|
+
case 3: throw _d.sent();
|
|
767
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
768
|
+
case 5: throw _d.sent();
|
|
769
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
770
|
+
case 7: throw _d.sent();
|
|
771
|
+
case 8:
|
|
772
|
+
parsedBody = parsedOutput.body;
|
|
773
|
+
throwDefaultError({
|
|
774
|
+
output: output,
|
|
775
|
+
parsedBody: parsedBody,
|
|
776
|
+
exceptionCtor: __BaseException,
|
|
777
|
+
errorCode: errorCode,
|
|
778
|
+
});
|
|
779
|
+
_d.label = 9;
|
|
780
|
+
case 9: return [2];
|
|
572
781
|
}
|
|
573
782
|
});
|
|
574
783
|
}); };
|
|
@@ -580,24 +789,23 @@ export var deserializeAws_restJson1CreateGraphCommand = function (output, contex
|
|
|
580
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
790
|
return [2, deserializeAws_restJson1CreateGraphCommandError(output, context)];
|
|
582
791
|
}
|
|
583
|
-
contents = {
|
|
792
|
+
contents = map({
|
|
584
793
|
$metadata: deserializeMetadata(output),
|
|
585
|
-
|
|
586
|
-
};
|
|
794
|
+
});
|
|
587
795
|
_a = __expectNonNull;
|
|
588
796
|
_b = __expectObject;
|
|
589
797
|
return [4, parseBody(output.body, context)];
|
|
590
798
|
case 1:
|
|
591
799
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
592
|
-
if (data.GraphArn
|
|
800
|
+
if (data.GraphArn != null) {
|
|
593
801
|
contents.GraphArn = __expectString(data.GraphArn);
|
|
594
802
|
}
|
|
595
|
-
return [2,
|
|
803
|
+
return [2, contents];
|
|
596
804
|
}
|
|
597
805
|
});
|
|
598
806
|
}); };
|
|
599
807
|
var deserializeAws_restJson1CreateGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
600
|
-
var parsedOutput, _a,
|
|
808
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
601
809
|
var _c;
|
|
602
810
|
return __generator(this, function (_d) {
|
|
603
811
|
switch (_d.label) {
|
|
@@ -626,14 +834,14 @@ var deserializeAws_restJson1CreateGraphCommandError = function (output, context)
|
|
|
626
834
|
case 7: throw _d.sent();
|
|
627
835
|
case 8:
|
|
628
836
|
parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
$metadata: $metadata,
|
|
837
|
+
throwDefaultError({
|
|
838
|
+
output: output,
|
|
839
|
+
parsedBody: parsedBody,
|
|
840
|
+
exceptionCtor: __BaseException,
|
|
841
|
+
errorCode: errorCode,
|
|
635
842
|
});
|
|
636
|
-
|
|
843
|
+
_d.label = 9;
|
|
844
|
+
case 9: return [2];
|
|
637
845
|
}
|
|
638
846
|
});
|
|
639
847
|
}); };
|
|
@@ -645,28 +853,26 @@ export var deserializeAws_restJson1CreateMembersCommand = function (output, cont
|
|
|
645
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
854
|
return [2, deserializeAws_restJson1CreateMembersCommandError(output, context)];
|
|
647
855
|
}
|
|
648
|
-
contents = {
|
|
856
|
+
contents = map({
|
|
649
857
|
$metadata: deserializeMetadata(output),
|
|
650
|
-
|
|
651
|
-
UnprocessedAccounts: undefined,
|
|
652
|
-
};
|
|
858
|
+
});
|
|
653
859
|
_a = __expectNonNull;
|
|
654
860
|
_b = __expectObject;
|
|
655
861
|
return [4, parseBody(output.body, context)];
|
|
656
862
|
case 1:
|
|
657
863
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
658
|
-
if (data.Members
|
|
864
|
+
if (data.Members != null) {
|
|
659
865
|
contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
|
|
660
866
|
}
|
|
661
|
-
if (data.UnprocessedAccounts
|
|
867
|
+
if (data.UnprocessedAccounts != null) {
|
|
662
868
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
663
869
|
}
|
|
664
|
-
return [2,
|
|
870
|
+
return [2, contents];
|
|
665
871
|
}
|
|
666
872
|
});
|
|
667
873
|
}); };
|
|
668
874
|
var deserializeAws_restJson1CreateMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
-
var parsedOutput, _a,
|
|
875
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
670
876
|
var _c;
|
|
671
877
|
return __generator(this, function (_d) {
|
|
672
878
|
switch (_d.label) {
|
|
@@ -699,14 +905,14 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
699
905
|
case 9: throw _d.sent();
|
|
700
906
|
case 10:
|
|
701
907
|
parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata: $metadata,
|
|
908
|
+
throwDefaultError({
|
|
909
|
+
output: output,
|
|
910
|
+
parsedBody: parsedBody,
|
|
911
|
+
exceptionCtor: __BaseException,
|
|
912
|
+
errorCode: errorCode,
|
|
708
913
|
});
|
|
709
|
-
|
|
914
|
+
_d.label = 11;
|
|
915
|
+
case 11: return [2];
|
|
710
916
|
}
|
|
711
917
|
});
|
|
712
918
|
}); };
|
|
@@ -718,18 +924,18 @@ export var deserializeAws_restJson1DeleteGraphCommand = function (output, contex
|
|
|
718
924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
925
|
return [2, deserializeAws_restJson1DeleteGraphCommandError(output, context)];
|
|
720
926
|
}
|
|
721
|
-
contents = {
|
|
927
|
+
contents = map({
|
|
722
928
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
929
|
+
});
|
|
724
930
|
return [4, collectBody(output.body, context)];
|
|
725
931
|
case 1:
|
|
726
932
|
_a.sent();
|
|
727
|
-
return [2,
|
|
933
|
+
return [2, contents];
|
|
728
934
|
}
|
|
729
935
|
});
|
|
730
936
|
}); };
|
|
731
937
|
var deserializeAws_restJson1DeleteGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
732
|
-
var parsedOutput, _a,
|
|
938
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
733
939
|
var _c;
|
|
734
940
|
return __generator(this, function (_d) {
|
|
735
941
|
switch (_d.label) {
|
|
@@ -758,14 +964,14 @@ var deserializeAws_restJson1DeleteGraphCommandError = function (output, context)
|
|
|
758
964
|
case 7: throw _d.sent();
|
|
759
965
|
case 8:
|
|
760
966
|
parsedBody = parsedOutput.body;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
$metadata: $metadata,
|
|
967
|
+
throwDefaultError({
|
|
968
|
+
output: output,
|
|
969
|
+
parsedBody: parsedBody,
|
|
970
|
+
exceptionCtor: __BaseException,
|
|
971
|
+
errorCode: errorCode,
|
|
767
972
|
});
|
|
768
|
-
|
|
973
|
+
_d.label = 9;
|
|
974
|
+
case 9: return [2];
|
|
769
975
|
}
|
|
770
976
|
});
|
|
771
977
|
}); };
|
|
@@ -777,28 +983,26 @@ export var deserializeAws_restJson1DeleteMembersCommand = function (output, cont
|
|
|
777
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
984
|
return [2, deserializeAws_restJson1DeleteMembersCommandError(output, context)];
|
|
779
985
|
}
|
|
780
|
-
contents = {
|
|
986
|
+
contents = map({
|
|
781
987
|
$metadata: deserializeMetadata(output),
|
|
782
|
-
|
|
783
|
-
UnprocessedAccounts: undefined,
|
|
784
|
-
};
|
|
988
|
+
});
|
|
785
989
|
_a = __expectNonNull;
|
|
786
990
|
_b = __expectObject;
|
|
787
991
|
return [4, parseBody(output.body, context)];
|
|
788
992
|
case 1:
|
|
789
993
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
790
|
-
if (data.AccountIds
|
|
994
|
+
if (data.AccountIds != null) {
|
|
791
995
|
contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
|
|
792
996
|
}
|
|
793
|
-
if (data.UnprocessedAccounts
|
|
997
|
+
if (data.UnprocessedAccounts != null) {
|
|
794
998
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
795
999
|
}
|
|
796
|
-
return [2,
|
|
1000
|
+
return [2, contents];
|
|
797
1001
|
}
|
|
798
1002
|
});
|
|
799
1003
|
}); };
|
|
800
1004
|
var deserializeAws_restJson1DeleteMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
801
|
-
var parsedOutput, _a,
|
|
1005
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
802
1006
|
var _c;
|
|
803
1007
|
return __generator(this, function (_d) {
|
|
804
1008
|
switch (_d.label) {
|
|
@@ -831,14 +1035,14 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
831
1035
|
case 9: throw _d.sent();
|
|
832
1036
|
case 10:
|
|
833
1037
|
parsedBody = parsedOutput.body;
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
$metadata: $metadata,
|
|
1038
|
+
throwDefaultError({
|
|
1039
|
+
output: output,
|
|
1040
|
+
parsedBody: parsedBody,
|
|
1041
|
+
exceptionCtor: __BaseException,
|
|
1042
|
+
errorCode: errorCode,
|
|
840
1043
|
});
|
|
841
|
-
|
|
1044
|
+
_d.label = 11;
|
|
1045
|
+
case 11: return [2];
|
|
842
1046
|
}
|
|
843
1047
|
});
|
|
844
1048
|
}); };
|
|
@@ -850,24 +1054,23 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
850
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
1055
|
return [2, deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context)];
|
|
852
1056
|
}
|
|
853
|
-
contents = {
|
|
1057
|
+
contents = map({
|
|
854
1058
|
$metadata: deserializeMetadata(output),
|
|
855
|
-
|
|
856
|
-
};
|
|
1059
|
+
});
|
|
857
1060
|
_a = __expectNonNull;
|
|
858
1061
|
_b = __expectObject;
|
|
859
1062
|
return [4, parseBody(output.body, context)];
|
|
860
1063
|
case 1:
|
|
861
1064
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
862
|
-
if (data.AutoEnable
|
|
1065
|
+
if (data.AutoEnable != null) {
|
|
863
1066
|
contents.AutoEnable = __expectBoolean(data.AutoEnable);
|
|
864
1067
|
}
|
|
865
|
-
return [2,
|
|
1068
|
+
return [2, contents];
|
|
866
1069
|
}
|
|
867
1070
|
});
|
|
868
1071
|
}); };
|
|
869
1072
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
870
|
-
var parsedOutput, _a,
|
|
1073
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
871
1074
|
var _c;
|
|
872
1075
|
return __generator(this, function (_d) {
|
|
873
1076
|
switch (_d.label) {
|
|
@@ -896,14 +1099,14 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
896
1099
|
case 7: throw _d.sent();
|
|
897
1100
|
case 8:
|
|
898
1101
|
parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
$metadata: $metadata,
|
|
1102
|
+
throwDefaultError({
|
|
1103
|
+
output: output,
|
|
1104
|
+
parsedBody: parsedBody,
|
|
1105
|
+
exceptionCtor: __BaseException,
|
|
1106
|
+
errorCode: errorCode,
|
|
905
1107
|
});
|
|
906
|
-
|
|
1108
|
+
_d.label = 9;
|
|
1109
|
+
case 9: return [2];
|
|
907
1110
|
}
|
|
908
1111
|
});
|
|
909
1112
|
}); };
|
|
@@ -915,18 +1118,18 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
915
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
1119
|
return [2, deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context)];
|
|
917
1120
|
}
|
|
918
|
-
contents = {
|
|
1121
|
+
contents = map({
|
|
919
1122
|
$metadata: deserializeMetadata(output),
|
|
920
|
-
};
|
|
1123
|
+
});
|
|
921
1124
|
return [4, collectBody(output.body, context)];
|
|
922
1125
|
case 1:
|
|
923
1126
|
_a.sent();
|
|
924
|
-
return [2,
|
|
1127
|
+
return [2, contents];
|
|
925
1128
|
}
|
|
926
1129
|
});
|
|
927
1130
|
}); };
|
|
928
1131
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
-
var parsedOutput, _a,
|
|
1132
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
930
1133
|
var _c;
|
|
931
1134
|
return __generator(this, function (_d) {
|
|
932
1135
|
switch (_d.label) {
|
|
@@ -955,14 +1158,14 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
955
1158
|
case 7: throw _d.sent();
|
|
956
1159
|
case 8:
|
|
957
1160
|
parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata: $metadata,
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output: output,
|
|
1163
|
+
parsedBody: parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode: errorCode,
|
|
964
1166
|
});
|
|
965
|
-
|
|
1167
|
+
_d.label = 9;
|
|
1168
|
+
case 9: return [2];
|
|
966
1169
|
}
|
|
967
1170
|
});
|
|
968
1171
|
}); };
|
|
@@ -974,18 +1177,18 @@ export var deserializeAws_restJson1DisassociateMembershipCommand = function (out
|
|
|
974
1177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
975
1178
|
return [2, deserializeAws_restJson1DisassociateMembershipCommandError(output, context)];
|
|
976
1179
|
}
|
|
977
|
-
contents = {
|
|
1180
|
+
contents = map({
|
|
978
1181
|
$metadata: deserializeMetadata(output),
|
|
979
|
-
};
|
|
1182
|
+
});
|
|
980
1183
|
return [4, collectBody(output.body, context)];
|
|
981
1184
|
case 1:
|
|
982
1185
|
_a.sent();
|
|
983
|
-
return [2,
|
|
1186
|
+
return [2, contents];
|
|
984
1187
|
}
|
|
985
1188
|
});
|
|
986
1189
|
}); };
|
|
987
1190
|
var deserializeAws_restJson1DisassociateMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
988
|
-
var parsedOutput, _a,
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
989
1192
|
var _c;
|
|
990
1193
|
return __generator(this, function (_d) {
|
|
991
1194
|
switch (_d.label) {
|
|
@@ -1018,14 +1221,14 @@ var deserializeAws_restJson1DisassociateMembershipCommandError = function (outpu
|
|
|
1018
1221
|
case 9: throw _d.sent();
|
|
1019
1222
|
case 10:
|
|
1020
1223
|
parsedBody = parsedOutput.body;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
$metadata: $metadata,
|
|
1224
|
+
throwDefaultError({
|
|
1225
|
+
output: output,
|
|
1226
|
+
parsedBody: parsedBody,
|
|
1227
|
+
exceptionCtor: __BaseException,
|
|
1228
|
+
errorCode: errorCode,
|
|
1027
1229
|
});
|
|
1028
|
-
|
|
1230
|
+
_d.label = 11;
|
|
1231
|
+
case 11: return [2];
|
|
1029
1232
|
}
|
|
1030
1233
|
});
|
|
1031
1234
|
}); };
|
|
@@ -1037,18 +1240,18 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
1037
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
1241
|
return [2, deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context)];
|
|
1039
1242
|
}
|
|
1040
|
-
contents = {
|
|
1243
|
+
contents = map({
|
|
1041
1244
|
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1245
|
+
});
|
|
1043
1246
|
return [4, collectBody(output.body, context)];
|
|
1044
1247
|
case 1:
|
|
1045
1248
|
_a.sent();
|
|
1046
|
-
return [2,
|
|
1249
|
+
return [2, contents];
|
|
1047
1250
|
}
|
|
1048
1251
|
});
|
|
1049
1252
|
}); };
|
|
1050
1253
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1051
|
-
var parsedOutput, _a,
|
|
1254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1052
1255
|
var _c;
|
|
1053
1256
|
return __generator(this, function (_d) {
|
|
1054
1257
|
switch (_d.label) {
|
|
@@ -1077,14 +1280,14 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
1077
1280
|
case 7: throw _d.sent();
|
|
1078
1281
|
case 8:
|
|
1079
1282
|
parsedBody = parsedOutput.body;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
$metadata: $metadata,
|
|
1283
|
+
throwDefaultError({
|
|
1284
|
+
output: output,
|
|
1285
|
+
parsedBody: parsedBody,
|
|
1286
|
+
exceptionCtor: __BaseException,
|
|
1287
|
+
errorCode: errorCode,
|
|
1086
1288
|
});
|
|
1087
|
-
|
|
1289
|
+
_d.label = 9;
|
|
1290
|
+
case 9: return [2];
|
|
1088
1291
|
}
|
|
1089
1292
|
});
|
|
1090
1293
|
}); };
|
|
@@ -1096,28 +1299,26 @@ export var deserializeAws_restJson1GetMembersCommand = function (output, context
|
|
|
1096
1299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
1300
|
return [2, deserializeAws_restJson1GetMembersCommandError(output, context)];
|
|
1098
1301
|
}
|
|
1099
|
-
contents = {
|
|
1302
|
+
contents = map({
|
|
1100
1303
|
$metadata: deserializeMetadata(output),
|
|
1101
|
-
|
|
1102
|
-
UnprocessedAccounts: undefined,
|
|
1103
|
-
};
|
|
1304
|
+
});
|
|
1104
1305
|
_a = __expectNonNull;
|
|
1105
1306
|
_b = __expectObject;
|
|
1106
1307
|
return [4, parseBody(output.body, context)];
|
|
1107
1308
|
case 1:
|
|
1108
1309
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1109
|
-
if (data.MemberDetails
|
|
1310
|
+
if (data.MemberDetails != null) {
|
|
1110
1311
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1111
1312
|
}
|
|
1112
|
-
if (data.UnprocessedAccounts
|
|
1313
|
+
if (data.UnprocessedAccounts != null) {
|
|
1113
1314
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
1114
1315
|
}
|
|
1115
|
-
return [2,
|
|
1316
|
+
return [2, contents];
|
|
1116
1317
|
}
|
|
1117
1318
|
});
|
|
1118
1319
|
}); };
|
|
1119
1320
|
var deserializeAws_restJson1GetMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1120
|
-
var parsedOutput, _a,
|
|
1321
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1121
1322
|
var _c;
|
|
1122
1323
|
return __generator(this, function (_d) {
|
|
1123
1324
|
switch (_d.label) {
|
|
@@ -1146,14 +1347,81 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1146
1347
|
case 7: throw _d.sent();
|
|
1147
1348
|
case 8:
|
|
1148
1349
|
parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
$metadata: $metadata,
|
|
1350
|
+
throwDefaultError({
|
|
1351
|
+
output: output,
|
|
1352
|
+
parsedBody: parsedBody,
|
|
1353
|
+
exceptionCtor: __BaseException,
|
|
1354
|
+
errorCode: errorCode,
|
|
1155
1355
|
});
|
|
1156
|
-
|
|
1356
|
+
_d.label = 9;
|
|
1357
|
+
case 9: return [2];
|
|
1358
|
+
}
|
|
1359
|
+
});
|
|
1360
|
+
}); };
|
|
1361
|
+
export var deserializeAws_restJson1ListDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1362
|
+
var contents, data, _a, _b;
|
|
1363
|
+
return __generator(this, function (_c) {
|
|
1364
|
+
switch (_c.label) {
|
|
1365
|
+
case 0:
|
|
1366
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
+
return [2, deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context)];
|
|
1368
|
+
}
|
|
1369
|
+
contents = map({
|
|
1370
|
+
$metadata: deserializeMetadata(output),
|
|
1371
|
+
});
|
|
1372
|
+
_a = __expectNonNull;
|
|
1373
|
+
_b = __expectObject;
|
|
1374
|
+
return [4, parseBody(output.body, context)];
|
|
1375
|
+
case 1:
|
|
1376
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1377
|
+
if (data.DatasourcePackages != null) {
|
|
1378
|
+
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1379
|
+
}
|
|
1380
|
+
if (data.NextToken != null) {
|
|
1381
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1382
|
+
}
|
|
1383
|
+
return [2, contents];
|
|
1384
|
+
}
|
|
1385
|
+
});
|
|
1386
|
+
}); };
|
|
1387
|
+
var deserializeAws_restJson1ListDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1389
|
+
var _c;
|
|
1390
|
+
return __generator(this, function (_d) {
|
|
1391
|
+
switch (_d.label) {
|
|
1392
|
+
case 0:
|
|
1393
|
+
_a = [__assign({}, output)];
|
|
1394
|
+
_c = {};
|
|
1395
|
+
return [4, parseBody(output.body, context)];
|
|
1396
|
+
case 1:
|
|
1397
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1398
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
_b = errorCode;
|
|
1400
|
+
switch (_b) {
|
|
1401
|
+
case "InternalServerException": return [3, 2];
|
|
1402
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
1403
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1404
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
1405
|
+
case "ValidationException": return [3, 6];
|
|
1406
|
+
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1407
|
+
}
|
|
1408
|
+
return [3, 8];
|
|
1409
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1410
|
+
case 3: throw _d.sent();
|
|
1411
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1412
|
+
case 5: throw _d.sent();
|
|
1413
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1414
|
+
case 7: throw _d.sent();
|
|
1415
|
+
case 8:
|
|
1416
|
+
parsedBody = parsedOutput.body;
|
|
1417
|
+
throwDefaultError({
|
|
1418
|
+
output: output,
|
|
1419
|
+
parsedBody: parsedBody,
|
|
1420
|
+
exceptionCtor: __BaseException,
|
|
1421
|
+
errorCode: errorCode,
|
|
1422
|
+
});
|
|
1423
|
+
_d.label = 9;
|
|
1424
|
+
case 9: return [2];
|
|
1157
1425
|
}
|
|
1158
1426
|
});
|
|
1159
1427
|
}); };
|
|
@@ -1165,28 +1433,26 @@ export var deserializeAws_restJson1ListGraphsCommand = function (output, context
|
|
|
1165
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
1434
|
return [2, deserializeAws_restJson1ListGraphsCommandError(output, context)];
|
|
1167
1435
|
}
|
|
1168
|
-
contents = {
|
|
1436
|
+
contents = map({
|
|
1169
1437
|
$metadata: deserializeMetadata(output),
|
|
1170
|
-
|
|
1171
|
-
NextToken: undefined,
|
|
1172
|
-
};
|
|
1438
|
+
});
|
|
1173
1439
|
_a = __expectNonNull;
|
|
1174
1440
|
_b = __expectObject;
|
|
1175
1441
|
return [4, parseBody(output.body, context)];
|
|
1176
1442
|
case 1:
|
|
1177
1443
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1178
|
-
if (data.GraphList
|
|
1444
|
+
if (data.GraphList != null) {
|
|
1179
1445
|
contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
|
|
1180
1446
|
}
|
|
1181
|
-
if (data.NextToken
|
|
1447
|
+
if (data.NextToken != null) {
|
|
1182
1448
|
contents.NextToken = __expectString(data.NextToken);
|
|
1183
1449
|
}
|
|
1184
|
-
return [2,
|
|
1450
|
+
return [2, contents];
|
|
1185
1451
|
}
|
|
1186
1452
|
});
|
|
1187
1453
|
}); };
|
|
1188
1454
|
var deserializeAws_restJson1ListGraphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1189
|
-
var parsedOutput, _a,
|
|
1455
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1190
1456
|
var _c;
|
|
1191
1457
|
return __generator(this, function (_d) {
|
|
1192
1458
|
switch (_d.label) {
|
|
@@ -1211,14 +1477,14 @@ var deserializeAws_restJson1ListGraphsCommandError = function (output, context)
|
|
|
1211
1477
|
case 5: throw _d.sent();
|
|
1212
1478
|
case 6:
|
|
1213
1479
|
parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
$metadata: $metadata,
|
|
1480
|
+
throwDefaultError({
|
|
1481
|
+
output: output,
|
|
1482
|
+
parsedBody: parsedBody,
|
|
1483
|
+
exceptionCtor: __BaseException,
|
|
1484
|
+
errorCode: errorCode,
|
|
1220
1485
|
});
|
|
1221
|
-
|
|
1486
|
+
_d.label = 7;
|
|
1487
|
+
case 7: return [2];
|
|
1222
1488
|
}
|
|
1223
1489
|
});
|
|
1224
1490
|
}); };
|
|
@@ -1230,28 +1496,26 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1230
1496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
1497
|
return [2, deserializeAws_restJson1ListInvitationsCommandError(output, context)];
|
|
1232
1498
|
}
|
|
1233
|
-
contents = {
|
|
1499
|
+
contents = map({
|
|
1234
1500
|
$metadata: deserializeMetadata(output),
|
|
1235
|
-
|
|
1236
|
-
NextToken: undefined,
|
|
1237
|
-
};
|
|
1501
|
+
});
|
|
1238
1502
|
_a = __expectNonNull;
|
|
1239
1503
|
_b = __expectObject;
|
|
1240
1504
|
return [4, parseBody(output.body, context)];
|
|
1241
1505
|
case 1:
|
|
1242
1506
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1243
|
-
if (data.Invitations
|
|
1507
|
+
if (data.Invitations != null) {
|
|
1244
1508
|
contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
|
|
1245
1509
|
}
|
|
1246
|
-
if (data.NextToken
|
|
1510
|
+
if (data.NextToken != null) {
|
|
1247
1511
|
contents.NextToken = __expectString(data.NextToken);
|
|
1248
1512
|
}
|
|
1249
|
-
return [2,
|
|
1513
|
+
return [2, contents];
|
|
1250
1514
|
}
|
|
1251
1515
|
});
|
|
1252
1516
|
}); };
|
|
1253
1517
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1254
|
-
var parsedOutput, _a,
|
|
1518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1255
1519
|
var _c;
|
|
1256
1520
|
return __generator(this, function (_d) {
|
|
1257
1521
|
switch (_d.label) {
|
|
@@ -1276,14 +1540,14 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1276
1540
|
case 5: throw _d.sent();
|
|
1277
1541
|
case 6:
|
|
1278
1542
|
parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata: $metadata,
|
|
1543
|
+
throwDefaultError({
|
|
1544
|
+
output: output,
|
|
1545
|
+
parsedBody: parsedBody,
|
|
1546
|
+
exceptionCtor: __BaseException,
|
|
1547
|
+
errorCode: errorCode,
|
|
1285
1548
|
});
|
|
1286
|
-
|
|
1549
|
+
_d.label = 7;
|
|
1550
|
+
case 7: return [2];
|
|
1287
1551
|
}
|
|
1288
1552
|
});
|
|
1289
1553
|
}); };
|
|
@@ -1295,28 +1559,26 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
1295
1559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
1560
|
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
1297
1561
|
}
|
|
1298
|
-
contents = {
|
|
1562
|
+
contents = map({
|
|
1299
1563
|
$metadata: deserializeMetadata(output),
|
|
1300
|
-
|
|
1301
|
-
NextToken: undefined,
|
|
1302
|
-
};
|
|
1564
|
+
});
|
|
1303
1565
|
_a = __expectNonNull;
|
|
1304
1566
|
_b = __expectObject;
|
|
1305
1567
|
return [4, parseBody(output.body, context)];
|
|
1306
1568
|
case 1:
|
|
1307
1569
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1308
|
-
if (data.MemberDetails
|
|
1570
|
+
if (data.MemberDetails != null) {
|
|
1309
1571
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1310
1572
|
}
|
|
1311
|
-
if (data.NextToken
|
|
1573
|
+
if (data.NextToken != null) {
|
|
1312
1574
|
contents.NextToken = __expectString(data.NextToken);
|
|
1313
1575
|
}
|
|
1314
|
-
return [2,
|
|
1576
|
+
return [2, contents];
|
|
1315
1577
|
}
|
|
1316
1578
|
});
|
|
1317
1579
|
}); };
|
|
1318
1580
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1319
|
-
var parsedOutput, _a,
|
|
1581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1320
1582
|
var _c;
|
|
1321
1583
|
return __generator(this, function (_d) {
|
|
1322
1584
|
switch (_d.label) {
|
|
@@ -1345,14 +1607,14 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1345
1607
|
case 7: throw _d.sent();
|
|
1346
1608
|
case 8:
|
|
1347
1609
|
parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata: $metadata,
|
|
1610
|
+
throwDefaultError({
|
|
1611
|
+
output: output,
|
|
1612
|
+
parsedBody: parsedBody,
|
|
1613
|
+
exceptionCtor: __BaseException,
|
|
1614
|
+
errorCode: errorCode,
|
|
1354
1615
|
});
|
|
1355
|
-
|
|
1616
|
+
_d.label = 9;
|
|
1617
|
+
case 9: return [2];
|
|
1356
1618
|
}
|
|
1357
1619
|
});
|
|
1358
1620
|
}); };
|
|
@@ -1364,28 +1626,26 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
1364
1626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
1627
|
return [2, deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context)];
|
|
1366
1628
|
}
|
|
1367
|
-
contents = {
|
|
1629
|
+
contents = map({
|
|
1368
1630
|
$metadata: deserializeMetadata(output),
|
|
1369
|
-
|
|
1370
|
-
NextToken: undefined,
|
|
1371
|
-
};
|
|
1631
|
+
});
|
|
1372
1632
|
_a = __expectNonNull;
|
|
1373
1633
|
_b = __expectObject;
|
|
1374
1634
|
return [4, parseBody(output.body, context)];
|
|
1375
1635
|
case 1:
|
|
1376
1636
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1377
|
-
if (data.Administrators
|
|
1637
|
+
if (data.Administrators != null) {
|
|
1378
1638
|
contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
|
|
1379
1639
|
}
|
|
1380
|
-
if (data.NextToken
|
|
1640
|
+
if (data.NextToken != null) {
|
|
1381
1641
|
contents.NextToken = __expectString(data.NextToken);
|
|
1382
1642
|
}
|
|
1383
|
-
return [2,
|
|
1643
|
+
return [2, contents];
|
|
1384
1644
|
}
|
|
1385
1645
|
});
|
|
1386
1646
|
}); };
|
|
1387
1647
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
-
var parsedOutput, _a,
|
|
1648
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1389
1649
|
var _c;
|
|
1390
1650
|
return __generator(this, function (_d) {
|
|
1391
1651
|
switch (_d.label) {
|
|
@@ -1414,14 +1674,14 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
1414
1674
|
case 7: throw _d.sent();
|
|
1415
1675
|
case 8:
|
|
1416
1676
|
parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata: $metadata,
|
|
1677
|
+
throwDefaultError({
|
|
1678
|
+
output: output,
|
|
1679
|
+
parsedBody: parsedBody,
|
|
1680
|
+
exceptionCtor: __BaseException,
|
|
1681
|
+
errorCode: errorCode,
|
|
1423
1682
|
});
|
|
1424
|
-
|
|
1683
|
+
_d.label = 9;
|
|
1684
|
+
case 9: return [2];
|
|
1425
1685
|
}
|
|
1426
1686
|
});
|
|
1427
1687
|
}); };
|
|
@@ -1433,24 +1693,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1433
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
1694
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1435
1695
|
}
|
|
1436
|
-
contents = {
|
|
1696
|
+
contents = map({
|
|
1437
1697
|
$metadata: deserializeMetadata(output),
|
|
1438
|
-
|
|
1439
|
-
};
|
|
1698
|
+
});
|
|
1440
1699
|
_a = __expectNonNull;
|
|
1441
1700
|
_b = __expectObject;
|
|
1442
1701
|
return [4, parseBody(output.body, context)];
|
|
1443
1702
|
case 1:
|
|
1444
1703
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1445
|
-
if (data.Tags
|
|
1704
|
+
if (data.Tags != null) {
|
|
1446
1705
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1447
1706
|
}
|
|
1448
|
-
return [2,
|
|
1707
|
+
return [2, contents];
|
|
1449
1708
|
}
|
|
1450
1709
|
});
|
|
1451
1710
|
}); };
|
|
1452
1711
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1453
|
-
var parsedOutput, _a,
|
|
1712
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1454
1713
|
var _c;
|
|
1455
1714
|
return __generator(this, function (_d) {
|
|
1456
1715
|
switch (_d.label) {
|
|
@@ -1479,14 +1738,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1479
1738
|
case 7: throw _d.sent();
|
|
1480
1739
|
case 8:
|
|
1481
1740
|
parsedBody = parsedOutput.body;
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
$metadata: $metadata,
|
|
1741
|
+
throwDefaultError({
|
|
1742
|
+
output: output,
|
|
1743
|
+
parsedBody: parsedBody,
|
|
1744
|
+
exceptionCtor: __BaseException,
|
|
1745
|
+
errorCode: errorCode,
|
|
1488
1746
|
});
|
|
1489
|
-
|
|
1747
|
+
_d.label = 9;
|
|
1748
|
+
case 9: return [2];
|
|
1490
1749
|
}
|
|
1491
1750
|
});
|
|
1492
1751
|
}); };
|
|
@@ -1498,18 +1757,18 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
1498
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
1758
|
return [2, deserializeAws_restJson1RejectInvitationCommandError(output, context)];
|
|
1500
1759
|
}
|
|
1501
|
-
contents = {
|
|
1760
|
+
contents = map({
|
|
1502
1761
|
$metadata: deserializeMetadata(output),
|
|
1503
|
-
};
|
|
1762
|
+
});
|
|
1504
1763
|
return [4, collectBody(output.body, context)];
|
|
1505
1764
|
case 1:
|
|
1506
1765
|
_a.sent();
|
|
1507
|
-
return [2,
|
|
1766
|
+
return [2, contents];
|
|
1508
1767
|
}
|
|
1509
1768
|
});
|
|
1510
1769
|
}); };
|
|
1511
1770
|
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1512
|
-
var parsedOutput, _a,
|
|
1771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1513
1772
|
var _c;
|
|
1514
1773
|
return __generator(this, function (_d) {
|
|
1515
1774
|
switch (_d.label) {
|
|
@@ -1542,14 +1801,14 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
1542
1801
|
case 9: throw _d.sent();
|
|
1543
1802
|
case 10:
|
|
1544
1803
|
parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
$metadata: $metadata,
|
|
1804
|
+
throwDefaultError({
|
|
1805
|
+
output: output,
|
|
1806
|
+
parsedBody: parsedBody,
|
|
1807
|
+
exceptionCtor: __BaseException,
|
|
1808
|
+
errorCode: errorCode,
|
|
1551
1809
|
});
|
|
1552
|
-
|
|
1810
|
+
_d.label = 11;
|
|
1811
|
+
case 11: return [2];
|
|
1553
1812
|
}
|
|
1554
1813
|
});
|
|
1555
1814
|
}); };
|
|
@@ -1561,18 +1820,18 @@ export var deserializeAws_restJson1StartMonitoringMemberCommand = function (outp
|
|
|
1561
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1562
1821
|
return [2, deserializeAws_restJson1StartMonitoringMemberCommandError(output, context)];
|
|
1563
1822
|
}
|
|
1564
|
-
contents = {
|
|
1823
|
+
contents = map({
|
|
1565
1824
|
$metadata: deserializeMetadata(output),
|
|
1566
|
-
};
|
|
1825
|
+
});
|
|
1567
1826
|
return [4, collectBody(output.body, context)];
|
|
1568
1827
|
case 1:
|
|
1569
1828
|
_a.sent();
|
|
1570
|
-
return [2,
|
|
1829
|
+
return [2, contents];
|
|
1571
1830
|
}
|
|
1572
1831
|
});
|
|
1573
1832
|
}); };
|
|
1574
1833
|
var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1575
|
-
var parsedOutput, _a,
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1576
1835
|
var _c;
|
|
1577
1836
|
return __generator(this, function (_d) {
|
|
1578
1837
|
switch (_d.label) {
|
|
@@ -1609,14 +1868,14 @@ var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output
|
|
|
1609
1868
|
case 11: throw _d.sent();
|
|
1610
1869
|
case 12:
|
|
1611
1870
|
parsedBody = parsedOutput.body;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$metadata: $metadata,
|
|
1871
|
+
throwDefaultError({
|
|
1872
|
+
output: output,
|
|
1873
|
+
parsedBody: parsedBody,
|
|
1874
|
+
exceptionCtor: __BaseException,
|
|
1875
|
+
errorCode: errorCode,
|
|
1618
1876
|
});
|
|
1619
|
-
|
|
1877
|
+
_d.label = 13;
|
|
1878
|
+
case 13: return [2];
|
|
1620
1879
|
}
|
|
1621
1880
|
});
|
|
1622
1881
|
}); };
|
|
@@ -1628,18 +1887,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1628
1887
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1629
1888
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1630
1889
|
}
|
|
1631
|
-
contents = {
|
|
1890
|
+
contents = map({
|
|
1632
1891
|
$metadata: deserializeMetadata(output),
|
|
1633
|
-
};
|
|
1892
|
+
});
|
|
1634
1893
|
return [4, collectBody(output.body, context)];
|
|
1635
1894
|
case 1:
|
|
1636
1895
|
_a.sent();
|
|
1637
|
-
return [2,
|
|
1896
|
+
return [2, contents];
|
|
1638
1897
|
}
|
|
1639
1898
|
});
|
|
1640
1899
|
}); };
|
|
1641
1900
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1642
|
-
var parsedOutput, _a,
|
|
1901
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1643
1902
|
var _c;
|
|
1644
1903
|
return __generator(this, function (_d) {
|
|
1645
1904
|
switch (_d.label) {
|
|
@@ -1668,14 +1927,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1668
1927
|
case 7: throw _d.sent();
|
|
1669
1928
|
case 8:
|
|
1670
1929
|
parsedBody = parsedOutput.body;
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
$metadata: $metadata,
|
|
1930
|
+
throwDefaultError({
|
|
1931
|
+
output: output,
|
|
1932
|
+
parsedBody: parsedBody,
|
|
1933
|
+
exceptionCtor: __BaseException,
|
|
1934
|
+
errorCode: errorCode,
|
|
1677
1935
|
});
|
|
1678
|
-
|
|
1936
|
+
_d.label = 9;
|
|
1937
|
+
case 9: return [2];
|
|
1679
1938
|
}
|
|
1680
1939
|
});
|
|
1681
1940
|
}); };
|
|
@@ -1687,18 +1946,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1687
1946
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1688
1947
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1689
1948
|
}
|
|
1690
|
-
contents = {
|
|
1949
|
+
contents = map({
|
|
1691
1950
|
$metadata: deserializeMetadata(output),
|
|
1692
|
-
};
|
|
1951
|
+
});
|
|
1693
1952
|
return [4, collectBody(output.body, context)];
|
|
1694
1953
|
case 1:
|
|
1695
1954
|
_a.sent();
|
|
1696
|
-
return [2,
|
|
1955
|
+
return [2, contents];
|
|
1697
1956
|
}
|
|
1698
1957
|
});
|
|
1699
1958
|
}); };
|
|
1700
1959
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1701
|
-
var parsedOutput, _a,
|
|
1960
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1702
1961
|
var _c;
|
|
1703
1962
|
return __generator(this, function (_d) {
|
|
1704
1963
|
switch (_d.label) {
|
|
@@ -1727,14 +1986,77 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1727
1986
|
case 7: throw _d.sent();
|
|
1728
1987
|
case 8:
|
|
1729
1988
|
parsedBody = parsedOutput.body;
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1989
|
+
throwDefaultError({
|
|
1990
|
+
output: output,
|
|
1991
|
+
parsedBody: parsedBody,
|
|
1992
|
+
exceptionCtor: __BaseException,
|
|
1993
|
+
errorCode: errorCode,
|
|
1994
|
+
});
|
|
1995
|
+
_d.label = 9;
|
|
1996
|
+
case 9: return [2];
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
}); };
|
|
2000
|
+
export var deserializeAws_restJson1UpdateDatasourcePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2001
|
+
var contents;
|
|
2002
|
+
return __generator(this, function (_a) {
|
|
2003
|
+
switch (_a.label) {
|
|
2004
|
+
case 0:
|
|
2005
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
+
return [2, deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context)];
|
|
2007
|
+
}
|
|
2008
|
+
contents = map({
|
|
2009
|
+
$metadata: deserializeMetadata(output),
|
|
2010
|
+
});
|
|
2011
|
+
return [4, collectBody(output.body, context)];
|
|
2012
|
+
case 1:
|
|
2013
|
+
_a.sent();
|
|
2014
|
+
return [2, contents];
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
}); };
|
|
2018
|
+
var deserializeAws_restJson1UpdateDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2019
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2020
|
+
var _c;
|
|
2021
|
+
return __generator(this, function (_d) {
|
|
2022
|
+
switch (_d.label) {
|
|
2023
|
+
case 0:
|
|
2024
|
+
_a = [__assign({}, output)];
|
|
2025
|
+
_c = {};
|
|
2026
|
+
return [4, parseBody(output.body, context)];
|
|
2027
|
+
case 1:
|
|
2028
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2029
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
+
_b = errorCode;
|
|
2031
|
+
switch (_b) {
|
|
2032
|
+
case "InternalServerException": return [3, 2];
|
|
2033
|
+
case "com.amazonaws.detective#InternalServerException": return [3, 2];
|
|
2034
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2035
|
+
case "com.amazonaws.detective#ResourceNotFoundException": return [3, 4];
|
|
2036
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
2037
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
2038
|
+
case "ValidationException": return [3, 8];
|
|
2039
|
+
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
2040
|
+
}
|
|
2041
|
+
return [3, 10];
|
|
2042
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2043
|
+
case 3: throw _d.sent();
|
|
2044
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2045
|
+
case 5: throw _d.sent();
|
|
2046
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2047
|
+
case 7: throw _d.sent();
|
|
2048
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2049
|
+
case 9: throw _d.sent();
|
|
2050
|
+
case 10:
|
|
2051
|
+
parsedBody = parsedOutput.body;
|
|
2052
|
+
throwDefaultError({
|
|
2053
|
+
output: output,
|
|
2054
|
+
parsedBody: parsedBody,
|
|
2055
|
+
exceptionCtor: __BaseException,
|
|
2056
|
+
errorCode: errorCode,
|
|
1736
2057
|
});
|
|
1737
|
-
|
|
2058
|
+
_d.label = 11;
|
|
2059
|
+
case 11: return [2];
|
|
1738
2060
|
}
|
|
1739
2061
|
});
|
|
1740
2062
|
}); };
|
|
@@ -1746,18 +2068,18 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
1746
2068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
2069
|
return [2, deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context)];
|
|
1748
2070
|
}
|
|
1749
|
-
contents = {
|
|
2071
|
+
contents = map({
|
|
1750
2072
|
$metadata: deserializeMetadata(output),
|
|
1751
|
-
};
|
|
2073
|
+
});
|
|
1752
2074
|
return [4, collectBody(output.body, context)];
|
|
1753
2075
|
case 1:
|
|
1754
2076
|
_a.sent();
|
|
1755
|
-
return [2,
|
|
2077
|
+
return [2, contents];
|
|
1756
2078
|
}
|
|
1757
2079
|
});
|
|
1758
2080
|
}); };
|
|
1759
2081
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1760
|
-
var parsedOutput, _a,
|
|
2082
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1761
2083
|
var _c;
|
|
1762
2084
|
return __generator(this, function (_d) {
|
|
1763
2085
|
switch (_d.label) {
|
|
@@ -1786,23 +2108,24 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
1786
2108
|
case 7: throw _d.sent();
|
|
1787
2109
|
case 8:
|
|
1788
2110
|
parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
$metadata: $metadata,
|
|
2111
|
+
throwDefaultError({
|
|
2112
|
+
output: output,
|
|
2113
|
+
parsedBody: parsedBody,
|
|
2114
|
+
exceptionCtor: __BaseException,
|
|
2115
|
+
errorCode: errorCode,
|
|
1795
2116
|
});
|
|
1796
|
-
|
|
2117
|
+
_d.label = 9;
|
|
2118
|
+
case 9: return [2];
|
|
1797
2119
|
}
|
|
1798
2120
|
});
|
|
1799
2121
|
}); };
|
|
2122
|
+
var map = __map;
|
|
1800
2123
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1801
2124
|
var contents, data, exception;
|
|
1802
2125
|
return __generator(this, function (_a) {
|
|
1803
|
-
contents = {};
|
|
2126
|
+
contents = map({});
|
|
1804
2127
|
data = parsedOutput.body;
|
|
1805
|
-
if (data.Message
|
|
2128
|
+
if (data.Message != null) {
|
|
1806
2129
|
contents.Message = __expectString(data.Message);
|
|
1807
2130
|
}
|
|
1808
2131
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1812,9 +2135,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1812
2135
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1813
2136
|
var contents, data, exception;
|
|
1814
2137
|
return __generator(this, function (_a) {
|
|
1815
|
-
contents = {};
|
|
2138
|
+
contents = map({});
|
|
1816
2139
|
data = parsedOutput.body;
|
|
1817
|
-
if (data.Message
|
|
2140
|
+
if (data.Message != null) {
|
|
1818
2141
|
contents.Message = __expectString(data.Message);
|
|
1819
2142
|
}
|
|
1820
2143
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1824,9 +2147,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1824
2147
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1825
2148
|
var contents, data, exception;
|
|
1826
2149
|
return __generator(this, function (_a) {
|
|
1827
|
-
contents = {};
|
|
2150
|
+
contents = map({});
|
|
1828
2151
|
data = parsedOutput.body;
|
|
1829
|
-
if (data.Message
|
|
2152
|
+
if (data.Message != null) {
|
|
1830
2153
|
contents.Message = __expectString(data.Message);
|
|
1831
2154
|
}
|
|
1832
2155
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1836,11 +2159,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1836
2159
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1837
2160
|
var contents, data, exception;
|
|
1838
2161
|
return __generator(this, function (_a) {
|
|
1839
|
-
contents = {};
|
|
2162
|
+
contents = map({});
|
|
1840
2163
|
data = parsedOutput.body;
|
|
1841
|
-
if (data.Message
|
|
2164
|
+
if (data.Message != null) {
|
|
1842
2165
|
contents.Message = __expectString(data.Message);
|
|
1843
2166
|
}
|
|
2167
|
+
if (data.Resources != null) {
|
|
2168
|
+
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
2169
|
+
}
|
|
1844
2170
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1845
2171
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1846
2172
|
});
|
|
@@ -1848,9 +2174,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1848
2174
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1849
2175
|
var contents, data, exception;
|
|
1850
2176
|
return __generator(this, function (_a) {
|
|
1851
|
-
contents = {};
|
|
2177
|
+
contents = map({});
|
|
1852
2178
|
data = parsedOutput.body;
|
|
1853
|
-
if (data.Message
|
|
2179
|
+
if (data.Message != null) {
|
|
1854
2180
|
contents.Message = __expectString(data.Message);
|
|
1855
2181
|
}
|
|
1856
2182
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1860,9 +2186,15 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
1860
2186
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1861
2187
|
var contents, data, exception;
|
|
1862
2188
|
return __generator(this, function (_a) {
|
|
1863
|
-
contents = {};
|
|
2189
|
+
contents = map({});
|
|
1864
2190
|
data = parsedOutput.body;
|
|
1865
|
-
if (data.
|
|
2191
|
+
if (data.ErrorCode != null) {
|
|
2192
|
+
contents.ErrorCode = __expectString(data.ErrorCode);
|
|
2193
|
+
}
|
|
2194
|
+
if (data.ErrorCodeReason != null) {
|
|
2195
|
+
contents.ErrorCodeReason = __expectString(data.ErrorCodeReason);
|
|
2196
|
+
}
|
|
2197
|
+
if (data.Message != null) {
|
|
1866
2198
|
contents.Message = __expectString(data.Message);
|
|
1867
2199
|
}
|
|
1868
2200
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1872,13 +2204,17 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1872
2204
|
var serializeAws_restJson1Account = function (input, context) {
|
|
1873
2205
|
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress }));
|
|
1874
2206
|
};
|
|
2207
|
+
var serializeAws_restJson1AccountIdExtendedList = function (input, context) {
|
|
2208
|
+
return input
|
|
2209
|
+
.filter(function (e) { return e != null; })
|
|
2210
|
+
.map(function (entry) {
|
|
2211
|
+
return entry;
|
|
2212
|
+
});
|
|
2213
|
+
};
|
|
1875
2214
|
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
1876
2215
|
return input
|
|
1877
2216
|
.filter(function (e) { return e != null; })
|
|
1878
2217
|
.map(function (entry) {
|
|
1879
|
-
if (entry === null) {
|
|
1880
|
-
return null;
|
|
1881
|
-
}
|
|
1882
2218
|
return entry;
|
|
1883
2219
|
});
|
|
1884
2220
|
};
|
|
@@ -1886,12 +2222,23 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
1886
2222
|
return input
|
|
1887
2223
|
.filter(function (e) { return e != null; })
|
|
1888
2224
|
.map(function (entry) {
|
|
1889
|
-
if (entry === null) {
|
|
1890
|
-
return null;
|
|
1891
|
-
}
|
|
1892
2225
|
return serializeAws_restJson1Account(entry, context);
|
|
1893
2226
|
});
|
|
1894
2227
|
};
|
|
2228
|
+
var serializeAws_restJson1DatasourcePackageList = function (input, context) {
|
|
2229
|
+
return input
|
|
2230
|
+
.filter(function (e) { return e != null; })
|
|
2231
|
+
.map(function (entry) {
|
|
2232
|
+
return entry;
|
|
2233
|
+
});
|
|
2234
|
+
};
|
|
2235
|
+
var serializeAws_restJson1GraphArnList = function (input, context) {
|
|
2236
|
+
return input
|
|
2237
|
+
.filter(function (e) { return e != null; })
|
|
2238
|
+
.map(function (entry) {
|
|
2239
|
+
return entry;
|
|
2240
|
+
});
|
|
2241
|
+
};
|
|
1895
2242
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1896
2243
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1897
2244
|
var _b;
|
|
@@ -1931,6 +2278,52 @@ var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
|
1931
2278
|
});
|
|
1932
2279
|
return retVal;
|
|
1933
2280
|
};
|
|
2281
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetail = function (output, context) {
|
|
2282
|
+
return {
|
|
2283
|
+
DatasourcePackageIngestState: __expectString(output.DatasourcePackageIngestState),
|
|
2284
|
+
LastIngestStateChange: output.LastIngestStateChange != null
|
|
2285
|
+
? deserializeAws_restJson1LastIngestStateChangeDates(output.LastIngestStateChange, context)
|
|
2286
|
+
: undefined,
|
|
2287
|
+
};
|
|
2288
|
+
};
|
|
2289
|
+
var deserializeAws_restJson1DatasourcePackageIngestDetails = function (output, context) {
|
|
2290
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2291
|
+
var _b;
|
|
2292
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2293
|
+
if (value === null) {
|
|
2294
|
+
return acc;
|
|
2295
|
+
}
|
|
2296
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageIngestDetail(value, context), _b));
|
|
2297
|
+
}, {});
|
|
2298
|
+
};
|
|
2299
|
+
var deserializeAws_restJson1DatasourcePackageIngestHistory = function (output, context) {
|
|
2300
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2301
|
+
var _b;
|
|
2302
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2303
|
+
if (value === null) {
|
|
2304
|
+
return acc;
|
|
2305
|
+
}
|
|
2306
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1LastIngestStateChangeDates(value, context), _b));
|
|
2307
|
+
}, {});
|
|
2308
|
+
};
|
|
2309
|
+
var deserializeAws_restJson1DatasourcePackageIngestStates = function (output, context) {
|
|
2310
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2311
|
+
var _b;
|
|
2312
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2313
|
+
if (value === null) {
|
|
2314
|
+
return acc;
|
|
2315
|
+
}
|
|
2316
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2317
|
+
}, {});
|
|
2318
|
+
};
|
|
2319
|
+
var deserializeAws_restJson1DatasourcePackageUsageInfo = function (output, context) {
|
|
2320
|
+
return {
|
|
2321
|
+
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
2322
|
+
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
2323
|
+
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdateTime))
|
|
2324
|
+
: undefined,
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
1934
2327
|
var deserializeAws_restJson1Graph = function (output, context) {
|
|
1935
2328
|
return {
|
|
1936
2329
|
Arn: __expectString(output.Arn),
|
|
@@ -1948,10 +2341,23 @@ var deserializeAws_restJson1GraphList = function (output, context) {
|
|
|
1948
2341
|
});
|
|
1949
2342
|
return retVal;
|
|
1950
2343
|
};
|
|
2344
|
+
var deserializeAws_restJson1LastIngestStateChangeDates = function (output, context) {
|
|
2345
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2346
|
+
var _b;
|
|
2347
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2348
|
+
if (value === null) {
|
|
2349
|
+
return acc;
|
|
2350
|
+
}
|
|
2351
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1TimestampForCollection(value, context), _b));
|
|
2352
|
+
}, {});
|
|
2353
|
+
};
|
|
1951
2354
|
var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
1952
2355
|
return {
|
|
1953
2356
|
AccountId: __expectString(output.AccountId),
|
|
1954
2357
|
AdministratorId: __expectString(output.AdministratorId),
|
|
2358
|
+
DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
|
|
2359
|
+
? deserializeAws_restJson1DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
|
|
2360
|
+
: undefined,
|
|
1955
2361
|
DisabledReason: __expectString(output.DisabledReason),
|
|
1956
2362
|
EmailAddress: __expectString(output.EmailAddress),
|
|
1957
2363
|
GraphArn: __expectString(output.GraphArn),
|
|
@@ -1964,6 +2370,9 @@ var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
|
1964
2370
|
: undefined,
|
|
1965
2371
|
Status: __expectString(output.Status),
|
|
1966
2372
|
UpdatedTime: output.UpdatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime)) : undefined,
|
|
2373
|
+
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
2374
|
+
? deserializeAws_restJson1VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
2375
|
+
: undefined,
|
|
1967
2376
|
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1968
2377
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1969
2378
|
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdatedTime))
|
|
@@ -1981,6 +2390,37 @@ var deserializeAws_restJson1MemberDetailList = function (output, context) {
|
|
|
1981
2390
|
});
|
|
1982
2391
|
return retVal;
|
|
1983
2392
|
};
|
|
2393
|
+
var deserializeAws_restJson1MembershipDatasources = function (output, context) {
|
|
2394
|
+
return {
|
|
2395
|
+
AccountId: __expectString(output.AccountId),
|
|
2396
|
+
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
2397
|
+
? deserializeAws_restJson1DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
|
|
2398
|
+
: undefined,
|
|
2399
|
+
GraphArn: __expectString(output.GraphArn),
|
|
2400
|
+
};
|
|
2401
|
+
};
|
|
2402
|
+
var deserializeAws_restJson1MembershipDatasourcesList = function (output, context) {
|
|
2403
|
+
var retVal = (output || [])
|
|
2404
|
+
.filter(function (e) { return e != null; })
|
|
2405
|
+
.map(function (entry) {
|
|
2406
|
+
if (entry === null) {
|
|
2407
|
+
return null;
|
|
2408
|
+
}
|
|
2409
|
+
return deserializeAws_restJson1MembershipDatasources(entry, context);
|
|
2410
|
+
});
|
|
2411
|
+
return retVal;
|
|
2412
|
+
};
|
|
2413
|
+
var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
2414
|
+
var retVal = (output || [])
|
|
2415
|
+
.filter(function (e) { return e != null; })
|
|
2416
|
+
.map(function (entry) {
|
|
2417
|
+
if (entry === null) {
|
|
2418
|
+
return null;
|
|
2419
|
+
}
|
|
2420
|
+
return __expectString(entry);
|
|
2421
|
+
});
|
|
2422
|
+
return retVal;
|
|
2423
|
+
};
|
|
1984
2424
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
1985
2425
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
1986
2426
|
var _b;
|
|
@@ -1991,6 +2431,11 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
1991
2431
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1992
2432
|
}, {});
|
|
1993
2433
|
};
|
|
2434
|
+
var deserializeAws_restJson1TimestampForCollection = function (output, context) {
|
|
2435
|
+
return {
|
|
2436
|
+
Timestamp: output.Timestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.Timestamp)) : undefined,
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
1994
2439
|
var deserializeAws_restJson1UnprocessedAccount = function (output, context) {
|
|
1995
2440
|
return {
|
|
1996
2441
|
AccountId: __expectString(output.AccountId),
|
|
@@ -2008,6 +2453,33 @@ var deserializeAws_restJson1UnprocessedAccountList = function (output, context)
|
|
|
2008
2453
|
});
|
|
2009
2454
|
return retVal;
|
|
2010
2455
|
};
|
|
2456
|
+
var deserializeAws_restJson1UnprocessedGraph = function (output, context) {
|
|
2457
|
+
return {
|
|
2458
|
+
GraphArn: __expectString(output.GraphArn),
|
|
2459
|
+
Reason: __expectString(output.Reason),
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
var deserializeAws_restJson1UnprocessedGraphList = function (output, context) {
|
|
2463
|
+
var retVal = (output || [])
|
|
2464
|
+
.filter(function (e) { return e != null; })
|
|
2465
|
+
.map(function (entry) {
|
|
2466
|
+
if (entry === null) {
|
|
2467
|
+
return null;
|
|
2468
|
+
}
|
|
2469
|
+
return deserializeAws_restJson1UnprocessedGraph(entry, context);
|
|
2470
|
+
});
|
|
2471
|
+
return retVal;
|
|
2472
|
+
};
|
|
2473
|
+
var deserializeAws_restJson1VolumeUsageByDatasourcePackage = function (output, context) {
|
|
2474
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2475
|
+
var _b;
|
|
2476
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2477
|
+
if (value === null) {
|
|
2478
|
+
return acc;
|
|
2479
|
+
}
|
|
2480
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DatasourcePackageUsageInfo(value, context), _b));
|
|
2481
|
+
}, {});
|
|
2482
|
+
};
|
|
2011
2483
|
var deserializeMetadata = function (output) {
|
|
2012
2484
|
var _a;
|
|
2013
2485
|
return ({
|