@aws-sdk/client-detective 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +137 -130
- package/dist-es/protocols/Aws_restJson1.js +124 -117
- package/package.json +26 -26
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -38,7 +38,7 @@ export var serializeAws_restJson1CreateGraphCommand = function (input, context)
|
|
|
38
38
|
"content-type": "application/json",
|
|
39
39
|
};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph";
|
|
41
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
41
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
42
42
|
return [2, new __HttpRequest({
|
|
43
43
|
protocol: protocol,
|
|
44
44
|
hostname: hostname,
|
|
@@ -62,9 +62,7 @@ export var serializeAws_restJson1CreateMembersCommand = function (input, context
|
|
|
62
62
|
"content-type": "application/json",
|
|
63
63
|
};
|
|
64
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members";
|
|
65
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts
|
|
66
|
-
input.Accounts !== null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification !== undefined &&
|
|
67
|
-
input.DisableEmailNotification !== null && { DisableEmailNotification: input.DisableEmailNotification })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })), (input.Message !== undefined && input.Message !== null && { Message: input.Message })));
|
|
65
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts != null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification })), (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.Message != null && { Message: input.Message })));
|
|
68
66
|
return [2, new __HttpRequest({
|
|
69
67
|
protocol: protocol,
|
|
70
68
|
hostname: hostname,
|
|
@@ -88,7 +86,7 @@ export var serializeAws_restJson1DeleteGraphCommand = function (input, context)
|
|
|
88
86
|
"content-type": "application/json",
|
|
89
87
|
};
|
|
90
88
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/removal";
|
|
91
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
89
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
92
90
|
return [2, new __HttpRequest({
|
|
93
91
|
protocol: protocol,
|
|
94
92
|
hostname: hostname,
|
|
@@ -112,8 +110,7 @@ export var serializeAws_restJson1DeleteMembersCommand = function (input, context
|
|
|
112
110
|
"content-type": "application/json",
|
|
113
111
|
};
|
|
114
112
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/removal";
|
|
115
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
116
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
|
|
113
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
117
114
|
return [2, new __HttpRequest({
|
|
118
115
|
protocol: protocol,
|
|
119
116
|
hostname: hostname,
|
|
@@ -137,7 +134,7 @@ export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = func
|
|
|
137
134
|
"content-type": "application/json",
|
|
138
135
|
};
|
|
139
136
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/describeOrganizationConfiguration";
|
|
140
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
137
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
141
138
|
return [2, new __HttpRequest({
|
|
142
139
|
protocol: protocol,
|
|
143
140
|
hostname: hostname,
|
|
@@ -185,7 +182,7 @@ export var serializeAws_restJson1DisassociateMembershipCommand = function (input
|
|
|
185
182
|
"content-type": "application/json",
|
|
186
183
|
};
|
|
187
184
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/removal";
|
|
188
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
185
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
189
186
|
return [2, new __HttpRequest({
|
|
190
187
|
protocol: protocol,
|
|
191
188
|
hostname: hostname,
|
|
@@ -209,7 +206,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
|
|
|
209
206
|
"content-type": "application/json",
|
|
210
207
|
};
|
|
211
208
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/enableAdminAccount";
|
|
212
|
-
body = JSON.stringify(__assign({}, (input.AccountId
|
|
209
|
+
body = JSON.stringify(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })));
|
|
213
210
|
return [2, new __HttpRequest({
|
|
214
211
|
protocol: protocol,
|
|
215
212
|
hostname: hostname,
|
|
@@ -233,8 +230,7 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
|
|
|
233
230
|
"content-type": "application/json",
|
|
234
231
|
};
|
|
235
232
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/get";
|
|
236
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
237
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
|
|
233
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
238
234
|
return [2, new __HttpRequest({
|
|
239
235
|
protocol: protocol,
|
|
240
236
|
hostname: hostname,
|
|
@@ -258,7 +254,7 @@ export var serializeAws_restJson1ListGraphsCommand = function (input, context) {
|
|
|
258
254
|
"content-type": "application/json",
|
|
259
255
|
};
|
|
260
256
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graphs/list";
|
|
261
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
257
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
262
258
|
return [2, new __HttpRequest({
|
|
263
259
|
protocol: protocol,
|
|
264
260
|
hostname: hostname,
|
|
@@ -282,7 +278,7 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
|
|
|
282
278
|
"content-type": "application/json",
|
|
283
279
|
};
|
|
284
280
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/list";
|
|
285
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
281
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
286
282
|
return [2, new __HttpRequest({
|
|
287
283
|
protocol: protocol,
|
|
288
284
|
hostname: hostname,
|
|
@@ -306,7 +302,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
306
302
|
"content-type": "application/json",
|
|
307
303
|
};
|
|
308
304
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/list";
|
|
309
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn
|
|
305
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
310
306
|
return [2, new __HttpRequest({
|
|
311
307
|
protocol: protocol,
|
|
312
308
|
hostname: hostname,
|
|
@@ -330,7 +326,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
330
326
|
"content-type": "application/json",
|
|
331
327
|
};
|
|
332
328
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/adminAccountslist";
|
|
333
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
329
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
334
330
|
return [2, new __HttpRequest({
|
|
335
331
|
protocol: protocol,
|
|
336
332
|
hostname: hostname,
|
|
@@ -385,7 +381,7 @@ export var serializeAws_restJson1RejectInvitationCommand = function (input, cont
|
|
|
385
381
|
"content-type": "application/json",
|
|
386
382
|
};
|
|
387
383
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/removal";
|
|
388
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
384
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
389
385
|
return [2, new __HttpRequest({
|
|
390
386
|
protocol: protocol,
|
|
391
387
|
hostname: hostname,
|
|
@@ -409,7 +405,7 @@ export var serializeAws_restJson1StartMonitoringMemberCommand = function (input,
|
|
|
409
405
|
"content-type": "application/json",
|
|
410
406
|
};
|
|
411
407
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/member/monitoringstate";
|
|
412
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountId
|
|
408
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
413
409
|
return [2, new __HttpRequest({
|
|
414
410
|
protocol: protocol,
|
|
415
411
|
hostname: hostname,
|
|
@@ -443,7 +439,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
443
439
|
else {
|
|
444
440
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
445
441
|
}
|
|
446
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
442
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
447
443
|
return [2, new __HttpRequest({
|
|
448
444
|
protocol: protocol,
|
|
449
445
|
hostname: hostname,
|
|
@@ -500,7 +496,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
|
|
|
500
496
|
"content-type": "application/json",
|
|
501
497
|
};
|
|
502
498
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/updateOrganizationConfiguration";
|
|
503
|
-
body = JSON.stringify(__assign(__assign({}, (input.AutoEnable
|
|
499
|
+
body = JSON.stringify(__assign(__assign({}, (input.AutoEnable != null && { AutoEnable: input.AutoEnable })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
504
500
|
return [2, new __HttpRequest({
|
|
505
501
|
protocol: protocol,
|
|
506
502
|
hostname: hostname,
|
|
@@ -532,7 +528,7 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
532
528
|
});
|
|
533
529
|
}); };
|
|
534
530
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
531
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
536
532
|
var _c;
|
|
537
533
|
return __generator(this, function (_d) {
|
|
538
534
|
switch (_d.label) {
|
|
@@ -542,7 +538,6 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
542
538
|
return [4, parseBody(output.body, context)];
|
|
543
539
|
case 1:
|
|
544
540
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
545
|
-
errorCode = "UnknownError";
|
|
546
541
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
542
|
_b = errorCode;
|
|
548
543
|
switch (_b) {
|
|
@@ -566,10 +561,12 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
566
561
|
case 9: throw _d.sent();
|
|
567
562
|
case 10:
|
|
568
563
|
parsedBody = parsedOutput.body;
|
|
564
|
+
$metadata = deserializeMetadata(output);
|
|
565
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
569
566
|
response = new __BaseException({
|
|
570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
567
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
571
568
|
$fault: "client",
|
|
572
|
-
$metadata:
|
|
569
|
+
$metadata: $metadata,
|
|
573
570
|
});
|
|
574
571
|
throw __decorateServiceException(response, parsedBody);
|
|
575
572
|
}
|
|
@@ -600,7 +597,7 @@ export var deserializeAws_restJson1CreateGraphCommand = function (output, contex
|
|
|
600
597
|
});
|
|
601
598
|
}); };
|
|
602
599
|
var deserializeAws_restJson1CreateGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
600
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
604
601
|
var _c;
|
|
605
602
|
return __generator(this, function (_d) {
|
|
606
603
|
switch (_d.label) {
|
|
@@ -610,7 +607,6 @@ var deserializeAws_restJson1CreateGraphCommandError = function (output, context)
|
|
|
610
607
|
return [4, parseBody(output.body, context)];
|
|
611
608
|
case 1:
|
|
612
609
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
613
|
-
errorCode = "UnknownError";
|
|
614
610
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
611
|
_b = errorCode;
|
|
616
612
|
switch (_b) {
|
|
@@ -630,10 +626,12 @@ var deserializeAws_restJson1CreateGraphCommandError = function (output, context)
|
|
|
630
626
|
case 7: throw _d.sent();
|
|
631
627
|
case 8:
|
|
632
628
|
parsedBody = parsedOutput.body;
|
|
629
|
+
$metadata = deserializeMetadata(output);
|
|
630
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
633
631
|
response = new __BaseException({
|
|
634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
635
633
|
$fault: "client",
|
|
636
|
-
$metadata:
|
|
634
|
+
$metadata: $metadata,
|
|
637
635
|
});
|
|
638
636
|
throw __decorateServiceException(response, parsedBody);
|
|
639
637
|
}
|
|
@@ -668,7 +666,7 @@ export var deserializeAws_restJson1CreateMembersCommand = function (output, cont
|
|
|
668
666
|
});
|
|
669
667
|
}); };
|
|
670
668
|
var deserializeAws_restJson1CreateMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
671
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
672
670
|
var _c;
|
|
673
671
|
return __generator(this, function (_d) {
|
|
674
672
|
switch (_d.label) {
|
|
@@ -678,7 +676,6 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
678
676
|
return [4, parseBody(output.body, context)];
|
|
679
677
|
case 1:
|
|
680
678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
681
|
-
errorCode = "UnknownError";
|
|
682
679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
680
|
_b = errorCode;
|
|
684
681
|
switch (_b) {
|
|
@@ -702,10 +699,12 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
702
699
|
case 9: throw _d.sent();
|
|
703
700
|
case 10:
|
|
704
701
|
parsedBody = parsedOutput.body;
|
|
702
|
+
$metadata = deserializeMetadata(output);
|
|
703
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
705
704
|
response = new __BaseException({
|
|
706
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
707
706
|
$fault: "client",
|
|
708
|
-
$metadata:
|
|
707
|
+
$metadata: $metadata,
|
|
709
708
|
});
|
|
710
709
|
throw __decorateServiceException(response, parsedBody);
|
|
711
710
|
}
|
|
@@ -730,7 +729,7 @@ export var deserializeAws_restJson1DeleteGraphCommand = function (output, contex
|
|
|
730
729
|
});
|
|
731
730
|
}); };
|
|
732
731
|
var deserializeAws_restJson1DeleteGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
733
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
734
733
|
var _c;
|
|
735
734
|
return __generator(this, function (_d) {
|
|
736
735
|
switch (_d.label) {
|
|
@@ -740,7 +739,6 @@ var deserializeAws_restJson1DeleteGraphCommandError = function (output, context)
|
|
|
740
739
|
return [4, parseBody(output.body, context)];
|
|
741
740
|
case 1:
|
|
742
741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
743
|
-
errorCode = "UnknownError";
|
|
744
742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
743
|
_b = errorCode;
|
|
746
744
|
switch (_b) {
|
|
@@ -760,10 +758,12 @@ var deserializeAws_restJson1DeleteGraphCommandError = function (output, context)
|
|
|
760
758
|
case 7: throw _d.sent();
|
|
761
759
|
case 8:
|
|
762
760
|
parsedBody = parsedOutput.body;
|
|
761
|
+
$metadata = deserializeMetadata(output);
|
|
762
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
763
763
|
response = new __BaseException({
|
|
764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
765
765
|
$fault: "client",
|
|
766
|
-
$metadata:
|
|
766
|
+
$metadata: $metadata,
|
|
767
767
|
});
|
|
768
768
|
throw __decorateServiceException(response, parsedBody);
|
|
769
769
|
}
|
|
@@ -798,7 +798,7 @@ export var deserializeAws_restJson1DeleteMembersCommand = function (output, cont
|
|
|
798
798
|
});
|
|
799
799
|
}); };
|
|
800
800
|
var deserializeAws_restJson1DeleteMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
801
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
801
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
802
802
|
var _c;
|
|
803
803
|
return __generator(this, function (_d) {
|
|
804
804
|
switch (_d.label) {
|
|
@@ -808,7 +808,6 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
808
808
|
return [4, parseBody(output.body, context)];
|
|
809
809
|
case 1:
|
|
810
810
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
811
|
-
errorCode = "UnknownError";
|
|
812
811
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
812
|
_b = errorCode;
|
|
814
813
|
switch (_b) {
|
|
@@ -832,10 +831,12 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
832
831
|
case 9: throw _d.sent();
|
|
833
832
|
case 10:
|
|
834
833
|
parsedBody = parsedOutput.body;
|
|
834
|
+
$metadata = deserializeMetadata(output);
|
|
835
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
835
836
|
response = new __BaseException({
|
|
836
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
837
838
|
$fault: "client",
|
|
838
|
-
$metadata:
|
|
839
|
+
$metadata: $metadata,
|
|
839
840
|
});
|
|
840
841
|
throw __decorateServiceException(response, parsedBody);
|
|
841
842
|
}
|
|
@@ -866,7 +867,7 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
866
867
|
});
|
|
867
868
|
}); };
|
|
868
869
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
869
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
870
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
870
871
|
var _c;
|
|
871
872
|
return __generator(this, function (_d) {
|
|
872
873
|
switch (_d.label) {
|
|
@@ -876,7 +877,6 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
876
877
|
return [4, parseBody(output.body, context)];
|
|
877
878
|
case 1:
|
|
878
879
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
879
|
-
errorCode = "UnknownError";
|
|
880
880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
881
|
_b = errorCode;
|
|
882
882
|
switch (_b) {
|
|
@@ -896,10 +896,12 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
896
896
|
case 7: throw _d.sent();
|
|
897
897
|
case 8:
|
|
898
898
|
parsedBody = parsedOutput.body;
|
|
899
|
+
$metadata = deserializeMetadata(output);
|
|
900
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
899
901
|
response = new __BaseException({
|
|
900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
901
903
|
$fault: "client",
|
|
902
|
-
$metadata:
|
|
904
|
+
$metadata: $metadata,
|
|
903
905
|
});
|
|
904
906
|
throw __decorateServiceException(response, parsedBody);
|
|
905
907
|
}
|
|
@@ -924,7 +926,7 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
924
926
|
});
|
|
925
927
|
}); };
|
|
926
928
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
927
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
929
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
928
930
|
var _c;
|
|
929
931
|
return __generator(this, function (_d) {
|
|
930
932
|
switch (_d.label) {
|
|
@@ -934,7 +936,6 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
934
936
|
return [4, parseBody(output.body, context)];
|
|
935
937
|
case 1:
|
|
936
938
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
937
|
-
errorCode = "UnknownError";
|
|
938
939
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
940
|
_b = errorCode;
|
|
940
941
|
switch (_b) {
|
|
@@ -954,10 +955,12 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
954
955
|
case 7: throw _d.sent();
|
|
955
956
|
case 8:
|
|
956
957
|
parsedBody = parsedOutput.body;
|
|
958
|
+
$metadata = deserializeMetadata(output);
|
|
959
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
957
960
|
response = new __BaseException({
|
|
958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
959
962
|
$fault: "client",
|
|
960
|
-
$metadata:
|
|
963
|
+
$metadata: $metadata,
|
|
961
964
|
});
|
|
962
965
|
throw __decorateServiceException(response, parsedBody);
|
|
963
966
|
}
|
|
@@ -982,7 +985,7 @@ export var deserializeAws_restJson1DisassociateMembershipCommand = function (out
|
|
|
982
985
|
});
|
|
983
986
|
}); };
|
|
984
987
|
var deserializeAws_restJson1DisassociateMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
985
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
988
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
986
989
|
var _c;
|
|
987
990
|
return __generator(this, function (_d) {
|
|
988
991
|
switch (_d.label) {
|
|
@@ -992,7 +995,6 @@ var deserializeAws_restJson1DisassociateMembershipCommandError = function (outpu
|
|
|
992
995
|
return [4, parseBody(output.body, context)];
|
|
993
996
|
case 1:
|
|
994
997
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
995
|
-
errorCode = "UnknownError";
|
|
996
998
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
999
|
_b = errorCode;
|
|
998
1000
|
switch (_b) {
|
|
@@ -1016,10 +1018,12 @@ var deserializeAws_restJson1DisassociateMembershipCommandError = function (outpu
|
|
|
1016
1018
|
case 9: throw _d.sent();
|
|
1017
1019
|
case 10:
|
|
1018
1020
|
parsedBody = parsedOutput.body;
|
|
1021
|
+
$metadata = deserializeMetadata(output);
|
|
1022
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1019
1023
|
response = new __BaseException({
|
|
1020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1021
1025
|
$fault: "client",
|
|
1022
|
-
$metadata:
|
|
1026
|
+
$metadata: $metadata,
|
|
1023
1027
|
});
|
|
1024
1028
|
throw __decorateServiceException(response, parsedBody);
|
|
1025
1029
|
}
|
|
@@ -1044,7 +1048,7 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
1044
1048
|
});
|
|
1045
1049
|
}); };
|
|
1046
1050
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1047
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1051
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1048
1052
|
var _c;
|
|
1049
1053
|
return __generator(this, function (_d) {
|
|
1050
1054
|
switch (_d.label) {
|
|
@@ -1054,7 +1058,6 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
1054
1058
|
return [4, parseBody(output.body, context)];
|
|
1055
1059
|
case 1:
|
|
1056
1060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1057
|
-
errorCode = "UnknownError";
|
|
1058
1061
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1062
|
_b = errorCode;
|
|
1060
1063
|
switch (_b) {
|
|
@@ -1074,10 +1077,12 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
1074
1077
|
case 7: throw _d.sent();
|
|
1075
1078
|
case 8:
|
|
1076
1079
|
parsedBody = parsedOutput.body;
|
|
1080
|
+
$metadata = deserializeMetadata(output);
|
|
1081
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1077
1082
|
response = new __BaseException({
|
|
1078
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1079
1084
|
$fault: "client",
|
|
1080
|
-
$metadata:
|
|
1085
|
+
$metadata: $metadata,
|
|
1081
1086
|
});
|
|
1082
1087
|
throw __decorateServiceException(response, parsedBody);
|
|
1083
1088
|
}
|
|
@@ -1112,7 +1117,7 @@ export var deserializeAws_restJson1GetMembersCommand = function (output, context
|
|
|
1112
1117
|
});
|
|
1113
1118
|
}); };
|
|
1114
1119
|
var deserializeAws_restJson1GetMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1115
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1120
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1116
1121
|
var _c;
|
|
1117
1122
|
return __generator(this, function (_d) {
|
|
1118
1123
|
switch (_d.label) {
|
|
@@ -1122,7 +1127,6 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1122
1127
|
return [4, parseBody(output.body, context)];
|
|
1123
1128
|
case 1:
|
|
1124
1129
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1125
|
-
errorCode = "UnknownError";
|
|
1126
1130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1131
|
_b = errorCode;
|
|
1128
1132
|
switch (_b) {
|
|
@@ -1142,10 +1146,12 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1142
1146
|
case 7: throw _d.sent();
|
|
1143
1147
|
case 8:
|
|
1144
1148
|
parsedBody = parsedOutput.body;
|
|
1149
|
+
$metadata = deserializeMetadata(output);
|
|
1150
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1145
1151
|
response = new __BaseException({
|
|
1146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1152
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1147
1153
|
$fault: "client",
|
|
1148
|
-
$metadata:
|
|
1154
|
+
$metadata: $metadata,
|
|
1149
1155
|
});
|
|
1150
1156
|
throw __decorateServiceException(response, parsedBody);
|
|
1151
1157
|
}
|
|
@@ -1180,7 +1186,7 @@ export var deserializeAws_restJson1ListGraphsCommand = function (output, context
|
|
|
1180
1186
|
});
|
|
1181
1187
|
}); };
|
|
1182
1188
|
var deserializeAws_restJson1ListGraphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1183
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1189
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1184
1190
|
var _c;
|
|
1185
1191
|
return __generator(this, function (_d) {
|
|
1186
1192
|
switch (_d.label) {
|
|
@@ -1190,7 +1196,6 @@ var deserializeAws_restJson1ListGraphsCommandError = function (output, context)
|
|
|
1190
1196
|
return [4, parseBody(output.body, context)];
|
|
1191
1197
|
case 1:
|
|
1192
1198
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1193
|
-
errorCode = "UnknownError";
|
|
1194
1199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1195
1200
|
_b = errorCode;
|
|
1196
1201
|
switch (_b) {
|
|
@@ -1206,10 +1211,12 @@ var deserializeAws_restJson1ListGraphsCommandError = function (output, context)
|
|
|
1206
1211
|
case 5: throw _d.sent();
|
|
1207
1212
|
case 6:
|
|
1208
1213
|
parsedBody = parsedOutput.body;
|
|
1214
|
+
$metadata = deserializeMetadata(output);
|
|
1215
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1209
1216
|
response = new __BaseException({
|
|
1210
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1211
1218
|
$fault: "client",
|
|
1212
|
-
$metadata:
|
|
1219
|
+
$metadata: $metadata,
|
|
1213
1220
|
});
|
|
1214
1221
|
throw __decorateServiceException(response, parsedBody);
|
|
1215
1222
|
}
|
|
@@ -1244,7 +1251,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1244
1251
|
});
|
|
1245
1252
|
}); };
|
|
1246
1253
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1247
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1254
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1248
1255
|
var _c;
|
|
1249
1256
|
return __generator(this, function (_d) {
|
|
1250
1257
|
switch (_d.label) {
|
|
@@ -1254,7 +1261,6 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1254
1261
|
return [4, parseBody(output.body, context)];
|
|
1255
1262
|
case 1:
|
|
1256
1263
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1257
|
-
errorCode = "UnknownError";
|
|
1258
1264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1265
|
_b = errorCode;
|
|
1260
1266
|
switch (_b) {
|
|
@@ -1270,10 +1276,12 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1270
1276
|
case 5: throw _d.sent();
|
|
1271
1277
|
case 6:
|
|
1272
1278
|
parsedBody = parsedOutput.body;
|
|
1279
|
+
$metadata = deserializeMetadata(output);
|
|
1280
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1273
1281
|
response = new __BaseException({
|
|
1274
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1275
1283
|
$fault: "client",
|
|
1276
|
-
$metadata:
|
|
1284
|
+
$metadata: $metadata,
|
|
1277
1285
|
});
|
|
1278
1286
|
throw __decorateServiceException(response, parsedBody);
|
|
1279
1287
|
}
|
|
@@ -1308,7 +1316,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
1308
1316
|
});
|
|
1309
1317
|
}); };
|
|
1310
1318
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1311
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1319
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1312
1320
|
var _c;
|
|
1313
1321
|
return __generator(this, function (_d) {
|
|
1314
1322
|
switch (_d.label) {
|
|
@@ -1318,7 +1326,6 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1318
1326
|
return [4, parseBody(output.body, context)];
|
|
1319
1327
|
case 1:
|
|
1320
1328
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1321
|
-
errorCode = "UnknownError";
|
|
1322
1329
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1330
|
_b = errorCode;
|
|
1324
1331
|
switch (_b) {
|
|
@@ -1338,10 +1345,12 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1338
1345
|
case 7: throw _d.sent();
|
|
1339
1346
|
case 8:
|
|
1340
1347
|
parsedBody = parsedOutput.body;
|
|
1348
|
+
$metadata = deserializeMetadata(output);
|
|
1349
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1341
1350
|
response = new __BaseException({
|
|
1342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1343
1352
|
$fault: "client",
|
|
1344
|
-
$metadata:
|
|
1353
|
+
$metadata: $metadata,
|
|
1345
1354
|
});
|
|
1346
1355
|
throw __decorateServiceException(response, parsedBody);
|
|
1347
1356
|
}
|
|
@@ -1376,7 +1385,7 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
1376
1385
|
});
|
|
1377
1386
|
}); };
|
|
1378
1387
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1380
1389
|
var _c;
|
|
1381
1390
|
return __generator(this, function (_d) {
|
|
1382
1391
|
switch (_d.label) {
|
|
@@ -1386,7 +1395,6 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
1386
1395
|
return [4, parseBody(output.body, context)];
|
|
1387
1396
|
case 1:
|
|
1388
1397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1389
|
-
errorCode = "UnknownError";
|
|
1390
1398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1399
|
_b = errorCode;
|
|
1392
1400
|
switch (_b) {
|
|
@@ -1406,10 +1414,12 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
1406
1414
|
case 7: throw _d.sent();
|
|
1407
1415
|
case 8:
|
|
1408
1416
|
parsedBody = parsedOutput.body;
|
|
1417
|
+
$metadata = deserializeMetadata(output);
|
|
1418
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1409
1419
|
response = new __BaseException({
|
|
1410
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1411
1421
|
$fault: "client",
|
|
1412
|
-
$metadata:
|
|
1422
|
+
$metadata: $metadata,
|
|
1413
1423
|
});
|
|
1414
1424
|
throw __decorateServiceException(response, parsedBody);
|
|
1415
1425
|
}
|
|
@@ -1440,7 +1450,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1440
1450
|
});
|
|
1441
1451
|
}); };
|
|
1442
1452
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1443
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1444
1454
|
var _c;
|
|
1445
1455
|
return __generator(this, function (_d) {
|
|
1446
1456
|
switch (_d.label) {
|
|
@@ -1450,7 +1460,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1450
1460
|
return [4, parseBody(output.body, context)];
|
|
1451
1461
|
case 1:
|
|
1452
1462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1453
|
-
errorCode = "UnknownError";
|
|
1454
1463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1464
|
_b = errorCode;
|
|
1456
1465
|
switch (_b) {
|
|
@@ -1470,10 +1479,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1470
1479
|
case 7: throw _d.sent();
|
|
1471
1480
|
case 8:
|
|
1472
1481
|
parsedBody = parsedOutput.body;
|
|
1482
|
+
$metadata = deserializeMetadata(output);
|
|
1483
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1473
1484
|
response = new __BaseException({
|
|
1474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1475
1486
|
$fault: "client",
|
|
1476
|
-
$metadata:
|
|
1487
|
+
$metadata: $metadata,
|
|
1477
1488
|
});
|
|
1478
1489
|
throw __decorateServiceException(response, parsedBody);
|
|
1479
1490
|
}
|
|
@@ -1498,7 +1509,7 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
1498
1509
|
});
|
|
1499
1510
|
}); };
|
|
1500
1511
|
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1501
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1512
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1502
1513
|
var _c;
|
|
1503
1514
|
return __generator(this, function (_d) {
|
|
1504
1515
|
switch (_d.label) {
|
|
@@ -1508,7 +1519,6 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
1508
1519
|
return [4, parseBody(output.body, context)];
|
|
1509
1520
|
case 1:
|
|
1510
1521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1511
|
-
errorCode = "UnknownError";
|
|
1512
1522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1523
|
_b = errorCode;
|
|
1514
1524
|
switch (_b) {
|
|
@@ -1532,10 +1542,12 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
1532
1542
|
case 9: throw _d.sent();
|
|
1533
1543
|
case 10:
|
|
1534
1544
|
parsedBody = parsedOutput.body;
|
|
1545
|
+
$metadata = deserializeMetadata(output);
|
|
1546
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1535
1547
|
response = new __BaseException({
|
|
1536
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1548
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1537
1549
|
$fault: "client",
|
|
1538
|
-
$metadata:
|
|
1550
|
+
$metadata: $metadata,
|
|
1539
1551
|
});
|
|
1540
1552
|
throw __decorateServiceException(response, parsedBody);
|
|
1541
1553
|
}
|
|
@@ -1560,7 +1572,7 @@ export var deserializeAws_restJson1StartMonitoringMemberCommand = function (outp
|
|
|
1560
1572
|
});
|
|
1561
1573
|
}); };
|
|
1562
1574
|
var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1575
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1564
1576
|
var _c;
|
|
1565
1577
|
return __generator(this, function (_d) {
|
|
1566
1578
|
switch (_d.label) {
|
|
@@ -1570,7 +1582,6 @@ var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output
|
|
|
1570
1582
|
return [4, parseBody(output.body, context)];
|
|
1571
1583
|
case 1:
|
|
1572
1584
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1573
|
-
errorCode = "UnknownError";
|
|
1574
1585
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
1586
|
_b = errorCode;
|
|
1576
1587
|
switch (_b) {
|
|
@@ -1598,10 +1609,12 @@ var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output
|
|
|
1598
1609
|
case 11: throw _d.sent();
|
|
1599
1610
|
case 12:
|
|
1600
1611
|
parsedBody = parsedOutput.body;
|
|
1612
|
+
$metadata = deserializeMetadata(output);
|
|
1613
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1601
1614
|
response = new __BaseException({
|
|
1602
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1603
1616
|
$fault: "client",
|
|
1604
|
-
$metadata:
|
|
1617
|
+
$metadata: $metadata,
|
|
1605
1618
|
});
|
|
1606
1619
|
throw __decorateServiceException(response, parsedBody);
|
|
1607
1620
|
}
|
|
@@ -1626,7 +1639,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1626
1639
|
});
|
|
1627
1640
|
}); };
|
|
1628
1641
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1629
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1642
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1630
1643
|
var _c;
|
|
1631
1644
|
return __generator(this, function (_d) {
|
|
1632
1645
|
switch (_d.label) {
|
|
@@ -1636,7 +1649,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1636
1649
|
return [4, parseBody(output.body, context)];
|
|
1637
1650
|
case 1:
|
|
1638
1651
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1639
|
-
errorCode = "UnknownError";
|
|
1640
1652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1653
|
_b = errorCode;
|
|
1642
1654
|
switch (_b) {
|
|
@@ -1656,10 +1668,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1656
1668
|
case 7: throw _d.sent();
|
|
1657
1669
|
case 8:
|
|
1658
1670
|
parsedBody = parsedOutput.body;
|
|
1671
|
+
$metadata = deserializeMetadata(output);
|
|
1672
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1659
1673
|
response = new __BaseException({
|
|
1660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1661
1675
|
$fault: "client",
|
|
1662
|
-
$metadata:
|
|
1676
|
+
$metadata: $metadata,
|
|
1663
1677
|
});
|
|
1664
1678
|
throw __decorateServiceException(response, parsedBody);
|
|
1665
1679
|
}
|
|
@@ -1684,7 +1698,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1684
1698
|
});
|
|
1685
1699
|
}); };
|
|
1686
1700
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1687
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1701
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1688
1702
|
var _c;
|
|
1689
1703
|
return __generator(this, function (_d) {
|
|
1690
1704
|
switch (_d.label) {
|
|
@@ -1694,7 +1708,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1694
1708
|
return [4, parseBody(output.body, context)];
|
|
1695
1709
|
case 1:
|
|
1696
1710
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1697
|
-
errorCode = "UnknownError";
|
|
1698
1711
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
1712
|
_b = errorCode;
|
|
1700
1713
|
switch (_b) {
|
|
@@ -1714,10 +1727,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1714
1727
|
case 7: throw _d.sent();
|
|
1715
1728
|
case 8:
|
|
1716
1729
|
parsedBody = parsedOutput.body;
|
|
1730
|
+
$metadata = deserializeMetadata(output);
|
|
1731
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1717
1732
|
response = new __BaseException({
|
|
1718
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1733
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1719
1734
|
$fault: "client",
|
|
1720
|
-
$metadata:
|
|
1735
|
+
$metadata: $metadata,
|
|
1721
1736
|
});
|
|
1722
1737
|
throw __decorateServiceException(response, parsedBody);
|
|
1723
1738
|
}
|
|
@@ -1742,7 +1757,7 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
1742
1757
|
});
|
|
1743
1758
|
}); };
|
|
1744
1759
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1745
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1760
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1746
1761
|
var _c;
|
|
1747
1762
|
return __generator(this, function (_d) {
|
|
1748
1763
|
switch (_d.label) {
|
|
@@ -1752,7 +1767,6 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
1752
1767
|
return [4, parseBody(output.body, context)];
|
|
1753
1768
|
case 1:
|
|
1754
1769
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1755
|
-
errorCode = "UnknownError";
|
|
1756
1770
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
1771
|
_b = errorCode;
|
|
1758
1772
|
switch (_b) {
|
|
@@ -1772,10 +1786,12 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
1772
1786
|
case 7: throw _d.sent();
|
|
1773
1787
|
case 8:
|
|
1774
1788
|
parsedBody = parsedOutput.body;
|
|
1789
|
+
$metadata = deserializeMetadata(output);
|
|
1790
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1775
1791
|
response = new __BaseException({
|
|
1776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1777
1793
|
$fault: "client",
|
|
1778
|
-
$metadata:
|
|
1794
|
+
$metadata: $metadata,
|
|
1779
1795
|
});
|
|
1780
1796
|
throw __decorateServiceException(response, parsedBody);
|
|
1781
1797
|
}
|
|
@@ -1854,7 +1870,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1854
1870
|
});
|
|
1855
1871
|
}); };
|
|
1856
1872
|
var serializeAws_restJson1Account = function (input, context) {
|
|
1857
|
-
return __assign(__assign({}, (input.AccountId
|
|
1873
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress }));
|
|
1858
1874
|
};
|
|
1859
1875
|
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
1860
1876
|
return input
|
|
@@ -1900,9 +1916,7 @@ var deserializeAws_restJson1AccountIdList = function (output, context) {
|
|
|
1900
1916
|
var deserializeAws_restJson1Administrator = function (output, context) {
|
|
1901
1917
|
return {
|
|
1902
1918
|
AccountId: __expectString(output.AccountId),
|
|
1903
|
-
DelegationTime: output.DelegationTime
|
|
1904
|
-
? __expectNonNull(__parseRfc3339DateTime(output.DelegationTime))
|
|
1905
|
-
: undefined,
|
|
1919
|
+
DelegationTime: output.DelegationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.DelegationTime)) : undefined,
|
|
1906
1920
|
GraphArn: __expectString(output.GraphArn),
|
|
1907
1921
|
};
|
|
1908
1922
|
};
|
|
@@ -1920,9 +1934,7 @@ var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
|
1920
1934
|
var deserializeAws_restJson1Graph = function (output, context) {
|
|
1921
1935
|
return {
|
|
1922
1936
|
Arn: __expectString(output.Arn),
|
|
1923
|
-
CreatedTime: output.CreatedTime
|
|
1924
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTime))
|
|
1925
|
-
: undefined,
|
|
1937
|
+
CreatedTime: output.CreatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTime)) : undefined,
|
|
1926
1938
|
};
|
|
1927
1939
|
};
|
|
1928
1940
|
var deserializeAws_restJson1GraphList = function (output, context) {
|
|
@@ -1944,20 +1956,16 @@ var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
|
1944
1956
|
EmailAddress: __expectString(output.EmailAddress),
|
|
1945
1957
|
GraphArn: __expectString(output.GraphArn),
|
|
1946
1958
|
InvitationType: __expectString(output.InvitationType),
|
|
1947
|
-
InvitedTime: output.InvitedTime
|
|
1948
|
-
? __expectNonNull(__parseRfc3339DateTime(output.InvitedTime))
|
|
1949
|
-
: undefined,
|
|
1959
|
+
InvitedTime: output.InvitedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.InvitedTime)) : undefined,
|
|
1950
1960
|
MasterId: __expectString(output.MasterId),
|
|
1951
1961
|
PercentOfGraphUtilization: __limitedParseDouble(output.PercentOfGraphUtilization),
|
|
1952
|
-
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime
|
|
1962
|
+
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime != null
|
|
1953
1963
|
? __expectNonNull(__parseRfc3339DateTime(output.PercentOfGraphUtilizationUpdatedTime))
|
|
1954
1964
|
: undefined,
|
|
1955
1965
|
Status: __expectString(output.Status),
|
|
1956
|
-
UpdatedTime: output.UpdatedTime
|
|
1957
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime))
|
|
1958
|
-
: undefined,
|
|
1966
|
+
UpdatedTime: output.UpdatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime)) : undefined,
|
|
1959
1967
|
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1960
|
-
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime
|
|
1968
|
+
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1961
1969
|
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdatedTime))
|
|
1962
1970
|
: undefined,
|
|
1963
1971
|
};
|
|
@@ -2056,5 +2064,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2056
2064
|
if (data["__type"] !== undefined) {
|
|
2057
2065
|
return sanitizeErrorCode(data["__type"]);
|
|
2058
2066
|
}
|
|
2059
|
-
return "";
|
|
2060
2067
|
};
|