@aws-sdk/client-detective 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/DetectiveServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +86 -1
- package/dist-cjs/protocols/Aws_restJson1.js +193 -637
- package/dist-es/index.js +1 -0
- package/dist-es/models/DetectiveServiceException.js +12 -0
- package/dist-es/models/models_0.js +80 -1
- package/dist-es/protocols/Aws_restJson1.js +407 -724
- package/dist-types/DetectiveClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DetectiveServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DetectiveClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DetectiveServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
5
|
+
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1AcceptInvitationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -530,16 +532,16 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
530
532
|
});
|
|
531
533
|
}); };
|
|
532
534
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
533
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
534
|
-
var
|
|
535
|
-
return __generator(this, function (
|
|
536
|
-
switch (
|
|
535
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
536
|
+
var _c;
|
|
537
|
+
return __generator(this, function (_d) {
|
|
538
|
+
switch (_d.label) {
|
|
537
539
|
case 0:
|
|
538
540
|
_a = [__assign({}, output)];
|
|
539
|
-
|
|
541
|
+
_c = {};
|
|
540
542
|
return [4, parseBody(output.body, context)];
|
|
541
543
|
case 1:
|
|
542
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
544
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
543
545
|
errorCode = "UnknownError";
|
|
544
546
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
547
|
_b = errorCode;
|
|
@@ -554,40 +556,22 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
554
556
|
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
555
557
|
}
|
|
556
558
|
return [3, 10];
|
|
557
|
-
case 2:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
case
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
case 4
|
|
564
|
-
|
|
565
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
566
|
-
case 5:
|
|
567
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3, 11];
|
|
569
|
-
case 6:
|
|
570
|
-
_e = [{}];
|
|
571
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
572
|
-
case 7:
|
|
573
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
574
|
-
return [3, 11];
|
|
575
|
-
case 8:
|
|
576
|
-
_f = [{}];
|
|
577
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
578
|
-
case 9:
|
|
579
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
580
|
-
return [3, 11];
|
|
559
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
560
|
+
case 3: throw _d.sent();
|
|
561
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
562
|
+
case 5: throw _d.sent();
|
|
563
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
564
|
+
case 7: throw _d.sent();
|
|
565
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
566
|
+
case 9: throw _d.sent();
|
|
581
567
|
case 10:
|
|
582
568
|
parsedBody = parsedOutput.body;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
response
|
|
589
|
-
delete response.Message;
|
|
590
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
569
|
+
response = new __BaseException({
|
|
570
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
571
|
+
$fault: "client",
|
|
572
|
+
$metadata: deserializeMetadata(output),
|
|
573
|
+
});
|
|
574
|
+
throw __decorateServiceException(response, parsedBody);
|
|
591
575
|
}
|
|
592
576
|
});
|
|
593
577
|
}); };
|
|
@@ -616,16 +600,16 @@ export var deserializeAws_restJson1CreateGraphCommand = function (output, contex
|
|
|
616
600
|
});
|
|
617
601
|
}); };
|
|
618
602
|
var deserializeAws_restJson1CreateGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
619
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
620
|
-
var
|
|
621
|
-
return __generator(this, function (
|
|
622
|
-
switch (
|
|
603
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
604
|
+
var _c;
|
|
605
|
+
return __generator(this, function (_d) {
|
|
606
|
+
switch (_d.label) {
|
|
623
607
|
case 0:
|
|
624
608
|
_a = [__assign({}, output)];
|
|
625
|
-
|
|
609
|
+
_c = {};
|
|
626
610
|
return [4, parseBody(output.body, context)];
|
|
627
611
|
case 1:
|
|
628
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
612
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
629
613
|
errorCode = "UnknownError";
|
|
630
614
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
615
|
_b = errorCode;
|
|
@@ -638,34 +622,20 @@ var deserializeAws_restJson1CreateGraphCommandError = function (output, context)
|
|
|
638
622
|
case "com.amazonaws.detective#ServiceQuotaExceededException": return [3, 6];
|
|
639
623
|
}
|
|
640
624
|
return [3, 8];
|
|
641
|
-
case 2:
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
case
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
case 4:
|
|
648
|
-
_d = [{}];
|
|
649
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
650
|
-
case 5:
|
|
651
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
652
|
-
return [3, 9];
|
|
653
|
-
case 6:
|
|
654
|
-
_e = [{}];
|
|
655
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
656
|
-
case 7:
|
|
657
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
658
|
-
return [3, 9];
|
|
625
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
626
|
+
case 3: throw _d.sent();
|
|
627
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
628
|
+
case 5: throw _d.sent();
|
|
629
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
630
|
+
case 7: throw _d.sent();
|
|
659
631
|
case 8:
|
|
660
632
|
parsedBody = parsedOutput.body;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
response
|
|
667
|
-
delete response.Message;
|
|
668
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
633
|
+
response = new __BaseException({
|
|
634
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
635
|
+
$fault: "client",
|
|
636
|
+
$metadata: deserializeMetadata(output),
|
|
637
|
+
});
|
|
638
|
+
throw __decorateServiceException(response, parsedBody);
|
|
669
639
|
}
|
|
670
640
|
});
|
|
671
641
|
}); };
|
|
@@ -698,16 +668,16 @@ export var deserializeAws_restJson1CreateMembersCommand = function (output, cont
|
|
|
698
668
|
});
|
|
699
669
|
}); };
|
|
700
670
|
var deserializeAws_restJson1CreateMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
702
|
-
var
|
|
703
|
-
return __generator(this, function (
|
|
704
|
-
switch (
|
|
671
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
672
|
+
var _c;
|
|
673
|
+
return __generator(this, function (_d) {
|
|
674
|
+
switch (_d.label) {
|
|
705
675
|
case 0:
|
|
706
676
|
_a = [__assign({}, output)];
|
|
707
|
-
|
|
677
|
+
_c = {};
|
|
708
678
|
return [4, parseBody(output.body, context)];
|
|
709
679
|
case 1:
|
|
710
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
680
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
711
681
|
errorCode = "UnknownError";
|
|
712
682
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
683
|
_b = errorCode;
|
|
@@ -722,40 +692,22 @@ var deserializeAws_restJson1CreateMembersCommandError = function (output, contex
|
|
|
722
692
|
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
723
693
|
}
|
|
724
694
|
return [3, 10];
|
|
725
|
-
case 2:
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
case
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
case 4
|
|
732
|
-
|
|
733
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
734
|
-
case 5:
|
|
735
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
736
|
-
return [3, 11];
|
|
737
|
-
case 6:
|
|
738
|
-
_e = [{}];
|
|
739
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
740
|
-
case 7:
|
|
741
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
742
|
-
return [3, 11];
|
|
743
|
-
case 8:
|
|
744
|
-
_f = [{}];
|
|
745
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
746
|
-
case 9:
|
|
747
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
748
|
-
return [3, 11];
|
|
695
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
696
|
+
case 3: throw _d.sent();
|
|
697
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
698
|
+
case 5: throw _d.sent();
|
|
699
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
700
|
+
case 7: throw _d.sent();
|
|
701
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
702
|
+
case 9: throw _d.sent();
|
|
749
703
|
case 10:
|
|
750
704
|
parsedBody = parsedOutput.body;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
response
|
|
757
|
-
delete response.Message;
|
|
758
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
705
|
+
response = new __BaseException({
|
|
706
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
707
|
+
$fault: "client",
|
|
708
|
+
$metadata: deserializeMetadata(output),
|
|
709
|
+
});
|
|
710
|
+
throw __decorateServiceException(response, parsedBody);
|
|
759
711
|
}
|
|
760
712
|
});
|
|
761
713
|
}); };
|
|
@@ -778,16 +730,16 @@ export var deserializeAws_restJson1DeleteGraphCommand = function (output, contex
|
|
|
778
730
|
});
|
|
779
731
|
}); };
|
|
780
732
|
var deserializeAws_restJson1DeleteGraphCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
781
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
782
|
-
var
|
|
783
|
-
return __generator(this, function (
|
|
784
|
-
switch (
|
|
733
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
734
|
+
var _c;
|
|
735
|
+
return __generator(this, function (_d) {
|
|
736
|
+
switch (_d.label) {
|
|
785
737
|
case 0:
|
|
786
738
|
_a = [__assign({}, output)];
|
|
787
|
-
|
|
739
|
+
_c = {};
|
|
788
740
|
return [4, parseBody(output.body, context)];
|
|
789
741
|
case 1:
|
|
790
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
742
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
791
743
|
errorCode = "UnknownError";
|
|
792
744
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
745
|
_b = errorCode;
|
|
@@ -800,34 +752,20 @@ var deserializeAws_restJson1DeleteGraphCommandError = function (output, context)
|
|
|
800
752
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
801
753
|
}
|
|
802
754
|
return [3, 8];
|
|
803
|
-
case 2:
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
case
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
case 4:
|
|
810
|
-
_d = [{}];
|
|
811
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
812
|
-
case 5:
|
|
813
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
814
|
-
return [3, 9];
|
|
815
|
-
case 6:
|
|
816
|
-
_e = [{}];
|
|
817
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
818
|
-
case 7:
|
|
819
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
820
|
-
return [3, 9];
|
|
755
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
756
|
+
case 3: throw _d.sent();
|
|
757
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
758
|
+
case 5: throw _d.sent();
|
|
759
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
760
|
+
case 7: throw _d.sent();
|
|
821
761
|
case 8:
|
|
822
762
|
parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
response
|
|
829
|
-
delete response.Message;
|
|
830
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
763
|
+
response = new __BaseException({
|
|
764
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
765
|
+
$fault: "client",
|
|
766
|
+
$metadata: deserializeMetadata(output),
|
|
767
|
+
});
|
|
768
|
+
throw __decorateServiceException(response, parsedBody);
|
|
831
769
|
}
|
|
832
770
|
});
|
|
833
771
|
}); };
|
|
@@ -860,16 +798,16 @@ export var deserializeAws_restJson1DeleteMembersCommand = function (output, cont
|
|
|
860
798
|
});
|
|
861
799
|
}); };
|
|
862
800
|
var deserializeAws_restJson1DeleteMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
863
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
864
|
-
var
|
|
865
|
-
return __generator(this, function (
|
|
866
|
-
switch (
|
|
801
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
802
|
+
var _c;
|
|
803
|
+
return __generator(this, function (_d) {
|
|
804
|
+
switch (_d.label) {
|
|
867
805
|
case 0:
|
|
868
806
|
_a = [__assign({}, output)];
|
|
869
|
-
|
|
807
|
+
_c = {};
|
|
870
808
|
return [4, parseBody(output.body, context)];
|
|
871
809
|
case 1:
|
|
872
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
810
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
873
811
|
errorCode = "UnknownError";
|
|
874
812
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
813
|
_b = errorCode;
|
|
@@ -884,40 +822,22 @@ var deserializeAws_restJson1DeleteMembersCommandError = function (output, contex
|
|
|
884
822
|
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
885
823
|
}
|
|
886
824
|
return [3, 10];
|
|
887
|
-
case 2:
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
case
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
case 4
|
|
894
|
-
|
|
895
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
896
|
-
case 5:
|
|
897
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
898
|
-
return [3, 11];
|
|
899
|
-
case 6:
|
|
900
|
-
_e = [{}];
|
|
901
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
902
|
-
case 7:
|
|
903
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
904
|
-
return [3, 11];
|
|
905
|
-
case 8:
|
|
906
|
-
_f = [{}];
|
|
907
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
908
|
-
case 9:
|
|
909
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3, 11];
|
|
825
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
826
|
+
case 3: throw _d.sent();
|
|
827
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
828
|
+
case 5: throw _d.sent();
|
|
829
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
830
|
+
case 7: throw _d.sent();
|
|
831
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 9: throw _d.sent();
|
|
911
833
|
case 10:
|
|
912
834
|
parsedBody = parsedOutput.body;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
response
|
|
919
|
-
delete response.Message;
|
|
920
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
835
|
+
response = new __BaseException({
|
|
836
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
837
|
+
$fault: "client",
|
|
838
|
+
$metadata: deserializeMetadata(output),
|
|
839
|
+
});
|
|
840
|
+
throw __decorateServiceException(response, parsedBody);
|
|
921
841
|
}
|
|
922
842
|
});
|
|
923
843
|
}); };
|
|
@@ -946,16 +866,16 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
946
866
|
});
|
|
947
867
|
}); };
|
|
948
868
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
949
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
950
|
-
var
|
|
951
|
-
return __generator(this, function (
|
|
952
|
-
switch (
|
|
869
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
870
|
+
var _c;
|
|
871
|
+
return __generator(this, function (_d) {
|
|
872
|
+
switch (_d.label) {
|
|
953
873
|
case 0:
|
|
954
874
|
_a = [__assign({}, output)];
|
|
955
|
-
|
|
875
|
+
_c = {};
|
|
956
876
|
return [4, parseBody(output.body, context)];
|
|
957
877
|
case 1:
|
|
958
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
878
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
959
879
|
errorCode = "UnknownError";
|
|
960
880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
881
|
_b = errorCode;
|
|
@@ -968,34 +888,20 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
968
888
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
969
889
|
}
|
|
970
890
|
return [3, 8];
|
|
971
|
-
case 2:
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
case
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
case 4:
|
|
978
|
-
_d = [{}];
|
|
979
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
980
|
-
case 5:
|
|
981
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
982
|
-
return [3, 9];
|
|
983
|
-
case 6:
|
|
984
|
-
_e = [{}];
|
|
985
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
986
|
-
case 7:
|
|
987
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
988
|
-
return [3, 9];
|
|
891
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
892
|
+
case 3: throw _d.sent();
|
|
893
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
894
|
+
case 5: throw _d.sent();
|
|
895
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
896
|
+
case 7: throw _d.sent();
|
|
989
897
|
case 8:
|
|
990
898
|
parsedBody = parsedOutput.body;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
response
|
|
997
|
-
delete response.Message;
|
|
998
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
899
|
+
response = new __BaseException({
|
|
900
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
901
|
+
$fault: "client",
|
|
902
|
+
$metadata: deserializeMetadata(output),
|
|
903
|
+
});
|
|
904
|
+
throw __decorateServiceException(response, parsedBody);
|
|
999
905
|
}
|
|
1000
906
|
});
|
|
1001
907
|
}); };
|
|
@@ -1018,16 +924,16 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
1018
924
|
});
|
|
1019
925
|
}); };
|
|
1020
926
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1021
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1022
|
-
var
|
|
1023
|
-
return __generator(this, function (
|
|
1024
|
-
switch (
|
|
927
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
928
|
+
var _c;
|
|
929
|
+
return __generator(this, function (_d) {
|
|
930
|
+
switch (_d.label) {
|
|
1025
931
|
case 0:
|
|
1026
932
|
_a = [__assign({}, output)];
|
|
1027
|
-
|
|
933
|
+
_c = {};
|
|
1028
934
|
return [4, parseBody(output.body, context)];
|
|
1029
935
|
case 1:
|
|
1030
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
936
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1031
937
|
errorCode = "UnknownError";
|
|
1032
938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
939
|
_b = errorCode;
|
|
@@ -1040,34 +946,20 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
1040
946
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1041
947
|
}
|
|
1042
948
|
return [3, 8];
|
|
1043
|
-
case 2:
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
case
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
case 4:
|
|
1050
|
-
_d = [{}];
|
|
1051
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1052
|
-
case 5:
|
|
1053
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1054
|
-
return [3, 9];
|
|
1055
|
-
case 6:
|
|
1056
|
-
_e = [{}];
|
|
1057
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1058
|
-
case 7:
|
|
1059
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1060
|
-
return [3, 9];
|
|
949
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
950
|
+
case 3: throw _d.sent();
|
|
951
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
952
|
+
case 5: throw _d.sent();
|
|
953
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
954
|
+
case 7: throw _d.sent();
|
|
1061
955
|
case 8:
|
|
1062
956
|
parsedBody = parsedOutput.body;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
response
|
|
1069
|
-
delete response.Message;
|
|
1070
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
957
|
+
response = new __BaseException({
|
|
958
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
959
|
+
$fault: "client",
|
|
960
|
+
$metadata: deserializeMetadata(output),
|
|
961
|
+
});
|
|
962
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1071
963
|
}
|
|
1072
964
|
});
|
|
1073
965
|
}); };
|
|
@@ -1090,16 +982,16 @@ export var deserializeAws_restJson1DisassociateMembershipCommand = function (out
|
|
|
1090
982
|
});
|
|
1091
983
|
}); };
|
|
1092
984
|
var deserializeAws_restJson1DisassociateMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1093
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1094
|
-
var
|
|
1095
|
-
return __generator(this, function (
|
|
1096
|
-
switch (
|
|
985
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
986
|
+
var _c;
|
|
987
|
+
return __generator(this, function (_d) {
|
|
988
|
+
switch (_d.label) {
|
|
1097
989
|
case 0:
|
|
1098
990
|
_a = [__assign({}, output)];
|
|
1099
|
-
|
|
991
|
+
_c = {};
|
|
1100
992
|
return [4, parseBody(output.body, context)];
|
|
1101
993
|
case 1:
|
|
1102
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
994
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1103
995
|
errorCode = "UnknownError";
|
|
1104
996
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
997
|
_b = errorCode;
|
|
@@ -1114,40 +1006,22 @@ var deserializeAws_restJson1DisassociateMembershipCommandError = function (outpu
|
|
|
1114
1006
|
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
1115
1007
|
}
|
|
1116
1008
|
return [3, 10];
|
|
1117
|
-
case 2:
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
case
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
case 4
|
|
1124
|
-
|
|
1125
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1126
|
-
case 5:
|
|
1127
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1128
|
-
return [3, 11];
|
|
1129
|
-
case 6:
|
|
1130
|
-
_e = [{}];
|
|
1131
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1132
|
-
case 7:
|
|
1133
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1134
|
-
return [3, 11];
|
|
1135
|
-
case 8:
|
|
1136
|
-
_f = [{}];
|
|
1137
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1138
|
-
case 9:
|
|
1139
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1140
|
-
return [3, 11];
|
|
1009
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1010
|
+
case 3: throw _d.sent();
|
|
1011
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1012
|
+
case 5: throw _d.sent();
|
|
1013
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1014
|
+
case 7: throw _d.sent();
|
|
1015
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1016
|
+
case 9: throw _d.sent();
|
|
1141
1017
|
case 10:
|
|
1142
1018
|
parsedBody = parsedOutput.body;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
response
|
|
1149
|
-
delete response.Message;
|
|
1150
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1019
|
+
response = new __BaseException({
|
|
1020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
|
+
$fault: "client",
|
|
1022
|
+
$metadata: deserializeMetadata(output),
|
|
1023
|
+
});
|
|
1024
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1151
1025
|
}
|
|
1152
1026
|
});
|
|
1153
1027
|
}); };
|
|
@@ -1170,16 +1044,16 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
1170
1044
|
});
|
|
1171
1045
|
}); };
|
|
1172
1046
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1173
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1174
|
-
var
|
|
1175
|
-
return __generator(this, function (
|
|
1176
|
-
switch (
|
|
1047
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1048
|
+
var _c;
|
|
1049
|
+
return __generator(this, function (_d) {
|
|
1050
|
+
switch (_d.label) {
|
|
1177
1051
|
case 0:
|
|
1178
1052
|
_a = [__assign({}, output)];
|
|
1179
|
-
|
|
1053
|
+
_c = {};
|
|
1180
1054
|
return [4, parseBody(output.body, context)];
|
|
1181
1055
|
case 1:
|
|
1182
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1056
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1183
1057
|
errorCode = "UnknownError";
|
|
1184
1058
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
1059
|
_b = errorCode;
|
|
@@ -1192,34 +1066,20 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
1192
1066
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1193
1067
|
}
|
|
1194
1068
|
return [3, 8];
|
|
1195
|
-
case 2:
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
case
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
case 4:
|
|
1202
|
-
_d = [{}];
|
|
1203
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1204
|
-
case 5:
|
|
1205
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3, 9];
|
|
1207
|
-
case 6:
|
|
1208
|
-
_e = [{}];
|
|
1209
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1210
|
-
case 7:
|
|
1211
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3, 9];
|
|
1069
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1070
|
+
case 3: throw _d.sent();
|
|
1071
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1072
|
+
case 5: throw _d.sent();
|
|
1073
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1074
|
+
case 7: throw _d.sent();
|
|
1213
1075
|
case 8:
|
|
1214
1076
|
parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
response
|
|
1221
|
-
delete response.Message;
|
|
1222
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1077
|
+
response = new __BaseException({
|
|
1078
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
$fault: "client",
|
|
1080
|
+
$metadata: deserializeMetadata(output),
|
|
1081
|
+
});
|
|
1082
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1223
1083
|
}
|
|
1224
1084
|
});
|
|
1225
1085
|
}); };
|
|
@@ -1252,16 +1112,16 @@ export var deserializeAws_restJson1GetMembersCommand = function (output, context
|
|
|
1252
1112
|
});
|
|
1253
1113
|
}); };
|
|
1254
1114
|
var deserializeAws_restJson1GetMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1255
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1256
|
-
var
|
|
1257
|
-
return __generator(this, function (
|
|
1258
|
-
switch (
|
|
1115
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1116
|
+
var _c;
|
|
1117
|
+
return __generator(this, function (_d) {
|
|
1118
|
+
switch (_d.label) {
|
|
1259
1119
|
case 0:
|
|
1260
1120
|
_a = [__assign({}, output)];
|
|
1261
|
-
|
|
1121
|
+
_c = {};
|
|
1262
1122
|
return [4, parseBody(output.body, context)];
|
|
1263
1123
|
case 1:
|
|
1264
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1124
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1265
1125
|
errorCode = "UnknownError";
|
|
1266
1126
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1127
|
_b = errorCode;
|
|
@@ -1274,34 +1134,20 @@ var deserializeAws_restJson1GetMembersCommandError = function (output, context)
|
|
|
1274
1134
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1275
1135
|
}
|
|
1276
1136
|
return [3, 8];
|
|
1277
|
-
case 2:
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
case
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
case 4:
|
|
1284
|
-
_d = [{}];
|
|
1285
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1286
|
-
case 5:
|
|
1287
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1288
|
-
return [3, 9];
|
|
1289
|
-
case 6:
|
|
1290
|
-
_e = [{}];
|
|
1291
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1292
|
-
case 7:
|
|
1293
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1294
|
-
return [3, 9];
|
|
1137
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1138
|
+
case 3: throw _d.sent();
|
|
1139
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1140
|
+
case 5: throw _d.sent();
|
|
1141
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1142
|
+
case 7: throw _d.sent();
|
|
1295
1143
|
case 8:
|
|
1296
1144
|
parsedBody = parsedOutput.body;
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
response
|
|
1303
|
-
delete response.Message;
|
|
1304
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1145
|
+
response = new __BaseException({
|
|
1146
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
$fault: "client",
|
|
1148
|
+
$metadata: deserializeMetadata(output),
|
|
1149
|
+
});
|
|
1150
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1305
1151
|
}
|
|
1306
1152
|
});
|
|
1307
1153
|
}); };
|
|
@@ -1334,16 +1180,16 @@ export var deserializeAws_restJson1ListGraphsCommand = function (output, context
|
|
|
1334
1180
|
});
|
|
1335
1181
|
}); };
|
|
1336
1182
|
var deserializeAws_restJson1ListGraphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1338
|
-
var
|
|
1339
|
-
return __generator(this, function (
|
|
1340
|
-
switch (
|
|
1183
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1184
|
+
var _c;
|
|
1185
|
+
return __generator(this, function (_d) {
|
|
1186
|
+
switch (_d.label) {
|
|
1341
1187
|
case 0:
|
|
1342
1188
|
_a = [__assign({}, output)];
|
|
1343
|
-
|
|
1189
|
+
_c = {};
|
|
1344
1190
|
return [4, parseBody(output.body, context)];
|
|
1345
1191
|
case 1:
|
|
1346
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1192
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1347
1193
|
errorCode = "UnknownError";
|
|
1348
1194
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1195
|
_b = errorCode;
|
|
@@ -1354,28 +1200,18 @@ var deserializeAws_restJson1ListGraphsCommandError = function (output, context)
|
|
|
1354
1200
|
case "com.amazonaws.detective#ValidationException": return [3, 4];
|
|
1355
1201
|
}
|
|
1356
1202
|
return [3, 6];
|
|
1357
|
-
case 2:
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
case
|
|
1361
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1362
|
-
return [3, 7];
|
|
1363
|
-
case 4:
|
|
1364
|
-
_d = [{}];
|
|
1365
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1366
|
-
case 5:
|
|
1367
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1368
|
-
return [3, 7];
|
|
1203
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1204
|
+
case 3: throw _d.sent();
|
|
1205
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 5: throw _d.sent();
|
|
1369
1207
|
case 6:
|
|
1370
1208
|
parsedBody = parsedOutput.body;
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
response
|
|
1377
|
-
delete response.Message;
|
|
1378
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1209
|
+
response = new __BaseException({
|
|
1210
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1211
|
+
$fault: "client",
|
|
1212
|
+
$metadata: deserializeMetadata(output),
|
|
1213
|
+
});
|
|
1214
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1379
1215
|
}
|
|
1380
1216
|
});
|
|
1381
1217
|
}); };
|
|
@@ -1408,16 +1244,16 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1408
1244
|
});
|
|
1409
1245
|
}); };
|
|
1410
1246
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1411
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1412
|
-
var
|
|
1413
|
-
return __generator(this, function (
|
|
1414
|
-
switch (
|
|
1247
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1248
|
+
var _c;
|
|
1249
|
+
return __generator(this, function (_d) {
|
|
1250
|
+
switch (_d.label) {
|
|
1415
1251
|
case 0:
|
|
1416
1252
|
_a = [__assign({}, output)];
|
|
1417
|
-
|
|
1253
|
+
_c = {};
|
|
1418
1254
|
return [4, parseBody(output.body, context)];
|
|
1419
1255
|
case 1:
|
|
1420
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1256
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1421
1257
|
errorCode = "UnknownError";
|
|
1422
1258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1259
|
_b = errorCode;
|
|
@@ -1428,28 +1264,18 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1428
1264
|
case "com.amazonaws.detective#ValidationException": return [3, 4];
|
|
1429
1265
|
}
|
|
1430
1266
|
return [3, 6];
|
|
1431
|
-
case 2:
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
case
|
|
1435
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1436
|
-
return [3, 7];
|
|
1437
|
-
case 4:
|
|
1438
|
-
_d = [{}];
|
|
1439
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1440
|
-
case 5:
|
|
1441
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1442
|
-
return [3, 7];
|
|
1267
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1268
|
+
case 3: throw _d.sent();
|
|
1269
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1270
|
+
case 5: throw _d.sent();
|
|
1443
1271
|
case 6:
|
|
1444
1272
|
parsedBody = parsedOutput.body;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
response
|
|
1451
|
-
delete response.Message;
|
|
1452
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1273
|
+
response = new __BaseException({
|
|
1274
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1275
|
+
$fault: "client",
|
|
1276
|
+
$metadata: deserializeMetadata(output),
|
|
1277
|
+
});
|
|
1278
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1453
1279
|
}
|
|
1454
1280
|
});
|
|
1455
1281
|
}); };
|
|
@@ -1482,16 +1308,16 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
1482
1308
|
});
|
|
1483
1309
|
}); };
|
|
1484
1310
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1485
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1486
|
-
var
|
|
1487
|
-
return __generator(this, function (
|
|
1488
|
-
switch (
|
|
1311
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1312
|
+
var _c;
|
|
1313
|
+
return __generator(this, function (_d) {
|
|
1314
|
+
switch (_d.label) {
|
|
1489
1315
|
case 0:
|
|
1490
1316
|
_a = [__assign({}, output)];
|
|
1491
|
-
|
|
1317
|
+
_c = {};
|
|
1492
1318
|
return [4, parseBody(output.body, context)];
|
|
1493
1319
|
case 1:
|
|
1494
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1320
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1495
1321
|
errorCode = "UnknownError";
|
|
1496
1322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1323
|
_b = errorCode;
|
|
@@ -1504,34 +1330,20 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1504
1330
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1505
1331
|
}
|
|
1506
1332
|
return [3, 8];
|
|
1507
|
-
case 2:
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
case
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
case 4:
|
|
1514
|
-
_d = [{}];
|
|
1515
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1516
|
-
case 5:
|
|
1517
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1518
|
-
return [3, 9];
|
|
1519
|
-
case 6:
|
|
1520
|
-
_e = [{}];
|
|
1521
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1522
|
-
case 7:
|
|
1523
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3, 9];
|
|
1333
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1334
|
+
case 3: throw _d.sent();
|
|
1335
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1336
|
+
case 5: throw _d.sent();
|
|
1337
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1338
|
+
case 7: throw _d.sent();
|
|
1525
1339
|
case 8:
|
|
1526
1340
|
parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
response
|
|
1533
|
-
delete response.Message;
|
|
1534
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1341
|
+
response = new __BaseException({
|
|
1342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1343
|
+
$fault: "client",
|
|
1344
|
+
$metadata: deserializeMetadata(output),
|
|
1345
|
+
});
|
|
1346
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1535
1347
|
}
|
|
1536
1348
|
});
|
|
1537
1349
|
}); };
|
|
@@ -1564,16 +1376,16 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
1564
1376
|
});
|
|
1565
1377
|
}); };
|
|
1566
1378
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1567
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1568
|
-
var
|
|
1569
|
-
return __generator(this, function (
|
|
1570
|
-
switch (
|
|
1379
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1380
|
+
var _c;
|
|
1381
|
+
return __generator(this, function (_d) {
|
|
1382
|
+
switch (_d.label) {
|
|
1571
1383
|
case 0:
|
|
1572
1384
|
_a = [__assign({}, output)];
|
|
1573
|
-
|
|
1385
|
+
_c = {};
|
|
1574
1386
|
return [4, parseBody(output.body, context)];
|
|
1575
1387
|
case 1:
|
|
1576
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1388
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1577
1389
|
errorCode = "UnknownError";
|
|
1578
1390
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1391
|
_b = errorCode;
|
|
@@ -1586,34 +1398,20 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
1586
1398
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1587
1399
|
}
|
|
1588
1400
|
return [3, 8];
|
|
1589
|
-
case 2:
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
case
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
case 4:
|
|
1596
|
-
_d = [{}];
|
|
1597
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1598
|
-
case 5:
|
|
1599
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
-
return [3, 9];
|
|
1601
|
-
case 6:
|
|
1602
|
-
_e = [{}];
|
|
1603
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1604
|
-
case 7:
|
|
1605
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1606
|
-
return [3, 9];
|
|
1401
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1402
|
+
case 3: throw _d.sent();
|
|
1403
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1404
|
+
case 5: throw _d.sent();
|
|
1405
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1406
|
+
case 7: throw _d.sent();
|
|
1607
1407
|
case 8:
|
|
1608
1408
|
parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
response
|
|
1615
|
-
delete response.Message;
|
|
1616
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1409
|
+
response = new __BaseException({
|
|
1410
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1411
|
+
$fault: "client",
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
});
|
|
1414
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1617
1415
|
}
|
|
1618
1416
|
});
|
|
1619
1417
|
}); };
|
|
@@ -1642,16 +1440,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1642
1440
|
});
|
|
1643
1441
|
}); };
|
|
1644
1442
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1645
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1646
|
-
var
|
|
1647
|
-
return __generator(this, function (
|
|
1648
|
-
switch (
|
|
1443
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1444
|
+
var _c;
|
|
1445
|
+
return __generator(this, function (_d) {
|
|
1446
|
+
switch (_d.label) {
|
|
1649
1447
|
case 0:
|
|
1650
1448
|
_a = [__assign({}, output)];
|
|
1651
|
-
|
|
1449
|
+
_c = {};
|
|
1652
1450
|
return [4, parseBody(output.body, context)];
|
|
1653
1451
|
case 1:
|
|
1654
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1452
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1655
1453
|
errorCode = "UnknownError";
|
|
1656
1454
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1455
|
_b = errorCode;
|
|
@@ -1664,34 +1462,20 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1664
1462
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1665
1463
|
}
|
|
1666
1464
|
return [3, 8];
|
|
1667
|
-
case 2:
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
case
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
case 4:
|
|
1674
|
-
_d = [{}];
|
|
1675
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1676
|
-
case 5:
|
|
1677
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1678
|
-
return [3, 9];
|
|
1679
|
-
case 6:
|
|
1680
|
-
_e = [{}];
|
|
1681
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1682
|
-
case 7:
|
|
1683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3, 9];
|
|
1465
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1466
|
+
case 3: throw _d.sent();
|
|
1467
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1468
|
+
case 5: throw _d.sent();
|
|
1469
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1470
|
+
case 7: throw _d.sent();
|
|
1685
1471
|
case 8:
|
|
1686
1472
|
parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
response
|
|
1693
|
-
delete response.Message;
|
|
1694
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1473
|
+
response = new __BaseException({
|
|
1474
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1475
|
+
$fault: "client",
|
|
1476
|
+
$metadata: deserializeMetadata(output),
|
|
1477
|
+
});
|
|
1478
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1695
1479
|
}
|
|
1696
1480
|
});
|
|
1697
1481
|
}); };
|
|
@@ -1714,16 +1498,16 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
1714
1498
|
});
|
|
1715
1499
|
}); };
|
|
1716
1500
|
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1717
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1718
|
-
var
|
|
1719
|
-
return __generator(this, function (
|
|
1720
|
-
switch (
|
|
1501
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1502
|
+
var _c;
|
|
1503
|
+
return __generator(this, function (_d) {
|
|
1504
|
+
switch (_d.label) {
|
|
1721
1505
|
case 0:
|
|
1722
1506
|
_a = [__assign({}, output)];
|
|
1723
|
-
|
|
1507
|
+
_c = {};
|
|
1724
1508
|
return [4, parseBody(output.body, context)];
|
|
1725
1509
|
case 1:
|
|
1726
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1510
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1727
1511
|
errorCode = "UnknownError";
|
|
1728
1512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1513
|
_b = errorCode;
|
|
@@ -1738,40 +1522,22 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
1738
1522
|
case "com.amazonaws.detective#ValidationException": return [3, 8];
|
|
1739
1523
|
}
|
|
1740
1524
|
return [3, 10];
|
|
1741
|
-
case 2:
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
case
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
case 4
|
|
1748
|
-
|
|
1749
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1750
|
-
case 5:
|
|
1751
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1752
|
-
return [3, 11];
|
|
1753
|
-
case 6:
|
|
1754
|
-
_e = [{}];
|
|
1755
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1756
|
-
case 7:
|
|
1757
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1758
|
-
return [3, 11];
|
|
1759
|
-
case 8:
|
|
1760
|
-
_f = [{}];
|
|
1761
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1762
|
-
case 9:
|
|
1763
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1764
|
-
return [3, 11];
|
|
1525
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1526
|
+
case 3: throw _d.sent();
|
|
1527
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1528
|
+
case 5: throw _d.sent();
|
|
1529
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1530
|
+
case 7: throw _d.sent();
|
|
1531
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1532
|
+
case 9: throw _d.sent();
|
|
1765
1533
|
case 10:
|
|
1766
1534
|
parsedBody = parsedOutput.body;
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
response
|
|
1773
|
-
delete response.Message;
|
|
1774
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1535
|
+
response = new __BaseException({
|
|
1536
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1537
|
+
$fault: "client",
|
|
1538
|
+
$metadata: deserializeMetadata(output),
|
|
1539
|
+
});
|
|
1540
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1775
1541
|
}
|
|
1776
1542
|
});
|
|
1777
1543
|
}); };
|
|
@@ -1794,16 +1560,16 @@ export var deserializeAws_restJson1StartMonitoringMemberCommand = function (outp
|
|
|
1794
1560
|
});
|
|
1795
1561
|
}); };
|
|
1796
1562
|
var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1797
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1798
|
-
var
|
|
1799
|
-
return __generator(this, function (
|
|
1800
|
-
switch (
|
|
1563
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1564
|
+
var _c;
|
|
1565
|
+
return __generator(this, function (_d) {
|
|
1566
|
+
switch (_d.label) {
|
|
1801
1567
|
case 0:
|
|
1802
1568
|
_a = [__assign({}, output)];
|
|
1803
|
-
|
|
1569
|
+
_c = {};
|
|
1804
1570
|
return [4, parseBody(output.body, context)];
|
|
1805
1571
|
case 1:
|
|
1806
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1572
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1807
1573
|
errorCode = "UnknownError";
|
|
1808
1574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
1575
|
_b = errorCode;
|
|
@@ -1820,46 +1586,24 @@ var deserializeAws_restJson1StartMonitoringMemberCommandError = function (output
|
|
|
1820
1586
|
case "com.amazonaws.detective#ValidationException": return [3, 10];
|
|
1821
1587
|
}
|
|
1822
1588
|
return [3, 12];
|
|
1823
|
-
case 2:
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
case
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
case 4
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
case
|
|
1833
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1834
|
-
return [3, 13];
|
|
1835
|
-
case 6:
|
|
1836
|
-
_e = [{}];
|
|
1837
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1838
|
-
case 7:
|
|
1839
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1840
|
-
return [3, 13];
|
|
1841
|
-
case 8:
|
|
1842
|
-
_f = [{}];
|
|
1843
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1844
|
-
case 9:
|
|
1845
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1846
|
-
return [3, 13];
|
|
1847
|
-
case 10:
|
|
1848
|
-
_g = [{}];
|
|
1849
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1850
|
-
case 11:
|
|
1851
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1852
|
-
return [3, 13];
|
|
1589
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1590
|
+
case 3: throw _d.sent();
|
|
1591
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1592
|
+
case 5: throw _d.sent();
|
|
1593
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1594
|
+
case 7: throw _d.sent();
|
|
1595
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1596
|
+
case 9: throw _d.sent();
|
|
1597
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1598
|
+
case 11: throw _d.sent();
|
|
1853
1599
|
case 12:
|
|
1854
1600
|
parsedBody = parsedOutput.body;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
response
|
|
1861
|
-
delete response.Message;
|
|
1862
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1601
|
+
response = new __BaseException({
|
|
1602
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
$fault: "client",
|
|
1604
|
+
$metadata: deserializeMetadata(output),
|
|
1605
|
+
});
|
|
1606
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1863
1607
|
}
|
|
1864
1608
|
});
|
|
1865
1609
|
}); };
|
|
@@ -1882,16 +1626,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1882
1626
|
});
|
|
1883
1627
|
}); };
|
|
1884
1628
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1885
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1886
|
-
var
|
|
1887
|
-
return __generator(this, function (
|
|
1888
|
-
switch (
|
|
1629
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1630
|
+
var _c;
|
|
1631
|
+
return __generator(this, function (_d) {
|
|
1632
|
+
switch (_d.label) {
|
|
1889
1633
|
case 0:
|
|
1890
1634
|
_a = [__assign({}, output)];
|
|
1891
|
-
|
|
1635
|
+
_c = {};
|
|
1892
1636
|
return [4, parseBody(output.body, context)];
|
|
1893
1637
|
case 1:
|
|
1894
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1638
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1895
1639
|
errorCode = "UnknownError";
|
|
1896
1640
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1641
|
_b = errorCode;
|
|
@@ -1904,34 +1648,20 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1904
1648
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1905
1649
|
}
|
|
1906
1650
|
return [3, 8];
|
|
1907
|
-
case 2:
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
case
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
case 4:
|
|
1914
|
-
_d = [{}];
|
|
1915
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1916
|
-
case 5:
|
|
1917
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1918
|
-
return [3, 9];
|
|
1919
|
-
case 6:
|
|
1920
|
-
_e = [{}];
|
|
1921
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1922
|
-
case 7:
|
|
1923
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1924
|
-
return [3, 9];
|
|
1651
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1652
|
+
case 3: throw _d.sent();
|
|
1653
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1654
|
+
case 5: throw _d.sent();
|
|
1655
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1656
|
+
case 7: throw _d.sent();
|
|
1925
1657
|
case 8:
|
|
1926
1658
|
parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
response
|
|
1933
|
-
delete response.Message;
|
|
1934
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1659
|
+
response = new __BaseException({
|
|
1660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1661
|
+
$fault: "client",
|
|
1662
|
+
$metadata: deserializeMetadata(output),
|
|
1663
|
+
});
|
|
1664
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1935
1665
|
}
|
|
1936
1666
|
});
|
|
1937
1667
|
}); };
|
|
@@ -1954,16 +1684,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1954
1684
|
});
|
|
1955
1685
|
}); };
|
|
1956
1686
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1957
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1958
|
-
var
|
|
1959
|
-
return __generator(this, function (
|
|
1960
|
-
switch (
|
|
1687
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1688
|
+
var _c;
|
|
1689
|
+
return __generator(this, function (_d) {
|
|
1690
|
+
switch (_d.label) {
|
|
1961
1691
|
case 0:
|
|
1962
1692
|
_a = [__assign({}, output)];
|
|
1963
|
-
|
|
1693
|
+
_c = {};
|
|
1964
1694
|
return [4, parseBody(output.body, context)];
|
|
1965
1695
|
case 1:
|
|
1966
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1696
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1967
1697
|
errorCode = "UnknownError";
|
|
1968
1698
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
1699
|
_b = errorCode;
|
|
@@ -1976,34 +1706,20 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1976
1706
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
1977
1707
|
}
|
|
1978
1708
|
return [3, 8];
|
|
1979
|
-
case 2:
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
case
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
case 4:
|
|
1986
|
-
_d = [{}];
|
|
1987
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1988
|
-
case 5:
|
|
1989
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1990
|
-
return [3, 9];
|
|
1991
|
-
case 6:
|
|
1992
|
-
_e = [{}];
|
|
1993
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1994
|
-
case 7:
|
|
1995
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1996
|
-
return [3, 9];
|
|
1709
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1710
|
+
case 3: throw _d.sent();
|
|
1711
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1712
|
+
case 5: throw _d.sent();
|
|
1713
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1714
|
+
case 7: throw _d.sent();
|
|
1997
1715
|
case 8:
|
|
1998
1716
|
parsedBody = parsedOutput.body;
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
response
|
|
2005
|
-
delete response.Message;
|
|
2006
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1717
|
+
response = new __BaseException({
|
|
1718
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1719
|
+
$fault: "client",
|
|
1720
|
+
$metadata: deserializeMetadata(output),
|
|
1721
|
+
});
|
|
1722
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2007
1723
|
}
|
|
2008
1724
|
});
|
|
2009
1725
|
}); };
|
|
@@ -2026,16 +1742,16 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
2026
1742
|
});
|
|
2027
1743
|
}); };
|
|
2028
1744
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2029
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2030
|
-
var
|
|
2031
|
-
return __generator(this, function (
|
|
2032
|
-
switch (
|
|
1745
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1746
|
+
var _c;
|
|
1747
|
+
return __generator(this, function (_d) {
|
|
1748
|
+
switch (_d.label) {
|
|
2033
1749
|
case 0:
|
|
2034
1750
|
_a = [__assign({}, output)];
|
|
2035
|
-
|
|
1751
|
+
_c = {};
|
|
2036
1752
|
return [4, parseBody(output.body, context)];
|
|
2037
1753
|
case 1:
|
|
2038
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1754
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2039
1755
|
errorCode = "UnknownError";
|
|
2040
1756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
1757
|
_b = errorCode;
|
|
@@ -2048,131 +1764,93 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
2048
1764
|
case "com.amazonaws.detective#ValidationException": return [3, 6];
|
|
2049
1765
|
}
|
|
2050
1766
|
return [3, 8];
|
|
2051
|
-
case 2:
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
case
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
case 4:
|
|
2058
|
-
_d = [{}];
|
|
2059
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2060
|
-
case 5:
|
|
2061
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3, 9];
|
|
2063
|
-
case 6:
|
|
2064
|
-
_e = [{}];
|
|
2065
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2066
|
-
case 7:
|
|
2067
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2068
|
-
return [3, 9];
|
|
1767
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1768
|
+
case 3: throw _d.sent();
|
|
1769
|
+
case 4: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1770
|
+
case 5: throw _d.sent();
|
|
1771
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1772
|
+
case 7: throw _d.sent();
|
|
2069
1773
|
case 8:
|
|
2070
1774
|
parsedBody = parsedOutput.body;
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
response
|
|
2077
|
-
delete response.Message;
|
|
2078
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1775
|
+
response = new __BaseException({
|
|
1776
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1777
|
+
$fault: "client",
|
|
1778
|
+
$metadata: deserializeMetadata(output),
|
|
1779
|
+
});
|
|
1780
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2079
1781
|
}
|
|
2080
1782
|
});
|
|
2081
1783
|
}); };
|
|
2082
1784
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2083
|
-
var contents, data;
|
|
1785
|
+
var contents, data, exception;
|
|
2084
1786
|
return __generator(this, function (_a) {
|
|
2085
|
-
contents = {
|
|
2086
|
-
name: "ConflictException",
|
|
2087
|
-
$fault: "client",
|
|
2088
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2089
|
-
Message: undefined,
|
|
2090
|
-
};
|
|
1787
|
+
contents = {};
|
|
2091
1788
|
data = parsedOutput.body;
|
|
2092
1789
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2093
1790
|
contents.Message = __expectString(data.Message);
|
|
2094
1791
|
}
|
|
2095
|
-
|
|
1792
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1793
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2096
1794
|
});
|
|
2097
1795
|
}); };
|
|
2098
1796
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2099
|
-
var contents, data;
|
|
1797
|
+
var contents, data, exception;
|
|
2100
1798
|
return __generator(this, function (_a) {
|
|
2101
|
-
contents = {
|
|
2102
|
-
name: "InternalServerException",
|
|
2103
|
-
$fault: "server",
|
|
2104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2105
|
-
Message: undefined,
|
|
2106
|
-
};
|
|
1799
|
+
contents = {};
|
|
2107
1800
|
data = parsedOutput.body;
|
|
2108
1801
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2109
1802
|
contents.Message = __expectString(data.Message);
|
|
2110
1803
|
}
|
|
2111
|
-
|
|
1804
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1805
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2112
1806
|
});
|
|
2113
1807
|
}); };
|
|
2114
1808
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2115
|
-
var contents, data;
|
|
1809
|
+
var contents, data, exception;
|
|
2116
1810
|
return __generator(this, function (_a) {
|
|
2117
|
-
contents = {
|
|
2118
|
-
name: "ResourceNotFoundException",
|
|
2119
|
-
$fault: "client",
|
|
2120
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2121
|
-
Message: undefined,
|
|
2122
|
-
};
|
|
1811
|
+
contents = {};
|
|
2123
1812
|
data = parsedOutput.body;
|
|
2124
1813
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2125
1814
|
contents.Message = __expectString(data.Message);
|
|
2126
1815
|
}
|
|
2127
|
-
|
|
1816
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1817
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2128
1818
|
});
|
|
2129
1819
|
}); };
|
|
2130
1820
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2131
|
-
var contents, data;
|
|
1821
|
+
var contents, data, exception;
|
|
2132
1822
|
return __generator(this, function (_a) {
|
|
2133
|
-
contents = {
|
|
2134
|
-
name: "ServiceQuotaExceededException",
|
|
2135
|
-
$fault: "client",
|
|
2136
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2137
|
-
Message: undefined,
|
|
2138
|
-
};
|
|
1823
|
+
contents = {};
|
|
2139
1824
|
data = parsedOutput.body;
|
|
2140
1825
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2141
1826
|
contents.Message = __expectString(data.Message);
|
|
2142
1827
|
}
|
|
2143
|
-
|
|
1828
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1829
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2144
1830
|
});
|
|
2145
1831
|
}); };
|
|
2146
1832
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2147
|
-
var contents, data;
|
|
1833
|
+
var contents, data, exception;
|
|
2148
1834
|
return __generator(this, function (_a) {
|
|
2149
|
-
contents = {
|
|
2150
|
-
name: "TooManyRequestsException",
|
|
2151
|
-
$fault: "client",
|
|
2152
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2153
|
-
Message: undefined,
|
|
2154
|
-
};
|
|
1835
|
+
contents = {};
|
|
2155
1836
|
data = parsedOutput.body;
|
|
2156
1837
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2157
1838
|
contents.Message = __expectString(data.Message);
|
|
2158
1839
|
}
|
|
2159
|
-
|
|
1840
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1841
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2160
1842
|
});
|
|
2161
1843
|
}); };
|
|
2162
1844
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2163
|
-
var contents, data;
|
|
1845
|
+
var contents, data, exception;
|
|
2164
1846
|
return __generator(this, function (_a) {
|
|
2165
|
-
contents = {
|
|
2166
|
-
name: "ValidationException",
|
|
2167
|
-
$fault: "client",
|
|
2168
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
|
-
Message: undefined,
|
|
2170
|
-
};
|
|
1847
|
+
contents = {};
|
|
2171
1848
|
data = parsedOutput.body;
|
|
2172
1849
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2173
1850
|
contents.Message = __expectString(data.Message);
|
|
2174
1851
|
}
|
|
2175
|
-
|
|
1852
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1853
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2176
1854
|
});
|
|
2177
1855
|
}); };
|
|
2178
1856
|
var serializeAws_restJson1Account = function (input, context) {
|
|
@@ -2209,7 +1887,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
2209
1887
|
}, {});
|
|
2210
1888
|
};
|
|
2211
1889
|
var deserializeAws_restJson1AccountIdList = function (output, context) {
|
|
2212
|
-
|
|
1890
|
+
var retVal = (output || [])
|
|
2213
1891
|
.filter(function (e) { return e != null; })
|
|
2214
1892
|
.map(function (entry) {
|
|
2215
1893
|
if (entry === null) {
|
|
@@ -2217,6 +1895,7 @@ var deserializeAws_restJson1AccountIdList = function (output, context) {
|
|
|
2217
1895
|
}
|
|
2218
1896
|
return __expectString(entry);
|
|
2219
1897
|
});
|
|
1898
|
+
return retVal;
|
|
2220
1899
|
};
|
|
2221
1900
|
var deserializeAws_restJson1Administrator = function (output, context) {
|
|
2222
1901
|
return {
|
|
@@ -2228,7 +1907,7 @@ var deserializeAws_restJson1Administrator = function (output, context) {
|
|
|
2228
1907
|
};
|
|
2229
1908
|
};
|
|
2230
1909
|
var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
2231
|
-
|
|
1910
|
+
var retVal = (output || [])
|
|
2232
1911
|
.filter(function (e) { return e != null; })
|
|
2233
1912
|
.map(function (entry) {
|
|
2234
1913
|
if (entry === null) {
|
|
@@ -2236,6 +1915,7 @@ var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
|
2236
1915
|
}
|
|
2237
1916
|
return deserializeAws_restJson1Administrator(entry, context);
|
|
2238
1917
|
});
|
|
1918
|
+
return retVal;
|
|
2239
1919
|
};
|
|
2240
1920
|
var deserializeAws_restJson1Graph = function (output, context) {
|
|
2241
1921
|
return {
|
|
@@ -2246,7 +1926,7 @@ var deserializeAws_restJson1Graph = function (output, context) {
|
|
|
2246
1926
|
};
|
|
2247
1927
|
};
|
|
2248
1928
|
var deserializeAws_restJson1GraphList = function (output, context) {
|
|
2249
|
-
|
|
1929
|
+
var retVal = (output || [])
|
|
2250
1930
|
.filter(function (e) { return e != null; })
|
|
2251
1931
|
.map(function (entry) {
|
|
2252
1932
|
if (entry === null) {
|
|
@@ -2254,6 +1934,7 @@ var deserializeAws_restJson1GraphList = function (output, context) {
|
|
|
2254
1934
|
}
|
|
2255
1935
|
return deserializeAws_restJson1Graph(entry, context);
|
|
2256
1936
|
});
|
|
1937
|
+
return retVal;
|
|
2257
1938
|
};
|
|
2258
1939
|
var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
2259
1940
|
return {
|
|
@@ -2282,7 +1963,7 @@ var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
|
2282
1963
|
};
|
|
2283
1964
|
};
|
|
2284
1965
|
var deserializeAws_restJson1MemberDetailList = function (output, context) {
|
|
2285
|
-
|
|
1966
|
+
var retVal = (output || [])
|
|
2286
1967
|
.filter(function (e) { return e != null; })
|
|
2287
1968
|
.map(function (entry) {
|
|
2288
1969
|
if (entry === null) {
|
|
@@ -2290,6 +1971,7 @@ var deserializeAws_restJson1MemberDetailList = function (output, context) {
|
|
|
2290
1971
|
}
|
|
2291
1972
|
return deserializeAws_restJson1MemberDetail(entry, context);
|
|
2292
1973
|
});
|
|
1974
|
+
return retVal;
|
|
2293
1975
|
};
|
|
2294
1976
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
2295
1977
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -2308,7 +1990,7 @@ var deserializeAws_restJson1UnprocessedAccount = function (output, context) {
|
|
|
2308
1990
|
};
|
|
2309
1991
|
};
|
|
2310
1992
|
var deserializeAws_restJson1UnprocessedAccountList = function (output, context) {
|
|
2311
|
-
|
|
1993
|
+
var retVal = (output || [])
|
|
2312
1994
|
.filter(function (e) { return e != null; })
|
|
2313
1995
|
.map(function (entry) {
|
|
2314
1996
|
if (entry === null) {
|
|
@@ -2316,6 +1998,7 @@ var deserializeAws_restJson1UnprocessedAccountList = function (output, context)
|
|
|
2316
1998
|
}
|
|
2317
1999
|
return deserializeAws_restJson1UnprocessedAccount(entry, context);
|
|
2318
2000
|
});
|
|
2001
|
+
return retVal;
|
|
2319
2002
|
};
|
|
2320
2003
|
var deserializeMetadata = function (output) {
|
|
2321
2004
|
var _a;
|