@aws-sdk/client-detective 3.141.0 → 3.150.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 +237 -373
- package/dist-es/protocols/Aws_restJson1.js +313 -375
- package/package.json +11 -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 () {
|
|
@@ -414,7 +414,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
414
414
|
});
|
|
415
415
|
}); };
|
|
416
416
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
417
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
417
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
418
418
|
return __generator(this, function (_c) {
|
|
419
419
|
switch (_c.label) {
|
|
420
420
|
case 0: return [4, context.endpoint()];
|
|
@@ -422,16 +422,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
422
422
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
423
423
|
headers = {};
|
|
424
424
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
425
|
-
|
|
426
|
-
labelValue = input.ResourceArn;
|
|
427
|
-
if (labelValue.length <= 0) {
|
|
428
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
429
|
-
}
|
|
430
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
434
|
-
}
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
435
426
|
return [2, new __HttpRequest({
|
|
436
427
|
protocol: protocol,
|
|
437
428
|
hostname: hostname,
|
|
@@ -493,7 +484,7 @@ export var serializeAws_restJson1StartMonitoringMemberCommand = function (input,
|
|
|
493
484
|
});
|
|
494
485
|
}); };
|
|
495
486
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
496
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
497
488
|
return __generator(this, function (_c) {
|
|
498
489
|
switch (_c.label) {
|
|
499
490
|
case 0: return [4, context.endpoint()];
|
|
@@ -503,16 +494,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
503
494
|
"content-type": "application/json",
|
|
504
495
|
};
|
|
505
496
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
506
|
-
|
|
507
|
-
labelValue = input.ResourceArn;
|
|
508
|
-
if (labelValue.length <= 0) {
|
|
509
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
510
|
-
}
|
|
511
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
515
|
-
}
|
|
497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
516
498
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
517
499
|
return [2, new __HttpRequest({
|
|
518
500
|
protocol: protocol,
|
|
@@ -527,7 +509,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
527
509
|
});
|
|
528
510
|
}); };
|
|
529
511
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
512
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
531
513
|
return __generator(this, function (_c) {
|
|
532
514
|
switch (_c.label) {
|
|
533
515
|
case 0: return [4, context.endpoint()];
|
|
@@ -535,17 +517,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
535
517
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
536
518
|
headers = {};
|
|
537
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
547
|
-
}
|
|
548
|
-
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
|
+
});
|
|
549
524
|
return [2, new __HttpRequest({
|
|
550
525
|
protocol: protocol,
|
|
551
526
|
hostname: hostname,
|
|
@@ -617,18 +592,18 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
617
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
593
|
return [2, deserializeAws_restJson1AcceptInvitationCommandError(output, context)];
|
|
619
594
|
}
|
|
620
|
-
contents = {
|
|
595
|
+
contents = map({
|
|
621
596
|
$metadata: deserializeMetadata(output),
|
|
622
|
-
};
|
|
597
|
+
});
|
|
623
598
|
return [4, collectBody(output.body, context)];
|
|
624
599
|
case 1:
|
|
625
600
|
_a.sent();
|
|
626
|
-
return [2,
|
|
601
|
+
return [2, contents];
|
|
627
602
|
}
|
|
628
603
|
});
|
|
629
604
|
}); };
|
|
630
605
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
631
|
-
var parsedOutput, _a,
|
|
606
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
632
607
|
var _c;
|
|
633
608
|
return __generator(this, function (_d) {
|
|
634
609
|
switch (_d.label) {
|
|
@@ -661,14 +636,14 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
661
636
|
case 9: throw _d.sent();
|
|
662
637
|
case 10:
|
|
663
638
|
parsedBody = parsedOutput.body;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
$metadata: $metadata,
|
|
639
|
+
throwDefaultError({
|
|
640
|
+
output: output,
|
|
641
|
+
parsedBody: parsedBody,
|
|
642
|
+
exceptionCtor: __BaseException,
|
|
643
|
+
errorCode: errorCode,
|
|
670
644
|
});
|
|
671
|
-
|
|
645
|
+
_d.label = 11;
|
|
646
|
+
case 11: return [2];
|
|
672
647
|
}
|
|
673
648
|
});
|
|
674
649
|
}); };
|
|
@@ -680,28 +655,26 @@ export var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = funct
|
|
|
680
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
656
|
return [2, deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context)];
|
|
682
657
|
}
|
|
683
|
-
contents = {
|
|
658
|
+
contents = map({
|
|
684
659
|
$metadata: deserializeMetadata(output),
|
|
685
|
-
|
|
686
|
-
UnprocessedAccounts: undefined,
|
|
687
|
-
};
|
|
660
|
+
});
|
|
688
661
|
_a = __expectNonNull;
|
|
689
662
|
_b = __expectObject;
|
|
690
663
|
return [4, parseBody(output.body, context)];
|
|
691
664
|
case 1:
|
|
692
665
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
693
|
-
if (data.MemberDatasources
|
|
666
|
+
if (data.MemberDatasources != null) {
|
|
694
667
|
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
695
668
|
}
|
|
696
|
-
if (data.UnprocessedAccounts
|
|
669
|
+
if (data.UnprocessedAccounts != null) {
|
|
697
670
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
698
671
|
}
|
|
699
|
-
return [2,
|
|
672
|
+
return [2, contents];
|
|
700
673
|
}
|
|
701
674
|
});
|
|
702
675
|
}); };
|
|
703
676
|
var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
-
var parsedOutput, _a,
|
|
677
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
705
678
|
var _c;
|
|
706
679
|
return __generator(this, function (_d) {
|
|
707
680
|
switch (_d.label) {
|
|
@@ -730,14 +703,14 @@ var deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = functio
|
|
|
730
703
|
case 7: throw _d.sent();
|
|
731
704
|
case 8:
|
|
732
705
|
parsedBody = parsedOutput.body;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
$metadata: $metadata,
|
|
706
|
+
throwDefaultError({
|
|
707
|
+
output: output,
|
|
708
|
+
parsedBody: parsedBody,
|
|
709
|
+
exceptionCtor: __BaseException,
|
|
710
|
+
errorCode: errorCode,
|
|
739
711
|
});
|
|
740
|
-
|
|
712
|
+
_d.label = 9;
|
|
713
|
+
case 9: return [2];
|
|
741
714
|
}
|
|
742
715
|
});
|
|
743
716
|
}); };
|
|
@@ -749,28 +722,26 @@ export var deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = functi
|
|
|
749
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
723
|
return [2, deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context)];
|
|
751
724
|
}
|
|
752
|
-
contents = {
|
|
725
|
+
contents = map({
|
|
753
726
|
$metadata: deserializeMetadata(output),
|
|
754
|
-
|
|
755
|
-
UnprocessedGraphs: undefined,
|
|
756
|
-
};
|
|
727
|
+
});
|
|
757
728
|
_a = __expectNonNull;
|
|
758
729
|
_b = __expectObject;
|
|
759
730
|
return [4, parseBody(output.body, context)];
|
|
760
731
|
case 1:
|
|
761
732
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
762
|
-
if (data.MembershipDatasources
|
|
733
|
+
if (data.MembershipDatasources != null) {
|
|
763
734
|
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
764
735
|
}
|
|
765
|
-
if (data.UnprocessedGraphs
|
|
736
|
+
if (data.UnprocessedGraphs != null) {
|
|
766
737
|
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
767
738
|
}
|
|
768
|
-
return [2,
|
|
739
|
+
return [2, contents];
|
|
769
740
|
}
|
|
770
741
|
});
|
|
771
742
|
}); };
|
|
772
743
|
var deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
773
|
-
var parsedOutput, _a,
|
|
744
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
774
745
|
var _c;
|
|
775
746
|
return __generator(this, function (_d) {
|
|
776
747
|
switch (_d.label) {
|
|
@@ -799,14 +770,14 @@ var deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = function
|
|
|
799
770
|
case 7: throw _d.sent();
|
|
800
771
|
case 8:
|
|
801
772
|
parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
$metadata: $metadata,
|
|
773
|
+
throwDefaultError({
|
|
774
|
+
output: output,
|
|
775
|
+
parsedBody: parsedBody,
|
|
776
|
+
exceptionCtor: __BaseException,
|
|
777
|
+
errorCode: errorCode,
|
|
808
778
|
});
|
|
809
|
-
|
|
779
|
+
_d.label = 9;
|
|
780
|
+
case 9: return [2];
|
|
810
781
|
}
|
|
811
782
|
});
|
|
812
783
|
}); };
|
|
@@ -818,24 +789,23 @@ export var deserializeAws_restJson1CreateGraphCommand = function (output, contex
|
|
|
818
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
790
|
return [2, deserializeAws_restJson1CreateGraphCommandError(output, context)];
|
|
820
791
|
}
|
|
821
|
-
contents = {
|
|
792
|
+
contents = map({
|
|
822
793
|
$metadata: deserializeMetadata(output),
|
|
823
|
-
|
|
824
|
-
};
|
|
794
|
+
});
|
|
825
795
|
_a = __expectNonNull;
|
|
826
796
|
_b = __expectObject;
|
|
827
797
|
return [4, parseBody(output.body, context)];
|
|
828
798
|
case 1:
|
|
829
799
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
830
|
-
if (data.GraphArn
|
|
800
|
+
if (data.GraphArn != null) {
|
|
831
801
|
contents.GraphArn = __expectString(data.GraphArn);
|
|
832
802
|
}
|
|
833
|
-
return [2,
|
|
803
|
+
return [2, contents];
|
|
834
804
|
}
|
|
835
805
|
});
|
|
836
806
|
}); };
|
|
837
807
|
var deserializeAws_restJson1CreateGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
838
|
-
var parsedOutput, _a,
|
|
808
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
839
809
|
var _c;
|
|
840
810
|
return __generator(this, function (_d) {
|
|
841
811
|
switch (_d.label) {
|
|
@@ -864,14 +834,14 @@ var deserializeAws_restJson1CreateGraphCommandError = function (output, context)
|
|
|
864
834
|
case 7: throw _d.sent();
|
|
865
835
|
case 8:
|
|
866
836
|
parsedBody = parsedOutput.body;
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
$metadata: $metadata,
|
|
837
|
+
throwDefaultError({
|
|
838
|
+
output: output,
|
|
839
|
+
parsedBody: parsedBody,
|
|
840
|
+
exceptionCtor: __BaseException,
|
|
841
|
+
errorCode: errorCode,
|
|
873
842
|
});
|
|
874
|
-
|
|
843
|
+
_d.label = 9;
|
|
844
|
+
case 9: return [2];
|
|
875
845
|
}
|
|
876
846
|
});
|
|
877
847
|
}); };
|
|
@@ -883,28 +853,26 @@ export var deserializeAws_restJson1CreateMembersCommand = function (output, cont
|
|
|
883
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
854
|
return [2, deserializeAws_restJson1CreateMembersCommandError(output, context)];
|
|
885
855
|
}
|
|
886
|
-
contents = {
|
|
856
|
+
contents = map({
|
|
887
857
|
$metadata: deserializeMetadata(output),
|
|
888
|
-
|
|
889
|
-
UnprocessedAccounts: undefined,
|
|
890
|
-
};
|
|
858
|
+
});
|
|
891
859
|
_a = __expectNonNull;
|
|
892
860
|
_b = __expectObject;
|
|
893
861
|
return [4, parseBody(output.body, context)];
|
|
894
862
|
case 1:
|
|
895
863
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
896
|
-
if (data.Members
|
|
864
|
+
if (data.Members != null) {
|
|
897
865
|
contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
|
|
898
866
|
}
|
|
899
|
-
if (data.UnprocessedAccounts
|
|
867
|
+
if (data.UnprocessedAccounts != null) {
|
|
900
868
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
901
869
|
}
|
|
902
|
-
return [2,
|
|
870
|
+
return [2, contents];
|
|
903
871
|
}
|
|
904
872
|
});
|
|
905
873
|
}); };
|
|
906
874
|
var deserializeAws_restJson1CreateMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
907
|
-
var parsedOutput, _a,
|
|
875
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
908
876
|
var _c;
|
|
909
877
|
return __generator(this, function (_d) {
|
|
910
878
|
switch (_d.label) {
|
|
@@ -937,14 +905,14 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
937
905
|
case 9: throw _d.sent();
|
|
938
906
|
case 10:
|
|
939
907
|
parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
$metadata: $metadata,
|
|
908
|
+
throwDefaultError({
|
|
909
|
+
output: output,
|
|
910
|
+
parsedBody: parsedBody,
|
|
911
|
+
exceptionCtor: __BaseException,
|
|
912
|
+
errorCode: errorCode,
|
|
946
913
|
});
|
|
947
|
-
|
|
914
|
+
_d.label = 11;
|
|
915
|
+
case 11: return [2];
|
|
948
916
|
}
|
|
949
917
|
});
|
|
950
918
|
}); };
|
|
@@ -956,18 +924,18 @@ export var deserializeAws_restJson1DeleteGraphCommand = function (output, contex
|
|
|
956
924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
925
|
return [2, deserializeAws_restJson1DeleteGraphCommandError(output, context)];
|
|
958
926
|
}
|
|
959
|
-
contents = {
|
|
927
|
+
contents = map({
|
|
960
928
|
$metadata: deserializeMetadata(output),
|
|
961
|
-
};
|
|
929
|
+
});
|
|
962
930
|
return [4, collectBody(output.body, context)];
|
|
963
931
|
case 1:
|
|
964
932
|
_a.sent();
|
|
965
|
-
return [2,
|
|
933
|
+
return [2, contents];
|
|
966
934
|
}
|
|
967
935
|
});
|
|
968
936
|
}); };
|
|
969
937
|
var deserializeAws_restJson1DeleteGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
970
|
-
var parsedOutput, _a,
|
|
938
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
971
939
|
var _c;
|
|
972
940
|
return __generator(this, function (_d) {
|
|
973
941
|
switch (_d.label) {
|
|
@@ -996,14 +964,14 @@ var deserializeAws_restJson1DeleteGraphCommandError = function (output, context)
|
|
|
996
964
|
case 7: throw _d.sent();
|
|
997
965
|
case 8:
|
|
998
966
|
parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
$metadata: $metadata,
|
|
967
|
+
throwDefaultError({
|
|
968
|
+
output: output,
|
|
969
|
+
parsedBody: parsedBody,
|
|
970
|
+
exceptionCtor: __BaseException,
|
|
971
|
+
errorCode: errorCode,
|
|
1005
972
|
});
|
|
1006
|
-
|
|
973
|
+
_d.label = 9;
|
|
974
|
+
case 9: return [2];
|
|
1007
975
|
}
|
|
1008
976
|
});
|
|
1009
977
|
}); };
|
|
@@ -1015,28 +983,26 @@ export var deserializeAws_restJson1DeleteMembersCommand = function (output, cont
|
|
|
1015
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1016
984
|
return [2, deserializeAws_restJson1DeleteMembersCommandError(output, context)];
|
|
1017
985
|
}
|
|
1018
|
-
contents = {
|
|
986
|
+
contents = map({
|
|
1019
987
|
$metadata: deserializeMetadata(output),
|
|
1020
|
-
|
|
1021
|
-
UnprocessedAccounts: undefined,
|
|
1022
|
-
};
|
|
988
|
+
});
|
|
1023
989
|
_a = __expectNonNull;
|
|
1024
990
|
_b = __expectObject;
|
|
1025
991
|
return [4, parseBody(output.body, context)];
|
|
1026
992
|
case 1:
|
|
1027
993
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1028
|
-
if (data.AccountIds
|
|
994
|
+
if (data.AccountIds != null) {
|
|
1029
995
|
contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
|
|
1030
996
|
}
|
|
1031
|
-
if (data.UnprocessedAccounts
|
|
997
|
+
if (data.UnprocessedAccounts != null) {
|
|
1032
998
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
1033
999
|
}
|
|
1034
|
-
return [2,
|
|
1000
|
+
return [2, contents];
|
|
1035
1001
|
}
|
|
1036
1002
|
});
|
|
1037
1003
|
}); };
|
|
1038
1004
|
var deserializeAws_restJson1DeleteMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1039
|
-
var parsedOutput, _a,
|
|
1005
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1040
1006
|
var _c;
|
|
1041
1007
|
return __generator(this, function (_d) {
|
|
1042
1008
|
switch (_d.label) {
|
|
@@ -1069,14 +1035,14 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
1069
1035
|
case 9: throw _d.sent();
|
|
1070
1036
|
case 10:
|
|
1071
1037
|
parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
$metadata: $metadata,
|
|
1038
|
+
throwDefaultError({
|
|
1039
|
+
output: output,
|
|
1040
|
+
parsedBody: parsedBody,
|
|
1041
|
+
exceptionCtor: __BaseException,
|
|
1042
|
+
errorCode: errorCode,
|
|
1078
1043
|
});
|
|
1079
|
-
|
|
1044
|
+
_d.label = 11;
|
|
1045
|
+
case 11: return [2];
|
|
1080
1046
|
}
|
|
1081
1047
|
});
|
|
1082
1048
|
}); };
|
|
@@ -1088,24 +1054,23 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
1088
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
1055
|
return [2, deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context)];
|
|
1090
1056
|
}
|
|
1091
|
-
contents = {
|
|
1057
|
+
contents = map({
|
|
1092
1058
|
$metadata: deserializeMetadata(output),
|
|
1093
|
-
|
|
1094
|
-
};
|
|
1059
|
+
});
|
|
1095
1060
|
_a = __expectNonNull;
|
|
1096
1061
|
_b = __expectObject;
|
|
1097
1062
|
return [4, parseBody(output.body, context)];
|
|
1098
1063
|
case 1:
|
|
1099
1064
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1100
|
-
if (data.AutoEnable
|
|
1065
|
+
if (data.AutoEnable != null) {
|
|
1101
1066
|
contents.AutoEnable = __expectBoolean(data.AutoEnable);
|
|
1102
1067
|
}
|
|
1103
|
-
return [2,
|
|
1068
|
+
return [2, contents];
|
|
1104
1069
|
}
|
|
1105
1070
|
});
|
|
1106
1071
|
}); };
|
|
1107
1072
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1108
|
-
var parsedOutput, _a,
|
|
1073
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1109
1074
|
var _c;
|
|
1110
1075
|
return __generator(this, function (_d) {
|
|
1111
1076
|
switch (_d.label) {
|
|
@@ -1134,14 +1099,14 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
1134
1099
|
case 7: throw _d.sent();
|
|
1135
1100
|
case 8:
|
|
1136
1101
|
parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
$metadata: $metadata,
|
|
1102
|
+
throwDefaultError({
|
|
1103
|
+
output: output,
|
|
1104
|
+
parsedBody: parsedBody,
|
|
1105
|
+
exceptionCtor: __BaseException,
|
|
1106
|
+
errorCode: errorCode,
|
|
1143
1107
|
});
|
|
1144
|
-
|
|
1108
|
+
_d.label = 9;
|
|
1109
|
+
case 9: return [2];
|
|
1145
1110
|
}
|
|
1146
1111
|
});
|
|
1147
1112
|
}); };
|
|
@@ -1153,18 +1118,18 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
1153
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1154
1119
|
return [2, deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context)];
|
|
1155
1120
|
}
|
|
1156
|
-
contents = {
|
|
1121
|
+
contents = map({
|
|
1157
1122
|
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1123
|
+
});
|
|
1159
1124
|
return [4, collectBody(output.body, context)];
|
|
1160
1125
|
case 1:
|
|
1161
1126
|
_a.sent();
|
|
1162
|
-
return [2,
|
|
1127
|
+
return [2, contents];
|
|
1163
1128
|
}
|
|
1164
1129
|
});
|
|
1165
1130
|
}); };
|
|
1166
1131
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1167
|
-
var parsedOutput, _a,
|
|
1132
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1168
1133
|
var _c;
|
|
1169
1134
|
return __generator(this, function (_d) {
|
|
1170
1135
|
switch (_d.label) {
|
|
@@ -1193,14 +1158,14 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
1193
1158
|
case 7: throw _d.sent();
|
|
1194
1159
|
case 8:
|
|
1195
1160
|
parsedBody = parsedOutput.body;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
$metadata: $metadata,
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output: output,
|
|
1163
|
+
parsedBody: parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode: errorCode,
|
|
1202
1166
|
});
|
|
1203
|
-
|
|
1167
|
+
_d.label = 9;
|
|
1168
|
+
case 9: return [2];
|
|
1204
1169
|
}
|
|
1205
1170
|
});
|
|
1206
1171
|
}); };
|
|
@@ -1212,18 +1177,18 @@ export var deserializeAws_restJson1DisassociateMembershipCommand = function (out
|
|
|
1212
1177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
1178
|
return [2, deserializeAws_restJson1DisassociateMembershipCommandError(output, context)];
|
|
1214
1179
|
}
|
|
1215
|
-
contents = {
|
|
1180
|
+
contents = map({
|
|
1216
1181
|
$metadata: deserializeMetadata(output),
|
|
1217
|
-
};
|
|
1182
|
+
});
|
|
1218
1183
|
return [4, collectBody(output.body, context)];
|
|
1219
1184
|
case 1:
|
|
1220
1185
|
_a.sent();
|
|
1221
|
-
return [2,
|
|
1186
|
+
return [2, contents];
|
|
1222
1187
|
}
|
|
1223
1188
|
});
|
|
1224
1189
|
}); };
|
|
1225
1190
|
var deserializeAws_restJson1DisassociateMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1226
|
-
var parsedOutput, _a,
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1227
1192
|
var _c;
|
|
1228
1193
|
return __generator(this, function (_d) {
|
|
1229
1194
|
switch (_d.label) {
|
|
@@ -1256,14 +1221,14 @@ var deserializeAws_restJson1DisassociateMembershipCommandError = function (outpu
|
|
|
1256
1221
|
case 9: throw _d.sent();
|
|
1257
1222
|
case 10:
|
|
1258
1223
|
parsedBody = parsedOutput.body;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
$metadata: $metadata,
|
|
1224
|
+
throwDefaultError({
|
|
1225
|
+
output: output,
|
|
1226
|
+
parsedBody: parsedBody,
|
|
1227
|
+
exceptionCtor: __BaseException,
|
|
1228
|
+
errorCode: errorCode,
|
|
1265
1229
|
});
|
|
1266
|
-
|
|
1230
|
+
_d.label = 11;
|
|
1231
|
+
case 11: return [2];
|
|
1267
1232
|
}
|
|
1268
1233
|
});
|
|
1269
1234
|
}); };
|
|
@@ -1275,18 +1240,18 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
1275
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
1241
|
return [2, deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context)];
|
|
1277
1242
|
}
|
|
1278
|
-
contents = {
|
|
1243
|
+
contents = map({
|
|
1279
1244
|
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
1245
|
+
});
|
|
1281
1246
|
return [4, collectBody(output.body, context)];
|
|
1282
1247
|
case 1:
|
|
1283
1248
|
_a.sent();
|
|
1284
|
-
return [2,
|
|
1249
|
+
return [2, contents];
|
|
1285
1250
|
}
|
|
1286
1251
|
});
|
|
1287
1252
|
}); };
|
|
1288
1253
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1289
|
-
var parsedOutput, _a,
|
|
1254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1290
1255
|
var _c;
|
|
1291
1256
|
return __generator(this, function (_d) {
|
|
1292
1257
|
switch (_d.label) {
|
|
@@ -1315,14 +1280,14 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
1315
1280
|
case 7: throw _d.sent();
|
|
1316
1281
|
case 8:
|
|
1317
1282
|
parsedBody = parsedOutput.body;
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
$metadata: $metadata,
|
|
1283
|
+
throwDefaultError({
|
|
1284
|
+
output: output,
|
|
1285
|
+
parsedBody: parsedBody,
|
|
1286
|
+
exceptionCtor: __BaseException,
|
|
1287
|
+
errorCode: errorCode,
|
|
1324
1288
|
});
|
|
1325
|
-
|
|
1289
|
+
_d.label = 9;
|
|
1290
|
+
case 9: return [2];
|
|
1326
1291
|
}
|
|
1327
1292
|
});
|
|
1328
1293
|
}); };
|
|
@@ -1334,28 +1299,26 @@ export var deserializeAws_restJson1GetMembersCommand = function (output, context
|
|
|
1334
1299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
1300
|
return [2, deserializeAws_restJson1GetMembersCommandError(output, context)];
|
|
1336
1301
|
}
|
|
1337
|
-
contents = {
|
|
1302
|
+
contents = map({
|
|
1338
1303
|
$metadata: deserializeMetadata(output),
|
|
1339
|
-
|
|
1340
|
-
UnprocessedAccounts: undefined,
|
|
1341
|
-
};
|
|
1304
|
+
});
|
|
1342
1305
|
_a = __expectNonNull;
|
|
1343
1306
|
_b = __expectObject;
|
|
1344
1307
|
return [4, parseBody(output.body, context)];
|
|
1345
1308
|
case 1:
|
|
1346
1309
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1347
|
-
if (data.MemberDetails
|
|
1310
|
+
if (data.MemberDetails != null) {
|
|
1348
1311
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1349
1312
|
}
|
|
1350
|
-
if (data.UnprocessedAccounts
|
|
1313
|
+
if (data.UnprocessedAccounts != null) {
|
|
1351
1314
|
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
1352
1315
|
}
|
|
1353
|
-
return [2,
|
|
1316
|
+
return [2, contents];
|
|
1354
1317
|
}
|
|
1355
1318
|
});
|
|
1356
1319
|
}); };
|
|
1357
1320
|
var deserializeAws_restJson1GetMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1358
|
-
var parsedOutput, _a,
|
|
1321
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1359
1322
|
var _c;
|
|
1360
1323
|
return __generator(this, function (_d) {
|
|
1361
1324
|
switch (_d.label) {
|
|
@@ -1384,14 +1347,14 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1384
1347
|
case 7: throw _d.sent();
|
|
1385
1348
|
case 8:
|
|
1386
1349
|
parsedBody = parsedOutput.body;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
$metadata: $metadata,
|
|
1350
|
+
throwDefaultError({
|
|
1351
|
+
output: output,
|
|
1352
|
+
parsedBody: parsedBody,
|
|
1353
|
+
exceptionCtor: __BaseException,
|
|
1354
|
+
errorCode: errorCode,
|
|
1393
1355
|
});
|
|
1394
|
-
|
|
1356
|
+
_d.label = 9;
|
|
1357
|
+
case 9: return [2];
|
|
1395
1358
|
}
|
|
1396
1359
|
});
|
|
1397
1360
|
}); };
|
|
@@ -1403,28 +1366,26 @@ export var deserializeAws_restJson1ListDatasourcePackagesCommand = function (out
|
|
|
1403
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
1367
|
return [2, deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context)];
|
|
1405
1368
|
}
|
|
1406
|
-
contents = {
|
|
1369
|
+
contents = map({
|
|
1407
1370
|
$metadata: deserializeMetadata(output),
|
|
1408
|
-
|
|
1409
|
-
NextToken: undefined,
|
|
1410
|
-
};
|
|
1371
|
+
});
|
|
1411
1372
|
_a = __expectNonNull;
|
|
1412
1373
|
_b = __expectObject;
|
|
1413
1374
|
return [4, parseBody(output.body, context)];
|
|
1414
1375
|
case 1:
|
|
1415
1376
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1416
|
-
if (data.DatasourcePackages
|
|
1377
|
+
if (data.DatasourcePackages != null) {
|
|
1417
1378
|
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1418
1379
|
}
|
|
1419
|
-
if (data.NextToken
|
|
1380
|
+
if (data.NextToken != null) {
|
|
1420
1381
|
contents.NextToken = __expectString(data.NextToken);
|
|
1421
1382
|
}
|
|
1422
|
-
return [2,
|
|
1383
|
+
return [2, contents];
|
|
1423
1384
|
}
|
|
1424
1385
|
});
|
|
1425
1386
|
}); };
|
|
1426
1387
|
var deserializeAws_restJson1ListDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
-
var parsedOutput, _a,
|
|
1388
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1428
1389
|
var _c;
|
|
1429
1390
|
return __generator(this, function (_d) {
|
|
1430
1391
|
switch (_d.label) {
|
|
@@ -1453,14 +1414,14 @@ var deserializeAws_restJson1ListDatasourcePackagesCommandError = function (outpu
|
|
|
1453
1414
|
case 7: throw _d.sent();
|
|
1454
1415
|
case 8:
|
|
1455
1416
|
parsedBody = parsedOutput.body;
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
$metadata: $metadata,
|
|
1417
|
+
throwDefaultError({
|
|
1418
|
+
output: output,
|
|
1419
|
+
parsedBody: parsedBody,
|
|
1420
|
+
exceptionCtor: __BaseException,
|
|
1421
|
+
errorCode: errorCode,
|
|
1462
1422
|
});
|
|
1463
|
-
|
|
1423
|
+
_d.label = 9;
|
|
1424
|
+
case 9: return [2];
|
|
1464
1425
|
}
|
|
1465
1426
|
});
|
|
1466
1427
|
}); };
|
|
@@ -1472,28 +1433,26 @@ export var deserializeAws_restJson1ListGraphsCommand = function (output, context
|
|
|
1472
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
1434
|
return [2, deserializeAws_restJson1ListGraphsCommandError(output, context)];
|
|
1474
1435
|
}
|
|
1475
|
-
contents = {
|
|
1436
|
+
contents = map({
|
|
1476
1437
|
$metadata: deserializeMetadata(output),
|
|
1477
|
-
|
|
1478
|
-
NextToken: undefined,
|
|
1479
|
-
};
|
|
1438
|
+
});
|
|
1480
1439
|
_a = __expectNonNull;
|
|
1481
1440
|
_b = __expectObject;
|
|
1482
1441
|
return [4, parseBody(output.body, context)];
|
|
1483
1442
|
case 1:
|
|
1484
1443
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1485
|
-
if (data.GraphList
|
|
1444
|
+
if (data.GraphList != null) {
|
|
1486
1445
|
contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
|
|
1487
1446
|
}
|
|
1488
|
-
if (data.NextToken
|
|
1447
|
+
if (data.NextToken != null) {
|
|
1489
1448
|
contents.NextToken = __expectString(data.NextToken);
|
|
1490
1449
|
}
|
|
1491
|
-
return [2,
|
|
1450
|
+
return [2, contents];
|
|
1492
1451
|
}
|
|
1493
1452
|
});
|
|
1494
1453
|
}); };
|
|
1495
1454
|
var deserializeAws_restJson1ListGraphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1496
|
-
var parsedOutput, _a,
|
|
1455
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1497
1456
|
var _c;
|
|
1498
1457
|
return __generator(this, function (_d) {
|
|
1499
1458
|
switch (_d.label) {
|
|
@@ -1518,14 +1477,14 @@ var deserializeAws_restJson1ListGraphsCommandError = function (output, context)
|
|
|
1518
1477
|
case 5: throw _d.sent();
|
|
1519
1478
|
case 6:
|
|
1520
1479
|
parsedBody = parsedOutput.body;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
$metadata: $metadata,
|
|
1480
|
+
throwDefaultError({
|
|
1481
|
+
output: output,
|
|
1482
|
+
parsedBody: parsedBody,
|
|
1483
|
+
exceptionCtor: __BaseException,
|
|
1484
|
+
errorCode: errorCode,
|
|
1527
1485
|
});
|
|
1528
|
-
|
|
1486
|
+
_d.label = 7;
|
|
1487
|
+
case 7: return [2];
|
|
1529
1488
|
}
|
|
1530
1489
|
});
|
|
1531
1490
|
}); };
|
|
@@ -1537,28 +1496,26 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1537
1496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1538
1497
|
return [2, deserializeAws_restJson1ListInvitationsCommandError(output, context)];
|
|
1539
1498
|
}
|
|
1540
|
-
contents = {
|
|
1499
|
+
contents = map({
|
|
1541
1500
|
$metadata: deserializeMetadata(output),
|
|
1542
|
-
|
|
1543
|
-
NextToken: undefined,
|
|
1544
|
-
};
|
|
1501
|
+
});
|
|
1545
1502
|
_a = __expectNonNull;
|
|
1546
1503
|
_b = __expectObject;
|
|
1547
1504
|
return [4, parseBody(output.body, context)];
|
|
1548
1505
|
case 1:
|
|
1549
1506
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1550
|
-
if (data.Invitations
|
|
1507
|
+
if (data.Invitations != null) {
|
|
1551
1508
|
contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
|
|
1552
1509
|
}
|
|
1553
|
-
if (data.NextToken
|
|
1510
|
+
if (data.NextToken != null) {
|
|
1554
1511
|
contents.NextToken = __expectString(data.NextToken);
|
|
1555
1512
|
}
|
|
1556
|
-
return [2,
|
|
1513
|
+
return [2, contents];
|
|
1557
1514
|
}
|
|
1558
1515
|
});
|
|
1559
1516
|
}); };
|
|
1560
1517
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1561
|
-
var parsedOutput, _a,
|
|
1518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1562
1519
|
var _c;
|
|
1563
1520
|
return __generator(this, function (_d) {
|
|
1564
1521
|
switch (_d.label) {
|
|
@@ -1583,14 +1540,14 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1583
1540
|
case 5: throw _d.sent();
|
|
1584
1541
|
case 6:
|
|
1585
1542
|
parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
$metadata: $metadata,
|
|
1543
|
+
throwDefaultError({
|
|
1544
|
+
output: output,
|
|
1545
|
+
parsedBody: parsedBody,
|
|
1546
|
+
exceptionCtor: __BaseException,
|
|
1547
|
+
errorCode: errorCode,
|
|
1592
1548
|
});
|
|
1593
|
-
|
|
1549
|
+
_d.label = 7;
|
|
1550
|
+
case 7: return [2];
|
|
1594
1551
|
}
|
|
1595
1552
|
});
|
|
1596
1553
|
}); };
|
|
@@ -1602,28 +1559,26 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
1602
1559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1603
1560
|
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
1604
1561
|
}
|
|
1605
|
-
contents = {
|
|
1562
|
+
contents = map({
|
|
1606
1563
|
$metadata: deserializeMetadata(output),
|
|
1607
|
-
|
|
1608
|
-
NextToken: undefined,
|
|
1609
|
-
};
|
|
1564
|
+
});
|
|
1610
1565
|
_a = __expectNonNull;
|
|
1611
1566
|
_b = __expectObject;
|
|
1612
1567
|
return [4, parseBody(output.body, context)];
|
|
1613
1568
|
case 1:
|
|
1614
1569
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1615
|
-
if (data.MemberDetails
|
|
1570
|
+
if (data.MemberDetails != null) {
|
|
1616
1571
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1617
1572
|
}
|
|
1618
|
-
if (data.NextToken
|
|
1573
|
+
if (data.NextToken != null) {
|
|
1619
1574
|
contents.NextToken = __expectString(data.NextToken);
|
|
1620
1575
|
}
|
|
1621
|
-
return [2,
|
|
1576
|
+
return [2, contents];
|
|
1622
1577
|
}
|
|
1623
1578
|
});
|
|
1624
1579
|
}); };
|
|
1625
1580
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1626
|
-
var parsedOutput, _a,
|
|
1581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1627
1582
|
var _c;
|
|
1628
1583
|
return __generator(this, function (_d) {
|
|
1629
1584
|
switch (_d.label) {
|
|
@@ -1652,14 +1607,14 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1652
1607
|
case 7: throw _d.sent();
|
|
1653
1608
|
case 8:
|
|
1654
1609
|
parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
$metadata: $metadata,
|
|
1610
|
+
throwDefaultError({
|
|
1611
|
+
output: output,
|
|
1612
|
+
parsedBody: parsedBody,
|
|
1613
|
+
exceptionCtor: __BaseException,
|
|
1614
|
+
errorCode: errorCode,
|
|
1661
1615
|
});
|
|
1662
|
-
|
|
1616
|
+
_d.label = 9;
|
|
1617
|
+
case 9: return [2];
|
|
1663
1618
|
}
|
|
1664
1619
|
});
|
|
1665
1620
|
}); };
|
|
@@ -1671,28 +1626,26 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
1671
1626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
1627
|
return [2, deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context)];
|
|
1673
1628
|
}
|
|
1674
|
-
contents = {
|
|
1629
|
+
contents = map({
|
|
1675
1630
|
$metadata: deserializeMetadata(output),
|
|
1676
|
-
|
|
1677
|
-
NextToken: undefined,
|
|
1678
|
-
};
|
|
1631
|
+
});
|
|
1679
1632
|
_a = __expectNonNull;
|
|
1680
1633
|
_b = __expectObject;
|
|
1681
1634
|
return [4, parseBody(output.body, context)];
|
|
1682
1635
|
case 1:
|
|
1683
1636
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1684
|
-
if (data.Administrators
|
|
1637
|
+
if (data.Administrators != null) {
|
|
1685
1638
|
contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
|
|
1686
1639
|
}
|
|
1687
|
-
if (data.NextToken
|
|
1640
|
+
if (data.NextToken != null) {
|
|
1688
1641
|
contents.NextToken = __expectString(data.NextToken);
|
|
1689
1642
|
}
|
|
1690
|
-
return [2,
|
|
1643
|
+
return [2, contents];
|
|
1691
1644
|
}
|
|
1692
1645
|
});
|
|
1693
1646
|
}); };
|
|
1694
1647
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1695
|
-
var parsedOutput, _a,
|
|
1648
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1696
1649
|
var _c;
|
|
1697
1650
|
return __generator(this, function (_d) {
|
|
1698
1651
|
switch (_d.label) {
|
|
@@ -1721,14 +1674,14 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
1721
1674
|
case 7: throw _d.sent();
|
|
1722
1675
|
case 8:
|
|
1723
1676
|
parsedBody = parsedOutput.body;
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
$metadata: $metadata,
|
|
1677
|
+
throwDefaultError({
|
|
1678
|
+
output: output,
|
|
1679
|
+
parsedBody: parsedBody,
|
|
1680
|
+
exceptionCtor: __BaseException,
|
|
1681
|
+
errorCode: errorCode,
|
|
1730
1682
|
});
|
|
1731
|
-
|
|
1683
|
+
_d.label = 9;
|
|
1684
|
+
case 9: return [2];
|
|
1732
1685
|
}
|
|
1733
1686
|
});
|
|
1734
1687
|
}); };
|
|
@@ -1740,24 +1693,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1740
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
1694
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1742
1695
|
}
|
|
1743
|
-
contents = {
|
|
1696
|
+
contents = map({
|
|
1744
1697
|
$metadata: deserializeMetadata(output),
|
|
1745
|
-
|
|
1746
|
-
};
|
|
1698
|
+
});
|
|
1747
1699
|
_a = __expectNonNull;
|
|
1748
1700
|
_b = __expectObject;
|
|
1749
1701
|
return [4, parseBody(output.body, context)];
|
|
1750
1702
|
case 1:
|
|
1751
1703
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1752
|
-
if (data.Tags
|
|
1704
|
+
if (data.Tags != null) {
|
|
1753
1705
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1754
1706
|
}
|
|
1755
|
-
return [2,
|
|
1707
|
+
return [2, contents];
|
|
1756
1708
|
}
|
|
1757
1709
|
});
|
|
1758
1710
|
}); };
|
|
1759
1711
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1760
|
-
var parsedOutput, _a,
|
|
1712
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1761
1713
|
var _c;
|
|
1762
1714
|
return __generator(this, function (_d) {
|
|
1763
1715
|
switch (_d.label) {
|
|
@@ -1786,14 +1738,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1786
1738
|
case 7: throw _d.sent();
|
|
1787
1739
|
case 8:
|
|
1788
1740
|
parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
$metadata: $metadata,
|
|
1741
|
+
throwDefaultError({
|
|
1742
|
+
output: output,
|
|
1743
|
+
parsedBody: parsedBody,
|
|
1744
|
+
exceptionCtor: __BaseException,
|
|
1745
|
+
errorCode: errorCode,
|
|
1795
1746
|
});
|
|
1796
|
-
|
|
1747
|
+
_d.label = 9;
|
|
1748
|
+
case 9: return [2];
|
|
1797
1749
|
}
|
|
1798
1750
|
});
|
|
1799
1751
|
}); };
|
|
@@ -1805,18 +1757,18 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
1805
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1806
1758
|
return [2, deserializeAws_restJson1RejectInvitationCommandError(output, context)];
|
|
1807
1759
|
}
|
|
1808
|
-
contents = {
|
|
1760
|
+
contents = map({
|
|
1809
1761
|
$metadata: deserializeMetadata(output),
|
|
1810
|
-
};
|
|
1762
|
+
});
|
|
1811
1763
|
return [4, collectBody(output.body, context)];
|
|
1812
1764
|
case 1:
|
|
1813
1765
|
_a.sent();
|
|
1814
|
-
return [2,
|
|
1766
|
+
return [2, contents];
|
|
1815
1767
|
}
|
|
1816
1768
|
});
|
|
1817
1769
|
}); };
|
|
1818
1770
|
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
-
var parsedOutput, _a,
|
|
1771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1820
1772
|
var _c;
|
|
1821
1773
|
return __generator(this, function (_d) {
|
|
1822
1774
|
switch (_d.label) {
|
|
@@ -1849,14 +1801,14 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
1849
1801
|
case 9: throw _d.sent();
|
|
1850
1802
|
case 10:
|
|
1851
1803
|
parsedBody = parsedOutput.body;
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
$metadata: $metadata,
|
|
1804
|
+
throwDefaultError({
|
|
1805
|
+
output: output,
|
|
1806
|
+
parsedBody: parsedBody,
|
|
1807
|
+
exceptionCtor: __BaseException,
|
|
1808
|
+
errorCode: errorCode,
|
|
1858
1809
|
});
|
|
1859
|
-
|
|
1810
|
+
_d.label = 11;
|
|
1811
|
+
case 11: return [2];
|
|
1860
1812
|
}
|
|
1861
1813
|
});
|
|
1862
1814
|
}); };
|
|
@@ -1868,18 +1820,18 @@ export var deserializeAws_restJson1StartMonitoringMemberCommand = function (outp
|
|
|
1868
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
1821
|
return [2, deserializeAws_restJson1StartMonitoringMemberCommandError(output, context)];
|
|
1870
1822
|
}
|
|
1871
|
-
contents = {
|
|
1823
|
+
contents = map({
|
|
1872
1824
|
$metadata: deserializeMetadata(output),
|
|
1873
|
-
};
|
|
1825
|
+
});
|
|
1874
1826
|
return [4, collectBody(output.body, context)];
|
|
1875
1827
|
case 1:
|
|
1876
1828
|
_a.sent();
|
|
1877
|
-
return [2,
|
|
1829
|
+
return [2, contents];
|
|
1878
1830
|
}
|
|
1879
1831
|
});
|
|
1880
1832
|
}); };
|
|
1881
1833
|
var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1882
|
-
var parsedOutput, _a,
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1883
1835
|
var _c;
|
|
1884
1836
|
return __generator(this, function (_d) {
|
|
1885
1837
|
switch (_d.label) {
|
|
@@ -1916,14 +1868,14 @@ var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output
|
|
|
1916
1868
|
case 11: throw _d.sent();
|
|
1917
1869
|
case 12:
|
|
1918
1870
|
parsedBody = parsedOutput.body;
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
$metadata: $metadata,
|
|
1871
|
+
throwDefaultError({
|
|
1872
|
+
output: output,
|
|
1873
|
+
parsedBody: parsedBody,
|
|
1874
|
+
exceptionCtor: __BaseException,
|
|
1875
|
+
errorCode: errorCode,
|
|
1925
1876
|
});
|
|
1926
|
-
|
|
1877
|
+
_d.label = 13;
|
|
1878
|
+
case 13: return [2];
|
|
1927
1879
|
}
|
|
1928
1880
|
});
|
|
1929
1881
|
}); };
|
|
@@ -1935,18 +1887,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1935
1887
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1936
1888
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1937
1889
|
}
|
|
1938
|
-
contents = {
|
|
1890
|
+
contents = map({
|
|
1939
1891
|
$metadata: deserializeMetadata(output),
|
|
1940
|
-
};
|
|
1892
|
+
});
|
|
1941
1893
|
return [4, collectBody(output.body, context)];
|
|
1942
1894
|
case 1:
|
|
1943
1895
|
_a.sent();
|
|
1944
|
-
return [2,
|
|
1896
|
+
return [2, contents];
|
|
1945
1897
|
}
|
|
1946
1898
|
});
|
|
1947
1899
|
}); };
|
|
1948
1900
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1949
|
-
var parsedOutput, _a,
|
|
1901
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1950
1902
|
var _c;
|
|
1951
1903
|
return __generator(this, function (_d) {
|
|
1952
1904
|
switch (_d.label) {
|
|
@@ -1975,14 +1927,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1975
1927
|
case 7: throw _d.sent();
|
|
1976
1928
|
case 8:
|
|
1977
1929
|
parsedBody = parsedOutput.body;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
$metadata: $metadata,
|
|
1930
|
+
throwDefaultError({
|
|
1931
|
+
output: output,
|
|
1932
|
+
parsedBody: parsedBody,
|
|
1933
|
+
exceptionCtor: __BaseException,
|
|
1934
|
+
errorCode: errorCode,
|
|
1984
1935
|
});
|
|
1985
|
-
|
|
1936
|
+
_d.label = 9;
|
|
1937
|
+
case 9: return [2];
|
|
1986
1938
|
}
|
|
1987
1939
|
});
|
|
1988
1940
|
}); };
|
|
@@ -1994,18 +1946,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1994
1946
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1995
1947
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1996
1948
|
}
|
|
1997
|
-
contents = {
|
|
1949
|
+
contents = map({
|
|
1998
1950
|
$metadata: deserializeMetadata(output),
|
|
1999
|
-
};
|
|
1951
|
+
});
|
|
2000
1952
|
return [4, collectBody(output.body, context)];
|
|
2001
1953
|
case 1:
|
|
2002
1954
|
_a.sent();
|
|
2003
|
-
return [2,
|
|
1955
|
+
return [2, contents];
|
|
2004
1956
|
}
|
|
2005
1957
|
});
|
|
2006
1958
|
}); };
|
|
2007
1959
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2008
|
-
var parsedOutput, _a,
|
|
1960
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2009
1961
|
var _c;
|
|
2010
1962
|
return __generator(this, function (_d) {
|
|
2011
1963
|
switch (_d.label) {
|
|
@@ -2034,14 +1986,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2034
1986
|
case 7: throw _d.sent();
|
|
2035
1987
|
case 8:
|
|
2036
1988
|
parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
$metadata: $metadata,
|
|
1989
|
+
throwDefaultError({
|
|
1990
|
+
output: output,
|
|
1991
|
+
parsedBody: parsedBody,
|
|
1992
|
+
exceptionCtor: __BaseException,
|
|
1993
|
+
errorCode: errorCode,
|
|
2043
1994
|
});
|
|
2044
|
-
|
|
1995
|
+
_d.label = 9;
|
|
1996
|
+
case 9: return [2];
|
|
2045
1997
|
}
|
|
2046
1998
|
});
|
|
2047
1999
|
}); };
|
|
@@ -2053,18 +2005,18 @@ export var deserializeAws_restJson1UpdateDatasourcePackagesCommand = function (o
|
|
|
2053
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
2006
|
return [2, deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context)];
|
|
2055
2007
|
}
|
|
2056
|
-
contents = {
|
|
2008
|
+
contents = map({
|
|
2057
2009
|
$metadata: deserializeMetadata(output),
|
|
2058
|
-
};
|
|
2010
|
+
});
|
|
2059
2011
|
return [4, collectBody(output.body, context)];
|
|
2060
2012
|
case 1:
|
|
2061
2013
|
_a.sent();
|
|
2062
|
-
return [2,
|
|
2014
|
+
return [2, contents];
|
|
2063
2015
|
}
|
|
2064
2016
|
});
|
|
2065
2017
|
}); };
|
|
2066
2018
|
var deserializeAws_restJson1UpdateDatasourcePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2067
|
-
var parsedOutput, _a,
|
|
2019
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2068
2020
|
var _c;
|
|
2069
2021
|
return __generator(this, function (_d) {
|
|
2070
2022
|
switch (_d.label) {
|
|
@@ -2097,14 +2049,14 @@ var deserializeAws_restJson1UpdateDatasourcePackagesCommandError = function (out
|
|
|
2097
2049
|
case 9: throw _d.sent();
|
|
2098
2050
|
case 10:
|
|
2099
2051
|
parsedBody = parsedOutput.body;
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
$metadata: $metadata,
|
|
2052
|
+
throwDefaultError({
|
|
2053
|
+
output: output,
|
|
2054
|
+
parsedBody: parsedBody,
|
|
2055
|
+
exceptionCtor: __BaseException,
|
|
2056
|
+
errorCode: errorCode,
|
|
2106
2057
|
});
|
|
2107
|
-
|
|
2058
|
+
_d.label = 11;
|
|
2059
|
+
case 11: return [2];
|
|
2108
2060
|
}
|
|
2109
2061
|
});
|
|
2110
2062
|
}); };
|
|
@@ -2116,18 +2068,18 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
2116
2068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
2069
|
return [2, deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context)];
|
|
2118
2070
|
}
|
|
2119
|
-
contents = {
|
|
2071
|
+
contents = map({
|
|
2120
2072
|
$metadata: deserializeMetadata(output),
|
|
2121
|
-
};
|
|
2073
|
+
});
|
|
2122
2074
|
return [4, collectBody(output.body, context)];
|
|
2123
2075
|
case 1:
|
|
2124
2076
|
_a.sent();
|
|
2125
|
-
return [2,
|
|
2077
|
+
return [2, contents];
|
|
2126
2078
|
}
|
|
2127
2079
|
});
|
|
2128
2080
|
}); };
|
|
2129
2081
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2130
|
-
var parsedOutput, _a,
|
|
2082
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2131
2083
|
var _c;
|
|
2132
2084
|
return __generator(this, function (_d) {
|
|
2133
2085
|
switch (_d.label) {
|
|
@@ -2156,23 +2108,24 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
2156
2108
|
case 7: throw _d.sent();
|
|
2157
2109
|
case 8:
|
|
2158
2110
|
parsedBody = parsedOutput.body;
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
$metadata: $metadata,
|
|
2111
|
+
throwDefaultError({
|
|
2112
|
+
output: output,
|
|
2113
|
+
parsedBody: parsedBody,
|
|
2114
|
+
exceptionCtor: __BaseException,
|
|
2115
|
+
errorCode: errorCode,
|
|
2165
2116
|
});
|
|
2166
|
-
|
|
2117
|
+
_d.label = 9;
|
|
2118
|
+
case 9: return [2];
|
|
2167
2119
|
}
|
|
2168
2120
|
});
|
|
2169
2121
|
}); };
|
|
2122
|
+
var map = __map;
|
|
2170
2123
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2171
2124
|
var contents, data, exception;
|
|
2172
2125
|
return __generator(this, function (_a) {
|
|
2173
|
-
contents = {};
|
|
2126
|
+
contents = map({});
|
|
2174
2127
|
data = parsedOutput.body;
|
|
2175
|
-
if (data.Message
|
|
2128
|
+
if (data.Message != null) {
|
|
2176
2129
|
contents.Message = __expectString(data.Message);
|
|
2177
2130
|
}
|
|
2178
2131
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2182,9 +2135,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2182
2135
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
2136
|
var contents, data, exception;
|
|
2184
2137
|
return __generator(this, function (_a) {
|
|
2185
|
-
contents = {};
|
|
2138
|
+
contents = map({});
|
|
2186
2139
|
data = parsedOutput.body;
|
|
2187
|
-
if (data.Message
|
|
2140
|
+
if (data.Message != null) {
|
|
2188
2141
|
contents.Message = __expectString(data.Message);
|
|
2189
2142
|
}
|
|
2190
2143
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2194,9 +2147,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2194
2147
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2195
2148
|
var contents, data, exception;
|
|
2196
2149
|
return __generator(this, function (_a) {
|
|
2197
|
-
contents = {};
|
|
2150
|
+
contents = map({});
|
|
2198
2151
|
data = parsedOutput.body;
|
|
2199
|
-
if (data.Message
|
|
2152
|
+
if (data.Message != null) {
|
|
2200
2153
|
contents.Message = __expectString(data.Message);
|
|
2201
2154
|
}
|
|
2202
2155
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2206,12 +2159,12 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2206
2159
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2207
2160
|
var contents, data, exception;
|
|
2208
2161
|
return __generator(this, function (_a) {
|
|
2209
|
-
contents = {};
|
|
2162
|
+
contents = map({});
|
|
2210
2163
|
data = parsedOutput.body;
|
|
2211
|
-
if (data.Message
|
|
2164
|
+
if (data.Message != null) {
|
|
2212
2165
|
contents.Message = __expectString(data.Message);
|
|
2213
2166
|
}
|
|
2214
|
-
if (data.Resources
|
|
2167
|
+
if (data.Resources != null) {
|
|
2215
2168
|
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
2216
2169
|
}
|
|
2217
2170
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2221,9 +2174,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2221
2174
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2222
2175
|
var contents, data, exception;
|
|
2223
2176
|
return __generator(this, function (_a) {
|
|
2224
|
-
contents = {};
|
|
2177
|
+
contents = map({});
|
|
2225
2178
|
data = parsedOutput.body;
|
|
2226
|
-
if (data.Message
|
|
2179
|
+
if (data.Message != null) {
|
|
2227
2180
|
contents.Message = __expectString(data.Message);
|
|
2228
2181
|
}
|
|
2229
2182
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2233,15 +2186,15 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2233
2186
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2234
2187
|
var contents, data, exception;
|
|
2235
2188
|
return __generator(this, function (_a) {
|
|
2236
|
-
contents = {};
|
|
2189
|
+
contents = map({});
|
|
2237
2190
|
data = parsedOutput.body;
|
|
2238
|
-
if (data.ErrorCode
|
|
2191
|
+
if (data.ErrorCode != null) {
|
|
2239
2192
|
contents.ErrorCode = __expectString(data.ErrorCode);
|
|
2240
2193
|
}
|
|
2241
|
-
if (data.ErrorCodeReason
|
|
2194
|
+
if (data.ErrorCodeReason != null) {
|
|
2242
2195
|
contents.ErrorCodeReason = __expectString(data.ErrorCodeReason);
|
|
2243
2196
|
}
|
|
2244
|
-
if (data.Message
|
|
2197
|
+
if (data.Message != null) {
|
|
2245
2198
|
contents.Message = __expectString(data.Message);
|
|
2246
2199
|
}
|
|
2247
2200
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2255,9 +2208,6 @@ var serializeAws_restJson1AccountIdExtendedList = function (input, context) {
|
|
|
2255
2208
|
return input
|
|
2256
2209
|
.filter(function (e) { return e != null; })
|
|
2257
2210
|
.map(function (entry) {
|
|
2258
|
-
if (entry === null) {
|
|
2259
|
-
return null;
|
|
2260
|
-
}
|
|
2261
2211
|
return entry;
|
|
2262
2212
|
});
|
|
2263
2213
|
};
|
|
@@ -2265,9 +2215,6 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
|
2265
2215
|
return input
|
|
2266
2216
|
.filter(function (e) { return e != null; })
|
|
2267
2217
|
.map(function (entry) {
|
|
2268
|
-
if (entry === null) {
|
|
2269
|
-
return null;
|
|
2270
|
-
}
|
|
2271
2218
|
return entry;
|
|
2272
2219
|
});
|
|
2273
2220
|
};
|
|
@@ -2275,9 +2222,6 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
2275
2222
|
return input
|
|
2276
2223
|
.filter(function (e) { return e != null; })
|
|
2277
2224
|
.map(function (entry) {
|
|
2278
|
-
if (entry === null) {
|
|
2279
|
-
return null;
|
|
2280
|
-
}
|
|
2281
2225
|
return serializeAws_restJson1Account(entry, context);
|
|
2282
2226
|
});
|
|
2283
2227
|
};
|
|
@@ -2285,9 +2229,6 @@ var serializeAws_restJson1DatasourcePackageList = function (input, context) {
|
|
|
2285
2229
|
return input
|
|
2286
2230
|
.filter(function (e) { return e != null; })
|
|
2287
2231
|
.map(function (entry) {
|
|
2288
|
-
if (entry === null) {
|
|
2289
|
-
return null;
|
|
2290
|
-
}
|
|
2291
2232
|
return entry;
|
|
2292
2233
|
});
|
|
2293
2234
|
};
|
|
@@ -2295,9 +2236,6 @@ var serializeAws_restJson1GraphArnList = function (input, context) {
|
|
|
2295
2236
|
return input
|
|
2296
2237
|
.filter(function (e) { return e != null; })
|
|
2297
2238
|
.map(function (entry) {
|
|
2298
|
-
if (entry === null) {
|
|
2299
|
-
return null;
|
|
2300
|
-
}
|
|
2301
2239
|
return entry;
|
|
2302
2240
|
});
|
|
2303
2241
|
};
|