@aws-sdk/client-signer 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SignerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +143 -2
- package/dist-cjs/protocols/Aws_restJson1.js +222 -725
- package/dist-es/index.js +1 -0
- package/dist-es/models/SignerServiceException.js +12 -0
- package/dist-es/models/models_0.js +132 -1
- package/dist-es/protocols/Aws_restJson1.js +417 -804
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SignerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -41
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SignerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -41
- package/package.json +26 -26
|
@@ -1,7 +1,9 @@
|
|
|
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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { AccessDeniedException, BadRequestException, ConflictException, InternalServiceErrorException, NotFoundException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { SignerServiceException as __BaseException } from "../models/SignerServiceException";
|
|
5
7
|
export var serializeAws_restJson1AddProfilePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
9
|
return __generator(this, function (_c) {
|
|
@@ -581,16 +583,16 @@ export var deserializeAws_restJson1AddProfilePermissionCommand = function (outpu
|
|
|
581
583
|
});
|
|
582
584
|
}); };
|
|
583
585
|
var deserializeAws_restJson1AddProfilePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
584
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
585
|
-
var
|
|
586
|
-
return __generator(this, function (
|
|
587
|
-
switch (
|
|
586
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
587
|
+
var _c;
|
|
588
|
+
return __generator(this, function (_d) {
|
|
589
|
+
switch (_d.label) {
|
|
588
590
|
case 0:
|
|
589
591
|
_a = [__assign({}, output)];
|
|
590
|
-
|
|
592
|
+
_c = {};
|
|
591
593
|
return [4, parseBody(output.body, context)];
|
|
592
594
|
case 1:
|
|
593
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
595
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
594
596
|
errorCode = "UnknownError";
|
|
595
597
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
598
|
_b = errorCode;
|
|
@@ -611,58 +613,28 @@ var deserializeAws_restJson1AddProfilePermissionCommandError = function (output,
|
|
|
611
613
|
case "com.amazonaws.signer#ValidationException": return [3, 14];
|
|
612
614
|
}
|
|
613
615
|
return [3, 16];
|
|
614
|
-
case 2:
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
case
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
case 4
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
case
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
case
|
|
627
|
-
|
|
628
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
629
|
-
case 7:
|
|
630
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
631
|
-
return [3, 17];
|
|
632
|
-
case 8:
|
|
633
|
-
_f = [{}];
|
|
634
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
635
|
-
case 9:
|
|
636
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
637
|
-
return [3, 17];
|
|
638
|
-
case 10:
|
|
639
|
-
_g = [{}];
|
|
640
|
-
return [4, deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
641
|
-
case 11:
|
|
642
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
643
|
-
return [3, 17];
|
|
644
|
-
case 12:
|
|
645
|
-
_h = [{}];
|
|
646
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
647
|
-
case 13:
|
|
648
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
649
|
-
return [3, 17];
|
|
650
|
-
case 14:
|
|
651
|
-
_j = [{}];
|
|
652
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
653
|
-
case 15:
|
|
654
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
655
|
-
return [3, 17];
|
|
616
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
617
|
+
case 3: throw _d.sent();
|
|
618
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
619
|
+
case 5: throw _d.sent();
|
|
620
|
+
case 6: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
621
|
+
case 7: throw _d.sent();
|
|
622
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
623
|
+
case 9: throw _d.sent();
|
|
624
|
+
case 10: return [4, deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
625
|
+
case 11: throw _d.sent();
|
|
626
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
627
|
+
case 13: throw _d.sent();
|
|
628
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
629
|
+
case 15: throw _d.sent();
|
|
656
630
|
case 16:
|
|
657
631
|
parsedBody = parsedOutput.body;
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
response
|
|
664
|
-
delete response.Message;
|
|
665
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
632
|
+
response = new __BaseException({
|
|
633
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
634
|
+
$fault: "client",
|
|
635
|
+
$metadata: deserializeMetadata(output),
|
|
636
|
+
});
|
|
637
|
+
throw __decorateServiceException(response, parsedBody);
|
|
666
638
|
}
|
|
667
639
|
});
|
|
668
640
|
}); };
|
|
@@ -685,16 +657,16 @@ export var deserializeAws_restJson1CancelSigningProfileCommand = function (outpu
|
|
|
685
657
|
});
|
|
686
658
|
}); };
|
|
687
659
|
var deserializeAws_restJson1CancelSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
688
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
689
|
-
var
|
|
690
|
-
return __generator(this, function (
|
|
691
|
-
switch (
|
|
660
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
661
|
+
var _c;
|
|
662
|
+
return __generator(this, function (_d) {
|
|
663
|
+
switch (_d.label) {
|
|
692
664
|
case 0:
|
|
693
665
|
_a = [__assign({}, output)];
|
|
694
|
-
|
|
666
|
+
_c = {};
|
|
695
667
|
return [4, parseBody(output.body, context)];
|
|
696
668
|
case 1:
|
|
697
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
669
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
698
670
|
errorCode = "UnknownError";
|
|
699
671
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
672
|
_b = errorCode;
|
|
@@ -709,40 +681,22 @@ var deserializeAws_restJson1CancelSigningProfileCommandError = function (output,
|
|
|
709
681
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
710
682
|
}
|
|
711
683
|
return [3, 10];
|
|
712
|
-
case 2:
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
case
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
case 4
|
|
719
|
-
|
|
720
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
721
|
-
case 5:
|
|
722
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
723
|
-
return [3, 11];
|
|
724
|
-
case 6:
|
|
725
|
-
_e = [{}];
|
|
726
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
727
|
-
case 7:
|
|
728
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
729
|
-
return [3, 11];
|
|
730
|
-
case 8:
|
|
731
|
-
_f = [{}];
|
|
732
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
733
|
-
case 9:
|
|
734
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
735
|
-
return [3, 11];
|
|
684
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
685
|
+
case 3: throw _d.sent();
|
|
686
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
687
|
+
case 5: throw _d.sent();
|
|
688
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
689
|
+
case 7: throw _d.sent();
|
|
690
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
691
|
+
case 9: throw _d.sent();
|
|
736
692
|
case 10:
|
|
737
693
|
parsedBody = parsedOutput.body;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
response
|
|
744
|
-
delete response.Message;
|
|
745
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
694
|
+
response = new __BaseException({
|
|
695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
696
|
+
$fault: "client",
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
});
|
|
699
|
+
throw __decorateServiceException(response, parsedBody);
|
|
746
700
|
}
|
|
747
701
|
});
|
|
748
702
|
}); };
|
|
@@ -843,16 +797,16 @@ export var deserializeAws_restJson1DescribeSigningJobCommand = function (output,
|
|
|
843
797
|
});
|
|
844
798
|
}); };
|
|
845
799
|
var deserializeAws_restJson1DescribeSigningJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
846
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
847
|
-
var
|
|
848
|
-
return __generator(this, function (
|
|
849
|
-
switch (
|
|
800
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
801
|
+
var _c;
|
|
802
|
+
return __generator(this, function (_d) {
|
|
803
|
+
switch (_d.label) {
|
|
850
804
|
case 0:
|
|
851
805
|
_a = [__assign({}, output)];
|
|
852
|
-
|
|
806
|
+
_c = {};
|
|
853
807
|
return [4, parseBody(output.body, context)];
|
|
854
808
|
case 1:
|
|
855
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
809
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
856
810
|
errorCode = "UnknownError";
|
|
857
811
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
812
|
_b = errorCode;
|
|
@@ -867,40 +821,22 @@ var deserializeAws_restJson1DescribeSigningJobCommandError = function (output, c
|
|
|
867
821
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
868
822
|
}
|
|
869
823
|
return [3, 10];
|
|
870
|
-
case 2:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
case
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
case 4
|
|
877
|
-
|
|
878
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
879
|
-
case 5:
|
|
880
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
881
|
-
return [3, 11];
|
|
882
|
-
case 6:
|
|
883
|
-
_e = [{}];
|
|
884
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
885
|
-
case 7:
|
|
886
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
887
|
-
return [3, 11];
|
|
888
|
-
case 8:
|
|
889
|
-
_f = [{}];
|
|
890
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
891
|
-
case 9:
|
|
892
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
893
|
-
return [3, 11];
|
|
824
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
825
|
+
case 3: throw _d.sent();
|
|
826
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
827
|
+
case 5: throw _d.sent();
|
|
828
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
829
|
+
case 7: throw _d.sent();
|
|
830
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
831
|
+
case 9: throw _d.sent();
|
|
894
832
|
case 10:
|
|
895
833
|
parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
response
|
|
902
|
-
delete response.Message;
|
|
903
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
834
|
+
response = new __BaseException({
|
|
835
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
836
|
+
$fault: "client",
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
});
|
|
839
|
+
throw __decorateServiceException(response, parsedBody);
|
|
904
840
|
}
|
|
905
841
|
});
|
|
906
842
|
}); };
|
|
@@ -961,16 +897,16 @@ export var deserializeAws_restJson1GetSigningPlatformCommand = function (output,
|
|
|
961
897
|
});
|
|
962
898
|
}); };
|
|
963
899
|
var deserializeAws_restJson1GetSigningPlatformCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
964
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
965
|
-
var
|
|
966
|
-
return __generator(this, function (
|
|
967
|
-
switch (
|
|
900
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
901
|
+
var _c;
|
|
902
|
+
return __generator(this, function (_d) {
|
|
903
|
+
switch (_d.label) {
|
|
968
904
|
case 0:
|
|
969
905
|
_a = [__assign({}, output)];
|
|
970
|
-
|
|
906
|
+
_c = {};
|
|
971
907
|
return [4, parseBody(output.body, context)];
|
|
972
908
|
case 1:
|
|
973
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
909
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
974
910
|
errorCode = "UnknownError";
|
|
975
911
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
912
|
_b = errorCode;
|
|
@@ -985,40 +921,22 @@ var deserializeAws_restJson1GetSigningPlatformCommandError = function (output, c
|
|
|
985
921
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
986
922
|
}
|
|
987
923
|
return [3, 10];
|
|
988
|
-
case 2:
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
case
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
case 4
|
|
995
|
-
|
|
996
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
997
|
-
case 5:
|
|
998
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3, 11];
|
|
1000
|
-
case 6:
|
|
1001
|
-
_e = [{}];
|
|
1002
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1003
|
-
case 7:
|
|
1004
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3, 11];
|
|
1006
|
-
case 8:
|
|
1007
|
-
_f = [{}];
|
|
1008
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1009
|
-
case 9:
|
|
1010
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1011
|
-
return [3, 11];
|
|
924
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
925
|
+
case 3: throw _d.sent();
|
|
926
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
927
|
+
case 5: throw _d.sent();
|
|
928
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
929
|
+
case 7: throw _d.sent();
|
|
930
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
931
|
+
case 9: throw _d.sent();
|
|
1012
932
|
case 10:
|
|
1013
933
|
parsedBody = parsedOutput.body;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
response
|
|
1020
|
-
delete response.Message;
|
|
1021
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
934
|
+
response = new __BaseException({
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
936
|
+
$fault: "client",
|
|
937
|
+
$metadata: deserializeMetadata(output),
|
|
938
|
+
});
|
|
939
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1022
940
|
}
|
|
1023
941
|
});
|
|
1024
942
|
}); };
|
|
@@ -1099,16 +1017,16 @@ export var deserializeAws_restJson1GetSigningProfileCommand = function (output,
|
|
|
1099
1017
|
});
|
|
1100
1018
|
}); };
|
|
1101
1019
|
var deserializeAws_restJson1GetSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1102
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1103
|
-
var
|
|
1104
|
-
return __generator(this, function (
|
|
1105
|
-
switch (
|
|
1020
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1021
|
+
var _c;
|
|
1022
|
+
return __generator(this, function (_d) {
|
|
1023
|
+
switch (_d.label) {
|
|
1106
1024
|
case 0:
|
|
1107
1025
|
_a = [__assign({}, output)];
|
|
1108
|
-
|
|
1026
|
+
_c = {};
|
|
1109
1027
|
return [4, parseBody(output.body, context)];
|
|
1110
1028
|
case 1:
|
|
1111
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1029
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1112
1030
|
errorCode = "UnknownError";
|
|
1113
1031
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1032
|
_b = errorCode;
|
|
@@ -1123,40 +1041,22 @@ var deserializeAws_restJson1GetSigningProfileCommandError = function (output, co
|
|
|
1123
1041
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
1124
1042
|
}
|
|
1125
1043
|
return [3, 10];
|
|
1126
|
-
case 2:
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
case
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
case 4
|
|
1133
|
-
|
|
1134
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1135
|
-
case 5:
|
|
1136
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1137
|
-
return [3, 11];
|
|
1138
|
-
case 6:
|
|
1139
|
-
_e = [{}];
|
|
1140
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1141
|
-
case 7:
|
|
1142
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1143
|
-
return [3, 11];
|
|
1144
|
-
case 8:
|
|
1145
|
-
_f = [{}];
|
|
1146
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1147
|
-
case 9:
|
|
1148
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3, 11];
|
|
1044
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1045
|
+
case 3: throw _d.sent();
|
|
1046
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1047
|
+
case 5: throw _d.sent();
|
|
1048
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1049
|
+
case 7: throw _d.sent();
|
|
1050
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1051
|
+
case 9: throw _d.sent();
|
|
1150
1052
|
case 10:
|
|
1151
1053
|
parsedBody = parsedOutput.body;
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
response
|
|
1158
|
-
delete response.Message;
|
|
1159
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1054
|
+
response = new __BaseException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1056
|
+
$fault: "client",
|
|
1057
|
+
$metadata: deserializeMetadata(output),
|
|
1058
|
+
});
|
|
1059
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1160
1060
|
}
|
|
1161
1061
|
});
|
|
1162
1062
|
}); };
|
|
@@ -1197,16 +1097,16 @@ export var deserializeAws_restJson1ListProfilePermissionsCommand = function (out
|
|
|
1197
1097
|
});
|
|
1198
1098
|
}); };
|
|
1199
1099
|
var deserializeAws_restJson1ListProfilePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1200
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1201
|
-
var
|
|
1202
|
-
return __generator(this, function (
|
|
1203
|
-
switch (
|
|
1100
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1101
|
+
var _c;
|
|
1102
|
+
return __generator(this, function (_d) {
|
|
1103
|
+
switch (_d.label) {
|
|
1204
1104
|
case 0:
|
|
1205
1105
|
_a = [__assign({}, output)];
|
|
1206
|
-
|
|
1106
|
+
_c = {};
|
|
1207
1107
|
return [4, parseBody(output.body, context)];
|
|
1208
1108
|
case 1:
|
|
1209
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1109
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1210
1110
|
errorCode = "UnknownError";
|
|
1211
1111
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1112
|
_b = errorCode;
|
|
@@ -1223,46 +1123,24 @@ var deserializeAws_restJson1ListProfilePermissionsCommandError = function (outpu
|
|
|
1223
1123
|
case "com.amazonaws.signer#ValidationException": return [3, 10];
|
|
1224
1124
|
}
|
|
1225
1125
|
return [3, 12];
|
|
1226
|
-
case 2:
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
case
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
case 4
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
case
|
|
1236
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1237
|
-
return [3, 13];
|
|
1238
|
-
case 6:
|
|
1239
|
-
_e = [{}];
|
|
1240
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1241
|
-
case 7:
|
|
1242
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1243
|
-
return [3, 13];
|
|
1244
|
-
case 8:
|
|
1245
|
-
_f = [{}];
|
|
1246
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1247
|
-
case 9:
|
|
1248
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1249
|
-
return [3, 13];
|
|
1250
|
-
case 10:
|
|
1251
|
-
_g = [{}];
|
|
1252
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1253
|
-
case 11:
|
|
1254
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1255
|
-
return [3, 13];
|
|
1126
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1127
|
+
case 3: throw _d.sent();
|
|
1128
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1129
|
+
case 5: throw _d.sent();
|
|
1130
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1131
|
+
case 7: throw _d.sent();
|
|
1132
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1133
|
+
case 9: throw _d.sent();
|
|
1134
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1135
|
+
case 11: throw _d.sent();
|
|
1256
1136
|
case 12:
|
|
1257
1137
|
parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
response
|
|
1264
|
-
delete response.Message;
|
|
1265
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1138
|
+
response = new __BaseException({
|
|
1139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1140
|
+
$fault: "client",
|
|
1141
|
+
$metadata: deserializeMetadata(output),
|
|
1142
|
+
});
|
|
1143
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1266
1144
|
}
|
|
1267
1145
|
});
|
|
1268
1146
|
}); };
|
|
@@ -1295,16 +1173,16 @@ export var deserializeAws_restJson1ListSigningJobsCommand = function (output, co
|
|
|
1295
1173
|
});
|
|
1296
1174
|
}); };
|
|
1297
1175
|
var deserializeAws_restJson1ListSigningJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1299
|
-
var
|
|
1300
|
-
return __generator(this, function (
|
|
1301
|
-
switch (
|
|
1176
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1177
|
+
var _c;
|
|
1178
|
+
return __generator(this, function (_d) {
|
|
1179
|
+
switch (_d.label) {
|
|
1302
1180
|
case 0:
|
|
1303
1181
|
_a = [__assign({}, output)];
|
|
1304
|
-
|
|
1182
|
+
_c = {};
|
|
1305
1183
|
return [4, parseBody(output.body, context)];
|
|
1306
1184
|
case 1:
|
|
1307
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1185
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1308
1186
|
errorCode = "UnknownError";
|
|
1309
1187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1188
|
_b = errorCode;
|
|
@@ -1319,40 +1197,22 @@ var deserializeAws_restJson1ListSigningJobsCommandError = function (output, cont
|
|
|
1319
1197
|
case "com.amazonaws.signer#ValidationException": return [3, 8];
|
|
1320
1198
|
}
|
|
1321
1199
|
return [3, 10];
|
|
1322
|
-
case 2:
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
case
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
case 4
|
|
1329
|
-
|
|
1330
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1331
|
-
case 5:
|
|
1332
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1333
|
-
return [3, 11];
|
|
1334
|
-
case 6:
|
|
1335
|
-
_e = [{}];
|
|
1336
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1337
|
-
case 7:
|
|
1338
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1339
|
-
return [3, 11];
|
|
1340
|
-
case 8:
|
|
1341
|
-
_f = [{}];
|
|
1342
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1343
|
-
case 9:
|
|
1344
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1345
|
-
return [3, 11];
|
|
1200
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1201
|
+
case 3: throw _d.sent();
|
|
1202
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1203
|
+
case 5: throw _d.sent();
|
|
1204
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1205
|
+
case 7: throw _d.sent();
|
|
1206
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1207
|
+
case 9: throw _d.sent();
|
|
1346
1208
|
case 10:
|
|
1347
1209
|
parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
response
|
|
1354
|
-
delete response.Message;
|
|
1355
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1210
|
+
response = new __BaseException({
|
|
1211
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1212
|
+
$fault: "client",
|
|
1213
|
+
$metadata: deserializeMetadata(output),
|
|
1214
|
+
});
|
|
1215
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1356
1216
|
}
|
|
1357
1217
|
});
|
|
1358
1218
|
}); };
|
|
@@ -1385,16 +1245,16 @@ export var deserializeAws_restJson1ListSigningPlatformsCommand = function (outpu
|
|
|
1385
1245
|
});
|
|
1386
1246
|
}); };
|
|
1387
1247
|
var deserializeAws_restJson1ListSigningPlatformsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1389
|
-
var
|
|
1390
|
-
return __generator(this, function (
|
|
1391
|
-
switch (
|
|
1248
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1249
|
+
var _c;
|
|
1250
|
+
return __generator(this, function (_d) {
|
|
1251
|
+
switch (_d.label) {
|
|
1392
1252
|
case 0:
|
|
1393
1253
|
_a = [__assign({}, output)];
|
|
1394
|
-
|
|
1254
|
+
_c = {};
|
|
1395
1255
|
return [4, parseBody(output.body, context)];
|
|
1396
1256
|
case 1:
|
|
1397
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1257
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1398
1258
|
errorCode = "UnknownError";
|
|
1399
1259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1260
|
_b = errorCode;
|
|
@@ -1409,40 +1269,22 @@ var deserializeAws_restJson1ListSigningPlatformsCommandError = function (output,
|
|
|
1409
1269
|
case "com.amazonaws.signer#ValidationException": return [3, 8];
|
|
1410
1270
|
}
|
|
1411
1271
|
return [3, 10];
|
|
1412
|
-
case 2:
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
case
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
case 4
|
|
1419
|
-
|
|
1420
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1421
|
-
case 5:
|
|
1422
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1423
|
-
return [3, 11];
|
|
1424
|
-
case 6:
|
|
1425
|
-
_e = [{}];
|
|
1426
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1427
|
-
case 7:
|
|
1428
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1429
|
-
return [3, 11];
|
|
1430
|
-
case 8:
|
|
1431
|
-
_f = [{}];
|
|
1432
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1433
|
-
case 9:
|
|
1434
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1435
|
-
return [3, 11];
|
|
1272
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1273
|
+
case 3: throw _d.sent();
|
|
1274
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1275
|
+
case 5: throw _d.sent();
|
|
1276
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1277
|
+
case 7: throw _d.sent();
|
|
1278
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1279
|
+
case 9: throw _d.sent();
|
|
1436
1280
|
case 10:
|
|
1437
1281
|
parsedBody = parsedOutput.body;
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
response
|
|
1444
|
-
delete response.Message;
|
|
1445
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1282
|
+
response = new __BaseException({
|
|
1283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1284
|
+
$fault: "client",
|
|
1285
|
+
$metadata: deserializeMetadata(output),
|
|
1286
|
+
});
|
|
1287
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1446
1288
|
}
|
|
1447
1289
|
});
|
|
1448
1290
|
}); };
|
|
@@ -1475,16 +1317,16 @@ export var deserializeAws_restJson1ListSigningProfilesCommand = function (output
|
|
|
1475
1317
|
});
|
|
1476
1318
|
}); };
|
|
1477
1319
|
var deserializeAws_restJson1ListSigningProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1478
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1479
|
-
var
|
|
1480
|
-
return __generator(this, function (
|
|
1481
|
-
switch (
|
|
1320
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1321
|
+
var _c;
|
|
1322
|
+
return __generator(this, function (_d) {
|
|
1323
|
+
switch (_d.label) {
|
|
1482
1324
|
case 0:
|
|
1483
1325
|
_a = [__assign({}, output)];
|
|
1484
|
-
|
|
1326
|
+
_c = {};
|
|
1485
1327
|
return [4, parseBody(output.body, context)];
|
|
1486
1328
|
case 1:
|
|
1487
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1329
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1488
1330
|
errorCode = "UnknownError";
|
|
1489
1331
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
1332
|
_b = errorCode;
|
|
@@ -1497,34 +1339,20 @@ var deserializeAws_restJson1ListSigningProfilesCommandError = function (output,
|
|
|
1497
1339
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 6];
|
|
1498
1340
|
}
|
|
1499
1341
|
return [3, 8];
|
|
1500
|
-
case 2:
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
case
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
case 4:
|
|
1507
|
-
_d = [{}];
|
|
1508
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1509
|
-
case 5:
|
|
1510
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1511
|
-
return [3, 9];
|
|
1512
|
-
case 6:
|
|
1513
|
-
_e = [{}];
|
|
1514
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1515
|
-
case 7:
|
|
1516
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1517
|
-
return [3, 9];
|
|
1342
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1343
|
+
case 3: throw _d.sent();
|
|
1344
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1345
|
+
case 5: throw _d.sent();
|
|
1346
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1347
|
+
case 7: throw _d.sent();
|
|
1518
1348
|
case 8:
|
|
1519
1349
|
parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
response
|
|
1526
|
-
delete response.Message;
|
|
1527
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1350
|
+
response = new __BaseException({
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1352
|
+
$fault: "client",
|
|
1353
|
+
$metadata: deserializeMetadata(output),
|
|
1354
|
+
});
|
|
1355
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1528
1356
|
}
|
|
1529
1357
|
});
|
|
1530
1358
|
}); };
|
|
@@ -1553,16 +1381,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1553
1381
|
});
|
|
1554
1382
|
}); };
|
|
1555
1383
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1556
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1557
|
-
var
|
|
1558
|
-
return __generator(this, function (
|
|
1559
|
-
switch (
|
|
1384
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1385
|
+
var _c;
|
|
1386
|
+
return __generator(this, function (_d) {
|
|
1387
|
+
switch (_d.label) {
|
|
1560
1388
|
case 0:
|
|
1561
1389
|
_a = [__assign({}, output)];
|
|
1562
|
-
|
|
1390
|
+
_c = {};
|
|
1563
1391
|
return [4, parseBody(output.body, context)];
|
|
1564
1392
|
case 1:
|
|
1565
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1393
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1566
1394
|
errorCode = "UnknownError";
|
|
1567
1395
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
1396
|
_b = errorCode;
|
|
@@ -1577,40 +1405,22 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1577
1405
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
1578
1406
|
}
|
|
1579
1407
|
return [3, 10];
|
|
1580
|
-
case 2:
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
case
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
case 4
|
|
1587
|
-
|
|
1588
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1589
|
-
case 5:
|
|
1590
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3, 11];
|
|
1592
|
-
case 6:
|
|
1593
|
-
_e = [{}];
|
|
1594
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1595
|
-
case 7:
|
|
1596
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
-
return [3, 11];
|
|
1598
|
-
case 8:
|
|
1599
|
-
_f = [{}];
|
|
1600
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1601
|
-
case 9:
|
|
1602
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1603
|
-
return [3, 11];
|
|
1408
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1409
|
+
case 3: throw _d.sent();
|
|
1410
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1411
|
+
case 5: throw _d.sent();
|
|
1412
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1413
|
+
case 7: throw _d.sent();
|
|
1414
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1415
|
+
case 9: throw _d.sent();
|
|
1604
1416
|
case 10:
|
|
1605
1417
|
parsedBody = parsedOutput.body;
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
response
|
|
1612
|
-
delete response.Message;
|
|
1613
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1418
|
+
response = new __BaseException({
|
|
1419
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
$fault: "client",
|
|
1421
|
+
$metadata: deserializeMetadata(output),
|
|
1422
|
+
});
|
|
1423
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1614
1424
|
}
|
|
1615
1425
|
});
|
|
1616
1426
|
}); };
|
|
@@ -1647,16 +1457,16 @@ export var deserializeAws_restJson1PutSigningProfileCommand = function (output,
|
|
|
1647
1457
|
});
|
|
1648
1458
|
}); };
|
|
1649
1459
|
var deserializeAws_restJson1PutSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1650
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1651
|
-
var
|
|
1652
|
-
return __generator(this, function (
|
|
1653
|
-
switch (
|
|
1460
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1461
|
+
var _c;
|
|
1462
|
+
return __generator(this, function (_d) {
|
|
1463
|
+
switch (_d.label) {
|
|
1654
1464
|
case 0:
|
|
1655
1465
|
_a = [__assign({}, output)];
|
|
1656
|
-
|
|
1466
|
+
_c = {};
|
|
1657
1467
|
return [4, parseBody(output.body, context)];
|
|
1658
1468
|
case 1:
|
|
1659
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1469
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1660
1470
|
errorCode = "UnknownError";
|
|
1661
1471
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
1472
|
_b = errorCode;
|
|
@@ -1673,46 +1483,24 @@ var deserializeAws_restJson1PutSigningProfileCommandError = function (output, co
|
|
|
1673
1483
|
case "com.amazonaws.signer#ValidationException": return [3, 10];
|
|
1674
1484
|
}
|
|
1675
1485
|
return [3, 12];
|
|
1676
|
-
case 2:
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
case
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
case 4
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
case
|
|
1686
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1687
|
-
return [3, 13];
|
|
1688
|
-
case 6:
|
|
1689
|
-
_e = [{}];
|
|
1690
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1691
|
-
case 7:
|
|
1692
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1693
|
-
return [3, 13];
|
|
1694
|
-
case 8:
|
|
1695
|
-
_f = [{}];
|
|
1696
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1697
|
-
case 9:
|
|
1698
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1699
|
-
return [3, 13];
|
|
1700
|
-
case 10:
|
|
1701
|
-
_g = [{}];
|
|
1702
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1703
|
-
case 11:
|
|
1704
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1705
|
-
return [3, 13];
|
|
1486
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1487
|
+
case 3: throw _d.sent();
|
|
1488
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1489
|
+
case 5: throw _d.sent();
|
|
1490
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1491
|
+
case 7: throw _d.sent();
|
|
1492
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1493
|
+
case 9: throw _d.sent();
|
|
1494
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1495
|
+
case 11: throw _d.sent();
|
|
1706
1496
|
case 12:
|
|
1707
1497
|
parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
response
|
|
1714
|
-
delete response.Message;
|
|
1715
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1498
|
+
response = new __BaseException({
|
|
1499
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1500
|
+
$fault: "client",
|
|
1501
|
+
$metadata: deserializeMetadata(output),
|
|
1502
|
+
});
|
|
1503
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1716
1504
|
}
|
|
1717
1505
|
});
|
|
1718
1506
|
}); };
|
|
@@ -1741,16 +1529,16 @@ export var deserializeAws_restJson1RemoveProfilePermissionCommand = function (ou
|
|
|
1741
1529
|
});
|
|
1742
1530
|
}); };
|
|
1743
1531
|
var deserializeAws_restJson1RemoveProfilePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1744
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1745
|
-
var
|
|
1746
|
-
return __generator(this, function (
|
|
1747
|
-
switch (
|
|
1532
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1533
|
+
var _c;
|
|
1534
|
+
return __generator(this, function (_d) {
|
|
1535
|
+
switch (_d.label) {
|
|
1748
1536
|
case 0:
|
|
1749
1537
|
_a = [__assign({}, output)];
|
|
1750
|
-
|
|
1538
|
+
_c = {};
|
|
1751
1539
|
return [4, parseBody(output.body, context)];
|
|
1752
1540
|
case 1:
|
|
1753
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1541
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1754
1542
|
errorCode = "UnknownError";
|
|
1755
1543
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
1544
|
_b = errorCode;
|
|
@@ -1769,52 +1557,26 @@ var deserializeAws_restJson1RemoveProfilePermissionCommandError = function (outp
|
|
|
1769
1557
|
case "com.amazonaws.signer#ValidationException": return [3, 12];
|
|
1770
1558
|
}
|
|
1771
1559
|
return [3, 14];
|
|
1772
|
-
case 2:
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
case
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
case 4
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
case
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
case 6:
|
|
1785
|
-
_e = [{}];
|
|
1786
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1787
|
-
case 7:
|
|
1788
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
-
return [3, 15];
|
|
1790
|
-
case 8:
|
|
1791
|
-
_f = [{}];
|
|
1792
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1793
|
-
case 9:
|
|
1794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3, 15];
|
|
1796
|
-
case 10:
|
|
1797
|
-
_g = [{}];
|
|
1798
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1799
|
-
case 11:
|
|
1800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1801
|
-
return [3, 15];
|
|
1802
|
-
case 12:
|
|
1803
|
-
_h = [{}];
|
|
1804
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1805
|
-
case 13:
|
|
1806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1807
|
-
return [3, 15];
|
|
1560
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1561
|
+
case 3: throw _d.sent();
|
|
1562
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1563
|
+
case 5: throw _d.sent();
|
|
1564
|
+
case 6: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1565
|
+
case 7: throw _d.sent();
|
|
1566
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1567
|
+
case 9: throw _d.sent();
|
|
1568
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1569
|
+
case 11: throw _d.sent();
|
|
1570
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1571
|
+
case 13: throw _d.sent();
|
|
1808
1572
|
case 14:
|
|
1809
1573
|
parsedBody = parsedOutput.body;
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
response
|
|
1816
|
-
delete response.Message;
|
|
1817
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1574
|
+
response = new __BaseException({
|
|
1575
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1576
|
+
$fault: "client",
|
|
1577
|
+
$metadata: deserializeMetadata(output),
|
|
1578
|
+
});
|
|
1579
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1818
1580
|
}
|
|
1819
1581
|
});
|
|
1820
1582
|
}); };
|
|
@@ -1837,16 +1599,16 @@ export var deserializeAws_restJson1RevokeSignatureCommand = function (output, co
|
|
|
1837
1599
|
});
|
|
1838
1600
|
}); };
|
|
1839
1601
|
var deserializeAws_restJson1RevokeSignatureCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1840
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1841
|
-
var
|
|
1842
|
-
return __generator(this, function (
|
|
1843
|
-
switch (
|
|
1602
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1603
|
+
var _c;
|
|
1604
|
+
return __generator(this, function (_d) {
|
|
1605
|
+
switch (_d.label) {
|
|
1844
1606
|
case 0:
|
|
1845
1607
|
_a = [__assign({}, output)];
|
|
1846
|
-
|
|
1608
|
+
_c = {};
|
|
1847
1609
|
return [4, parseBody(output.body, context)];
|
|
1848
1610
|
case 1:
|
|
1849
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1611
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1850
1612
|
errorCode = "UnknownError";
|
|
1851
1613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
1614
|
_b = errorCode;
|
|
@@ -1863,46 +1625,24 @@ var deserializeAws_restJson1RevokeSignatureCommandError = function (output, cont
|
|
|
1863
1625
|
case "com.amazonaws.signer#ValidationException": return [3, 10];
|
|
1864
1626
|
}
|
|
1865
1627
|
return [3, 12];
|
|
1866
|
-
case 2:
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
case
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
case 4
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
case
|
|
1876
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1877
|
-
return [3, 13];
|
|
1878
|
-
case 6:
|
|
1879
|
-
_e = [{}];
|
|
1880
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1881
|
-
case 7:
|
|
1882
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1883
|
-
return [3, 13];
|
|
1884
|
-
case 8:
|
|
1885
|
-
_f = [{}];
|
|
1886
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1887
|
-
case 9:
|
|
1888
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1889
|
-
return [3, 13];
|
|
1890
|
-
case 10:
|
|
1891
|
-
_g = [{}];
|
|
1892
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1893
|
-
case 11:
|
|
1894
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1895
|
-
return [3, 13];
|
|
1628
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1629
|
+
case 3: throw _d.sent();
|
|
1630
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1631
|
+
case 5: throw _d.sent();
|
|
1632
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1633
|
+
case 7: throw _d.sent();
|
|
1634
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1635
|
+
case 9: throw _d.sent();
|
|
1636
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1637
|
+
case 11: throw _d.sent();
|
|
1896
1638
|
case 12:
|
|
1897
1639
|
parsedBody = parsedOutput.body;
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
response
|
|
1904
|
-
delete response.Message;
|
|
1905
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1640
|
+
response = new __BaseException({
|
|
1641
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1642
|
+
$fault: "client",
|
|
1643
|
+
$metadata: deserializeMetadata(output),
|
|
1644
|
+
});
|
|
1645
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1906
1646
|
}
|
|
1907
1647
|
});
|
|
1908
1648
|
}); };
|
|
@@ -1925,16 +1665,16 @@ export var deserializeAws_restJson1RevokeSigningProfileCommand = function (outpu
|
|
|
1925
1665
|
});
|
|
1926
1666
|
}); };
|
|
1927
1667
|
var deserializeAws_restJson1RevokeSigningProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1928
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1929
|
-
var
|
|
1930
|
-
return __generator(this, function (
|
|
1931
|
-
switch (
|
|
1668
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1669
|
+
var _c;
|
|
1670
|
+
return __generator(this, function (_d) {
|
|
1671
|
+
switch (_d.label) {
|
|
1932
1672
|
case 0:
|
|
1933
1673
|
_a = [__assign({}, output)];
|
|
1934
|
-
|
|
1674
|
+
_c = {};
|
|
1935
1675
|
return [4, parseBody(output.body, context)];
|
|
1936
1676
|
case 1:
|
|
1937
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1677
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1938
1678
|
errorCode = "UnknownError";
|
|
1939
1679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1680
|
_b = errorCode;
|
|
@@ -1951,46 +1691,24 @@ var deserializeAws_restJson1RevokeSigningProfileCommandError = function (output,
|
|
|
1951
1691
|
case "com.amazonaws.signer#ValidationException": return [3, 10];
|
|
1952
1692
|
}
|
|
1953
1693
|
return [3, 12];
|
|
1954
|
-
case 2:
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
case
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
case 4
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
case
|
|
1964
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1965
|
-
return [3, 13];
|
|
1966
|
-
case 6:
|
|
1967
|
-
_e = [{}];
|
|
1968
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1969
|
-
case 7:
|
|
1970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1971
|
-
return [3, 13];
|
|
1972
|
-
case 8:
|
|
1973
|
-
_f = [{}];
|
|
1974
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1975
|
-
case 9:
|
|
1976
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1977
|
-
return [3, 13];
|
|
1978
|
-
case 10:
|
|
1979
|
-
_g = [{}];
|
|
1980
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1981
|
-
case 11:
|
|
1982
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1983
|
-
return [3, 13];
|
|
1694
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1695
|
+
case 3: throw _d.sent();
|
|
1696
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1697
|
+
case 5: throw _d.sent();
|
|
1698
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1699
|
+
case 7: throw _d.sent();
|
|
1700
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1701
|
+
case 9: throw _d.sent();
|
|
1702
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1703
|
+
case 11: throw _d.sent();
|
|
1984
1704
|
case 12:
|
|
1985
1705
|
parsedBody = parsedOutput.body;
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
response
|
|
1992
|
-
delete response.Message;
|
|
1993
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1706
|
+
response = new __BaseException({
|
|
1707
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1708
|
+
$fault: "client",
|
|
1709
|
+
$metadata: deserializeMetadata(output),
|
|
1710
|
+
});
|
|
1711
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1994
1712
|
}
|
|
1995
1713
|
});
|
|
1996
1714
|
}); };
|
|
@@ -2023,16 +1741,16 @@ export var deserializeAws_restJson1StartSigningJobCommand = function (output, co
|
|
|
2023
1741
|
});
|
|
2024
1742
|
}); };
|
|
2025
1743
|
var deserializeAws_restJson1StartSigningJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2026
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2027
|
-
var
|
|
2028
|
-
return __generator(this, function (
|
|
2029
|
-
switch (
|
|
1744
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1745
|
+
var _c;
|
|
1746
|
+
return __generator(this, function (_d) {
|
|
1747
|
+
switch (_d.label) {
|
|
2030
1748
|
case 0:
|
|
2031
1749
|
_a = [__assign({}, output)];
|
|
2032
|
-
|
|
1750
|
+
_c = {};
|
|
2033
1751
|
return [4, parseBody(output.body, context)];
|
|
2034
1752
|
case 1:
|
|
2035
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1753
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2036
1754
|
errorCode = "UnknownError";
|
|
2037
1755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
1756
|
_b = errorCode;
|
|
@@ -2051,52 +1769,26 @@ var deserializeAws_restJson1StartSigningJobCommandError = function (output, cont
|
|
|
2051
1769
|
case "com.amazonaws.signer#ValidationException": return [3, 12];
|
|
2052
1770
|
}
|
|
2053
1771
|
return [3, 14];
|
|
2054
|
-
case 2:
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
case
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
case 4
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
case
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
case 6:
|
|
2067
|
-
_e = [{}];
|
|
2068
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2069
|
-
case 7:
|
|
2070
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2071
|
-
return [3, 15];
|
|
2072
|
-
case 8:
|
|
2073
|
-
_f = [{}];
|
|
2074
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2075
|
-
case 9:
|
|
2076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2077
|
-
return [3, 15];
|
|
2078
|
-
case 10:
|
|
2079
|
-
_g = [{}];
|
|
2080
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2081
|
-
case 11:
|
|
2082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2083
|
-
return [3, 15];
|
|
2084
|
-
case 12:
|
|
2085
|
-
_h = [{}];
|
|
2086
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2087
|
-
case 13:
|
|
2088
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2089
|
-
return [3, 15];
|
|
1772
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1773
|
+
case 3: throw _d.sent();
|
|
1774
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1775
|
+
case 5: throw _d.sent();
|
|
1776
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1777
|
+
case 7: throw _d.sent();
|
|
1778
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1779
|
+
case 9: throw _d.sent();
|
|
1780
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1781
|
+
case 11: throw _d.sent();
|
|
1782
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1783
|
+
case 13: throw _d.sent();
|
|
2090
1784
|
case 14:
|
|
2091
1785
|
parsedBody = parsedOutput.body;
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
response
|
|
2098
|
-
delete response.Message;
|
|
2099
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1786
|
+
response = new __BaseException({
|
|
1787
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
|
+
$fault: "client",
|
|
1789
|
+
$metadata: deserializeMetadata(output),
|
|
1790
|
+
});
|
|
1791
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2100
1792
|
}
|
|
2101
1793
|
});
|
|
2102
1794
|
}); };
|
|
@@ -2119,16 +1811,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2119
1811
|
});
|
|
2120
1812
|
}); };
|
|
2121
1813
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2122
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2123
|
-
var
|
|
2124
|
-
return __generator(this, function (
|
|
2125
|
-
switch (
|
|
1814
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1815
|
+
var _c;
|
|
1816
|
+
return __generator(this, function (_d) {
|
|
1817
|
+
switch (_d.label) {
|
|
2126
1818
|
case 0:
|
|
2127
1819
|
_a = [__assign({}, output)];
|
|
2128
|
-
|
|
1820
|
+
_c = {};
|
|
2129
1821
|
return [4, parseBody(output.body, context)];
|
|
2130
1822
|
case 1:
|
|
2131
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1823
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2132
1824
|
errorCode = "UnknownError";
|
|
2133
1825
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
1826
|
_b = errorCode;
|
|
@@ -2143,40 +1835,22 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2143
1835
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
2144
1836
|
}
|
|
2145
1837
|
return [3, 10];
|
|
2146
|
-
case 2:
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
case
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
case 4
|
|
2153
|
-
|
|
2154
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2155
|
-
case 5:
|
|
2156
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2157
|
-
return [3, 11];
|
|
2158
|
-
case 6:
|
|
2159
|
-
_e = [{}];
|
|
2160
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2161
|
-
case 7:
|
|
2162
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2163
|
-
return [3, 11];
|
|
2164
|
-
case 8:
|
|
2165
|
-
_f = [{}];
|
|
2166
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2167
|
-
case 9:
|
|
2168
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2169
|
-
return [3, 11];
|
|
1838
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1839
|
+
case 3: throw _d.sent();
|
|
1840
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1841
|
+
case 5: throw _d.sent();
|
|
1842
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1843
|
+
case 7: throw _d.sent();
|
|
1844
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1845
|
+
case 9: throw _d.sent();
|
|
2170
1846
|
case 10:
|
|
2171
1847
|
parsedBody = parsedOutput.body;
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
response
|
|
2178
|
-
delete response.Message;
|
|
2179
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1848
|
+
response = new __BaseException({
|
|
1849
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
|
+
$fault: "client",
|
|
1851
|
+
$metadata: deserializeMetadata(output),
|
|
1852
|
+
});
|
|
1853
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2180
1854
|
}
|
|
2181
1855
|
});
|
|
2182
1856
|
}); };
|
|
@@ -2199,16 +1873,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2199
1873
|
});
|
|
2200
1874
|
}); };
|
|
2201
1875
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2202
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2203
|
-
var
|
|
2204
|
-
return __generator(this, function (
|
|
2205
|
-
switch (
|
|
1876
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1877
|
+
var _c;
|
|
1878
|
+
return __generator(this, function (_d) {
|
|
1879
|
+
switch (_d.label) {
|
|
2206
1880
|
case 0:
|
|
2207
1881
|
_a = [__assign({}, output)];
|
|
2208
|
-
|
|
1882
|
+
_c = {};
|
|
2209
1883
|
return [4, parseBody(output.body, context)];
|
|
2210
1884
|
case 1:
|
|
2211
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1885
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2212
1886
|
errorCode = "UnknownError";
|
|
2213
1887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
1888
|
_b = errorCode;
|
|
@@ -2223,53 +1897,29 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2223
1897
|
case "com.amazonaws.signer#TooManyRequestsException": return [3, 8];
|
|
2224
1898
|
}
|
|
2225
1899
|
return [3, 10];
|
|
2226
|
-
case 2:
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
case
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
case 4
|
|
2233
|
-
|
|
2234
|
-
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2235
|
-
case 5:
|
|
2236
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2237
|
-
return [3, 11];
|
|
2238
|
-
case 6:
|
|
2239
|
-
_e = [{}];
|
|
2240
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2241
|
-
case 7:
|
|
2242
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2243
|
-
return [3, 11];
|
|
2244
|
-
case 8:
|
|
2245
|
-
_f = [{}];
|
|
2246
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2247
|
-
case 9:
|
|
2248
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2249
|
-
return [3, 11];
|
|
1900
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1901
|
+
case 3: throw _d.sent();
|
|
1902
|
+
case 4: return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1903
|
+
case 5: throw _d.sent();
|
|
1904
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1905
|
+
case 7: throw _d.sent();
|
|
1906
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1907
|
+
case 9: throw _d.sent();
|
|
2250
1908
|
case 10:
|
|
2251
1909
|
parsedBody = parsedOutput.body;
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
response
|
|
2258
|
-
delete response.Message;
|
|
2259
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1910
|
+
response = new __BaseException({
|
|
1911
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1912
|
+
$fault: "client",
|
|
1913
|
+
$metadata: deserializeMetadata(output),
|
|
1914
|
+
});
|
|
1915
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2260
1916
|
}
|
|
2261
1917
|
});
|
|
2262
1918
|
}); };
|
|
2263
1919
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2264
|
-
var contents, data;
|
|
1920
|
+
var contents, data, exception;
|
|
2265
1921
|
return __generator(this, function (_a) {
|
|
2266
|
-
contents = {
|
|
2267
|
-
name: "AccessDeniedException",
|
|
2268
|
-
$fault: "client",
|
|
2269
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2270
|
-
code: undefined,
|
|
2271
|
-
message: undefined,
|
|
2272
|
-
};
|
|
1922
|
+
contents = {};
|
|
2273
1923
|
data = parsedOutput.body;
|
|
2274
1924
|
if (data.code !== undefined && data.code !== null) {
|
|
2275
1925
|
contents.code = __expectString(data.code);
|
|
@@ -2277,19 +1927,14 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
2277
1927
|
if (data.message !== undefined && data.message !== null) {
|
|
2278
1928
|
contents.message = __expectString(data.message);
|
|
2279
1929
|
}
|
|
2280
|
-
|
|
1930
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1931
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2281
1932
|
});
|
|
2282
1933
|
}); };
|
|
2283
1934
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2284
|
-
var contents, data;
|
|
1935
|
+
var contents, data, exception;
|
|
2285
1936
|
return __generator(this, function (_a) {
|
|
2286
|
-
contents = {
|
|
2287
|
-
name: "BadRequestException",
|
|
2288
|
-
$fault: "client",
|
|
2289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2290
|
-
code: undefined,
|
|
2291
|
-
message: undefined,
|
|
2292
|
-
};
|
|
1937
|
+
contents = {};
|
|
2293
1938
|
data = parsedOutput.body;
|
|
2294
1939
|
if (data.code !== undefined && data.code !== null) {
|
|
2295
1940
|
contents.code = __expectString(data.code);
|
|
@@ -2297,19 +1942,14 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2297
1942
|
if (data.message !== undefined && data.message !== null) {
|
|
2298
1943
|
contents.message = __expectString(data.message);
|
|
2299
1944
|
}
|
|
2300
|
-
|
|
1945
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1946
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2301
1947
|
});
|
|
2302
1948
|
}); };
|
|
2303
1949
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2304
|
-
var contents, data;
|
|
1950
|
+
var contents, data, exception;
|
|
2305
1951
|
return __generator(this, function (_a) {
|
|
2306
|
-
contents = {
|
|
2307
|
-
name: "ConflictException",
|
|
2308
|
-
$fault: "client",
|
|
2309
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2310
|
-
code: undefined,
|
|
2311
|
-
message: undefined,
|
|
2312
|
-
};
|
|
1952
|
+
contents = {};
|
|
2313
1953
|
data = parsedOutput.body;
|
|
2314
1954
|
if (data.code !== undefined && data.code !== null) {
|
|
2315
1955
|
contents.code = __expectString(data.code);
|
|
@@ -2317,19 +1957,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2317
1957
|
if (data.message !== undefined && data.message !== null) {
|
|
2318
1958
|
contents.message = __expectString(data.message);
|
|
2319
1959
|
}
|
|
2320
|
-
|
|
1960
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1961
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2321
1962
|
});
|
|
2322
1963
|
}); };
|
|
2323
1964
|
var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2324
|
-
var contents, data;
|
|
1965
|
+
var contents, data, exception;
|
|
2325
1966
|
return __generator(this, function (_a) {
|
|
2326
|
-
contents = {
|
|
2327
|
-
name: "InternalServiceErrorException",
|
|
2328
|
-
$fault: "server",
|
|
2329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2330
|
-
code: undefined,
|
|
2331
|
-
message: undefined,
|
|
2332
|
-
};
|
|
1967
|
+
contents = {};
|
|
2333
1968
|
data = parsedOutput.body;
|
|
2334
1969
|
if (data.code !== undefined && data.code !== null) {
|
|
2335
1970
|
contents.code = __expectString(data.code);
|
|
@@ -2337,19 +1972,14 @@ var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (pa
|
|
|
2337
1972
|
if (data.message !== undefined && data.message !== null) {
|
|
2338
1973
|
contents.message = __expectString(data.message);
|
|
2339
1974
|
}
|
|
2340
|
-
|
|
1975
|
+
exception = new InternalServiceErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1976
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2341
1977
|
});
|
|
2342
1978
|
}); };
|
|
2343
1979
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2344
|
-
var contents, data;
|
|
1980
|
+
var contents, data, exception;
|
|
2345
1981
|
return __generator(this, function (_a) {
|
|
2346
|
-
contents = {
|
|
2347
|
-
name: "NotFoundException",
|
|
2348
|
-
$fault: "client",
|
|
2349
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2350
|
-
code: undefined,
|
|
2351
|
-
message: undefined,
|
|
2352
|
-
};
|
|
1982
|
+
contents = {};
|
|
2353
1983
|
data = parsedOutput.body;
|
|
2354
1984
|
if (data.code !== undefined && data.code !== null) {
|
|
2355
1985
|
contents.code = __expectString(data.code);
|
|
@@ -2357,19 +1987,14 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2357
1987
|
if (data.message !== undefined && data.message !== null) {
|
|
2358
1988
|
contents.message = __expectString(data.message);
|
|
2359
1989
|
}
|
|
2360
|
-
|
|
1990
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1991
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2361
1992
|
});
|
|
2362
1993
|
}); };
|
|
2363
1994
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2364
|
-
var contents, data;
|
|
1995
|
+
var contents, data, exception;
|
|
2365
1996
|
return __generator(this, function (_a) {
|
|
2366
|
-
contents = {
|
|
2367
|
-
name: "ResourceNotFoundException",
|
|
2368
|
-
$fault: "client",
|
|
2369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2370
|
-
code: undefined,
|
|
2371
|
-
message: undefined,
|
|
2372
|
-
};
|
|
1997
|
+
contents = {};
|
|
2373
1998
|
data = parsedOutput.body;
|
|
2374
1999
|
if (data.code !== undefined && data.code !== null) {
|
|
2375
2000
|
contents.code = __expectString(data.code);
|
|
@@ -2377,19 +2002,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2377
2002
|
if (data.message !== undefined && data.message !== null) {
|
|
2378
2003
|
contents.message = __expectString(data.message);
|
|
2379
2004
|
}
|
|
2380
|
-
|
|
2005
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2006
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2381
2007
|
});
|
|
2382
2008
|
}); };
|
|
2383
2009
|
var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2384
|
-
var contents, data;
|
|
2010
|
+
var contents, data, exception;
|
|
2385
2011
|
return __generator(this, function (_a) {
|
|
2386
|
-
contents = {
|
|
2387
|
-
name: "ServiceLimitExceededException",
|
|
2388
|
-
$fault: "client",
|
|
2389
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2390
|
-
code: undefined,
|
|
2391
|
-
message: undefined,
|
|
2392
|
-
};
|
|
2012
|
+
contents = {};
|
|
2393
2013
|
data = parsedOutput.body;
|
|
2394
2014
|
if (data.code !== undefined && data.code !== null) {
|
|
2395
2015
|
contents.code = __expectString(data.code);
|
|
@@ -2397,19 +2017,14 @@ var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (pa
|
|
|
2397
2017
|
if (data.message !== undefined && data.message !== null) {
|
|
2398
2018
|
contents.message = __expectString(data.message);
|
|
2399
2019
|
}
|
|
2400
|
-
|
|
2020
|
+
exception = new ServiceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2021
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2401
2022
|
});
|
|
2402
2023
|
}); };
|
|
2403
2024
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2404
|
-
var contents, data;
|
|
2025
|
+
var contents, data, exception;
|
|
2405
2026
|
return __generator(this, function (_a) {
|
|
2406
|
-
contents = {
|
|
2407
|
-
name: "ThrottlingException",
|
|
2408
|
-
$fault: "client",
|
|
2409
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2410
|
-
code: undefined,
|
|
2411
|
-
message: undefined,
|
|
2412
|
-
};
|
|
2027
|
+
contents = {};
|
|
2413
2028
|
data = parsedOutput.body;
|
|
2414
2029
|
if (data.code !== undefined && data.code !== null) {
|
|
2415
2030
|
contents.code = __expectString(data.code);
|
|
@@ -2417,19 +2032,14 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2417
2032
|
if (data.message !== undefined && data.message !== null) {
|
|
2418
2033
|
contents.message = __expectString(data.message);
|
|
2419
2034
|
}
|
|
2420
|
-
|
|
2035
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2036
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2421
2037
|
});
|
|
2422
2038
|
}); };
|
|
2423
2039
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2424
|
-
var contents, data;
|
|
2040
|
+
var contents, data, exception;
|
|
2425
2041
|
return __generator(this, function (_a) {
|
|
2426
|
-
contents = {
|
|
2427
|
-
name: "TooManyRequestsException",
|
|
2428
|
-
$fault: "client",
|
|
2429
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2430
|
-
code: undefined,
|
|
2431
|
-
message: undefined,
|
|
2432
|
-
};
|
|
2042
|
+
contents = {};
|
|
2433
2043
|
data = parsedOutput.body;
|
|
2434
2044
|
if (data.code !== undefined && data.code !== null) {
|
|
2435
2045
|
contents.code = __expectString(data.code);
|
|
@@ -2437,19 +2047,14 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2437
2047
|
if (data.message !== undefined && data.message !== null) {
|
|
2438
2048
|
contents.message = __expectString(data.message);
|
|
2439
2049
|
}
|
|
2440
|
-
|
|
2050
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2051
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2441
2052
|
});
|
|
2442
2053
|
}); };
|
|
2443
2054
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2444
|
-
var contents, data;
|
|
2055
|
+
var contents, data, exception;
|
|
2445
2056
|
return __generator(this, function (_a) {
|
|
2446
|
-
contents = {
|
|
2447
|
-
name: "ValidationException",
|
|
2448
|
-
$fault: "client",
|
|
2449
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2450
|
-
code: undefined,
|
|
2451
|
-
message: undefined,
|
|
2452
|
-
};
|
|
2057
|
+
contents = {};
|
|
2453
2058
|
data = parsedOutput.body;
|
|
2454
2059
|
if (data.code !== undefined && data.code !== null) {
|
|
2455
2060
|
contents.code = __expectString(data.code);
|
|
@@ -2457,7 +2062,8 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2457
2062
|
if (data.message !== undefined && data.message !== null) {
|
|
2458
2063
|
contents.message = __expectString(data.message);
|
|
2459
2064
|
}
|
|
2460
|
-
|
|
2065
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2066
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2461
2067
|
});
|
|
2462
2068
|
}); };
|
|
2463
2069
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
@@ -2519,7 +2125,7 @@ var deserializeAws_restJson1EncryptionAlgorithmOptions = function (output, conte
|
|
|
2519
2125
|
};
|
|
2520
2126
|
};
|
|
2521
2127
|
var deserializeAws_restJson1EncryptionAlgorithms = function (output, context) {
|
|
2522
|
-
|
|
2128
|
+
var retVal = (output || [])
|
|
2523
2129
|
.filter(function (e) { return e != null; })
|
|
2524
2130
|
.map(function (entry) {
|
|
2525
2131
|
if (entry === null) {
|
|
@@ -2527,6 +2133,7 @@ var deserializeAws_restJson1EncryptionAlgorithms = function (output, context) {
|
|
|
2527
2133
|
}
|
|
2528
2134
|
return __expectString(entry);
|
|
2529
2135
|
});
|
|
2136
|
+
return retVal;
|
|
2530
2137
|
};
|
|
2531
2138
|
var deserializeAws_restJson1HashAlgorithmOptions = function (output, context) {
|
|
2532
2139
|
return {
|
|
@@ -2537,7 +2144,7 @@ var deserializeAws_restJson1HashAlgorithmOptions = function (output, context) {
|
|
|
2537
2144
|
};
|
|
2538
2145
|
};
|
|
2539
2146
|
var deserializeAws_restJson1HashAlgorithms = function (output, context) {
|
|
2540
|
-
|
|
2147
|
+
var retVal = (output || [])
|
|
2541
2148
|
.filter(function (e) { return e != null; })
|
|
2542
2149
|
.map(function (entry) {
|
|
2543
2150
|
if (entry === null) {
|
|
@@ -2545,9 +2152,10 @@ var deserializeAws_restJson1HashAlgorithms = function (output, context) {
|
|
|
2545
2152
|
}
|
|
2546
2153
|
return __expectString(entry);
|
|
2547
2154
|
});
|
|
2155
|
+
return retVal;
|
|
2548
2156
|
};
|
|
2549
2157
|
var deserializeAws_restJson1ImageFormats = function (output, context) {
|
|
2550
|
-
|
|
2158
|
+
var retVal = (output || [])
|
|
2551
2159
|
.filter(function (e) { return e != null; })
|
|
2552
2160
|
.map(function (entry) {
|
|
2553
2161
|
if (entry === null) {
|
|
@@ -2555,6 +2163,7 @@ var deserializeAws_restJson1ImageFormats = function (output, context) {
|
|
|
2555
2163
|
}
|
|
2556
2164
|
return __expectString(entry);
|
|
2557
2165
|
});
|
|
2166
|
+
return retVal;
|
|
2558
2167
|
};
|
|
2559
2168
|
var deserializeAws_restJson1Permission = function (output, context) {
|
|
2560
2169
|
return {
|
|
@@ -2565,7 +2174,7 @@ var deserializeAws_restJson1Permission = function (output, context) {
|
|
|
2565
2174
|
};
|
|
2566
2175
|
};
|
|
2567
2176
|
var deserializeAws_restJson1Permissions = function (output, context) {
|
|
2568
|
-
|
|
2177
|
+
var retVal = (output || [])
|
|
2569
2178
|
.filter(function (e) { return e != null; })
|
|
2570
2179
|
.map(function (entry) {
|
|
2571
2180
|
if (entry === null) {
|
|
@@ -2573,6 +2182,7 @@ var deserializeAws_restJson1Permissions = function (output, context) {
|
|
|
2573
2182
|
}
|
|
2574
2183
|
return deserializeAws_restJson1Permission(entry, context);
|
|
2575
2184
|
});
|
|
2185
|
+
return retVal;
|
|
2576
2186
|
};
|
|
2577
2187
|
var deserializeAws_restJson1S3SignedObject = function (output, context) {
|
|
2578
2188
|
return {
|
|
@@ -2662,7 +2272,7 @@ var deserializeAws_restJson1SigningJobRevocationRecord = function (output, conte
|
|
|
2662
2272
|
};
|
|
2663
2273
|
};
|
|
2664
2274
|
var deserializeAws_restJson1SigningJobs = function (output, context) {
|
|
2665
|
-
|
|
2275
|
+
var retVal = (output || [])
|
|
2666
2276
|
.filter(function (e) { return e != null; })
|
|
2667
2277
|
.map(function (entry) {
|
|
2668
2278
|
if (entry === null) {
|
|
@@ -2670,6 +2280,7 @@ var deserializeAws_restJson1SigningJobs = function (output, context) {
|
|
|
2670
2280
|
}
|
|
2671
2281
|
return deserializeAws_restJson1SigningJob(entry, context);
|
|
2672
2282
|
});
|
|
2283
|
+
return retVal;
|
|
2673
2284
|
};
|
|
2674
2285
|
var deserializeAws_restJson1SigningMaterial = function (output, context) {
|
|
2675
2286
|
return {
|
|
@@ -2712,7 +2323,7 @@ var deserializeAws_restJson1SigningPlatformOverrides = function (output, context
|
|
|
2712
2323
|
};
|
|
2713
2324
|
};
|
|
2714
2325
|
var deserializeAws_restJson1SigningPlatforms = function (output, context) {
|
|
2715
|
-
|
|
2326
|
+
var retVal = (output || [])
|
|
2716
2327
|
.filter(function (e) { return e != null; })
|
|
2717
2328
|
.map(function (entry) {
|
|
2718
2329
|
if (entry === null) {
|
|
@@ -2720,6 +2331,7 @@ var deserializeAws_restJson1SigningPlatforms = function (output, context) {
|
|
|
2720
2331
|
}
|
|
2721
2332
|
return deserializeAws_restJson1SigningPlatform(entry, context);
|
|
2722
2333
|
});
|
|
2334
|
+
return retVal;
|
|
2723
2335
|
};
|
|
2724
2336
|
var deserializeAws_restJson1SigningProfile = function (output, context) {
|
|
2725
2337
|
return {
|
|
@@ -2756,7 +2368,7 @@ var deserializeAws_restJson1SigningProfileRevocationRecord = function (output, c
|
|
|
2756
2368
|
};
|
|
2757
2369
|
};
|
|
2758
2370
|
var deserializeAws_restJson1SigningProfiles = function (output, context) {
|
|
2759
|
-
|
|
2371
|
+
var retVal = (output || [])
|
|
2760
2372
|
.filter(function (e) { return e != null; })
|
|
2761
2373
|
.map(function (entry) {
|
|
2762
2374
|
if (entry === null) {
|
|
@@ -2764,6 +2376,7 @@ var deserializeAws_restJson1SigningProfiles = function (output, context) {
|
|
|
2764
2376
|
}
|
|
2765
2377
|
return deserializeAws_restJson1SigningProfile(entry, context);
|
|
2766
2378
|
});
|
|
2379
|
+
return retVal;
|
|
2767
2380
|
};
|
|
2768
2381
|
var deserializeAws_restJson1Source = function (output, context) {
|
|
2769
2382
|
return {
|