@aws-sdk/client-mq 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/MqServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +93 -2
- package/dist-cjs/protocols/Aws_restJson1.js +241 -815
- package/dist-es/index.js +1 -0
- package/dist-es/models/MqServiceException.js +12 -0
- package/dist-es/models/models_0.js +86 -1
- package/dist-es/protocols/Aws_restJson1.js +495 -910
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MqServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MqServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/package.json +25 -25
|
@@ -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, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
6
|
+
import { MqServiceException as __BaseException } from "../models/MqServiceException";
|
|
5
7
|
export var serializeAws_restJson1CreateBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
7
9
|
var _c;
|
|
@@ -784,16 +786,16 @@ export var deserializeAws_restJson1CreateBrokerCommand = function (output, conte
|
|
|
784
786
|
});
|
|
785
787
|
}); };
|
|
786
788
|
var deserializeAws_restJson1CreateBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
787
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
788
|
-
var
|
|
789
|
-
return __generator(this, function (
|
|
790
|
-
switch (
|
|
789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
790
|
+
var _c;
|
|
791
|
+
return __generator(this, function (_d) {
|
|
792
|
+
switch (_d.label) {
|
|
791
793
|
case 0:
|
|
792
794
|
_a = [__assign({}, output)];
|
|
793
|
-
|
|
795
|
+
_c = {};
|
|
794
796
|
return [4, parseBody(output.body, context)];
|
|
795
797
|
case 1:
|
|
796
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
798
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
797
799
|
errorCode = "UnknownError";
|
|
798
800
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
801
|
_b = errorCode;
|
|
@@ -810,46 +812,24 @@ var deserializeAws_restJson1CreateBrokerCommandError = function (output, context
|
|
|
810
812
|
case "com.amazonaws.mq#UnauthorizedException": return [3, 10];
|
|
811
813
|
}
|
|
812
814
|
return [3, 12];
|
|
813
|
-
case 2:
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
case
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
case 4
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
case
|
|
823
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
824
|
-
return [3, 13];
|
|
825
|
-
case 6:
|
|
826
|
-
_e = [{}];
|
|
827
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
828
|
-
case 7:
|
|
829
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
830
|
-
return [3, 13];
|
|
831
|
-
case 8:
|
|
832
|
-
_f = [{}];
|
|
833
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
834
|
-
case 9:
|
|
835
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
836
|
-
return [3, 13];
|
|
837
|
-
case 10:
|
|
838
|
-
_g = [{}];
|
|
839
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
840
|
-
case 11:
|
|
841
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
842
|
-
return [3, 13];
|
|
815
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
816
|
+
case 3: throw _d.sent();
|
|
817
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
818
|
+
case 5: throw _d.sent();
|
|
819
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
820
|
+
case 7: throw _d.sent();
|
|
821
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
822
|
+
case 9: throw _d.sent();
|
|
823
|
+
case 10: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
824
|
+
case 11: throw _d.sent();
|
|
843
825
|
case 12:
|
|
844
826
|
parsedBody = parsedOutput.body;
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
response
|
|
851
|
-
delete response.Message;
|
|
852
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
827
|
+
response = new __BaseException({
|
|
828
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
829
|
+
$fault: "client",
|
|
830
|
+
$metadata: deserializeMetadata(output),
|
|
831
|
+
});
|
|
832
|
+
throw __decorateServiceException(response, parsedBody);
|
|
853
833
|
}
|
|
854
834
|
});
|
|
855
835
|
}); };
|
|
@@ -898,16 +878,16 @@ export var deserializeAws_restJson1CreateConfigurationCommand = function (output
|
|
|
898
878
|
});
|
|
899
879
|
}); };
|
|
900
880
|
var deserializeAws_restJson1CreateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
901
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
902
|
-
var
|
|
903
|
-
return __generator(this, function (
|
|
904
|
-
switch (
|
|
881
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
882
|
+
var _c;
|
|
883
|
+
return __generator(this, function (_d) {
|
|
884
|
+
switch (_d.label) {
|
|
905
885
|
case 0:
|
|
906
886
|
_a = [__assign({}, output)];
|
|
907
|
-
|
|
887
|
+
_c = {};
|
|
908
888
|
return [4, parseBody(output.body, context)];
|
|
909
889
|
case 1:
|
|
910
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
890
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
911
891
|
errorCode = "UnknownError";
|
|
912
892
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
893
|
_b = errorCode;
|
|
@@ -922,40 +902,22 @@ var deserializeAws_restJson1CreateConfigurationCommandError = function (output,
|
|
|
922
902
|
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
923
903
|
}
|
|
924
904
|
return [3, 10];
|
|
925
|
-
case 2:
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
case
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
case 4
|
|
932
|
-
|
|
933
|
-
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
934
|
-
case 5:
|
|
935
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
936
|
-
return [3, 11];
|
|
937
|
-
case 6:
|
|
938
|
-
_e = [{}];
|
|
939
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
940
|
-
case 7:
|
|
941
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
942
|
-
return [3, 11];
|
|
943
|
-
case 8:
|
|
944
|
-
_f = [{}];
|
|
945
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
946
|
-
case 9:
|
|
947
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
948
|
-
return [3, 11];
|
|
905
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
906
|
+
case 3: throw _d.sent();
|
|
907
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
908
|
+
case 5: throw _d.sent();
|
|
909
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
910
|
+
case 7: throw _d.sent();
|
|
911
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 9: throw _d.sent();
|
|
949
913
|
case 10:
|
|
950
914
|
parsedBody = parsedOutput.body;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
response
|
|
957
|
-
delete response.Message;
|
|
958
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
915
|
+
response = new __BaseException({
|
|
916
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
917
|
+
$fault: "client",
|
|
918
|
+
$metadata: deserializeMetadata(output),
|
|
919
|
+
});
|
|
920
|
+
throw __decorateServiceException(response, parsedBody);
|
|
959
921
|
}
|
|
960
922
|
});
|
|
961
923
|
}); };
|
|
@@ -978,16 +940,16 @@ export var deserializeAws_restJson1CreateTagsCommand = function (output, context
|
|
|
978
940
|
});
|
|
979
941
|
}); };
|
|
980
942
|
var deserializeAws_restJson1CreateTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
981
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
982
|
-
var
|
|
983
|
-
return __generator(this, function (
|
|
984
|
-
switch (
|
|
943
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
944
|
+
var _c;
|
|
945
|
+
return __generator(this, function (_d) {
|
|
946
|
+
switch (_d.label) {
|
|
985
947
|
case 0:
|
|
986
948
|
_a = [__assign({}, output)];
|
|
987
|
-
|
|
949
|
+
_c = {};
|
|
988
950
|
return [4, parseBody(output.body, context)];
|
|
989
951
|
case 1:
|
|
990
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
952
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
991
953
|
errorCode = "UnknownError";
|
|
992
954
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
955
|
_b = errorCode;
|
|
@@ -1002,40 +964,22 @@ var deserializeAws_restJson1CreateTagsCommandError = function (output, context)
|
|
|
1002
964
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1003
965
|
}
|
|
1004
966
|
return [3, 10];
|
|
1005
|
-
case 2:
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
case
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
case 4
|
|
1012
|
-
|
|
1013
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1014
|
-
case 5:
|
|
1015
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1016
|
-
return [3, 11];
|
|
1017
|
-
case 6:
|
|
1018
|
-
_e = [{}];
|
|
1019
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1020
|
-
case 7:
|
|
1021
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1022
|
-
return [3, 11];
|
|
1023
|
-
case 8:
|
|
1024
|
-
_f = [{}];
|
|
1025
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1026
|
-
case 9:
|
|
1027
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1028
|
-
return [3, 11];
|
|
967
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
968
|
+
case 3: throw _d.sent();
|
|
969
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
970
|
+
case 5: throw _d.sent();
|
|
971
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
972
|
+
case 7: throw _d.sent();
|
|
973
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
974
|
+
case 9: throw _d.sent();
|
|
1029
975
|
case 10:
|
|
1030
976
|
parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
response
|
|
1037
|
-
delete response.Message;
|
|
1038
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
977
|
+
response = new __BaseException({
|
|
978
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
979
|
+
$fault: "client",
|
|
980
|
+
$metadata: deserializeMetadata(output),
|
|
981
|
+
});
|
|
982
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1039
983
|
}
|
|
1040
984
|
});
|
|
1041
985
|
}); };
|
|
@@ -1058,16 +1002,16 @@ export var deserializeAws_restJson1CreateUserCommand = function (output, context
|
|
|
1058
1002
|
});
|
|
1059
1003
|
}); };
|
|
1060
1004
|
var deserializeAws_restJson1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1061
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1062
|
-
var
|
|
1063
|
-
return __generator(this, function (
|
|
1064
|
-
switch (
|
|
1005
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1006
|
+
var _c;
|
|
1007
|
+
return __generator(this, function (_d) {
|
|
1008
|
+
switch (_d.label) {
|
|
1065
1009
|
case 0:
|
|
1066
1010
|
_a = [__assign({}, output)];
|
|
1067
|
-
|
|
1011
|
+
_c = {};
|
|
1068
1012
|
return [4, parseBody(output.body, context)];
|
|
1069
1013
|
case 1:
|
|
1070
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1014
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1071
1015
|
errorCode = "UnknownError";
|
|
1072
1016
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1017
|
_b = errorCode;
|
|
@@ -1084,46 +1028,24 @@ var deserializeAws_restJson1CreateUserCommandError = function (output, context)
|
|
|
1084
1028
|
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
1085
1029
|
}
|
|
1086
1030
|
return [3, 12];
|
|
1087
|
-
case 2:
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
case
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
case 4
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
case
|
|
1097
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3, 13];
|
|
1099
|
-
case 6:
|
|
1100
|
-
_e = [{}];
|
|
1101
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1102
|
-
case 7:
|
|
1103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3, 13];
|
|
1105
|
-
case 8:
|
|
1106
|
-
_f = [{}];
|
|
1107
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1108
|
-
case 9:
|
|
1109
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3, 13];
|
|
1111
|
-
case 10:
|
|
1112
|
-
_g = [{}];
|
|
1113
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1114
|
-
case 11:
|
|
1115
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3, 13];
|
|
1031
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1032
|
+
case 3: throw _d.sent();
|
|
1033
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1034
|
+
case 5: throw _d.sent();
|
|
1035
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1036
|
+
case 7: throw _d.sent();
|
|
1037
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1038
|
+
case 9: throw _d.sent();
|
|
1039
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1040
|
+
case 11: throw _d.sent();
|
|
1117
1041
|
case 12:
|
|
1118
1042
|
parsedBody = parsedOutput.body;
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
response
|
|
1125
|
-
delete response.Message;
|
|
1126
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1043
|
+
response = new __BaseException({
|
|
1044
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1045
|
+
$fault: "client",
|
|
1046
|
+
$metadata: deserializeMetadata(output),
|
|
1047
|
+
});
|
|
1048
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1127
1049
|
}
|
|
1128
1050
|
});
|
|
1129
1051
|
}); };
|
|
@@ -1152,16 +1074,16 @@ export var deserializeAws_restJson1DeleteBrokerCommand = function (output, conte
|
|
|
1152
1074
|
});
|
|
1153
1075
|
}); };
|
|
1154
1076
|
var deserializeAws_restJson1DeleteBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1155
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1156
|
-
var
|
|
1157
|
-
return __generator(this, function (
|
|
1158
|
-
switch (
|
|
1077
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1078
|
+
var _c;
|
|
1079
|
+
return __generator(this, function (_d) {
|
|
1080
|
+
switch (_d.label) {
|
|
1159
1081
|
case 0:
|
|
1160
1082
|
_a = [__assign({}, output)];
|
|
1161
|
-
|
|
1083
|
+
_c = {};
|
|
1162
1084
|
return [4, parseBody(output.body, context)];
|
|
1163
1085
|
case 1:
|
|
1164
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1086
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1165
1087
|
errorCode = "UnknownError";
|
|
1166
1088
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
1089
|
_b = errorCode;
|
|
@@ -1176,40 +1098,22 @@ var deserializeAws_restJson1DeleteBrokerCommandError = function (output, context
|
|
|
1176
1098
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1177
1099
|
}
|
|
1178
1100
|
return [3, 10];
|
|
1179
|
-
case 2:
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
case
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
case 4
|
|
1186
|
-
|
|
1187
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1188
|
-
case 5:
|
|
1189
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1190
|
-
return [3, 11];
|
|
1191
|
-
case 6:
|
|
1192
|
-
_e = [{}];
|
|
1193
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1194
|
-
case 7:
|
|
1195
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1196
|
-
return [3, 11];
|
|
1197
|
-
case 8:
|
|
1198
|
-
_f = [{}];
|
|
1199
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1200
|
-
case 9:
|
|
1201
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1202
|
-
return [3, 11];
|
|
1101
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1102
|
+
case 3: throw _d.sent();
|
|
1103
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1104
|
+
case 5: throw _d.sent();
|
|
1105
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1106
|
+
case 7: throw _d.sent();
|
|
1107
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1108
|
+
case 9: throw _d.sent();
|
|
1203
1109
|
case 10:
|
|
1204
1110
|
parsedBody = parsedOutput.body;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
response
|
|
1211
|
-
delete response.Message;
|
|
1212
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1111
|
+
response = new __BaseException({
|
|
1112
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1113
|
+
$fault: "client",
|
|
1114
|
+
$metadata: deserializeMetadata(output),
|
|
1115
|
+
});
|
|
1116
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1213
1117
|
}
|
|
1214
1118
|
});
|
|
1215
1119
|
}); };
|
|
@@ -1232,16 +1136,16 @@ export var deserializeAws_restJson1DeleteTagsCommand = function (output, context
|
|
|
1232
1136
|
});
|
|
1233
1137
|
}); };
|
|
1234
1138
|
var deserializeAws_restJson1DeleteTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1235
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1236
|
-
var
|
|
1237
|
-
return __generator(this, function (
|
|
1238
|
-
switch (
|
|
1139
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1140
|
+
var _c;
|
|
1141
|
+
return __generator(this, function (_d) {
|
|
1142
|
+
switch (_d.label) {
|
|
1239
1143
|
case 0:
|
|
1240
1144
|
_a = [__assign({}, output)];
|
|
1241
|
-
|
|
1145
|
+
_c = {};
|
|
1242
1146
|
return [4, parseBody(output.body, context)];
|
|
1243
1147
|
case 1:
|
|
1244
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1148
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1245
1149
|
errorCode = "UnknownError";
|
|
1246
1150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
1151
|
_b = errorCode;
|
|
@@ -1256,40 +1160,22 @@ var deserializeAws_restJson1DeleteTagsCommandError = function (output, context)
|
|
|
1256
1160
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1257
1161
|
}
|
|
1258
1162
|
return [3, 10];
|
|
1259
|
-
case 2:
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
case
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
case 4
|
|
1266
|
-
|
|
1267
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1268
|
-
case 5:
|
|
1269
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1270
|
-
return [3, 11];
|
|
1271
|
-
case 6:
|
|
1272
|
-
_e = [{}];
|
|
1273
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1274
|
-
case 7:
|
|
1275
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1276
|
-
return [3, 11];
|
|
1277
|
-
case 8:
|
|
1278
|
-
_f = [{}];
|
|
1279
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1280
|
-
case 9:
|
|
1281
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
-
return [3, 11];
|
|
1163
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1164
|
+
case 3: throw _d.sent();
|
|
1165
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1166
|
+
case 5: throw _d.sent();
|
|
1167
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1168
|
+
case 7: throw _d.sent();
|
|
1169
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1170
|
+
case 9: throw _d.sent();
|
|
1283
1171
|
case 10:
|
|
1284
1172
|
parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
response
|
|
1291
|
-
delete response.Message;
|
|
1292
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1173
|
+
response = new __BaseException({
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1175
|
+
$fault: "client",
|
|
1176
|
+
$metadata: deserializeMetadata(output),
|
|
1177
|
+
});
|
|
1178
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1293
1179
|
}
|
|
1294
1180
|
});
|
|
1295
1181
|
}); };
|
|
@@ -1312,16 +1198,16 @@ export var deserializeAws_restJson1DeleteUserCommand = function (output, context
|
|
|
1312
1198
|
});
|
|
1313
1199
|
}); };
|
|
1314
1200
|
var deserializeAws_restJson1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1316
|
-
var
|
|
1317
|
-
return __generator(this, function (
|
|
1318
|
-
switch (
|
|
1201
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1202
|
+
var _c;
|
|
1203
|
+
return __generator(this, function (_d) {
|
|
1204
|
+
switch (_d.label) {
|
|
1319
1205
|
case 0:
|
|
1320
1206
|
_a = [__assign({}, output)];
|
|
1321
|
-
|
|
1207
|
+
_c = {};
|
|
1322
1208
|
return [4, parseBody(output.body, context)];
|
|
1323
1209
|
case 1:
|
|
1324
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1210
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1325
1211
|
errorCode = "UnknownError";
|
|
1326
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1213
|
_b = errorCode;
|
|
@@ -1336,40 +1222,22 @@ var deserializeAws_restJson1DeleteUserCommandError = function (output, context)
|
|
|
1336
1222
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1337
1223
|
}
|
|
1338
1224
|
return [3, 10];
|
|
1339
|
-
case 2:
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
case
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
case 4
|
|
1346
|
-
|
|
1347
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1348
|
-
case 5:
|
|
1349
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1350
|
-
return [3, 11];
|
|
1351
|
-
case 6:
|
|
1352
|
-
_e = [{}];
|
|
1353
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1354
|
-
case 7:
|
|
1355
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1356
|
-
return [3, 11];
|
|
1357
|
-
case 8:
|
|
1358
|
-
_f = [{}];
|
|
1359
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1360
|
-
case 9:
|
|
1361
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1362
|
-
return [3, 11];
|
|
1225
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1226
|
+
case 3: throw _d.sent();
|
|
1227
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1228
|
+
case 5: throw _d.sent();
|
|
1229
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1230
|
+
case 7: throw _d.sent();
|
|
1231
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1232
|
+
case 9: throw _d.sent();
|
|
1363
1233
|
case 10:
|
|
1364
1234
|
parsedBody = parsedOutput.body;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
response
|
|
1371
|
-
delete response.Message;
|
|
1372
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1235
|
+
response = new __BaseException({
|
|
1236
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1237
|
+
$fault: "client",
|
|
1238
|
+
$metadata: deserializeMetadata(output),
|
|
1239
|
+
});
|
|
1240
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1373
1241
|
}
|
|
1374
1242
|
});
|
|
1375
1243
|
}); };
|
|
@@ -1506,16 +1374,16 @@ export var deserializeAws_restJson1DescribeBrokerCommand = function (output, con
|
|
|
1506
1374
|
});
|
|
1507
1375
|
}); };
|
|
1508
1376
|
var deserializeAws_restJson1DescribeBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1509
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1510
|
-
var
|
|
1511
|
-
return __generator(this, function (
|
|
1512
|
-
switch (
|
|
1377
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1378
|
+
var _c;
|
|
1379
|
+
return __generator(this, function (_d) {
|
|
1380
|
+
switch (_d.label) {
|
|
1513
1381
|
case 0:
|
|
1514
1382
|
_a = [__assign({}, output)];
|
|
1515
|
-
|
|
1383
|
+
_c = {};
|
|
1516
1384
|
return [4, parseBody(output.body, context)];
|
|
1517
1385
|
case 1:
|
|
1518
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1386
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1519
1387
|
errorCode = "UnknownError";
|
|
1520
1388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1389
|
_b = errorCode;
|
|
@@ -1530,40 +1398,22 @@ var deserializeAws_restJson1DescribeBrokerCommandError = function (output, conte
|
|
|
1530
1398
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1531
1399
|
}
|
|
1532
1400
|
return [3, 10];
|
|
1533
|
-
case 2:
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
case
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
case 4
|
|
1540
|
-
|
|
1541
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1542
|
-
case 5:
|
|
1543
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1544
|
-
return [3, 11];
|
|
1545
|
-
case 6:
|
|
1546
|
-
_e = [{}];
|
|
1547
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1548
|
-
case 7:
|
|
1549
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1550
|
-
return [3, 11];
|
|
1551
|
-
case 8:
|
|
1552
|
-
_f = [{}];
|
|
1553
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1554
|
-
case 9:
|
|
1555
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1556
|
-
return [3, 11];
|
|
1401
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1402
|
+
case 3: throw _d.sent();
|
|
1403
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1404
|
+
case 5: throw _d.sent();
|
|
1405
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1406
|
+
case 7: throw _d.sent();
|
|
1407
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1408
|
+
case 9: throw _d.sent();
|
|
1557
1409
|
case 10:
|
|
1558
1410
|
parsedBody = parsedOutput.body;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
response
|
|
1565
|
-
delete response.Message;
|
|
1566
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1411
|
+
response = new __BaseException({
|
|
1412
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1413
|
+
$fault: "client",
|
|
1414
|
+
$metadata: deserializeMetadata(output),
|
|
1415
|
+
});
|
|
1416
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1567
1417
|
}
|
|
1568
1418
|
});
|
|
1569
1419
|
}); };
|
|
@@ -1600,16 +1450,16 @@ export var deserializeAws_restJson1DescribeBrokerEngineTypesCommand = function (
|
|
|
1600
1450
|
});
|
|
1601
1451
|
}); };
|
|
1602
1452
|
var deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1603
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1604
|
-
var
|
|
1605
|
-
return __generator(this, function (
|
|
1606
|
-
switch (
|
|
1453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1454
|
+
var _c;
|
|
1455
|
+
return __generator(this, function (_d) {
|
|
1456
|
+
switch (_d.label) {
|
|
1607
1457
|
case 0:
|
|
1608
1458
|
_a = [__assign({}, output)];
|
|
1609
|
-
|
|
1459
|
+
_c = {};
|
|
1610
1460
|
return [4, parseBody(output.body, context)];
|
|
1611
1461
|
case 1:
|
|
1612
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1462
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1613
1463
|
errorCode = "UnknownError";
|
|
1614
1464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1465
|
_b = errorCode;
|
|
@@ -1622,34 +1472,20 @@ var deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = function (ou
|
|
|
1622
1472
|
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1623
1473
|
}
|
|
1624
1474
|
return [3, 8];
|
|
1625
|
-
case 2:
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
case
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
case 4:
|
|
1632
|
-
_d = [{}];
|
|
1633
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1634
|
-
case 5:
|
|
1635
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1636
|
-
return [3, 9];
|
|
1637
|
-
case 6:
|
|
1638
|
-
_e = [{}];
|
|
1639
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1640
|
-
case 7:
|
|
1641
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1642
|
-
return [3, 9];
|
|
1475
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1476
|
+
case 3: throw _d.sent();
|
|
1477
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1478
|
+
case 5: throw _d.sent();
|
|
1479
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1480
|
+
case 7: throw _d.sent();
|
|
1643
1481
|
case 8:
|
|
1644
1482
|
parsedBody = parsedOutput.body;
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
response
|
|
1651
|
-
delete response.Message;
|
|
1652
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1483
|
+
response = new __BaseException({
|
|
1484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1485
|
+
$fault: "client",
|
|
1486
|
+
$metadata: deserializeMetadata(output),
|
|
1487
|
+
});
|
|
1488
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1653
1489
|
}
|
|
1654
1490
|
});
|
|
1655
1491
|
}); };
|
|
@@ -1686,16 +1522,16 @@ export var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = functi
|
|
|
1686
1522
|
});
|
|
1687
1523
|
}); };
|
|
1688
1524
|
var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1689
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1690
|
-
var
|
|
1691
|
-
return __generator(this, function (
|
|
1692
|
-
switch (
|
|
1525
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1526
|
+
var _c;
|
|
1527
|
+
return __generator(this, function (_d) {
|
|
1528
|
+
switch (_d.label) {
|
|
1693
1529
|
case 0:
|
|
1694
1530
|
_a = [__assign({}, output)];
|
|
1695
|
-
|
|
1531
|
+
_c = {};
|
|
1696
1532
|
return [4, parseBody(output.body, context)];
|
|
1697
1533
|
case 1:
|
|
1698
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1534
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1699
1535
|
errorCode = "UnknownError";
|
|
1700
1536
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1537
|
_b = errorCode;
|
|
@@ -1708,34 +1544,20 @@ var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = function
|
|
|
1708
1544
|
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1709
1545
|
}
|
|
1710
1546
|
return [3, 8];
|
|
1711
|
-
case 2:
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
case
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
case 4:
|
|
1718
|
-
_d = [{}];
|
|
1719
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1720
|
-
case 5:
|
|
1721
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1722
|
-
return [3, 9];
|
|
1723
|
-
case 6:
|
|
1724
|
-
_e = [{}];
|
|
1725
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1726
|
-
case 7:
|
|
1727
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1728
|
-
return [3, 9];
|
|
1547
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1548
|
+
case 3: throw _d.sent();
|
|
1549
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1550
|
+
case 5: throw _d.sent();
|
|
1551
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1552
|
+
case 7: throw _d.sent();
|
|
1729
1553
|
case 8:
|
|
1730
1554
|
parsedBody = parsedOutput.body;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
response
|
|
1737
|
-
delete response.Message;
|
|
1738
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1555
|
+
response = new __BaseException({
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1557
|
+
$fault: "client",
|
|
1558
|
+
$metadata: deserializeMetadata(output),
|
|
1559
|
+
});
|
|
1560
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1739
1561
|
}
|
|
1740
1562
|
});
|
|
1741
1563
|
}); };
|
|
@@ -1800,16 +1622,16 @@ export var deserializeAws_restJson1DescribeConfigurationCommand = function (outp
|
|
|
1800
1622
|
});
|
|
1801
1623
|
}); };
|
|
1802
1624
|
var deserializeAws_restJson1DescribeConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1803
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1804
|
-
var
|
|
1805
|
-
return __generator(this, function (
|
|
1806
|
-
switch (
|
|
1625
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1626
|
+
var _c;
|
|
1627
|
+
return __generator(this, function (_d) {
|
|
1628
|
+
switch (_d.label) {
|
|
1807
1629
|
case 0:
|
|
1808
1630
|
_a = [__assign({}, output)];
|
|
1809
|
-
|
|
1631
|
+
_c = {};
|
|
1810
1632
|
return [4, parseBody(output.body, context)];
|
|
1811
1633
|
case 1:
|
|
1812
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1634
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1813
1635
|
errorCode = "UnknownError";
|
|
1814
1636
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1637
|
_b = errorCode;
|
|
@@ -1824,40 +1646,22 @@ var deserializeAws_restJson1DescribeConfigurationCommandError = function (output
|
|
|
1824
1646
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1825
1647
|
}
|
|
1826
1648
|
return [3, 10];
|
|
1827
|
-
case 2:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
case
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
case 4
|
|
1834
|
-
|
|
1835
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1836
|
-
case 5:
|
|
1837
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1838
|
-
return [3, 11];
|
|
1839
|
-
case 6:
|
|
1840
|
-
_e = [{}];
|
|
1841
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1842
|
-
case 7:
|
|
1843
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1844
|
-
return [3, 11];
|
|
1845
|
-
case 8:
|
|
1846
|
-
_f = [{}];
|
|
1847
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1848
|
-
case 9:
|
|
1849
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1850
|
-
return [3, 11];
|
|
1649
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1650
|
+
case 3: throw _d.sent();
|
|
1651
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1652
|
+
case 5: throw _d.sent();
|
|
1653
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1654
|
+
case 7: throw _d.sent();
|
|
1655
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1656
|
+
case 9: throw _d.sent();
|
|
1851
1657
|
case 10:
|
|
1852
1658
|
parsedBody = parsedOutput.body;
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
response
|
|
1859
|
-
delete response.Message;
|
|
1860
|
-
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);
|
|
1861
1665
|
}
|
|
1862
1666
|
});
|
|
1863
1667
|
}); };
|
|
@@ -1898,16 +1702,16 @@ export var deserializeAws_restJson1DescribeConfigurationRevisionCommand = functi
|
|
|
1898
1702
|
});
|
|
1899
1703
|
}); };
|
|
1900
1704
|
var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1901
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1902
|
-
var
|
|
1903
|
-
return __generator(this, function (
|
|
1904
|
-
switch (
|
|
1705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1706
|
+
var _c;
|
|
1707
|
+
return __generator(this, function (_d) {
|
|
1708
|
+
switch (_d.label) {
|
|
1905
1709
|
case 0:
|
|
1906
1710
|
_a = [__assign({}, output)];
|
|
1907
|
-
|
|
1711
|
+
_c = {};
|
|
1908
1712
|
return [4, parseBody(output.body, context)];
|
|
1909
1713
|
case 1:
|
|
1910
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1714
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1911
1715
|
errorCode = "UnknownError";
|
|
1912
1716
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
1717
|
_b = errorCode;
|
|
@@ -1922,40 +1726,22 @@ var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function
|
|
|
1922
1726
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1923
1727
|
}
|
|
1924
1728
|
return [3, 10];
|
|
1925
|
-
case 2:
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
case
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
case 4
|
|
1932
|
-
|
|
1933
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1934
|
-
case 5:
|
|
1935
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1936
|
-
return [3, 11];
|
|
1937
|
-
case 6:
|
|
1938
|
-
_e = [{}];
|
|
1939
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1940
|
-
case 7:
|
|
1941
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1942
|
-
return [3, 11];
|
|
1943
|
-
case 8:
|
|
1944
|
-
_f = [{}];
|
|
1945
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1946
|
-
case 9:
|
|
1947
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1948
|
-
return [3, 11];
|
|
1729
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1730
|
+
case 3: throw _d.sent();
|
|
1731
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1732
|
+
case 5: throw _d.sent();
|
|
1733
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1734
|
+
case 7: throw _d.sent();
|
|
1735
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1736
|
+
case 9: throw _d.sent();
|
|
1949
1737
|
case 10:
|
|
1950
1738
|
parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
response
|
|
1957
|
-
delete response.Message;
|
|
1958
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1739
|
+
response = new __BaseException({
|
|
1740
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1741
|
+
$fault: "client",
|
|
1742
|
+
$metadata: deserializeMetadata(output),
|
|
1743
|
+
});
|
|
1744
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1959
1745
|
}
|
|
1960
1746
|
});
|
|
1961
1747
|
}); };
|
|
@@ -2000,16 +1786,16 @@ export var deserializeAws_restJson1DescribeUserCommand = function (output, conte
|
|
|
2000
1786
|
});
|
|
2001
1787
|
}); };
|
|
2002
1788
|
var deserializeAws_restJson1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2004
|
-
var
|
|
2005
|
-
return __generator(this, function (
|
|
2006
|
-
switch (
|
|
1789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1790
|
+
var _c;
|
|
1791
|
+
return __generator(this, function (_d) {
|
|
1792
|
+
switch (_d.label) {
|
|
2007
1793
|
case 0:
|
|
2008
1794
|
_a = [__assign({}, output)];
|
|
2009
|
-
|
|
1795
|
+
_c = {};
|
|
2010
1796
|
return [4, parseBody(output.body, context)];
|
|
2011
1797
|
case 1:
|
|
2012
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1798
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2013
1799
|
errorCode = "UnknownError";
|
|
2014
1800
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
1801
|
_b = errorCode;
|
|
@@ -2024,40 +1810,22 @@ var deserializeAws_restJson1DescribeUserCommandError = function (output, context
|
|
|
2024
1810
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
2025
1811
|
}
|
|
2026
1812
|
return [3, 10];
|
|
2027
|
-
case 2:
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
case
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
case 4
|
|
2034
|
-
|
|
2035
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2036
|
-
case 5:
|
|
2037
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2038
|
-
return [3, 11];
|
|
2039
|
-
case 6:
|
|
2040
|
-
_e = [{}];
|
|
2041
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2042
|
-
case 7:
|
|
2043
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2044
|
-
return [3, 11];
|
|
2045
|
-
case 8:
|
|
2046
|
-
_f = [{}];
|
|
2047
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2048
|
-
case 9:
|
|
2049
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2050
|
-
return [3, 11];
|
|
1813
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1814
|
+
case 3: throw _d.sent();
|
|
1815
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1816
|
+
case 5: throw _d.sent();
|
|
1817
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1818
|
+
case 7: throw _d.sent();
|
|
1819
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1820
|
+
case 9: throw _d.sent();
|
|
2051
1821
|
case 10:
|
|
2052
1822
|
parsedBody = parsedOutput.body;
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
response
|
|
2059
|
-
delete response.Message;
|
|
2060
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1823
|
+
response = new __BaseException({
|
|
1824
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1825
|
+
$fault: "client",
|
|
1826
|
+
$metadata: deserializeMetadata(output),
|
|
1827
|
+
});
|
|
1828
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2061
1829
|
}
|
|
2062
1830
|
});
|
|
2063
1831
|
}); };
|
|
@@ -2090,16 +1858,16 @@ export var deserializeAws_restJson1ListBrokersCommand = function (output, contex
|
|
|
2090
1858
|
});
|
|
2091
1859
|
}); };
|
|
2092
1860
|
var deserializeAws_restJson1ListBrokersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2093
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2094
|
-
var
|
|
2095
|
-
return __generator(this, function (
|
|
2096
|
-
switch (
|
|
1861
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1862
|
+
var _c;
|
|
1863
|
+
return __generator(this, function (_d) {
|
|
1864
|
+
switch (_d.label) {
|
|
2097
1865
|
case 0:
|
|
2098
1866
|
_a = [__assign({}, output)];
|
|
2099
|
-
|
|
1867
|
+
_c = {};
|
|
2100
1868
|
return [4, parseBody(output.body, context)];
|
|
2101
1869
|
case 1:
|
|
2102
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1870
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2103
1871
|
errorCode = "UnknownError";
|
|
2104
1872
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
1873
|
_b = errorCode;
|
|
@@ -2112,34 +1880,20 @@ var deserializeAws_restJson1ListBrokersCommandError = function (output, context)
|
|
|
2112
1880
|
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
2113
1881
|
}
|
|
2114
1882
|
return [3, 8];
|
|
2115
|
-
case 2:
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
case
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
case 4:
|
|
2122
|
-
_d = [{}];
|
|
2123
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2124
|
-
case 5:
|
|
2125
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2126
|
-
return [3, 9];
|
|
2127
|
-
case 6:
|
|
2128
|
-
_e = [{}];
|
|
2129
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2130
|
-
case 7:
|
|
2131
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2132
|
-
return [3, 9];
|
|
1883
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1884
|
+
case 3: throw _d.sent();
|
|
1885
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1886
|
+
case 5: throw _d.sent();
|
|
1887
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1888
|
+
case 7: throw _d.sent();
|
|
2133
1889
|
case 8:
|
|
2134
1890
|
parsedBody = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
response
|
|
2141
|
-
delete response.Message;
|
|
2142
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1891
|
+
response = new __BaseException({
|
|
1892
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1893
|
+
$fault: "client",
|
|
1894
|
+
$metadata: deserializeMetadata(output),
|
|
1895
|
+
});
|
|
1896
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2143
1897
|
}
|
|
2144
1898
|
});
|
|
2145
1899
|
}); };
|
|
@@ -2180,16 +1934,16 @@ export var deserializeAws_restJson1ListConfigurationRevisionsCommand = function
|
|
|
2180
1934
|
});
|
|
2181
1935
|
}); };
|
|
2182
1936
|
var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2184
|
-
var
|
|
2185
|
-
return __generator(this, function (
|
|
2186
|
-
switch (
|
|
1937
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1938
|
+
var _c;
|
|
1939
|
+
return __generator(this, function (_d) {
|
|
1940
|
+
switch (_d.label) {
|
|
2187
1941
|
case 0:
|
|
2188
1942
|
_a = [__assign({}, output)];
|
|
2189
|
-
|
|
1943
|
+
_c = {};
|
|
2190
1944
|
return [4, parseBody(output.body, context)];
|
|
2191
1945
|
case 1:
|
|
2192
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1946
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2193
1947
|
errorCode = "UnknownError";
|
|
2194
1948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
1949
|
_b = errorCode;
|
|
@@ -2204,40 +1958,22 @@ var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (o
|
|
|
2204
1958
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
2205
1959
|
}
|
|
2206
1960
|
return [3, 10];
|
|
2207
|
-
case 2:
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
case
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
case 4
|
|
2214
|
-
|
|
2215
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2216
|
-
case 5:
|
|
2217
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2218
|
-
return [3, 11];
|
|
2219
|
-
case 6:
|
|
2220
|
-
_e = [{}];
|
|
2221
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2222
|
-
case 7:
|
|
2223
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2224
|
-
return [3, 11];
|
|
2225
|
-
case 8:
|
|
2226
|
-
_f = [{}];
|
|
2227
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2228
|
-
case 9:
|
|
2229
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2230
|
-
return [3, 11];
|
|
1961
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1962
|
+
case 3: throw _d.sent();
|
|
1963
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1964
|
+
case 5: throw _d.sent();
|
|
1965
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1966
|
+
case 7: throw _d.sent();
|
|
1967
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1968
|
+
case 9: throw _d.sent();
|
|
2231
1969
|
case 10:
|
|
2232
1970
|
parsedBody = parsedOutput.body;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
response
|
|
2239
|
-
delete response.Message;
|
|
2240
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1971
|
+
response = new __BaseException({
|
|
1972
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1973
|
+
$fault: "client",
|
|
1974
|
+
$metadata: deserializeMetadata(output),
|
|
1975
|
+
});
|
|
1976
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2241
1977
|
}
|
|
2242
1978
|
});
|
|
2243
1979
|
}); };
|
|
@@ -2274,16 +2010,16 @@ export var deserializeAws_restJson1ListConfigurationsCommand = function (output,
|
|
|
2274
2010
|
});
|
|
2275
2011
|
}); };
|
|
2276
2012
|
var deserializeAws_restJson1ListConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2277
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2278
|
-
var
|
|
2279
|
-
return __generator(this, function (
|
|
2280
|
-
switch (
|
|
2013
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2014
|
+
var _c;
|
|
2015
|
+
return __generator(this, function (_d) {
|
|
2016
|
+
switch (_d.label) {
|
|
2281
2017
|
case 0:
|
|
2282
2018
|
_a = [__assign({}, output)];
|
|
2283
|
-
|
|
2019
|
+
_c = {};
|
|
2284
2020
|
return [4, parseBody(output.body, context)];
|
|
2285
2021
|
case 1:
|
|
2286
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2022
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2287
2023
|
errorCode = "UnknownError";
|
|
2288
2024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2289
2025
|
_b = errorCode;
|
|
@@ -2296,34 +2032,20 @@ var deserializeAws_restJson1ListConfigurationsCommandError = function (output, c
|
|
|
2296
2032
|
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
2297
2033
|
}
|
|
2298
2034
|
return [3, 8];
|
|
2299
|
-
case 2:
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
case
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
case 4:
|
|
2306
|
-
_d = [{}];
|
|
2307
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2308
|
-
case 5:
|
|
2309
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2310
|
-
return [3, 9];
|
|
2311
|
-
case 6:
|
|
2312
|
-
_e = [{}];
|
|
2313
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2314
|
-
case 7:
|
|
2315
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2316
|
-
return [3, 9];
|
|
2035
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2036
|
+
case 3: throw _d.sent();
|
|
2037
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2038
|
+
case 5: throw _d.sent();
|
|
2039
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2040
|
+
case 7: throw _d.sent();
|
|
2317
2041
|
case 8:
|
|
2318
2042
|
parsedBody = parsedOutput.body;
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
response
|
|
2325
|
-
delete response.Message;
|
|
2326
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2043
|
+
response = new __BaseException({
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2045
|
+
$fault: "client",
|
|
2046
|
+
$metadata: deserializeMetadata(output),
|
|
2047
|
+
});
|
|
2048
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2327
2049
|
}
|
|
2328
2050
|
});
|
|
2329
2051
|
}); };
|
|
@@ -2352,16 +2074,16 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
2352
2074
|
});
|
|
2353
2075
|
}); };
|
|
2354
2076
|
var deserializeAws_restJson1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2355
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2356
|
-
var
|
|
2357
|
-
return __generator(this, function (
|
|
2358
|
-
switch (
|
|
2077
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2078
|
+
var _c;
|
|
2079
|
+
return __generator(this, function (_d) {
|
|
2080
|
+
switch (_d.label) {
|
|
2359
2081
|
case 0:
|
|
2360
2082
|
_a = [__assign({}, output)];
|
|
2361
|
-
|
|
2083
|
+
_c = {};
|
|
2362
2084
|
return [4, parseBody(output.body, context)];
|
|
2363
2085
|
case 1:
|
|
2364
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2086
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2365
2087
|
errorCode = "UnknownError";
|
|
2366
2088
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2367
2089
|
_b = errorCode;
|
|
@@ -2376,40 +2098,22 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
2376
2098
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
2377
2099
|
}
|
|
2378
2100
|
return [3, 10];
|
|
2379
|
-
case 2:
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
case
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
case 4
|
|
2386
|
-
|
|
2387
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2388
|
-
case 5:
|
|
2389
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2390
|
-
return [3, 11];
|
|
2391
|
-
case 6:
|
|
2392
|
-
_e = [{}];
|
|
2393
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2394
|
-
case 7:
|
|
2395
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2396
|
-
return [3, 11];
|
|
2397
|
-
case 8:
|
|
2398
|
-
_f = [{}];
|
|
2399
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2400
|
-
case 9:
|
|
2401
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2402
|
-
return [3, 11];
|
|
2101
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2102
|
+
case 3: throw _d.sent();
|
|
2103
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2104
|
+
case 5: throw _d.sent();
|
|
2105
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2106
|
+
case 7: throw _d.sent();
|
|
2107
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2108
|
+
case 9: throw _d.sent();
|
|
2403
2109
|
case 10:
|
|
2404
2110
|
parsedBody = parsedOutput.body;
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
response
|
|
2411
|
-
delete response.Message;
|
|
2412
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2111
|
+
response = new __BaseException({
|
|
2112
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2113
|
+
$fault: "client",
|
|
2114
|
+
$metadata: deserializeMetadata(output),
|
|
2115
|
+
});
|
|
2116
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2413
2117
|
}
|
|
2414
2118
|
});
|
|
2415
2119
|
}); };
|
|
@@ -2450,16 +2154,16 @@ export var deserializeAws_restJson1ListUsersCommand = function (output, context)
|
|
|
2450
2154
|
});
|
|
2451
2155
|
}); };
|
|
2452
2156
|
var deserializeAws_restJson1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2453
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2454
|
-
var
|
|
2455
|
-
return __generator(this, function (
|
|
2456
|
-
switch (
|
|
2157
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2158
|
+
var _c;
|
|
2159
|
+
return __generator(this, function (_d) {
|
|
2160
|
+
switch (_d.label) {
|
|
2457
2161
|
case 0:
|
|
2458
2162
|
_a = [__assign({}, output)];
|
|
2459
|
-
|
|
2163
|
+
_c = {};
|
|
2460
2164
|
return [4, parseBody(output.body, context)];
|
|
2461
2165
|
case 1:
|
|
2462
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2166
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2463
2167
|
errorCode = "UnknownError";
|
|
2464
2168
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2169
|
_b = errorCode;
|
|
@@ -2474,40 +2178,22 @@ var deserializeAws_restJson1ListUsersCommandError = function (output, context) {
|
|
|
2474
2178
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
2475
2179
|
}
|
|
2476
2180
|
return [3, 10];
|
|
2477
|
-
case 2:
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
case
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
case 4
|
|
2484
|
-
|
|
2485
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2486
|
-
case 5:
|
|
2487
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2488
|
-
return [3, 11];
|
|
2489
|
-
case 6:
|
|
2490
|
-
_e = [{}];
|
|
2491
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2492
|
-
case 7:
|
|
2493
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2494
|
-
return [3, 11];
|
|
2495
|
-
case 8:
|
|
2496
|
-
_f = [{}];
|
|
2497
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2498
|
-
case 9:
|
|
2499
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2500
|
-
return [3, 11];
|
|
2181
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2182
|
+
case 3: throw _d.sent();
|
|
2183
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2184
|
+
case 5: throw _d.sent();
|
|
2185
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2186
|
+
case 7: throw _d.sent();
|
|
2187
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2188
|
+
case 9: throw _d.sent();
|
|
2501
2189
|
case 10:
|
|
2502
2190
|
parsedBody = parsedOutput.body;
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
response
|
|
2509
|
-
delete response.Message;
|
|
2510
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2191
|
+
response = new __BaseException({
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2193
|
+
$fault: "client",
|
|
2194
|
+
$metadata: deserializeMetadata(output),
|
|
2195
|
+
});
|
|
2196
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2511
2197
|
}
|
|
2512
2198
|
});
|
|
2513
2199
|
}); };
|
|
@@ -2530,16 +2216,16 @@ export var deserializeAws_restJson1RebootBrokerCommand = function (output, conte
|
|
|
2530
2216
|
});
|
|
2531
2217
|
}); };
|
|
2532
2218
|
var deserializeAws_restJson1RebootBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2533
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2534
|
-
var
|
|
2535
|
-
return __generator(this, function (
|
|
2536
|
-
switch (
|
|
2219
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2220
|
+
var _c;
|
|
2221
|
+
return __generator(this, function (_d) {
|
|
2222
|
+
switch (_d.label) {
|
|
2537
2223
|
case 0:
|
|
2538
2224
|
_a = [__assign({}, output)];
|
|
2539
|
-
|
|
2225
|
+
_c = {};
|
|
2540
2226
|
return [4, parseBody(output.body, context)];
|
|
2541
2227
|
case 1:
|
|
2542
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2228
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2543
2229
|
errorCode = "UnknownError";
|
|
2544
2230
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
2231
|
_b = errorCode;
|
|
@@ -2554,40 +2240,22 @@ var deserializeAws_restJson1RebootBrokerCommandError = function (output, context
|
|
|
2554
2240
|
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
2555
2241
|
}
|
|
2556
2242
|
return [3, 10];
|
|
2557
|
-
case 2:
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
case
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
case 4
|
|
2564
|
-
|
|
2565
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2566
|
-
case 5:
|
|
2567
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2568
|
-
return [3, 11];
|
|
2569
|
-
case 6:
|
|
2570
|
-
_e = [{}];
|
|
2571
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2572
|
-
case 7:
|
|
2573
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2574
|
-
return [3, 11];
|
|
2575
|
-
case 8:
|
|
2576
|
-
_f = [{}];
|
|
2577
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2578
|
-
case 9:
|
|
2579
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2580
|
-
return [3, 11];
|
|
2243
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2244
|
+
case 3: throw _d.sent();
|
|
2245
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2246
|
+
case 5: throw _d.sent();
|
|
2247
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2248
|
+
case 7: throw _d.sent();
|
|
2249
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2250
|
+
case 9: throw _d.sent();
|
|
2581
2251
|
case 10:
|
|
2582
2252
|
parsedBody = parsedOutput.body;
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
response
|
|
2589
|
-
delete response.Message;
|
|
2590
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2253
|
+
response = new __BaseException({
|
|
2254
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2255
|
+
$fault: "client",
|
|
2256
|
+
$metadata: deserializeMetadata(output),
|
|
2257
|
+
});
|
|
2258
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2591
2259
|
}
|
|
2592
2260
|
});
|
|
2593
2261
|
}); };
|
|
@@ -2652,16 +2320,16 @@ export var deserializeAws_restJson1UpdateBrokerCommand = function (output, conte
|
|
|
2652
2320
|
});
|
|
2653
2321
|
}); };
|
|
2654
2322
|
var deserializeAws_restJson1UpdateBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2655
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2656
|
-
var
|
|
2657
|
-
return __generator(this, function (
|
|
2658
|
-
switch (
|
|
2323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2324
|
+
var _c;
|
|
2325
|
+
return __generator(this, function (_d) {
|
|
2326
|
+
switch (_d.label) {
|
|
2659
2327
|
case 0:
|
|
2660
2328
|
_a = [__assign({}, output)];
|
|
2661
|
-
|
|
2329
|
+
_c = {};
|
|
2662
2330
|
return [4, parseBody(output.body, context)];
|
|
2663
2331
|
case 1:
|
|
2664
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2332
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2665
2333
|
errorCode = "UnknownError";
|
|
2666
2334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
2335
|
_b = errorCode;
|
|
@@ -2678,46 +2346,24 @@ var deserializeAws_restJson1UpdateBrokerCommandError = function (output, context
|
|
|
2678
2346
|
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2679
2347
|
}
|
|
2680
2348
|
return [3, 12];
|
|
2681
|
-
case 2:
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
case
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
case 4
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
case
|
|
2691
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2692
|
-
return [3, 13];
|
|
2693
|
-
case 6:
|
|
2694
|
-
_e = [{}];
|
|
2695
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2696
|
-
case 7:
|
|
2697
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2698
|
-
return [3, 13];
|
|
2699
|
-
case 8:
|
|
2700
|
-
_f = [{}];
|
|
2701
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2702
|
-
case 9:
|
|
2703
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2704
|
-
return [3, 13];
|
|
2705
|
-
case 10:
|
|
2706
|
-
_g = [{}];
|
|
2707
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2708
|
-
case 11:
|
|
2709
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2710
|
-
return [3, 13];
|
|
2349
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2350
|
+
case 3: throw _d.sent();
|
|
2351
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2352
|
+
case 5: throw _d.sent();
|
|
2353
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2354
|
+
case 7: throw _d.sent();
|
|
2355
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2356
|
+
case 9: throw _d.sent();
|
|
2357
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2358
|
+
case 11: throw _d.sent();
|
|
2711
2359
|
case 12:
|
|
2712
2360
|
parsedBody = parsedOutput.body;
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
response
|
|
2719
|
-
delete response.Message;
|
|
2720
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2361
|
+
response = new __BaseException({
|
|
2362
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2363
|
+
$fault: "client",
|
|
2364
|
+
$metadata: deserializeMetadata(output),
|
|
2365
|
+
});
|
|
2366
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2721
2367
|
}
|
|
2722
2368
|
});
|
|
2723
2369
|
}); };
|
|
@@ -2766,16 +2412,16 @@ export var deserializeAws_restJson1UpdateConfigurationCommand = function (output
|
|
|
2766
2412
|
});
|
|
2767
2413
|
}); };
|
|
2768
2414
|
var deserializeAws_restJson1UpdateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2769
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2770
|
-
var
|
|
2771
|
-
return __generator(this, function (
|
|
2772
|
-
switch (
|
|
2415
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2416
|
+
var _c;
|
|
2417
|
+
return __generator(this, function (_d) {
|
|
2418
|
+
switch (_d.label) {
|
|
2773
2419
|
case 0:
|
|
2774
2420
|
_a = [__assign({}, output)];
|
|
2775
|
-
|
|
2421
|
+
_c = {};
|
|
2776
2422
|
return [4, parseBody(output.body, context)];
|
|
2777
2423
|
case 1:
|
|
2778
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2424
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2779
2425
|
errorCode = "UnknownError";
|
|
2780
2426
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
2427
|
_b = errorCode;
|
|
@@ -2792,46 +2438,24 @@ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output,
|
|
|
2792
2438
|
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2793
2439
|
}
|
|
2794
2440
|
return [3, 12];
|
|
2795
|
-
case 2:
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
case
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
case 4
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
case
|
|
2805
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2806
|
-
return [3, 13];
|
|
2807
|
-
case 6:
|
|
2808
|
-
_e = [{}];
|
|
2809
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2810
|
-
case 7:
|
|
2811
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2812
|
-
return [3, 13];
|
|
2813
|
-
case 8:
|
|
2814
|
-
_f = [{}];
|
|
2815
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2816
|
-
case 9:
|
|
2817
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2818
|
-
return [3, 13];
|
|
2819
|
-
case 10:
|
|
2820
|
-
_g = [{}];
|
|
2821
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2822
|
-
case 11:
|
|
2823
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2824
|
-
return [3, 13];
|
|
2441
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2442
|
+
case 3: throw _d.sent();
|
|
2443
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2444
|
+
case 5: throw _d.sent();
|
|
2445
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2446
|
+
case 7: throw _d.sent();
|
|
2447
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2448
|
+
case 9: throw _d.sent();
|
|
2449
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2450
|
+
case 11: throw _d.sent();
|
|
2825
2451
|
case 12:
|
|
2826
2452
|
parsedBody = parsedOutput.body;
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
response
|
|
2833
|
-
delete response.Message;
|
|
2834
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2453
|
+
response = new __BaseException({
|
|
2454
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2455
|
+
$fault: "client",
|
|
2456
|
+
$metadata: deserializeMetadata(output),
|
|
2457
|
+
});
|
|
2458
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2835
2459
|
}
|
|
2836
2460
|
});
|
|
2837
2461
|
}); };
|
|
@@ -2854,16 +2478,16 @@ export var deserializeAws_restJson1UpdateUserCommand = function (output, context
|
|
|
2854
2478
|
});
|
|
2855
2479
|
}); };
|
|
2856
2480
|
var deserializeAws_restJson1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2857
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2858
|
-
var
|
|
2859
|
-
return __generator(this, function (
|
|
2860
|
-
switch (
|
|
2481
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2482
|
+
var _c;
|
|
2483
|
+
return __generator(this, function (_d) {
|
|
2484
|
+
switch (_d.label) {
|
|
2861
2485
|
case 0:
|
|
2862
2486
|
_a = [__assign({}, output)];
|
|
2863
|
-
|
|
2487
|
+
_c = {};
|
|
2864
2488
|
return [4, parseBody(output.body, context)];
|
|
2865
2489
|
case 1:
|
|
2866
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2490
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2867
2491
|
errorCode = "UnknownError";
|
|
2868
2492
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2869
2493
|
_b = errorCode;
|
|
@@ -2880,59 +2504,31 @@ var deserializeAws_restJson1UpdateUserCommandError = function (output, context)
|
|
|
2880
2504
|
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2881
2505
|
}
|
|
2882
2506
|
return [3, 12];
|
|
2883
|
-
case 2:
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
case
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
case 4
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
case
|
|
2893
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2894
|
-
return [3, 13];
|
|
2895
|
-
case 6:
|
|
2896
|
-
_e = [{}];
|
|
2897
|
-
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2898
|
-
case 7:
|
|
2899
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2900
|
-
return [3, 13];
|
|
2901
|
-
case 8:
|
|
2902
|
-
_f = [{}];
|
|
2903
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2904
|
-
case 9:
|
|
2905
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2906
|
-
return [3, 13];
|
|
2907
|
-
case 10:
|
|
2908
|
-
_g = [{}];
|
|
2909
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2910
|
-
case 11:
|
|
2911
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2912
|
-
return [3, 13];
|
|
2507
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2508
|
+
case 3: throw _d.sent();
|
|
2509
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2510
|
+
case 5: throw _d.sent();
|
|
2511
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2512
|
+
case 7: throw _d.sent();
|
|
2513
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2514
|
+
case 9: throw _d.sent();
|
|
2515
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2516
|
+
case 11: throw _d.sent();
|
|
2913
2517
|
case 12:
|
|
2914
2518
|
parsedBody = parsedOutput.body;
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
response
|
|
2921
|
-
delete response.Message;
|
|
2922
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2519
|
+
response = new __BaseException({
|
|
2520
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2521
|
+
$fault: "client",
|
|
2522
|
+
$metadata: deserializeMetadata(output),
|
|
2523
|
+
});
|
|
2524
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2923
2525
|
}
|
|
2924
2526
|
});
|
|
2925
2527
|
}); };
|
|
2926
2528
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2927
|
-
var contents, data;
|
|
2529
|
+
var contents, data, exception;
|
|
2928
2530
|
return __generator(this, function (_a) {
|
|
2929
|
-
contents = {
|
|
2930
|
-
name: "BadRequestException",
|
|
2931
|
-
$fault: "client",
|
|
2932
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2933
|
-
ErrorAttribute: undefined,
|
|
2934
|
-
Message: undefined,
|
|
2935
|
-
};
|
|
2531
|
+
contents = {};
|
|
2936
2532
|
data = parsedOutput.body;
|
|
2937
2533
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2938
2534
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -2940,19 +2536,14 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2940
2536
|
if (data.message !== undefined && data.message !== null) {
|
|
2941
2537
|
contents.Message = __expectString(data.message);
|
|
2942
2538
|
}
|
|
2943
|
-
|
|
2539
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2540
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2944
2541
|
});
|
|
2945
2542
|
}); };
|
|
2946
2543
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2947
|
-
var contents, data;
|
|
2544
|
+
var contents, data, exception;
|
|
2948
2545
|
return __generator(this, function (_a) {
|
|
2949
|
-
contents = {
|
|
2950
|
-
name: "ConflictException",
|
|
2951
|
-
$fault: "client",
|
|
2952
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2953
|
-
ErrorAttribute: undefined,
|
|
2954
|
-
Message: undefined,
|
|
2955
|
-
};
|
|
2546
|
+
contents = {};
|
|
2956
2547
|
data = parsedOutput.body;
|
|
2957
2548
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2958
2549
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -2960,19 +2551,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2960
2551
|
if (data.message !== undefined && data.message !== null) {
|
|
2961
2552
|
contents.Message = __expectString(data.message);
|
|
2962
2553
|
}
|
|
2963
|
-
|
|
2554
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2555
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2964
2556
|
});
|
|
2965
2557
|
}); };
|
|
2966
2558
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2967
|
-
var contents, data;
|
|
2559
|
+
var contents, data, exception;
|
|
2968
2560
|
return __generator(this, function (_a) {
|
|
2969
|
-
contents = {
|
|
2970
|
-
name: "ForbiddenException",
|
|
2971
|
-
$fault: "client",
|
|
2972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2973
|
-
ErrorAttribute: undefined,
|
|
2974
|
-
Message: undefined,
|
|
2975
|
-
};
|
|
2561
|
+
contents = {};
|
|
2976
2562
|
data = parsedOutput.body;
|
|
2977
2563
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2978
2564
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -2980,19 +2566,14 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
2980
2566
|
if (data.message !== undefined && data.message !== null) {
|
|
2981
2567
|
contents.Message = __expectString(data.message);
|
|
2982
2568
|
}
|
|
2983
|
-
|
|
2569
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2570
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2984
2571
|
});
|
|
2985
2572
|
}); };
|
|
2986
2573
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2987
|
-
var contents, data;
|
|
2574
|
+
var contents, data, exception;
|
|
2988
2575
|
return __generator(this, function (_a) {
|
|
2989
|
-
contents = {
|
|
2990
|
-
name: "InternalServerErrorException",
|
|
2991
|
-
$fault: "server",
|
|
2992
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2993
|
-
ErrorAttribute: undefined,
|
|
2994
|
-
Message: undefined,
|
|
2995
|
-
};
|
|
2576
|
+
contents = {};
|
|
2996
2577
|
data = parsedOutput.body;
|
|
2997
2578
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2998
2579
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -3000,19 +2581,14 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
3000
2581
|
if (data.message !== undefined && data.message !== null) {
|
|
3001
2582
|
contents.Message = __expectString(data.message);
|
|
3002
2583
|
}
|
|
3003
|
-
|
|
2584
|
+
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2585
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3004
2586
|
});
|
|
3005
2587
|
}); };
|
|
3006
2588
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3007
|
-
var contents, data;
|
|
2589
|
+
var contents, data, exception;
|
|
3008
2590
|
return __generator(this, function (_a) {
|
|
3009
|
-
contents = {
|
|
3010
|
-
name: "NotFoundException",
|
|
3011
|
-
$fault: "client",
|
|
3012
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3013
|
-
ErrorAttribute: undefined,
|
|
3014
|
-
Message: undefined,
|
|
3015
|
-
};
|
|
2591
|
+
contents = {};
|
|
3016
2592
|
data = parsedOutput.body;
|
|
3017
2593
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
3018
2594
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -3020,19 +2596,14 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
3020
2596
|
if (data.message !== undefined && data.message !== null) {
|
|
3021
2597
|
contents.Message = __expectString(data.message);
|
|
3022
2598
|
}
|
|
3023
|
-
|
|
2599
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2600
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3024
2601
|
});
|
|
3025
2602
|
}); };
|
|
3026
2603
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3027
|
-
var contents, data;
|
|
2604
|
+
var contents, data, exception;
|
|
3028
2605
|
return __generator(this, function (_a) {
|
|
3029
|
-
contents = {
|
|
3030
|
-
name: "UnauthorizedException",
|
|
3031
|
-
$fault: "client",
|
|
3032
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3033
|
-
ErrorAttribute: undefined,
|
|
3034
|
-
Message: undefined,
|
|
3035
|
-
};
|
|
2606
|
+
contents = {};
|
|
3036
2607
|
data = parsedOutput.body;
|
|
3037
2608
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
3038
2609
|
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
@@ -3040,7 +2611,8 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
3040
2611
|
if (data.message !== undefined && data.message !== null) {
|
|
3041
2612
|
contents.Message = __expectString(data.message);
|
|
3042
2613
|
}
|
|
3043
|
-
|
|
2614
|
+
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2615
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3044
2616
|
});
|
|
3045
2617
|
}); };
|
|
3046
2618
|
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
@@ -3101,7 +2673,7 @@ var serializeAws_restJson1WeeklyStartTime = function (input, context) {
|
|
|
3101
2673
|
return __assign(__assign(__assign({}, (input.DayOfWeek !== undefined && input.DayOfWeek !== null && { dayOfWeek: input.DayOfWeek })), (input.TimeOfDay !== undefined && input.TimeOfDay !== null && { timeOfDay: input.TimeOfDay })), (input.TimeZone !== undefined && input.TimeZone !== null && { timeZone: input.TimeZone }));
|
|
3102
2674
|
};
|
|
3103
2675
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
3104
|
-
|
|
2676
|
+
var retVal = (output || [])
|
|
3105
2677
|
.filter(function (e) { return e != null; })
|
|
3106
2678
|
.map(function (entry) {
|
|
3107
2679
|
if (entry === null) {
|
|
@@ -3109,9 +2681,10 @@ var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
|
3109
2681
|
}
|
|
3110
2682
|
return __expectString(entry);
|
|
3111
2683
|
});
|
|
2684
|
+
return retVal;
|
|
3112
2685
|
};
|
|
3113
2686
|
var deserializeAws_restJson1__listOfAvailabilityZone = function (output, context) {
|
|
3114
|
-
|
|
2687
|
+
var retVal = (output || [])
|
|
3115
2688
|
.filter(function (e) { return e != null; })
|
|
3116
2689
|
.map(function (entry) {
|
|
3117
2690
|
if (entry === null) {
|
|
@@ -3119,9 +2692,10 @@ var deserializeAws_restJson1__listOfAvailabilityZone = function (output, context
|
|
|
3119
2692
|
}
|
|
3120
2693
|
return deserializeAws_restJson1AvailabilityZone(entry, context);
|
|
3121
2694
|
});
|
|
2695
|
+
return retVal;
|
|
3122
2696
|
};
|
|
3123
2697
|
var deserializeAws_restJson1__listOfBrokerEngineType = function (output, context) {
|
|
3124
|
-
|
|
2698
|
+
var retVal = (output || [])
|
|
3125
2699
|
.filter(function (e) { return e != null; })
|
|
3126
2700
|
.map(function (entry) {
|
|
3127
2701
|
if (entry === null) {
|
|
@@ -3129,9 +2703,10 @@ var deserializeAws_restJson1__listOfBrokerEngineType = function (output, context
|
|
|
3129
2703
|
}
|
|
3130
2704
|
return deserializeAws_restJson1BrokerEngineType(entry, context);
|
|
3131
2705
|
});
|
|
2706
|
+
return retVal;
|
|
3132
2707
|
};
|
|
3133
2708
|
var deserializeAws_restJson1__listOfBrokerInstance = function (output, context) {
|
|
3134
|
-
|
|
2709
|
+
var retVal = (output || [])
|
|
3135
2710
|
.filter(function (e) { return e != null; })
|
|
3136
2711
|
.map(function (entry) {
|
|
3137
2712
|
if (entry === null) {
|
|
@@ -3139,9 +2714,10 @@ var deserializeAws_restJson1__listOfBrokerInstance = function (output, context)
|
|
|
3139
2714
|
}
|
|
3140
2715
|
return deserializeAws_restJson1BrokerInstance(entry, context);
|
|
3141
2716
|
});
|
|
2717
|
+
return retVal;
|
|
3142
2718
|
};
|
|
3143
2719
|
var deserializeAws_restJson1__listOfBrokerInstanceOption = function (output, context) {
|
|
3144
|
-
|
|
2720
|
+
var retVal = (output || [])
|
|
3145
2721
|
.filter(function (e) { return e != null; })
|
|
3146
2722
|
.map(function (entry) {
|
|
3147
2723
|
if (entry === null) {
|
|
@@ -3149,9 +2725,10 @@ var deserializeAws_restJson1__listOfBrokerInstanceOption = function (output, con
|
|
|
3149
2725
|
}
|
|
3150
2726
|
return deserializeAws_restJson1BrokerInstanceOption(entry, context);
|
|
3151
2727
|
});
|
|
2728
|
+
return retVal;
|
|
3152
2729
|
};
|
|
3153
2730
|
var deserializeAws_restJson1__listOfBrokerSummary = function (output, context) {
|
|
3154
|
-
|
|
2731
|
+
var retVal = (output || [])
|
|
3155
2732
|
.filter(function (e) { return e != null; })
|
|
3156
2733
|
.map(function (entry) {
|
|
3157
2734
|
if (entry === null) {
|
|
@@ -3159,9 +2736,10 @@ var deserializeAws_restJson1__listOfBrokerSummary = function (output, context) {
|
|
|
3159
2736
|
}
|
|
3160
2737
|
return deserializeAws_restJson1BrokerSummary(entry, context);
|
|
3161
2738
|
});
|
|
2739
|
+
return retVal;
|
|
3162
2740
|
};
|
|
3163
2741
|
var deserializeAws_restJson1__listOfConfiguration = function (output, context) {
|
|
3164
|
-
|
|
2742
|
+
var retVal = (output || [])
|
|
3165
2743
|
.filter(function (e) { return e != null; })
|
|
3166
2744
|
.map(function (entry) {
|
|
3167
2745
|
if (entry === null) {
|
|
@@ -3169,9 +2747,10 @@ var deserializeAws_restJson1__listOfConfiguration = function (output, context) {
|
|
|
3169
2747
|
}
|
|
3170
2748
|
return deserializeAws_restJson1Configuration(entry, context);
|
|
3171
2749
|
});
|
|
2750
|
+
return retVal;
|
|
3172
2751
|
};
|
|
3173
2752
|
var deserializeAws_restJson1__listOfConfigurationId = function (output, context) {
|
|
3174
|
-
|
|
2753
|
+
var retVal = (output || [])
|
|
3175
2754
|
.filter(function (e) { return e != null; })
|
|
3176
2755
|
.map(function (entry) {
|
|
3177
2756
|
if (entry === null) {
|
|
@@ -3179,9 +2758,10 @@ var deserializeAws_restJson1__listOfConfigurationId = function (output, context)
|
|
|
3179
2758
|
}
|
|
3180
2759
|
return deserializeAws_restJson1ConfigurationId(entry, context);
|
|
3181
2760
|
});
|
|
2761
|
+
return retVal;
|
|
3182
2762
|
};
|
|
3183
2763
|
var deserializeAws_restJson1__listOfConfigurationRevision = function (output, context) {
|
|
3184
|
-
|
|
2764
|
+
var retVal = (output || [])
|
|
3185
2765
|
.filter(function (e) { return e != null; })
|
|
3186
2766
|
.map(function (entry) {
|
|
3187
2767
|
if (entry === null) {
|
|
@@ -3189,9 +2769,10 @@ var deserializeAws_restJson1__listOfConfigurationRevision = function (output, co
|
|
|
3189
2769
|
}
|
|
3190
2770
|
return deserializeAws_restJson1ConfigurationRevision(entry, context);
|
|
3191
2771
|
});
|
|
2772
|
+
return retVal;
|
|
3192
2773
|
};
|
|
3193
2774
|
var deserializeAws_restJson1__listOfDeploymentMode = function (output, context) {
|
|
3194
|
-
|
|
2775
|
+
var retVal = (output || [])
|
|
3195
2776
|
.filter(function (e) { return e != null; })
|
|
3196
2777
|
.map(function (entry) {
|
|
3197
2778
|
if (entry === null) {
|
|
@@ -3199,9 +2780,10 @@ var deserializeAws_restJson1__listOfDeploymentMode = function (output, context)
|
|
|
3199
2780
|
}
|
|
3200
2781
|
return __expectString(entry);
|
|
3201
2782
|
});
|
|
2783
|
+
return retVal;
|
|
3202
2784
|
};
|
|
3203
2785
|
var deserializeAws_restJson1__listOfEngineVersion = function (output, context) {
|
|
3204
|
-
|
|
2786
|
+
var retVal = (output || [])
|
|
3205
2787
|
.filter(function (e) { return e != null; })
|
|
3206
2788
|
.map(function (entry) {
|
|
3207
2789
|
if (entry === null) {
|
|
@@ -3209,9 +2791,10 @@ var deserializeAws_restJson1__listOfEngineVersion = function (output, context) {
|
|
|
3209
2791
|
}
|
|
3210
2792
|
return deserializeAws_restJson1EngineVersion(entry, context);
|
|
3211
2793
|
});
|
|
2794
|
+
return retVal;
|
|
3212
2795
|
};
|
|
3213
2796
|
var deserializeAws_restJson1__listOfSanitizationWarning = function (output, context) {
|
|
3214
|
-
|
|
2797
|
+
var retVal = (output || [])
|
|
3215
2798
|
.filter(function (e) { return e != null; })
|
|
3216
2799
|
.map(function (entry) {
|
|
3217
2800
|
if (entry === null) {
|
|
@@ -3219,9 +2802,10 @@ var deserializeAws_restJson1__listOfSanitizationWarning = function (output, cont
|
|
|
3219
2802
|
}
|
|
3220
2803
|
return deserializeAws_restJson1SanitizationWarning(entry, context);
|
|
3221
2804
|
});
|
|
2805
|
+
return retVal;
|
|
3222
2806
|
};
|
|
3223
2807
|
var deserializeAws_restJson1__listOfUserSummary = function (output, context) {
|
|
3224
|
-
|
|
2808
|
+
var retVal = (output || [])
|
|
3225
2809
|
.filter(function (e) { return e != null; })
|
|
3226
2810
|
.map(function (entry) {
|
|
3227
2811
|
if (entry === null) {
|
|
@@ -3229,6 +2813,7 @@ var deserializeAws_restJson1__listOfUserSummary = function (output, context) {
|
|
|
3229
2813
|
}
|
|
3230
2814
|
return deserializeAws_restJson1UserSummary(entry, context);
|
|
3231
2815
|
});
|
|
2816
|
+
return retVal;
|
|
3232
2817
|
};
|
|
3233
2818
|
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
3234
2819
|
return Object.entries(output).reduce(function (acc, _a) {
|