@aws-sdk/client-drs 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DrsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +128 -3
- package/dist-cjs/protocols/Aws_restJson1.js +351 -1245
- package/dist-es/index.js +1 -0
- package/dist-es/models/DrsServiceException.js +12 -0
- package/dist-es/models/models_0.js +118 -1
- package/dist-es/protocols/Aws_restJson1.js +711 -1370
- package/dist-types/DrsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DrsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DrsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DrsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DrsServiceException as __BaseException } from "../models/DrsServiceException";
|
|
5
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -929,16 +931,16 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
929
931
|
});
|
|
930
932
|
}); };
|
|
931
933
|
var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
932
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
933
|
-
var
|
|
934
|
-
return __generator(this, function (
|
|
935
|
-
switch (
|
|
934
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
935
|
+
var _c;
|
|
936
|
+
return __generator(this, function (_d) {
|
|
937
|
+
switch (_d.label) {
|
|
936
938
|
case 0:
|
|
937
939
|
_a = [__assign({}, output)];
|
|
938
|
-
|
|
940
|
+
_c = {};
|
|
939
941
|
return [4, parseBody(output.body, context)];
|
|
940
942
|
case 1:
|
|
941
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
943
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
942
944
|
errorCode = "UnknownError";
|
|
943
945
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
946
|
_b = errorCode;
|
|
@@ -957,52 +959,26 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
|
|
|
957
959
|
case "com.amazonaws.drs#ValidationException": return [3, 12];
|
|
958
960
|
}
|
|
959
961
|
return [3, 14];
|
|
960
|
-
case 2:
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
case
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
case 4
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
case
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
case 6:
|
|
973
|
-
_e = [{}];
|
|
974
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
975
|
-
case 7:
|
|
976
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
977
|
-
return [3, 15];
|
|
978
|
-
case 8:
|
|
979
|
-
_f = [{}];
|
|
980
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
981
|
-
case 9:
|
|
982
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
983
|
-
return [3, 15];
|
|
984
|
-
case 10:
|
|
985
|
-
_g = [{}];
|
|
986
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
987
|
-
case 11:
|
|
988
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
989
|
-
return [3, 15];
|
|
990
|
-
case 12:
|
|
991
|
-
_h = [{}];
|
|
992
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
993
|
-
case 13:
|
|
994
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
995
|
-
return [3, 15];
|
|
962
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
963
|
+
case 3: throw _d.sent();
|
|
964
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
965
|
+
case 5: throw _d.sent();
|
|
966
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
967
|
+
case 7: throw _d.sent();
|
|
968
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
969
|
+
case 9: throw _d.sent();
|
|
970
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
971
|
+
case 11: throw _d.sent();
|
|
972
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
973
|
+
case 13: throw _d.sent();
|
|
996
974
|
case 14:
|
|
997
975
|
parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
response
|
|
1004
|
-
delete response.Message;
|
|
1005
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
976
|
+
response = new __BaseException({
|
|
977
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
978
|
+
$fault: "client",
|
|
979
|
+
$metadata: deserializeMetadata(output),
|
|
980
|
+
});
|
|
981
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1006
982
|
}
|
|
1007
983
|
});
|
|
1008
984
|
}); };
|
|
@@ -1025,16 +1001,16 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1025
1001
|
});
|
|
1026
1002
|
}); };
|
|
1027
1003
|
var deserializeAws_restJson1DeleteJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1028
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1029
|
-
var
|
|
1030
|
-
return __generator(this, function (
|
|
1031
|
-
switch (
|
|
1004
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1005
|
+
var _c;
|
|
1006
|
+
return __generator(this, function (_d) {
|
|
1007
|
+
switch (_d.label) {
|
|
1032
1008
|
case 0:
|
|
1033
1009
|
_a = [__assign({}, output)];
|
|
1034
|
-
|
|
1010
|
+
_c = {};
|
|
1035
1011
|
return [4, parseBody(output.body, context)];
|
|
1036
1012
|
case 1:
|
|
1037
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1013
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1038
1014
|
errorCode = "UnknownError";
|
|
1039
1015
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
1016
|
_b = errorCode;
|
|
@@ -1051,46 +1027,24 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1051
1027
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
1052
1028
|
}
|
|
1053
1029
|
return [3, 12];
|
|
1054
|
-
case 2:
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
case
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
case 4
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
case
|
|
1064
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1065
|
-
return [3, 13];
|
|
1066
|
-
case 6:
|
|
1067
|
-
_e = [{}];
|
|
1068
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1069
|
-
case 7:
|
|
1070
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1071
|
-
return [3, 13];
|
|
1072
|
-
case 8:
|
|
1073
|
-
_f = [{}];
|
|
1074
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1075
|
-
case 9:
|
|
1076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1077
|
-
return [3, 13];
|
|
1078
|
-
case 10:
|
|
1079
|
-
_g = [{}];
|
|
1080
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1081
|
-
case 11:
|
|
1082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1083
|
-
return [3, 13];
|
|
1030
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1031
|
+
case 3: throw _d.sent();
|
|
1032
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1033
|
+
case 5: throw _d.sent();
|
|
1034
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1035
|
+
case 7: throw _d.sent();
|
|
1036
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1037
|
+
case 9: throw _d.sent();
|
|
1038
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1039
|
+
case 11: throw _d.sent();
|
|
1084
1040
|
case 12:
|
|
1085
1041
|
parsedBody = parsedOutput.body;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
response
|
|
1092
|
-
delete response.Message;
|
|
1093
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1042
|
+
response = new __BaseException({
|
|
1043
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1044
|
+
$fault: "client",
|
|
1045
|
+
$metadata: deserializeMetadata(output),
|
|
1046
|
+
});
|
|
1047
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1094
1048
|
}
|
|
1095
1049
|
});
|
|
1096
1050
|
}); };
|
|
@@ -1113,16 +1067,16 @@ export var deserializeAws_restJson1DeleteRecoveryInstanceCommand = function (out
|
|
|
1113
1067
|
});
|
|
1114
1068
|
}); };
|
|
1115
1069
|
var deserializeAws_restJson1DeleteRecoveryInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1116
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1117
|
-
var
|
|
1118
|
-
return __generator(this, function (
|
|
1119
|
-
switch (
|
|
1070
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1071
|
+
var _c;
|
|
1072
|
+
return __generator(this, function (_d) {
|
|
1073
|
+
switch (_d.label) {
|
|
1120
1074
|
case 0:
|
|
1121
1075
|
_a = [__assign({}, output)];
|
|
1122
|
-
|
|
1076
|
+
_c = {};
|
|
1123
1077
|
return [4, parseBody(output.body, context)];
|
|
1124
1078
|
case 1:
|
|
1125
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1079
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1126
1080
|
errorCode = "UnknownError";
|
|
1127
1081
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
1082
|
_b = errorCode;
|
|
@@ -1139,46 +1093,24 @@ var deserializeAws_restJson1DeleteRecoveryInstanceCommandError = function (outpu
|
|
|
1139
1093
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
1140
1094
|
}
|
|
1141
1095
|
return [3, 12];
|
|
1142
|
-
case 2:
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
case
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
case 4
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
case
|
|
1152
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1153
|
-
return [3, 13];
|
|
1154
|
-
case 6:
|
|
1155
|
-
_e = [{}];
|
|
1156
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1157
|
-
case 7:
|
|
1158
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1159
|
-
return [3, 13];
|
|
1160
|
-
case 8:
|
|
1161
|
-
_f = [{}];
|
|
1162
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1163
|
-
case 9:
|
|
1164
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1165
|
-
return [3, 13];
|
|
1166
|
-
case 10:
|
|
1167
|
-
_g = [{}];
|
|
1168
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1169
|
-
case 11:
|
|
1170
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1171
|
-
return [3, 13];
|
|
1096
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1097
|
+
case 3: throw _d.sent();
|
|
1098
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1099
|
+
case 5: throw _d.sent();
|
|
1100
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1101
|
+
case 7: throw _d.sent();
|
|
1102
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1103
|
+
case 9: throw _d.sent();
|
|
1104
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1105
|
+
case 11: throw _d.sent();
|
|
1172
1106
|
case 12:
|
|
1173
1107
|
parsedBody = parsedOutput.body;
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
response
|
|
1180
|
-
delete response.Message;
|
|
1181
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1108
|
+
response = new __BaseException({
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1110
|
+
$fault: "client",
|
|
1111
|
+
$metadata: deserializeMetadata(output),
|
|
1112
|
+
});
|
|
1113
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1182
1114
|
}
|
|
1183
1115
|
});
|
|
1184
1116
|
}); };
|
|
@@ -1201,16 +1133,16 @@ export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
|
|
|
1201
1133
|
});
|
|
1202
1134
|
}); };
|
|
1203
1135
|
var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1204
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1205
|
-
var
|
|
1206
|
-
return __generator(this, function (
|
|
1207
|
-
switch (
|
|
1136
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1137
|
+
var _c;
|
|
1138
|
+
return __generator(this, function (_d) {
|
|
1139
|
+
switch (_d.label) {
|
|
1208
1140
|
case 0:
|
|
1209
1141
|
_a = [__assign({}, output)];
|
|
1210
|
-
|
|
1142
|
+
_c = {};
|
|
1211
1143
|
return [4, parseBody(output.body, context)];
|
|
1212
1144
|
case 1:
|
|
1213
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1145
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1214
1146
|
errorCode = "UnknownError";
|
|
1215
1147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1148
|
_b = errorCode;
|
|
@@ -1227,46 +1159,24 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
|
|
|
1227
1159
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
1228
1160
|
}
|
|
1229
1161
|
return [3, 12];
|
|
1230
|
-
case 2:
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
case
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
case 4
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
case
|
|
1240
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1241
|
-
return [3, 13];
|
|
1242
|
-
case 6:
|
|
1243
|
-
_e = [{}];
|
|
1244
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1245
|
-
case 7:
|
|
1246
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1247
|
-
return [3, 13];
|
|
1248
|
-
case 8:
|
|
1249
|
-
_f = [{}];
|
|
1250
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1251
|
-
case 9:
|
|
1252
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1253
|
-
return [3, 13];
|
|
1254
|
-
case 10:
|
|
1255
|
-
_g = [{}];
|
|
1256
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1257
|
-
case 11:
|
|
1258
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1259
|
-
return [3, 13];
|
|
1162
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1163
|
+
case 3: throw _d.sent();
|
|
1164
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1165
|
+
case 5: throw _d.sent();
|
|
1166
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1167
|
+
case 7: throw _d.sent();
|
|
1168
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1169
|
+
case 9: throw _d.sent();
|
|
1170
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1171
|
+
case 11: throw _d.sent();
|
|
1260
1172
|
case 12:
|
|
1261
1173
|
parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
response
|
|
1268
|
-
delete response.Message;
|
|
1269
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1174
|
+
response = new __BaseException({
|
|
1175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1176
|
+
$fault: "client",
|
|
1177
|
+
$metadata: deserializeMetadata(output),
|
|
1178
|
+
});
|
|
1179
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1270
1180
|
}
|
|
1271
1181
|
});
|
|
1272
1182
|
}); };
|
|
@@ -1289,16 +1199,16 @@ export var deserializeAws_restJson1DeleteSourceServerCommand = function (output,
|
|
|
1289
1199
|
});
|
|
1290
1200
|
}); };
|
|
1291
1201
|
var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1292
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1293
|
-
var
|
|
1294
|
-
return __generator(this, function (
|
|
1295
|
-
switch (
|
|
1202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1203
|
+
var _c;
|
|
1204
|
+
return __generator(this, function (_d) {
|
|
1205
|
+
switch (_d.label) {
|
|
1296
1206
|
case 0:
|
|
1297
1207
|
_a = [__assign({}, output)];
|
|
1298
|
-
|
|
1208
|
+
_c = {};
|
|
1299
1209
|
return [4, parseBody(output.body, context)];
|
|
1300
1210
|
case 1:
|
|
1301
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1211
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1302
1212
|
errorCode = "UnknownError";
|
|
1303
1213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1214
|
_b = errorCode;
|
|
@@ -1315,46 +1225,24 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
|
|
|
1315
1225
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
1316
1226
|
}
|
|
1317
1227
|
return [3, 12];
|
|
1318
|
-
case 2:
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
case
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
case 4
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
case
|
|
1328
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3, 13];
|
|
1330
|
-
case 6:
|
|
1331
|
-
_e = [{}];
|
|
1332
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1333
|
-
case 7:
|
|
1334
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1335
|
-
return [3, 13];
|
|
1336
|
-
case 8:
|
|
1337
|
-
_f = [{}];
|
|
1338
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1339
|
-
case 9:
|
|
1340
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1341
|
-
return [3, 13];
|
|
1342
|
-
case 10:
|
|
1343
|
-
_g = [{}];
|
|
1344
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1345
|
-
case 11:
|
|
1346
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1347
|
-
return [3, 13];
|
|
1228
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 3: throw _d.sent();
|
|
1230
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 5: throw _d.sent();
|
|
1232
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1233
|
+
case 7: throw _d.sent();
|
|
1234
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1235
|
+
case 9: throw _d.sent();
|
|
1236
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1237
|
+
case 11: throw _d.sent();
|
|
1348
1238
|
case 12:
|
|
1349
1239
|
parsedBody = parsedOutput.body;
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
response
|
|
1356
|
-
delete response.Message;
|
|
1357
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1240
|
+
response = new __BaseException({
|
|
1241
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
|
+
$fault: "client",
|
|
1243
|
+
$metadata: deserializeMetadata(output),
|
|
1244
|
+
});
|
|
1245
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1358
1246
|
}
|
|
1359
1247
|
});
|
|
1360
1248
|
}); };
|
|
@@ -1387,16 +1275,16 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
|
|
|
1387
1275
|
});
|
|
1388
1276
|
}); };
|
|
1389
1277
|
var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1390
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1391
|
-
var
|
|
1392
|
-
return __generator(this, function (
|
|
1393
|
-
switch (
|
|
1278
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1279
|
+
var _c;
|
|
1280
|
+
return __generator(this, function (_d) {
|
|
1281
|
+
switch (_d.label) {
|
|
1394
1282
|
case 0:
|
|
1395
1283
|
_a = [__assign({}, output)];
|
|
1396
|
-
|
|
1284
|
+
_c = {};
|
|
1397
1285
|
return [4, parseBody(output.body, context)];
|
|
1398
1286
|
case 1:
|
|
1399
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1287
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1400
1288
|
errorCode = "UnknownError";
|
|
1401
1289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1290
|
_b = errorCode;
|
|
@@ -1411,40 +1299,22 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
|
|
|
1411
1299
|
case "com.amazonaws.drs#ValidationException": return [3, 8];
|
|
1412
1300
|
}
|
|
1413
1301
|
return [3, 10];
|
|
1414
|
-
case 2:
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
case
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
case 4
|
|
1421
|
-
|
|
1422
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1423
|
-
case 5:
|
|
1424
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1425
|
-
return [3, 11];
|
|
1426
|
-
case 6:
|
|
1427
|
-
_e = [{}];
|
|
1428
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1429
|
-
case 7:
|
|
1430
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1431
|
-
return [3, 11];
|
|
1432
|
-
case 8:
|
|
1433
|
-
_f = [{}];
|
|
1434
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1435
|
-
case 9:
|
|
1436
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1437
|
-
return [3, 11];
|
|
1302
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1303
|
+
case 3: throw _d.sent();
|
|
1304
|
+
case 4: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1305
|
+
case 5: throw _d.sent();
|
|
1306
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1307
|
+
case 7: throw _d.sent();
|
|
1308
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1309
|
+
case 9: throw _d.sent();
|
|
1438
1310
|
case 10:
|
|
1439
1311
|
parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
response
|
|
1446
|
-
delete response.Message;
|
|
1447
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1312
|
+
response = new __BaseException({
|
|
1313
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1314
|
+
$fault: "client",
|
|
1315
|
+
$metadata: deserializeMetadata(output),
|
|
1316
|
+
});
|
|
1317
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1448
1318
|
}
|
|
1449
1319
|
});
|
|
1450
1320
|
}); };
|
|
@@ -1477,16 +1347,16 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1477
1347
|
});
|
|
1478
1348
|
}); };
|
|
1479
1349
|
var deserializeAws_restJson1DescribeJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1480
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1481
|
-
var
|
|
1482
|
-
return __generator(this, function (
|
|
1483
|
-
switch (
|
|
1350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1351
|
+
var _c;
|
|
1352
|
+
return __generator(this, function (_d) {
|
|
1353
|
+
switch (_d.label) {
|
|
1484
1354
|
case 0:
|
|
1485
1355
|
_a = [__assign({}, output)];
|
|
1486
|
-
|
|
1356
|
+
_c = {};
|
|
1487
1357
|
return [4, parseBody(output.body, context)];
|
|
1488
1358
|
case 1:
|
|
1489
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1359
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1490
1360
|
errorCode = "UnknownError";
|
|
1491
1361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1362
|
_b = errorCode;
|
|
@@ -1501,40 +1371,22 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1501
1371
|
case "com.amazonaws.drs#ValidationException": return [3, 8];
|
|
1502
1372
|
}
|
|
1503
1373
|
return [3, 10];
|
|
1504
|
-
case 2:
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
case
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
case 4
|
|
1511
|
-
|
|
1512
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1513
|
-
case 5:
|
|
1514
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1515
|
-
return [3, 11];
|
|
1516
|
-
case 6:
|
|
1517
|
-
_e = [{}];
|
|
1518
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1519
|
-
case 7:
|
|
1520
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1521
|
-
return [3, 11];
|
|
1522
|
-
case 8:
|
|
1523
|
-
_f = [{}];
|
|
1524
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1525
|
-
case 9:
|
|
1526
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1527
|
-
return [3, 11];
|
|
1374
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 3: throw _d.sent();
|
|
1376
|
+
case 4: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1377
|
+
case 5: throw _d.sent();
|
|
1378
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1379
|
+
case 7: throw _d.sent();
|
|
1380
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1381
|
+
case 9: throw _d.sent();
|
|
1528
1382
|
case 10:
|
|
1529
1383
|
parsedBody = parsedOutput.body;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
response
|
|
1536
|
-
delete response.Message;
|
|
1537
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1384
|
+
response = new __BaseException({
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1386
|
+
$fault: "client",
|
|
1387
|
+
$metadata: deserializeMetadata(output),
|
|
1388
|
+
});
|
|
1389
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1538
1390
|
}
|
|
1539
1391
|
});
|
|
1540
1392
|
}); };
|
|
@@ -1567,16 +1419,16 @@ export var deserializeAws_restJson1DescribeRecoveryInstancesCommand = function (
|
|
|
1567
1419
|
});
|
|
1568
1420
|
}); };
|
|
1569
1421
|
var deserializeAws_restJson1DescribeRecoveryInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1570
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1571
|
-
var
|
|
1572
|
-
return __generator(this, function (
|
|
1573
|
-
switch (
|
|
1422
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1423
|
+
var _c;
|
|
1424
|
+
return __generator(this, function (_d) {
|
|
1425
|
+
switch (_d.label) {
|
|
1574
1426
|
case 0:
|
|
1575
1427
|
_a = [__assign({}, output)];
|
|
1576
|
-
|
|
1428
|
+
_c = {};
|
|
1577
1429
|
return [4, parseBody(output.body, context)];
|
|
1578
1430
|
case 1:
|
|
1579
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1431
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1580
1432
|
errorCode = "UnknownError";
|
|
1581
1433
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
1434
|
_b = errorCode;
|
|
@@ -1591,40 +1443,22 @@ var deserializeAws_restJson1DescribeRecoveryInstancesCommandError = function (ou
|
|
|
1591
1443
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 8];
|
|
1592
1444
|
}
|
|
1593
1445
|
return [3, 10];
|
|
1594
|
-
case 2:
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
case
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
case 4
|
|
1601
|
-
|
|
1602
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1603
|
-
case 5:
|
|
1604
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1605
|
-
return [3, 11];
|
|
1606
|
-
case 6:
|
|
1607
|
-
_e = [{}];
|
|
1608
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1609
|
-
case 7:
|
|
1610
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
-
return [3, 11];
|
|
1612
|
-
case 8:
|
|
1613
|
-
_f = [{}];
|
|
1614
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1615
|
-
case 9:
|
|
1616
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1617
|
-
return [3, 11];
|
|
1446
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1447
|
+
case 3: throw _d.sent();
|
|
1448
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1449
|
+
case 5: throw _d.sent();
|
|
1450
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 7: throw _d.sent();
|
|
1452
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1453
|
+
case 9: throw _d.sent();
|
|
1618
1454
|
case 10:
|
|
1619
1455
|
parsedBody = parsedOutput.body;
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
response
|
|
1626
|
-
delete response.Message;
|
|
1627
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1456
|
+
response = new __BaseException({
|
|
1457
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1458
|
+
$fault: "client",
|
|
1459
|
+
$metadata: deserializeMetadata(output),
|
|
1460
|
+
});
|
|
1461
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1628
1462
|
}
|
|
1629
1463
|
});
|
|
1630
1464
|
}); };
|
|
@@ -1657,16 +1491,16 @@ export var deserializeAws_restJson1DescribeRecoverySnapshotsCommand = function (
|
|
|
1657
1491
|
});
|
|
1658
1492
|
}); };
|
|
1659
1493
|
var deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1660
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1661
|
-
var
|
|
1662
|
-
return __generator(this, function (
|
|
1663
|
-
switch (
|
|
1494
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1495
|
+
var _c;
|
|
1496
|
+
return __generator(this, function (_d) {
|
|
1497
|
+
switch (_d.label) {
|
|
1664
1498
|
case 0:
|
|
1665
1499
|
_a = [__assign({}, output)];
|
|
1666
|
-
|
|
1500
|
+
_c = {};
|
|
1667
1501
|
return [4, parseBody(output.body, context)];
|
|
1668
1502
|
case 1:
|
|
1669
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1503
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1670
1504
|
errorCode = "UnknownError";
|
|
1671
1505
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1506
|
_b = errorCode;
|
|
@@ -1683,46 +1517,24 @@ var deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = function (ou
|
|
|
1683
1517
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
1684
1518
|
}
|
|
1685
1519
|
return [3, 12];
|
|
1686
|
-
case 2:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
case
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
case 4
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
case
|
|
1696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
-
return [3, 13];
|
|
1698
|
-
case 6:
|
|
1699
|
-
_e = [{}];
|
|
1700
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1701
|
-
case 7:
|
|
1702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3, 13];
|
|
1704
|
-
case 8:
|
|
1705
|
-
_f = [{}];
|
|
1706
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1707
|
-
case 9:
|
|
1708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
-
return [3, 13];
|
|
1710
|
-
case 10:
|
|
1711
|
-
_g = [{}];
|
|
1712
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1713
|
-
case 11:
|
|
1714
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1715
|
-
return [3, 13];
|
|
1520
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 3: throw _d.sent();
|
|
1522
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1523
|
+
case 5: throw _d.sent();
|
|
1524
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1525
|
+
case 7: throw _d.sent();
|
|
1526
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 9: throw _d.sent();
|
|
1528
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1529
|
+
case 11: throw _d.sent();
|
|
1716
1530
|
case 12:
|
|
1717
1531
|
parsedBody = parsedOutput.body;
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
response
|
|
1724
|
-
delete response.Message;
|
|
1725
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1532
|
+
response = new __BaseException({
|
|
1533
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
|
+
$fault: "client",
|
|
1535
|
+
$metadata: deserializeMetadata(output),
|
|
1536
|
+
});
|
|
1537
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1726
1538
|
}
|
|
1727
1539
|
});
|
|
1728
1540
|
}); };
|
|
@@ -1755,16 +1567,16 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
1755
1567
|
});
|
|
1756
1568
|
}); };
|
|
1757
1569
|
var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1758
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1759
|
-
var
|
|
1760
|
-
return __generator(this, function (
|
|
1761
|
-
switch (
|
|
1570
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1571
|
+
var _c;
|
|
1572
|
+
return __generator(this, function (_d) {
|
|
1573
|
+
switch (_d.label) {
|
|
1762
1574
|
case 0:
|
|
1763
1575
|
_a = [__assign({}, output)];
|
|
1764
|
-
|
|
1576
|
+
_c = {};
|
|
1765
1577
|
return [4, parseBody(output.body, context)];
|
|
1766
1578
|
case 1:
|
|
1767
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1579
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1768
1580
|
errorCode = "UnknownError";
|
|
1769
1581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1582
|
_b = errorCode;
|
|
@@ -1781,46 +1593,24 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
|
|
|
1781
1593
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
1782
1594
|
}
|
|
1783
1595
|
return [3, 12];
|
|
1784
|
-
case 2:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
case
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
case 4
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
case
|
|
1794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3, 13];
|
|
1796
|
-
case 6:
|
|
1797
|
-
_e = [{}];
|
|
1798
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1799
|
-
case 7:
|
|
1800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1801
|
-
return [3, 13];
|
|
1802
|
-
case 8:
|
|
1803
|
-
_f = [{}];
|
|
1804
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1805
|
-
case 9:
|
|
1806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1807
|
-
return [3, 13];
|
|
1808
|
-
case 10:
|
|
1809
|
-
_g = [{}];
|
|
1810
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1811
|
-
case 11:
|
|
1812
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1813
|
-
return [3, 13];
|
|
1596
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1597
|
+
case 3: throw _d.sent();
|
|
1598
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1599
|
+
case 5: throw _d.sent();
|
|
1600
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1601
|
+
case 7: throw _d.sent();
|
|
1602
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1603
|
+
case 9: throw _d.sent();
|
|
1604
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1605
|
+
case 11: throw _d.sent();
|
|
1814
1606
|
case 12:
|
|
1815
1607
|
parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
response
|
|
1822
|
-
delete response.Message;
|
|
1823
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1608
|
+
response = new __BaseException({
|
|
1609
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1610
|
+
$fault: "client",
|
|
1611
|
+
$metadata: deserializeMetadata(output),
|
|
1612
|
+
});
|
|
1613
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1824
1614
|
}
|
|
1825
1615
|
});
|
|
1826
1616
|
}); };
|
|
@@ -1853,16 +1643,16 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
|
|
|
1853
1643
|
});
|
|
1854
1644
|
}); };
|
|
1855
1645
|
var deserializeAws_restJson1DescribeSourceServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1856
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1857
|
-
var
|
|
1858
|
-
return __generator(this, function (
|
|
1859
|
-
switch (
|
|
1646
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1647
|
+
var _c;
|
|
1648
|
+
return __generator(this, function (_d) {
|
|
1649
|
+
switch (_d.label) {
|
|
1860
1650
|
case 0:
|
|
1861
1651
|
_a = [__assign({}, output)];
|
|
1862
|
-
|
|
1652
|
+
_c = {};
|
|
1863
1653
|
return [4, parseBody(output.body, context)];
|
|
1864
1654
|
case 1:
|
|
1865
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1655
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1866
1656
|
errorCode = "UnknownError";
|
|
1867
1657
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1658
|
_b = errorCode;
|
|
@@ -1877,40 +1667,22 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
|
|
|
1877
1667
|
case "com.amazonaws.drs#ValidationException": return [3, 8];
|
|
1878
1668
|
}
|
|
1879
1669
|
return [3, 10];
|
|
1880
|
-
case 2:
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
case
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
case 4
|
|
1887
|
-
|
|
1888
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1889
|
-
case 5:
|
|
1890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1891
|
-
return [3, 11];
|
|
1892
|
-
case 6:
|
|
1893
|
-
_e = [{}];
|
|
1894
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1895
|
-
case 7:
|
|
1896
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1897
|
-
return [3, 11];
|
|
1898
|
-
case 8:
|
|
1899
|
-
_f = [{}];
|
|
1900
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1901
|
-
case 9:
|
|
1902
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1903
|
-
return [3, 11];
|
|
1670
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1671
|
+
case 3: throw _d.sent();
|
|
1672
|
+
case 4: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1673
|
+
case 5: throw _d.sent();
|
|
1674
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1675
|
+
case 7: throw _d.sent();
|
|
1676
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1677
|
+
case 9: throw _d.sent();
|
|
1904
1678
|
case 10:
|
|
1905
1679
|
parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
response
|
|
1912
|
-
delete response.Message;
|
|
1913
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1680
|
+
response = new __BaseException({
|
|
1681
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1682
|
+
$fault: "client",
|
|
1683
|
+
$metadata: deserializeMetadata(output),
|
|
1684
|
+
});
|
|
1685
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1914
1686
|
}
|
|
1915
1687
|
});
|
|
1916
1688
|
}); };
|
|
@@ -1933,16 +1705,16 @@ export var deserializeAws_restJson1DisconnectRecoveryInstanceCommand = function
|
|
|
1933
1705
|
});
|
|
1934
1706
|
}); };
|
|
1935
1707
|
var deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1936
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1937
|
-
var
|
|
1938
|
-
return __generator(this, function (
|
|
1939
|
-
switch (
|
|
1708
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1709
|
+
var _c;
|
|
1710
|
+
return __generator(this, function (_d) {
|
|
1711
|
+
switch (_d.label) {
|
|
1940
1712
|
case 0:
|
|
1941
1713
|
_a = [__assign({}, output)];
|
|
1942
|
-
|
|
1714
|
+
_c = {};
|
|
1943
1715
|
return [4, parseBody(output.body, context)];
|
|
1944
1716
|
case 1:
|
|
1945
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1717
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1946
1718
|
errorCode = "UnknownError";
|
|
1947
1719
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1720
|
_b = errorCode;
|
|
@@ -1961,52 +1733,26 @@ var deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = function (o
|
|
|
1961
1733
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 12];
|
|
1962
1734
|
}
|
|
1963
1735
|
return [3, 14];
|
|
1964
|
-
case 2:
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
case
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
case 4
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
case
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
case 6:
|
|
1977
|
-
_e = [{}];
|
|
1978
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1979
|
-
case 7:
|
|
1980
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1981
|
-
return [3, 15];
|
|
1982
|
-
case 8:
|
|
1983
|
-
_f = [{}];
|
|
1984
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1985
|
-
case 9:
|
|
1986
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3, 15];
|
|
1988
|
-
case 10:
|
|
1989
|
-
_g = [{}];
|
|
1990
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1991
|
-
case 11:
|
|
1992
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3, 15];
|
|
1994
|
-
case 12:
|
|
1995
|
-
_h = [{}];
|
|
1996
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1997
|
-
case 13:
|
|
1998
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1999
|
-
return [3, 15];
|
|
1736
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1737
|
+
case 3: throw _d.sent();
|
|
1738
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1739
|
+
case 5: throw _d.sent();
|
|
1740
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1741
|
+
case 7: throw _d.sent();
|
|
1742
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1743
|
+
case 9: throw _d.sent();
|
|
1744
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1745
|
+
case 11: throw _d.sent();
|
|
1746
|
+
case 12: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1747
|
+
case 13: throw _d.sent();
|
|
2000
1748
|
case 14:
|
|
2001
1749
|
parsedBody = parsedOutput.body;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
response
|
|
2008
|
-
delete response.Message;
|
|
2009
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1750
|
+
response = new __BaseException({
|
|
1751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1752
|
+
$fault: "client",
|
|
1753
|
+
$metadata: deserializeMetadata(output),
|
|
1754
|
+
});
|
|
1755
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2010
1756
|
}
|
|
2011
1757
|
});
|
|
2012
1758
|
}); };
|
|
@@ -2063,16 +1809,16 @@ export var deserializeAws_restJson1DisconnectSourceServerCommand = function (out
|
|
|
2063
1809
|
});
|
|
2064
1810
|
}); };
|
|
2065
1811
|
var deserializeAws_restJson1DisconnectSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2066
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2067
|
-
var
|
|
2068
|
-
return __generator(this, function (
|
|
2069
|
-
switch (
|
|
1812
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1813
|
+
var _c;
|
|
1814
|
+
return __generator(this, function (_d) {
|
|
1815
|
+
switch (_d.label) {
|
|
2070
1816
|
case 0:
|
|
2071
1817
|
_a = [__assign({}, output)];
|
|
2072
|
-
|
|
1818
|
+
_c = {};
|
|
2073
1819
|
return [4, parseBody(output.body, context)];
|
|
2074
1820
|
case 1:
|
|
2075
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1821
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2076
1822
|
errorCode = "UnknownError";
|
|
2077
1823
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
1824
|
_b = errorCode;
|
|
@@ -2089,46 +1835,24 @@ var deserializeAws_restJson1DisconnectSourceServerCommandError = function (outpu
|
|
|
2089
1835
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
2090
1836
|
}
|
|
2091
1837
|
return [3, 12];
|
|
2092
|
-
case 2:
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
case
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
case 4
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
case
|
|
2102
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2103
|
-
return [3, 13];
|
|
2104
|
-
case 6:
|
|
2105
|
-
_e = [{}];
|
|
2106
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2107
|
-
case 7:
|
|
2108
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2109
|
-
return [3, 13];
|
|
2110
|
-
case 8:
|
|
2111
|
-
_f = [{}];
|
|
2112
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2113
|
-
case 9:
|
|
2114
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2115
|
-
return [3, 13];
|
|
2116
|
-
case 10:
|
|
2117
|
-
_g = [{}];
|
|
2118
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2119
|
-
case 11:
|
|
2120
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2121
|
-
return [3, 13];
|
|
1838
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1839
|
+
case 3: throw _d.sent();
|
|
1840
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1841
|
+
case 5: throw _d.sent();
|
|
1842
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1843
|
+
case 7: throw _d.sent();
|
|
1844
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1845
|
+
case 9: throw _d.sent();
|
|
1846
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1847
|
+
case 11: throw _d.sent();
|
|
2122
1848
|
case 12:
|
|
2123
1849
|
parsedBody = parsedOutput.body;
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
response
|
|
2130
|
-
delete response.Message;
|
|
2131
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1850
|
+
response = new __BaseException({
|
|
1851
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1852
|
+
$fault: "client",
|
|
1853
|
+
$metadata: deserializeMetadata(output),
|
|
1854
|
+
});
|
|
1855
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2132
1856
|
}
|
|
2133
1857
|
});
|
|
2134
1858
|
}); };
|
|
@@ -2169,16 +1893,16 @@ export var deserializeAws_restJson1GetFailbackReplicationConfigurationCommand =
|
|
|
2169
1893
|
});
|
|
2170
1894
|
}); };
|
|
2171
1895
|
var deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2172
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2173
|
-
var
|
|
2174
|
-
return __generator(this, function (
|
|
2175
|
-
switch (
|
|
1896
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1897
|
+
var _c;
|
|
1898
|
+
return __generator(this, function (_d) {
|
|
1899
|
+
switch (_d.label) {
|
|
2176
1900
|
case 0:
|
|
2177
1901
|
_a = [__assign({}, output)];
|
|
2178
|
-
|
|
1902
|
+
_c = {};
|
|
2179
1903
|
return [4, parseBody(output.body, context)];
|
|
2180
1904
|
case 1:
|
|
2181
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1905
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2182
1906
|
errorCode = "UnknownError";
|
|
2183
1907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
1908
|
_b = errorCode;
|
|
@@ -2193,40 +1917,22 @@ var deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = fu
|
|
|
2193
1917
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 8];
|
|
2194
1918
|
}
|
|
2195
1919
|
return [3, 10];
|
|
2196
|
-
case 2:
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
case
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
case 4
|
|
2203
|
-
|
|
2204
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2205
|
-
case 5:
|
|
2206
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2207
|
-
return [3, 11];
|
|
2208
|
-
case 6:
|
|
2209
|
-
_e = [{}];
|
|
2210
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2211
|
-
case 7:
|
|
2212
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2213
|
-
return [3, 11];
|
|
2214
|
-
case 8:
|
|
2215
|
-
_f = [{}];
|
|
2216
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2217
|
-
case 9:
|
|
2218
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2219
|
-
return [3, 11];
|
|
1920
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1921
|
+
case 3: throw _d.sent();
|
|
1922
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1923
|
+
case 5: throw _d.sent();
|
|
1924
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1925
|
+
case 7: throw _d.sent();
|
|
1926
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1927
|
+
case 9: throw _d.sent();
|
|
2220
1928
|
case 10:
|
|
2221
1929
|
parsedBody = parsedOutput.body;
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
response
|
|
2228
|
-
delete response.Message;
|
|
2229
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1930
|
+
response = new __BaseException({
|
|
1931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1932
|
+
$fault: "client",
|
|
1933
|
+
$metadata: deserializeMetadata(output),
|
|
1934
|
+
});
|
|
1935
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2230
1936
|
}
|
|
2231
1937
|
});
|
|
2232
1938
|
}); };
|
|
@@ -2283,16 +1989,16 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2283
1989
|
});
|
|
2284
1990
|
}); };
|
|
2285
1991
|
var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2286
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2287
|
-
var
|
|
2288
|
-
return __generator(this, function (
|
|
2289
|
-
switch (
|
|
1992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1993
|
+
var _c;
|
|
1994
|
+
return __generator(this, function (_d) {
|
|
1995
|
+
switch (_d.label) {
|
|
2290
1996
|
case 0:
|
|
2291
1997
|
_a = [__assign({}, output)];
|
|
2292
|
-
|
|
1998
|
+
_c = {};
|
|
2293
1999
|
return [4, parseBody(output.body, context)];
|
|
2294
2000
|
case 1:
|
|
2295
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2001
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2296
2002
|
errorCode = "UnknownError";
|
|
2297
2003
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
2004
|
_b = errorCode;
|
|
@@ -2307,40 +2013,22 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
|
|
|
2307
2013
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 8];
|
|
2308
2014
|
}
|
|
2309
2015
|
return [3, 10];
|
|
2310
|
-
case 2:
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
case
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
case 4
|
|
2317
|
-
|
|
2318
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2319
|
-
case 5:
|
|
2320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2321
|
-
return [3, 11];
|
|
2322
|
-
case 6:
|
|
2323
|
-
_e = [{}];
|
|
2324
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2325
|
-
case 7:
|
|
2326
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2327
|
-
return [3, 11];
|
|
2328
|
-
case 8:
|
|
2329
|
-
_f = [{}];
|
|
2330
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2331
|
-
case 9:
|
|
2332
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2333
|
-
return [3, 11];
|
|
2016
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2017
|
+
case 3: throw _d.sent();
|
|
2018
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2019
|
+
case 5: throw _d.sent();
|
|
2020
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2021
|
+
case 7: throw _d.sent();
|
|
2022
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2023
|
+
case 9: throw _d.sent();
|
|
2334
2024
|
case 10:
|
|
2335
2025
|
parsedBody = parsedOutput.body;
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
response
|
|
2342
|
-
delete response.Message;
|
|
2343
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2026
|
+
response = new __BaseException({
|
|
2027
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2028
|
+
$fault: "client",
|
|
2029
|
+
$metadata: deserializeMetadata(output),
|
|
2030
|
+
});
|
|
2031
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2344
2032
|
}
|
|
2345
2033
|
});
|
|
2346
2034
|
}); };
|
|
@@ -2429,16 +2117,16 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
|
|
|
2429
2117
|
});
|
|
2430
2118
|
}); };
|
|
2431
2119
|
var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2432
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2433
|
-
var
|
|
2434
|
-
return __generator(this, function (
|
|
2435
|
-
switch (
|
|
2120
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2121
|
+
var _c;
|
|
2122
|
+
return __generator(this, function (_d) {
|
|
2123
|
+
switch (_d.label) {
|
|
2436
2124
|
case 0:
|
|
2437
2125
|
_a = [__assign({}, output)];
|
|
2438
|
-
|
|
2126
|
+
_c = {};
|
|
2439
2127
|
return [4, parseBody(output.body, context)];
|
|
2440
2128
|
case 1:
|
|
2441
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2129
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2442
2130
|
errorCode = "UnknownError";
|
|
2443
2131
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
2132
|
_b = errorCode;
|
|
@@ -2453,40 +2141,22 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
|
|
|
2453
2141
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 8];
|
|
2454
2142
|
}
|
|
2455
2143
|
return [3, 10];
|
|
2456
|
-
case 2:
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
case
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
case 4
|
|
2463
|
-
|
|
2464
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2465
|
-
case 5:
|
|
2466
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2467
|
-
return [3, 11];
|
|
2468
|
-
case 6:
|
|
2469
|
-
_e = [{}];
|
|
2470
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2471
|
-
case 7:
|
|
2472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2473
|
-
return [3, 11];
|
|
2474
|
-
case 8:
|
|
2475
|
-
_f = [{}];
|
|
2476
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2477
|
-
case 9:
|
|
2478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2479
|
-
return [3, 11];
|
|
2144
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2145
|
+
case 3: throw _d.sent();
|
|
2146
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2147
|
+
case 5: throw _d.sent();
|
|
2148
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2149
|
+
case 7: throw _d.sent();
|
|
2150
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2151
|
+
case 9: throw _d.sent();
|
|
2480
2152
|
case 10:
|
|
2481
2153
|
parsedBody = parsedOutput.body;
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
response
|
|
2488
|
-
delete response.Message;
|
|
2489
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2154
|
+
response = new __BaseException({
|
|
2155
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2156
|
+
$fault: "client",
|
|
2157
|
+
$metadata: deserializeMetadata(output),
|
|
2158
|
+
});
|
|
2159
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2490
2160
|
}
|
|
2491
2161
|
});
|
|
2492
2162
|
}); };
|
|
@@ -2509,16 +2179,16 @@ export var deserializeAws_restJson1InitializeServiceCommand = function (output,
|
|
|
2509
2179
|
});
|
|
2510
2180
|
}); };
|
|
2511
2181
|
var deserializeAws_restJson1InitializeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2512
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2513
|
-
var
|
|
2514
|
-
return __generator(this, function (
|
|
2515
|
-
switch (
|
|
2182
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2183
|
+
var _c;
|
|
2184
|
+
return __generator(this, function (_d) {
|
|
2185
|
+
switch (_d.label) {
|
|
2516
2186
|
case 0:
|
|
2517
2187
|
_a = [__assign({}, output)];
|
|
2518
|
-
|
|
2188
|
+
_c = {};
|
|
2519
2189
|
return [4, parseBody(output.body, context)];
|
|
2520
2190
|
case 1:
|
|
2521
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2191
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2522
2192
|
errorCode = "UnknownError";
|
|
2523
2193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
2194
|
_b = errorCode;
|
|
@@ -2533,40 +2203,22 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
|
|
|
2533
2203
|
case "com.amazonaws.drs#ValidationException": return [3, 8];
|
|
2534
2204
|
}
|
|
2535
2205
|
return [3, 10];
|
|
2536
|
-
case 2:
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
case
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
case 4
|
|
2543
|
-
|
|
2544
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2545
|
-
case 5:
|
|
2546
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2547
|
-
return [3, 11];
|
|
2548
|
-
case 6:
|
|
2549
|
-
_e = [{}];
|
|
2550
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2551
|
-
case 7:
|
|
2552
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2553
|
-
return [3, 11];
|
|
2554
|
-
case 8:
|
|
2555
|
-
_f = [{}];
|
|
2556
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2557
|
-
case 9:
|
|
2558
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2559
|
-
return [3, 11];
|
|
2206
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2207
|
+
case 3: throw _d.sent();
|
|
2208
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2209
|
+
case 5: throw _d.sent();
|
|
2210
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2211
|
+
case 7: throw _d.sent();
|
|
2212
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2213
|
+
case 9: throw _d.sent();
|
|
2560
2214
|
case 10:
|
|
2561
2215
|
parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
response
|
|
2568
|
-
delete response.Message;
|
|
2569
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2216
|
+
response = new __BaseException({
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
|
+
$fault: "client",
|
|
2219
|
+
$metadata: deserializeMetadata(output),
|
|
2220
|
+
});
|
|
2221
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2570
2222
|
}
|
|
2571
2223
|
});
|
|
2572
2224
|
}); };
|
|
@@ -2595,16 +2247,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2595
2247
|
});
|
|
2596
2248
|
}); };
|
|
2597
2249
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2598
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2599
|
-
var
|
|
2600
|
-
return __generator(this, function (
|
|
2601
|
-
switch (
|
|
2250
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2251
|
+
var _c;
|
|
2252
|
+
return __generator(this, function (_d) {
|
|
2253
|
+
switch (_d.label) {
|
|
2602
2254
|
case 0:
|
|
2603
2255
|
_a = [__assign({}, output)];
|
|
2604
|
-
|
|
2256
|
+
_c = {};
|
|
2605
2257
|
return [4, parseBody(output.body, context)];
|
|
2606
2258
|
case 1:
|
|
2607
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2259
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2608
2260
|
errorCode = "UnknownError";
|
|
2609
2261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2610
2262
|
_b = errorCode;
|
|
@@ -2621,46 +2273,24 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2621
2273
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
2622
2274
|
}
|
|
2623
2275
|
return [3, 12];
|
|
2624
|
-
case 2:
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
case
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
case 4
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
case
|
|
2634
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2635
|
-
return [3, 13];
|
|
2636
|
-
case 6:
|
|
2637
|
-
_e = [{}];
|
|
2638
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2639
|
-
case 7:
|
|
2640
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2641
|
-
return [3, 13];
|
|
2642
|
-
case 8:
|
|
2643
|
-
_f = [{}];
|
|
2644
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2645
|
-
case 9:
|
|
2646
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2647
|
-
return [3, 13];
|
|
2648
|
-
case 10:
|
|
2649
|
-
_g = [{}];
|
|
2650
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2651
|
-
case 11:
|
|
2652
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2653
|
-
return [3, 13];
|
|
2276
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2277
|
+
case 3: throw _d.sent();
|
|
2278
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2279
|
+
case 5: throw _d.sent();
|
|
2280
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2281
|
+
case 7: throw _d.sent();
|
|
2282
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2283
|
+
case 9: throw _d.sent();
|
|
2284
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2285
|
+
case 11: throw _d.sent();
|
|
2654
2286
|
case 12:
|
|
2655
2287
|
parsedBody = parsedOutput.body;
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
response
|
|
2662
|
-
delete response.Message;
|
|
2663
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2288
|
+
response = new __BaseException({
|
|
2289
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2290
|
+
$fault: "client",
|
|
2291
|
+
$metadata: deserializeMetadata(output),
|
|
2292
|
+
});
|
|
2293
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2664
2294
|
}
|
|
2665
2295
|
});
|
|
2666
2296
|
}); };
|
|
@@ -2717,16 +2347,16 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
|
|
|
2717
2347
|
});
|
|
2718
2348
|
}); };
|
|
2719
2349
|
var deserializeAws_restJson1RetryDataReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2720
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2721
|
-
var
|
|
2722
|
-
return __generator(this, function (
|
|
2723
|
-
switch (
|
|
2350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2351
|
+
var _c;
|
|
2352
|
+
return __generator(this, function (_d) {
|
|
2353
|
+
switch (_d.label) {
|
|
2724
2354
|
case 0:
|
|
2725
2355
|
_a = [__assign({}, output)];
|
|
2726
|
-
|
|
2356
|
+
_c = {};
|
|
2727
2357
|
return [4, parseBody(output.body, context)];
|
|
2728
2358
|
case 1:
|
|
2729
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2359
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2730
2360
|
errorCode = "UnknownError";
|
|
2731
2361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2362
|
_b = errorCode;
|
|
@@ -2743,46 +2373,24 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
|
|
|
2743
2373
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
2744
2374
|
}
|
|
2745
2375
|
return [3, 12];
|
|
2746
|
-
case 2:
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
case
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
case 4
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
case
|
|
2756
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2757
|
-
return [3, 13];
|
|
2758
|
-
case 6:
|
|
2759
|
-
_e = [{}];
|
|
2760
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2761
|
-
case 7:
|
|
2762
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2763
|
-
return [3, 13];
|
|
2764
|
-
case 8:
|
|
2765
|
-
_f = [{}];
|
|
2766
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2767
|
-
case 9:
|
|
2768
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2769
|
-
return [3, 13];
|
|
2770
|
-
case 10:
|
|
2771
|
-
_g = [{}];
|
|
2772
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2773
|
-
case 11:
|
|
2774
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2775
|
-
return [3, 13];
|
|
2376
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2377
|
+
case 3: throw _d.sent();
|
|
2378
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2379
|
+
case 5: throw _d.sent();
|
|
2380
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2381
|
+
case 7: throw _d.sent();
|
|
2382
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2383
|
+
case 9: throw _d.sent();
|
|
2384
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2385
|
+
case 11: throw _d.sent();
|
|
2776
2386
|
case 12:
|
|
2777
2387
|
parsedBody = parsedOutput.body;
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
response
|
|
2784
|
-
delete response.Message;
|
|
2785
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2388
|
+
response = new __BaseException({
|
|
2389
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
|
+
$fault: "client",
|
|
2391
|
+
$metadata: deserializeMetadata(output),
|
|
2392
|
+
});
|
|
2393
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2786
2394
|
}
|
|
2787
2395
|
});
|
|
2788
2396
|
}); };
|
|
@@ -2811,16 +2419,16 @@ export var deserializeAws_restJson1StartFailbackLaunchCommand = function (output
|
|
|
2811
2419
|
});
|
|
2812
2420
|
}); };
|
|
2813
2421
|
var deserializeAws_restJson1StartFailbackLaunchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2814
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2815
|
-
var
|
|
2816
|
-
return __generator(this, function (
|
|
2817
|
-
switch (
|
|
2422
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2423
|
+
var _c;
|
|
2424
|
+
return __generator(this, function (_d) {
|
|
2425
|
+
switch (_d.label) {
|
|
2818
2426
|
case 0:
|
|
2819
2427
|
_a = [__assign({}, output)];
|
|
2820
|
-
|
|
2428
|
+
_c = {};
|
|
2821
2429
|
return [4, parseBody(output.body, context)];
|
|
2822
2430
|
case 1:
|
|
2823
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2431
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2824
2432
|
errorCode = "UnknownError";
|
|
2825
2433
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
2434
|
_b = errorCode;
|
|
@@ -2839,52 +2447,26 @@ var deserializeAws_restJson1StartFailbackLaunchCommandError = function (output,
|
|
|
2839
2447
|
case "com.amazonaws.drs#ValidationException": return [3, 12];
|
|
2840
2448
|
}
|
|
2841
2449
|
return [3, 14];
|
|
2842
|
-
case 2:
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
case
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
case 4
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
case
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
case 6:
|
|
2855
|
-
_e = [{}];
|
|
2856
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2857
|
-
case 7:
|
|
2858
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2859
|
-
return [3, 15];
|
|
2860
|
-
case 8:
|
|
2861
|
-
_f = [{}];
|
|
2862
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2863
|
-
case 9:
|
|
2864
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2865
|
-
return [3, 15];
|
|
2866
|
-
case 10:
|
|
2867
|
-
_g = [{}];
|
|
2868
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2869
|
-
case 11:
|
|
2870
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2871
|
-
return [3, 15];
|
|
2872
|
-
case 12:
|
|
2873
|
-
_h = [{}];
|
|
2874
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2875
|
-
case 13:
|
|
2876
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2877
|
-
return [3, 15];
|
|
2450
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2451
|
+
case 3: throw _d.sent();
|
|
2452
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2453
|
+
case 5: throw _d.sent();
|
|
2454
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2455
|
+
case 7: throw _d.sent();
|
|
2456
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2457
|
+
case 9: throw _d.sent();
|
|
2458
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2459
|
+
case 11: throw _d.sent();
|
|
2460
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2461
|
+
case 13: throw _d.sent();
|
|
2878
2462
|
case 14:
|
|
2879
2463
|
parsedBody = parsedOutput.body;
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
response
|
|
2886
|
-
delete response.Message;
|
|
2887
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2464
|
+
response = new __BaseException({
|
|
2465
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2466
|
+
$fault: "client",
|
|
2467
|
+
$metadata: deserializeMetadata(output),
|
|
2468
|
+
});
|
|
2469
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2888
2470
|
}
|
|
2889
2471
|
});
|
|
2890
2472
|
}); };
|
|
@@ -2913,16 +2495,16 @@ export var deserializeAws_restJson1StartRecoveryCommand = function (output, cont
|
|
|
2913
2495
|
});
|
|
2914
2496
|
}); };
|
|
2915
2497
|
var deserializeAws_restJson1StartRecoveryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2916
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2917
|
-
var
|
|
2918
|
-
return __generator(this, function (
|
|
2919
|
-
switch (
|
|
2498
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2499
|
+
var _c;
|
|
2500
|
+
return __generator(this, function (_d) {
|
|
2501
|
+
switch (_d.label) {
|
|
2920
2502
|
case 0:
|
|
2921
2503
|
_a = [__assign({}, output)];
|
|
2922
|
-
|
|
2504
|
+
_c = {};
|
|
2923
2505
|
return [4, parseBody(output.body, context)];
|
|
2924
2506
|
case 1:
|
|
2925
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2507
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2926
2508
|
errorCode = "UnknownError";
|
|
2927
2509
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
2510
|
_b = errorCode;
|
|
@@ -2939,46 +2521,24 @@ var deserializeAws_restJson1StartRecoveryCommandError = function (output, contex
|
|
|
2939
2521
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
2940
2522
|
}
|
|
2941
2523
|
return [3, 12];
|
|
2942
|
-
case 2:
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
case
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
case 4
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
case
|
|
2952
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2953
|
-
return [3, 13];
|
|
2954
|
-
case 6:
|
|
2955
|
-
_e = [{}];
|
|
2956
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2957
|
-
case 7:
|
|
2958
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2959
|
-
return [3, 13];
|
|
2960
|
-
case 8:
|
|
2961
|
-
_f = [{}];
|
|
2962
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2963
|
-
case 9:
|
|
2964
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2965
|
-
return [3, 13];
|
|
2966
|
-
case 10:
|
|
2967
|
-
_g = [{}];
|
|
2968
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2969
|
-
case 11:
|
|
2970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2971
|
-
return [3, 13];
|
|
2524
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2525
|
+
case 3: throw _d.sent();
|
|
2526
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2527
|
+
case 5: throw _d.sent();
|
|
2528
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2529
|
+
case 7: throw _d.sent();
|
|
2530
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2531
|
+
case 9: throw _d.sent();
|
|
2532
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2533
|
+
case 11: throw _d.sent();
|
|
2972
2534
|
case 12:
|
|
2973
2535
|
parsedBody = parsedOutput.body;
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
response
|
|
2980
|
-
delete response.Message;
|
|
2981
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2536
|
+
response = new __BaseException({
|
|
2537
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2538
|
+
$fault: "client",
|
|
2539
|
+
$metadata: deserializeMetadata(output),
|
|
2540
|
+
});
|
|
2541
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2982
2542
|
}
|
|
2983
2543
|
});
|
|
2984
2544
|
}); };
|
|
@@ -3001,16 +2561,16 @@ export var deserializeAws_restJson1StopFailbackCommand = function (output, conte
|
|
|
3001
2561
|
});
|
|
3002
2562
|
}); };
|
|
3003
2563
|
var deserializeAws_restJson1StopFailbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3004
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3005
|
-
var
|
|
3006
|
-
return __generator(this, function (
|
|
3007
|
-
switch (
|
|
2564
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2565
|
+
var _c;
|
|
2566
|
+
return __generator(this, function (_d) {
|
|
2567
|
+
switch (_d.label) {
|
|
3008
2568
|
case 0:
|
|
3009
2569
|
_a = [__assign({}, output)];
|
|
3010
|
-
|
|
2570
|
+
_c = {};
|
|
3011
2571
|
return [4, parseBody(output.body, context)];
|
|
3012
2572
|
case 1:
|
|
3013
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2573
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3014
2574
|
errorCode = "UnknownError";
|
|
3015
2575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
2576
|
_b = errorCode;
|
|
@@ -3025,40 +2585,22 @@ var deserializeAws_restJson1StopFailbackCommandError = function (output, context
|
|
|
3025
2585
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 8];
|
|
3026
2586
|
}
|
|
3027
2587
|
return [3, 10];
|
|
3028
|
-
case 2:
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
case
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
case 4
|
|
3035
|
-
|
|
3036
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3037
|
-
case 5:
|
|
3038
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3039
|
-
return [3, 11];
|
|
3040
|
-
case 6:
|
|
3041
|
-
_e = [{}];
|
|
3042
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3043
|
-
case 7:
|
|
3044
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3045
|
-
return [3, 11];
|
|
3046
|
-
case 8:
|
|
3047
|
-
_f = [{}];
|
|
3048
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3049
|
-
case 9:
|
|
3050
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3051
|
-
return [3, 11];
|
|
2588
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2589
|
+
case 3: throw _d.sent();
|
|
2590
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2591
|
+
case 5: throw _d.sent();
|
|
2592
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2593
|
+
case 7: throw _d.sent();
|
|
2594
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2595
|
+
case 9: throw _d.sent();
|
|
3052
2596
|
case 10:
|
|
3053
2597
|
parsedBody = parsedOutput.body;
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
response
|
|
3060
|
-
delete response.Message;
|
|
3061
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2598
|
+
response = new __BaseException({
|
|
2599
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2600
|
+
$fault: "client",
|
|
2601
|
+
$metadata: deserializeMetadata(output),
|
|
2602
|
+
});
|
|
2603
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3062
2604
|
}
|
|
3063
2605
|
});
|
|
3064
2606
|
}); };
|
|
@@ -3081,16 +2623,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3081
2623
|
});
|
|
3082
2624
|
}); };
|
|
3083
2625
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3084
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3085
|
-
var
|
|
3086
|
-
return __generator(this, function (
|
|
3087
|
-
switch (
|
|
2626
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2627
|
+
var _c;
|
|
2628
|
+
return __generator(this, function (_d) {
|
|
2629
|
+
switch (_d.label) {
|
|
3088
2630
|
case 0:
|
|
3089
2631
|
_a = [__assign({}, output)];
|
|
3090
|
-
|
|
2632
|
+
_c = {};
|
|
3091
2633
|
return [4, parseBody(output.body, context)];
|
|
3092
2634
|
case 1:
|
|
3093
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2635
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3094
2636
|
errorCode = "UnknownError";
|
|
3095
2637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3096
2638
|
_b = errorCode;
|
|
@@ -3107,46 +2649,24 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3107
2649
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
3108
2650
|
}
|
|
3109
2651
|
return [3, 12];
|
|
3110
|
-
case 2:
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
case
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
case 4
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
case
|
|
3120
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3121
|
-
return [3, 13];
|
|
3122
|
-
case 6:
|
|
3123
|
-
_e = [{}];
|
|
3124
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3125
|
-
case 7:
|
|
3126
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3127
|
-
return [3, 13];
|
|
3128
|
-
case 8:
|
|
3129
|
-
_f = [{}];
|
|
3130
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3131
|
-
case 9:
|
|
3132
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3133
|
-
return [3, 13];
|
|
3134
|
-
case 10:
|
|
3135
|
-
_g = [{}];
|
|
3136
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3137
|
-
case 11:
|
|
3138
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3139
|
-
return [3, 13];
|
|
2652
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2653
|
+
case 3: throw _d.sent();
|
|
2654
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2655
|
+
case 5: throw _d.sent();
|
|
2656
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2657
|
+
case 7: throw _d.sent();
|
|
2658
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2659
|
+
case 9: throw _d.sent();
|
|
2660
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2661
|
+
case 11: throw _d.sent();
|
|
3140
2662
|
case 12:
|
|
3141
2663
|
parsedBody = parsedOutput.body;
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
response
|
|
3148
|
-
delete response.Message;
|
|
3149
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2664
|
+
response = new __BaseException({
|
|
2665
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2666
|
+
$fault: "client",
|
|
2667
|
+
$metadata: deserializeMetadata(output),
|
|
2668
|
+
});
|
|
2669
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3150
2670
|
}
|
|
3151
2671
|
});
|
|
3152
2672
|
}); };
|
|
@@ -3175,16 +2695,16 @@ export var deserializeAws_restJson1TerminateRecoveryInstancesCommand = function
|
|
|
3175
2695
|
});
|
|
3176
2696
|
}); };
|
|
3177
2697
|
var deserializeAws_restJson1TerminateRecoveryInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3178
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3179
|
-
var
|
|
3180
|
-
return __generator(this, function (
|
|
3181
|
-
switch (
|
|
2698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2699
|
+
var _c;
|
|
2700
|
+
return __generator(this, function (_d) {
|
|
2701
|
+
switch (_d.label) {
|
|
3182
2702
|
case 0:
|
|
3183
2703
|
_a = [__assign({}, output)];
|
|
3184
|
-
|
|
2704
|
+
_c = {};
|
|
3185
2705
|
return [4, parseBody(output.body, context)];
|
|
3186
2706
|
case 1:
|
|
3187
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3188
2708
|
errorCode = "UnknownError";
|
|
3189
2709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
2710
|
_b = errorCode;
|
|
@@ -3201,46 +2721,24 @@ var deserializeAws_restJson1TerminateRecoveryInstancesCommandError = function (o
|
|
|
3201
2721
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
3202
2722
|
}
|
|
3203
2723
|
return [3, 12];
|
|
3204
|
-
case 2:
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
case
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
case 4
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
case
|
|
3214
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3215
|
-
return [3, 13];
|
|
3216
|
-
case 6:
|
|
3217
|
-
_e = [{}];
|
|
3218
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3219
|
-
case 7:
|
|
3220
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3221
|
-
return [3, 13];
|
|
3222
|
-
case 8:
|
|
3223
|
-
_f = [{}];
|
|
3224
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3225
|
-
case 9:
|
|
3226
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3227
|
-
return [3, 13];
|
|
3228
|
-
case 10:
|
|
3229
|
-
_g = [{}];
|
|
3230
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3231
|
-
case 11:
|
|
3232
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3233
|
-
return [3, 13];
|
|
2724
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2725
|
+
case 3: throw _d.sent();
|
|
2726
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2727
|
+
case 5: throw _d.sent();
|
|
2728
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2729
|
+
case 7: throw _d.sent();
|
|
2730
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2731
|
+
case 9: throw _d.sent();
|
|
2732
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2733
|
+
case 11: throw _d.sent();
|
|
3234
2734
|
case 12:
|
|
3235
2735
|
parsedBody = parsedOutput.body;
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
response
|
|
3242
|
-
delete response.Message;
|
|
3243
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2736
|
+
response = new __BaseException({
|
|
2737
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2738
|
+
$fault: "client",
|
|
2739
|
+
$metadata: deserializeMetadata(output),
|
|
2740
|
+
});
|
|
2741
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3244
2742
|
}
|
|
3245
2743
|
});
|
|
3246
2744
|
}); };
|
|
@@ -3263,16 +2761,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3263
2761
|
});
|
|
3264
2762
|
}); };
|
|
3265
2763
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3266
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3267
|
-
var
|
|
3268
|
-
return __generator(this, function (
|
|
3269
|
-
switch (
|
|
2764
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2765
|
+
var _c;
|
|
2766
|
+
return __generator(this, function (_d) {
|
|
2767
|
+
switch (_d.label) {
|
|
3270
2768
|
case 0:
|
|
3271
2769
|
_a = [__assign({}, output)];
|
|
3272
|
-
|
|
2770
|
+
_c = {};
|
|
3273
2771
|
return [4, parseBody(output.body, context)];
|
|
3274
2772
|
case 1:
|
|
3275
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2773
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3276
2774
|
errorCode = "UnknownError";
|
|
3277
2775
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3278
2776
|
_b = errorCode;
|
|
@@ -3289,46 +2787,24 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3289
2787
|
case "com.amazonaws.drs#ValidationException": return [3, 10];
|
|
3290
2788
|
}
|
|
3291
2789
|
return [3, 12];
|
|
3292
|
-
case 2:
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
case
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
case 4
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
case
|
|
3302
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3303
|
-
return [3, 13];
|
|
3304
|
-
case 6:
|
|
3305
|
-
_e = [{}];
|
|
3306
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3307
|
-
case 7:
|
|
3308
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3309
|
-
return [3, 13];
|
|
3310
|
-
case 8:
|
|
3311
|
-
_f = [{}];
|
|
3312
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3313
|
-
case 9:
|
|
3314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3315
|
-
return [3, 13];
|
|
3316
|
-
case 10:
|
|
3317
|
-
_g = [{}];
|
|
3318
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3319
|
-
case 11:
|
|
3320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3321
|
-
return [3, 13];
|
|
2790
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2791
|
+
case 3: throw _d.sent();
|
|
2792
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2793
|
+
case 5: throw _d.sent();
|
|
2794
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2795
|
+
case 7: throw _d.sent();
|
|
2796
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2797
|
+
case 9: throw _d.sent();
|
|
2798
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2799
|
+
case 11: throw _d.sent();
|
|
3322
2800
|
case 12:
|
|
3323
2801
|
parsedBody = parsedOutput.body;
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
response
|
|
3330
|
-
delete response.Message;
|
|
3331
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2802
|
+
response = new __BaseException({
|
|
2803
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2804
|
+
$fault: "client",
|
|
2805
|
+
$metadata: deserializeMetadata(output),
|
|
2806
|
+
});
|
|
2807
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3332
2808
|
}
|
|
3333
2809
|
});
|
|
3334
2810
|
}); };
|
|
@@ -3351,16 +2827,16 @@ export var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand
|
|
|
3351
2827
|
});
|
|
3352
2828
|
}); };
|
|
3353
2829
|
var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3354
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3355
|
-
var
|
|
3356
|
-
return __generator(this, function (
|
|
3357
|
-
switch (
|
|
2830
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2831
|
+
var _c;
|
|
2832
|
+
return __generator(this, function (_d) {
|
|
2833
|
+
switch (_d.label) {
|
|
3358
2834
|
case 0:
|
|
3359
2835
|
_a = [__assign({}, output)];
|
|
3360
|
-
|
|
2836
|
+
_c = {};
|
|
3361
2837
|
return [4, parseBody(output.body, context)];
|
|
3362
2838
|
case 1:
|
|
3363
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2839
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3364
2840
|
errorCode = "UnknownError";
|
|
3365
2841
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
2842
|
_b = errorCode;
|
|
@@ -3377,46 +2853,24 @@ var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError =
|
|
|
3377
2853
|
case "com.amazonaws.drs#UninitializedAccountException": return [3, 10];
|
|
3378
2854
|
}
|
|
3379
2855
|
return [3, 12];
|
|
3380
|
-
case 2:
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
case
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
case 4
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
case
|
|
3390
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3391
|
-
return [3, 13];
|
|
3392
|
-
case 6:
|
|
3393
|
-
_e = [{}];
|
|
3394
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3395
|
-
case 7:
|
|
3396
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3397
|
-
return [3, 13];
|
|
3398
|
-
case 8:
|
|
3399
|
-
_f = [{}];
|
|
3400
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3401
|
-
case 9:
|
|
3402
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3403
|
-
return [3, 13];
|
|
3404
|
-
case 10:
|
|
3405
|
-
_g = [{}];
|
|
3406
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3407
|
-
case 11:
|
|
3408
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3409
|
-
return [3, 13];
|
|
2856
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2857
|
+
case 3: throw _d.sent();
|
|
2858
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2859
|
+
case 5: throw _d.sent();
|
|
2860
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2861
|
+
case 7: throw _d.sent();
|
|
2862
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2863
|
+
case 9: throw _d.sent();
|
|
2864
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2865
|
+
case 11: throw _d.sent();
|
|
3410
2866
|
case 12:
|
|
3411
2867
|
parsedBody = parsedOutput.body;
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
response
|
|
3418
|
-
delete response.Message;
|
|
3419
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2868
|
+
response = new __BaseException({
|
|
2869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2870
|
+
$fault: "client",
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3420
2874
|
}
|
|
3421
2875
|
});
|
|
3422
2876
|
}); };
|
|
@@ -3473,16 +2927,16 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3473
2927
|
});
|
|
3474
2928
|
}); };
|
|
3475
2929
|
var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3476
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3477
|
-
var
|
|
3478
|
-
return __generator(this, function (
|
|
3479
|
-
switch (
|
|
2930
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2931
|
+
var _c;
|
|
2932
|
+
return __generator(this, function (_d) {
|
|
2933
|
+
switch (_d.label) {
|
|
3480
2934
|
case 0:
|
|
3481
2935
|
_a = [__assign({}, output)];
|
|
3482
|
-
|
|
2936
|
+
_c = {};
|
|
3483
2937
|
return [4, parseBody(output.body, context)];
|
|
3484
2938
|
case 1:
|
|
3485
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2939
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3486
2940
|
errorCode = "UnknownError";
|
|
3487
2941
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3488
2942
|
_b = errorCode;
|
|
@@ -3501,52 +2955,26 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
3501
2955
|
case "com.amazonaws.drs#ValidationException": return [3, 12];
|
|
3502
2956
|
}
|
|
3503
2957
|
return [3, 14];
|
|
3504
|
-
case 2:
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
case
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
case 4
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
case
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
case 6:
|
|
3517
|
-
_e = [{}];
|
|
3518
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3519
|
-
case 7:
|
|
3520
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3521
|
-
return [3, 15];
|
|
3522
|
-
case 8:
|
|
3523
|
-
_f = [{}];
|
|
3524
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3525
|
-
case 9:
|
|
3526
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3527
|
-
return [3, 15];
|
|
3528
|
-
case 10:
|
|
3529
|
-
_g = [{}];
|
|
3530
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3531
|
-
case 11:
|
|
3532
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3533
|
-
return [3, 15];
|
|
3534
|
-
case 12:
|
|
3535
|
-
_h = [{}];
|
|
3536
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3537
|
-
case 13:
|
|
3538
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3539
|
-
return [3, 15];
|
|
2958
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2959
|
+
case 3: throw _d.sent();
|
|
2960
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2961
|
+
case 5: throw _d.sent();
|
|
2962
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2963
|
+
case 7: throw _d.sent();
|
|
2964
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2965
|
+
case 9: throw _d.sent();
|
|
2966
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2967
|
+
case 11: throw _d.sent();
|
|
2968
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2969
|
+
case 13: throw _d.sent();
|
|
3540
2970
|
case 14:
|
|
3541
2971
|
parsedBody = parsedOutput.body;
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
response
|
|
3548
|
-
delete response.Message;
|
|
3549
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2972
|
+
response = new __BaseException({
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2974
|
+
$fault: "client",
|
|
2975
|
+
$metadata: deserializeMetadata(output),
|
|
2976
|
+
});
|
|
2977
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3550
2978
|
}
|
|
3551
2979
|
});
|
|
3552
2980
|
}); };
|
|
@@ -3635,16 +3063,16 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
|
|
|
3635
3063
|
});
|
|
3636
3064
|
}); };
|
|
3637
3065
|
var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3638
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3639
|
-
var
|
|
3640
|
-
return __generator(this, function (
|
|
3641
|
-
switch (
|
|
3066
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3067
|
+
var _c;
|
|
3068
|
+
return __generator(this, function (_d) {
|
|
3069
|
+
switch (_d.label) {
|
|
3642
3070
|
case 0:
|
|
3643
3071
|
_a = [__assign({}, output)];
|
|
3644
|
-
|
|
3072
|
+
_c = {};
|
|
3645
3073
|
return [4, parseBody(output.body, context)];
|
|
3646
3074
|
case 1:
|
|
3647
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3075
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3648
3076
|
errorCode = "UnknownError";
|
|
3649
3077
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3650
3078
|
_b = errorCode;
|
|
@@ -3665,58 +3093,28 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
|
|
|
3665
3093
|
case "com.amazonaws.drs#ValidationException": return [3, 14];
|
|
3666
3094
|
}
|
|
3667
3095
|
return [3, 16];
|
|
3668
|
-
case 2:
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
case
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
case 4
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
case
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
case
|
|
3681
|
-
|
|
3682
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3683
|
-
case 7:
|
|
3684
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3685
|
-
return [3, 17];
|
|
3686
|
-
case 8:
|
|
3687
|
-
_f = [{}];
|
|
3688
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3689
|
-
case 9:
|
|
3690
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3691
|
-
return [3, 17];
|
|
3692
|
-
case 10:
|
|
3693
|
-
_g = [{}];
|
|
3694
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3695
|
-
case 11:
|
|
3696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3697
|
-
return [3, 17];
|
|
3698
|
-
case 12:
|
|
3699
|
-
_h = [{}];
|
|
3700
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3701
|
-
case 13:
|
|
3702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3703
|
-
return [3, 17];
|
|
3704
|
-
case 14:
|
|
3705
|
-
_j = [{}];
|
|
3706
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3707
|
-
case 15:
|
|
3708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3709
|
-
return [3, 17];
|
|
3096
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3097
|
+
case 3: throw _d.sent();
|
|
3098
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3099
|
+
case 5: throw _d.sent();
|
|
3100
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3101
|
+
case 7: throw _d.sent();
|
|
3102
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3103
|
+
case 9: throw _d.sent();
|
|
3104
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3105
|
+
case 11: throw _d.sent();
|
|
3106
|
+
case 12: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3107
|
+
case 13: throw _d.sent();
|
|
3108
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3109
|
+
case 15: throw _d.sent();
|
|
3710
3110
|
case 16:
|
|
3711
3111
|
parsedBody = parsedOutput.body;
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
response
|
|
3718
|
-
delete response.Message;
|
|
3719
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3112
|
+
response = new __BaseException({
|
|
3113
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3114
|
+
$fault: "client",
|
|
3115
|
+
$metadata: deserializeMetadata(output),
|
|
3116
|
+
});
|
|
3117
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3720
3118
|
}
|
|
3721
3119
|
});
|
|
3722
3120
|
}); };
|
|
@@ -3805,16 +3203,16 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
3805
3203
|
});
|
|
3806
3204
|
}); };
|
|
3807
3205
|
var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3808
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3809
|
-
var
|
|
3810
|
-
return __generator(this, function (
|
|
3811
|
-
switch (
|
|
3206
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3207
|
+
var _c;
|
|
3208
|
+
return __generator(this, function (_d) {
|
|
3209
|
+
switch (_d.label) {
|
|
3812
3210
|
case 0:
|
|
3813
3211
|
_a = [__assign({}, output)];
|
|
3814
|
-
|
|
3212
|
+
_c = {};
|
|
3815
3213
|
return [4, parseBody(output.body, context)];
|
|
3816
3214
|
case 1:
|
|
3817
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3215
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3818
3216
|
errorCode = "UnknownError";
|
|
3819
3217
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
3218
|
_b = errorCode;
|
|
@@ -3833,65 +3231,33 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
|
|
|
3833
3231
|
case "com.amazonaws.drs#ValidationException": return [3, 12];
|
|
3834
3232
|
}
|
|
3835
3233
|
return [3, 14];
|
|
3836
|
-
case 2:
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
case
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
case 4
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
case
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
case 6:
|
|
3849
|
-
_e = [{}];
|
|
3850
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3851
|
-
case 7:
|
|
3852
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3853
|
-
return [3, 15];
|
|
3854
|
-
case 8:
|
|
3855
|
-
_f = [{}];
|
|
3856
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3857
|
-
case 9:
|
|
3858
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3859
|
-
return [3, 15];
|
|
3860
|
-
case 10:
|
|
3861
|
-
_g = [{}];
|
|
3862
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3863
|
-
case 11:
|
|
3864
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3865
|
-
return [3, 15];
|
|
3866
|
-
case 12:
|
|
3867
|
-
_h = [{}];
|
|
3868
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3869
|
-
case 13:
|
|
3870
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3871
|
-
return [3, 15];
|
|
3234
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3235
|
+
case 3: throw _d.sent();
|
|
3236
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3237
|
+
case 5: throw _d.sent();
|
|
3238
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3239
|
+
case 7: throw _d.sent();
|
|
3240
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3241
|
+
case 9: throw _d.sent();
|
|
3242
|
+
case 10: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3243
|
+
case 11: throw _d.sent();
|
|
3244
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3245
|
+
case 13: throw _d.sent();
|
|
3872
3246
|
case 14:
|
|
3873
3247
|
parsedBody = parsedOutput.body;
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
response
|
|
3880
|
-
delete response.Message;
|
|
3881
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3248
|
+
response = new __BaseException({
|
|
3249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3250
|
+
$fault: "client",
|
|
3251
|
+
$metadata: deserializeMetadata(output),
|
|
3252
|
+
});
|
|
3253
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3882
3254
|
}
|
|
3883
3255
|
});
|
|
3884
3256
|
}); };
|
|
3885
3257
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3886
|
-
var contents, data;
|
|
3258
|
+
var contents, data, exception;
|
|
3887
3259
|
return __generator(this, function (_a) {
|
|
3888
|
-
contents = {
|
|
3889
|
-
name: "AccessDeniedException",
|
|
3890
|
-
$fault: "client",
|
|
3891
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3892
|
-
code: undefined,
|
|
3893
|
-
message: undefined,
|
|
3894
|
-
};
|
|
3260
|
+
contents = {};
|
|
3895
3261
|
data = parsedOutput.body;
|
|
3896
3262
|
if (data.code !== undefined && data.code !== null) {
|
|
3897
3263
|
contents.code = __expectString(data.code);
|
|
@@ -3899,21 +3265,14 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3899
3265
|
if (data.message !== undefined && data.message !== null) {
|
|
3900
3266
|
contents.message = __expectString(data.message);
|
|
3901
3267
|
}
|
|
3902
|
-
|
|
3268
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3269
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3903
3270
|
});
|
|
3904
3271
|
}); };
|
|
3905
3272
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3906
|
-
var contents, data;
|
|
3273
|
+
var contents, data, exception;
|
|
3907
3274
|
return __generator(this, function (_a) {
|
|
3908
|
-
contents = {
|
|
3909
|
-
name: "ConflictException",
|
|
3910
|
-
$fault: "client",
|
|
3911
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3912
|
-
code: undefined,
|
|
3913
|
-
message: undefined,
|
|
3914
|
-
resourceId: undefined,
|
|
3915
|
-
resourceType: undefined,
|
|
3916
|
-
};
|
|
3275
|
+
contents = {};
|
|
3917
3276
|
data = parsedOutput.body;
|
|
3918
3277
|
if (data.code !== undefined && data.code !== null) {
|
|
3919
3278
|
contents.code = __expectString(data.code);
|
|
@@ -3927,19 +3286,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3927
3286
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3928
3287
|
contents.resourceType = __expectString(data.resourceType);
|
|
3929
3288
|
}
|
|
3930
|
-
|
|
3289
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3290
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3931
3291
|
});
|
|
3932
3292
|
}); };
|
|
3933
3293
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3934
|
-
var contents, data;
|
|
3294
|
+
var contents, data, exception;
|
|
3935
3295
|
return __generator(this, function (_a) {
|
|
3936
|
-
contents = {
|
|
3937
|
-
name: "InternalServerException",
|
|
3938
|
-
$fault: "server",
|
|
3939
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3940
|
-
message: undefined,
|
|
3941
|
-
retryAfterSeconds: undefined,
|
|
3942
|
-
};
|
|
3296
|
+
contents = {};
|
|
3943
3297
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3944
3298
|
contents.retryAfterSeconds = __strictParseLong(parsedOutput.headers["retry-after"]);
|
|
3945
3299
|
}
|
|
@@ -3947,21 +3301,14 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3947
3301
|
if (data.message !== undefined && data.message !== null) {
|
|
3948
3302
|
contents.message = __expectString(data.message);
|
|
3949
3303
|
}
|
|
3950
|
-
|
|
3304
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3305
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3951
3306
|
});
|
|
3952
3307
|
}); };
|
|
3953
3308
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3954
|
-
var contents, data;
|
|
3309
|
+
var contents, data, exception;
|
|
3955
3310
|
return __generator(this, function (_a) {
|
|
3956
|
-
contents = {
|
|
3957
|
-
name: "ResourceNotFoundException",
|
|
3958
|
-
$fault: "client",
|
|
3959
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3960
|
-
code: undefined,
|
|
3961
|
-
message: undefined,
|
|
3962
|
-
resourceId: undefined,
|
|
3963
|
-
resourceType: undefined,
|
|
3964
|
-
};
|
|
3311
|
+
contents = {};
|
|
3965
3312
|
data = parsedOutput.body;
|
|
3966
3313
|
if (data.code !== undefined && data.code !== null) {
|
|
3967
3314
|
contents.code = __expectString(data.code);
|
|
@@ -3975,23 +3322,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3975
3322
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3976
3323
|
contents.resourceType = __expectString(data.resourceType);
|
|
3977
3324
|
}
|
|
3978
|
-
|
|
3325
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3326
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3979
3327
|
});
|
|
3980
3328
|
}); };
|
|
3981
3329
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3982
|
-
var contents, data;
|
|
3330
|
+
var contents, data, exception;
|
|
3983
3331
|
return __generator(this, function (_a) {
|
|
3984
|
-
contents = {
|
|
3985
|
-
name: "ServiceQuotaExceededException",
|
|
3986
|
-
$fault: "client",
|
|
3987
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3988
|
-
code: undefined,
|
|
3989
|
-
message: undefined,
|
|
3990
|
-
quotaCode: undefined,
|
|
3991
|
-
resourceId: undefined,
|
|
3992
|
-
resourceType: undefined,
|
|
3993
|
-
serviceCode: undefined,
|
|
3994
|
-
};
|
|
3332
|
+
contents = {};
|
|
3995
3333
|
data = parsedOutput.body;
|
|
3996
3334
|
if (data.code !== undefined && data.code !== null) {
|
|
3997
3335
|
contents.code = __expectString(data.code);
|
|
@@ -4011,21 +3349,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4011
3349
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
4012
3350
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
4013
3351
|
}
|
|
4014
|
-
|
|
3352
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3353
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4015
3354
|
});
|
|
4016
3355
|
}); };
|
|
4017
3356
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4018
|
-
var contents, data;
|
|
3357
|
+
var contents, data, exception;
|
|
4019
3358
|
return __generator(this, function (_a) {
|
|
4020
|
-
contents = {
|
|
4021
|
-
name: "ThrottlingException",
|
|
4022
|
-
$fault: "client",
|
|
4023
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4024
|
-
message: undefined,
|
|
4025
|
-
quotaCode: undefined,
|
|
4026
|
-
retryAfterSeconds: undefined,
|
|
4027
|
-
serviceCode: undefined,
|
|
4028
|
-
};
|
|
3359
|
+
contents = {};
|
|
4029
3360
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4030
3361
|
contents.retryAfterSeconds = parsedOutput.headers["retry-after"];
|
|
4031
3362
|
}
|
|
@@ -4039,19 +3370,14 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
4039
3370
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
4040
3371
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
4041
3372
|
}
|
|
4042
|
-
|
|
3373
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3374
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4043
3375
|
});
|
|
4044
3376
|
}); };
|
|
4045
3377
|
var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4046
|
-
var contents, data;
|
|
3378
|
+
var contents, data, exception;
|
|
4047
3379
|
return __generator(this, function (_a) {
|
|
4048
|
-
contents = {
|
|
4049
|
-
name: "UninitializedAccountException",
|
|
4050
|
-
$fault: "client",
|
|
4051
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4052
|
-
code: undefined,
|
|
4053
|
-
message: undefined,
|
|
4054
|
-
};
|
|
3380
|
+
contents = {};
|
|
4055
3381
|
data = parsedOutput.body;
|
|
4056
3382
|
if (data.code !== undefined && data.code !== null) {
|
|
4057
3383
|
contents.code = __expectString(data.code);
|
|
@@ -4059,21 +3385,14 @@ var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (pa
|
|
|
4059
3385
|
if (data.message !== undefined && data.message !== null) {
|
|
4060
3386
|
contents.message = __expectString(data.message);
|
|
4061
3387
|
}
|
|
4062
|
-
|
|
3388
|
+
exception = new UninitializedAccountException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3389
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4063
3390
|
});
|
|
4064
3391
|
}); };
|
|
4065
3392
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4066
|
-
var contents, data;
|
|
3393
|
+
var contents, data, exception;
|
|
4067
3394
|
return __generator(this, function (_a) {
|
|
4068
|
-
contents = {
|
|
4069
|
-
name: "ValidationException",
|
|
4070
|
-
$fault: "client",
|
|
4071
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4072
|
-
code: undefined,
|
|
4073
|
-
fieldList: undefined,
|
|
4074
|
-
message: undefined,
|
|
4075
|
-
reason: undefined,
|
|
4076
|
-
};
|
|
3395
|
+
contents = {};
|
|
4077
3396
|
data = parsedOutput.body;
|
|
4078
3397
|
if (data.code !== undefined && data.code !== null) {
|
|
4079
3398
|
contents.code = __expectString(data.code);
|
|
@@ -4087,7 +3406,8 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
4087
3406
|
if (data.reason !== undefined && data.reason !== null) {
|
|
4088
3407
|
contents.reason = __expectString(data.reason);
|
|
4089
3408
|
}
|
|
4090
|
-
|
|
3409
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3410
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4091
3411
|
});
|
|
4092
3412
|
}); };
|
|
4093
3413
|
var serializeAws_restJson1DescribeJobsRequestFilters = function (input, context) {
|
|
@@ -4257,7 +3577,7 @@ var deserializeAws_restJson1CPU = function (output, context) {
|
|
|
4257
3577
|
};
|
|
4258
3578
|
};
|
|
4259
3579
|
var deserializeAws_restJson1Cpus = function (output, context) {
|
|
4260
|
-
|
|
3580
|
+
var retVal = (output || [])
|
|
4261
3581
|
.filter(function (e) { return e != null; })
|
|
4262
3582
|
.map(function (entry) {
|
|
4263
3583
|
if (entry === null) {
|
|
@@ -4265,6 +3585,7 @@ var deserializeAws_restJson1Cpus = function (output, context) {
|
|
|
4265
3585
|
}
|
|
4266
3586
|
return deserializeAws_restJson1CPU(entry, context);
|
|
4267
3587
|
});
|
|
3588
|
+
return retVal;
|
|
4268
3589
|
};
|
|
4269
3590
|
var deserializeAws_restJson1DataReplicationError = function (output, context) {
|
|
4270
3591
|
return {
|
|
@@ -4298,7 +3619,7 @@ var deserializeAws_restJson1DataReplicationInfoReplicatedDisk = function (output
|
|
|
4298
3619
|
};
|
|
4299
3620
|
};
|
|
4300
3621
|
var deserializeAws_restJson1DataReplicationInfoReplicatedDisks = function (output, context) {
|
|
4301
|
-
|
|
3622
|
+
var retVal = (output || [])
|
|
4302
3623
|
.filter(function (e) { return e != null; })
|
|
4303
3624
|
.map(function (entry) {
|
|
4304
3625
|
if (entry === null) {
|
|
@@ -4306,6 +3627,7 @@ var deserializeAws_restJson1DataReplicationInfoReplicatedDisks = function (outpu
|
|
|
4306
3627
|
}
|
|
4307
3628
|
return deserializeAws_restJson1DataReplicationInfoReplicatedDisk(entry, context);
|
|
4308
3629
|
});
|
|
3630
|
+
return retVal;
|
|
4309
3631
|
};
|
|
4310
3632
|
var deserializeAws_restJson1DataReplicationInitiation = function (output, context) {
|
|
4311
3633
|
return {
|
|
@@ -4323,7 +3645,7 @@ var deserializeAws_restJson1DataReplicationInitiationStep = function (output, co
|
|
|
4323
3645
|
};
|
|
4324
3646
|
};
|
|
4325
3647
|
var deserializeAws_restJson1DataReplicationInitiationSteps = function (output, context) {
|
|
4326
|
-
|
|
3648
|
+
var retVal = (output || [])
|
|
4327
3649
|
.filter(function (e) { return e != null; })
|
|
4328
3650
|
.map(function (entry) {
|
|
4329
3651
|
if (entry === null) {
|
|
@@ -4331,9 +3653,10 @@ var deserializeAws_restJson1DataReplicationInitiationSteps = function (output, c
|
|
|
4331
3653
|
}
|
|
4332
3654
|
return deserializeAws_restJson1DataReplicationInitiationStep(entry, context);
|
|
4333
3655
|
});
|
|
3656
|
+
return retVal;
|
|
4334
3657
|
};
|
|
4335
3658
|
var deserializeAws_restJson1DescribeRecoveryInstancesItems = function (output, context) {
|
|
4336
|
-
|
|
3659
|
+
var retVal = (output || [])
|
|
4337
3660
|
.filter(function (e) { return e != null; })
|
|
4338
3661
|
.map(function (entry) {
|
|
4339
3662
|
if (entry === null) {
|
|
@@ -4341,6 +3664,7 @@ var deserializeAws_restJson1DescribeRecoveryInstancesItems = function (output, c
|
|
|
4341
3664
|
}
|
|
4342
3665
|
return deserializeAws_restJson1RecoveryInstance(entry, context);
|
|
4343
3666
|
});
|
|
3667
|
+
return retVal;
|
|
4344
3668
|
};
|
|
4345
3669
|
var deserializeAws_restJson1Disk = function (output, context) {
|
|
4346
3670
|
return {
|
|
@@ -4349,7 +3673,7 @@ var deserializeAws_restJson1Disk = function (output, context) {
|
|
|
4349
3673
|
};
|
|
4350
3674
|
};
|
|
4351
3675
|
var deserializeAws_restJson1Disks = function (output, context) {
|
|
4352
|
-
|
|
3676
|
+
var retVal = (output || [])
|
|
4353
3677
|
.filter(function (e) { return e != null; })
|
|
4354
3678
|
.map(function (entry) {
|
|
4355
3679
|
if (entry === null) {
|
|
@@ -4357,9 +3681,10 @@ var deserializeAws_restJson1Disks = function (output, context) {
|
|
|
4357
3681
|
}
|
|
4358
3682
|
return deserializeAws_restJson1Disk(entry, context);
|
|
4359
3683
|
});
|
|
3684
|
+
return retVal;
|
|
4360
3685
|
};
|
|
4361
3686
|
var deserializeAws_restJson1EbsSnapshotsList = function (output, context) {
|
|
4362
|
-
|
|
3687
|
+
var retVal = (output || [])
|
|
4363
3688
|
.filter(function (e) { return e != null; })
|
|
4364
3689
|
.map(function (entry) {
|
|
4365
3690
|
if (entry === null) {
|
|
@@ -4367,6 +3692,7 @@ var deserializeAws_restJson1EbsSnapshotsList = function (output, context) {
|
|
|
4367
3692
|
}
|
|
4368
3693
|
return __expectString(entry);
|
|
4369
3694
|
});
|
|
3695
|
+
return retVal;
|
|
4370
3696
|
};
|
|
4371
3697
|
var deserializeAws_restJson1IdentificationHints = function (output, context) {
|
|
4372
3698
|
return {
|
|
@@ -4377,7 +3703,7 @@ var deserializeAws_restJson1IdentificationHints = function (output, context) {
|
|
|
4377
3703
|
};
|
|
4378
3704
|
};
|
|
4379
3705
|
var deserializeAws_restJson1IPsList = function (output, context) {
|
|
4380
|
-
|
|
3706
|
+
var retVal = (output || [])
|
|
4381
3707
|
.filter(function (e) { return e != null; })
|
|
4382
3708
|
.map(function (entry) {
|
|
4383
3709
|
if (entry === null) {
|
|
@@ -4385,6 +3711,7 @@ var deserializeAws_restJson1IPsList = function (output, context) {
|
|
|
4385
3711
|
}
|
|
4386
3712
|
return __expectString(entry);
|
|
4387
3713
|
});
|
|
3714
|
+
return retVal;
|
|
4388
3715
|
};
|
|
4389
3716
|
var deserializeAws_restJson1Job = function (output, context) {
|
|
4390
3717
|
return {
|
|
@@ -4421,7 +3748,7 @@ var deserializeAws_restJson1JobLogEventData = function (output, context) {
|
|
|
4421
3748
|
};
|
|
4422
3749
|
};
|
|
4423
3750
|
var deserializeAws_restJson1JobLogs = function (output, context) {
|
|
4424
|
-
|
|
3751
|
+
var retVal = (output || [])
|
|
4425
3752
|
.filter(function (e) { return e != null; })
|
|
4426
3753
|
.map(function (entry) {
|
|
4427
3754
|
if (entry === null) {
|
|
@@ -4429,9 +3756,10 @@ var deserializeAws_restJson1JobLogs = function (output, context) {
|
|
|
4429
3756
|
}
|
|
4430
3757
|
return deserializeAws_restJson1JobLog(entry, context);
|
|
4431
3758
|
});
|
|
3759
|
+
return retVal;
|
|
4432
3760
|
};
|
|
4433
3761
|
var deserializeAws_restJson1JobsList = function (output, context) {
|
|
4434
|
-
|
|
3762
|
+
var retVal = (output || [])
|
|
4435
3763
|
.filter(function (e) { return e != null; })
|
|
4436
3764
|
.map(function (entry) {
|
|
4437
3765
|
if (entry === null) {
|
|
@@ -4439,6 +3767,7 @@ var deserializeAws_restJson1JobsList = function (output, context) {
|
|
|
4439
3767
|
}
|
|
4440
3768
|
return deserializeAws_restJson1Job(entry, context);
|
|
4441
3769
|
});
|
|
3770
|
+
return retVal;
|
|
4442
3771
|
};
|
|
4443
3772
|
var deserializeAws_restJson1Licensing = function (output, context) {
|
|
4444
3773
|
return {
|
|
@@ -4480,7 +3809,7 @@ var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
|
4480
3809
|
};
|
|
4481
3810
|
};
|
|
4482
3811
|
var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
4483
|
-
|
|
3812
|
+
var retVal = (output || [])
|
|
4484
3813
|
.filter(function (e) { return e != null; })
|
|
4485
3814
|
.map(function (entry) {
|
|
4486
3815
|
if (entry === null) {
|
|
@@ -4488,6 +3817,7 @@ var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
|
4488
3817
|
}
|
|
4489
3818
|
return deserializeAws_restJson1NetworkInterface(entry, context);
|
|
4490
3819
|
});
|
|
3820
|
+
return retVal;
|
|
4491
3821
|
};
|
|
4492
3822
|
var deserializeAws_restJson1OS = function (output, context) {
|
|
4493
3823
|
return {
|
|
@@ -4502,7 +3832,7 @@ var deserializeAws_restJson1ParticipatingServer = function (output, context) {
|
|
|
4502
3832
|
};
|
|
4503
3833
|
};
|
|
4504
3834
|
var deserializeAws_restJson1ParticipatingServers = function (output, context) {
|
|
4505
|
-
|
|
3835
|
+
var retVal = (output || [])
|
|
4506
3836
|
.filter(function (e) { return e != null; })
|
|
4507
3837
|
.map(function (entry) {
|
|
4508
3838
|
if (entry === null) {
|
|
@@ -4510,9 +3840,10 @@ var deserializeAws_restJson1ParticipatingServers = function (output, context) {
|
|
|
4510
3840
|
}
|
|
4511
3841
|
return deserializeAws_restJson1ParticipatingServer(entry, context);
|
|
4512
3842
|
});
|
|
3843
|
+
return retVal;
|
|
4513
3844
|
};
|
|
4514
3845
|
var deserializeAws_restJson1PITPolicy = function (output, context) {
|
|
4515
|
-
|
|
3846
|
+
var retVal = (output || [])
|
|
4516
3847
|
.filter(function (e) { return e != null; })
|
|
4517
3848
|
.map(function (entry) {
|
|
4518
3849
|
if (entry === null) {
|
|
@@ -4520,6 +3851,7 @@ var deserializeAws_restJson1PITPolicy = function (output, context) {
|
|
|
4520
3851
|
}
|
|
4521
3852
|
return deserializeAws_restJson1PITPolicyRule(entry, context);
|
|
4522
3853
|
});
|
|
3854
|
+
return retVal;
|
|
4523
3855
|
};
|
|
4524
3856
|
var deserializeAws_restJson1PITPolicyRule = function (output, context) {
|
|
4525
3857
|
return {
|
|
@@ -4586,7 +3918,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk =
|
|
|
4586
3918
|
};
|
|
4587
3919
|
};
|
|
4588
3920
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks = function (output, context) {
|
|
4589
|
-
|
|
3921
|
+
var retVal = (output || [])
|
|
4590
3922
|
.filter(function (e) { return e != null; })
|
|
4591
3923
|
.map(function (entry) {
|
|
4592
3924
|
if (entry === null) {
|
|
@@ -4594,6 +3926,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks =
|
|
|
4594
3926
|
}
|
|
4595
3927
|
return deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk(entry, context);
|
|
4596
3928
|
});
|
|
3929
|
+
return retVal;
|
|
4597
3930
|
};
|
|
4598
3931
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = function (output, context) {
|
|
4599
3932
|
return {
|
|
@@ -4610,7 +3943,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep = func
|
|
|
4610
3943
|
};
|
|
4611
3944
|
};
|
|
4612
3945
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = function (output, context) {
|
|
4613
|
-
|
|
3946
|
+
var retVal = (output || [])
|
|
4614
3947
|
.filter(function (e) { return e != null; })
|
|
4615
3948
|
.map(function (entry) {
|
|
4616
3949
|
if (entry === null) {
|
|
@@ -4618,6 +3951,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = fun
|
|
|
4618
3951
|
}
|
|
4619
3952
|
return deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep(entry, context);
|
|
4620
3953
|
});
|
|
3954
|
+
return retVal;
|
|
4621
3955
|
};
|
|
4622
3956
|
var deserializeAws_restJson1RecoveryInstanceDisk = function (output, context) {
|
|
4623
3957
|
return {
|
|
@@ -4627,7 +3961,7 @@ var deserializeAws_restJson1RecoveryInstanceDisk = function (output, context) {
|
|
|
4627
3961
|
};
|
|
4628
3962
|
};
|
|
4629
3963
|
var deserializeAws_restJson1RecoveryInstanceDisks = function (output, context) {
|
|
4630
|
-
|
|
3964
|
+
var retVal = (output || [])
|
|
4631
3965
|
.filter(function (e) { return e != null; })
|
|
4632
3966
|
.map(function (entry) {
|
|
4633
3967
|
if (entry === null) {
|
|
@@ -4635,6 +3969,7 @@ var deserializeAws_restJson1RecoveryInstanceDisks = function (output, context) {
|
|
|
4635
3969
|
}
|
|
4636
3970
|
return deserializeAws_restJson1RecoveryInstanceDisk(entry, context);
|
|
4637
3971
|
});
|
|
3972
|
+
return retVal;
|
|
4638
3973
|
};
|
|
4639
3974
|
var deserializeAws_restJson1RecoveryInstanceFailback = function (output, context) {
|
|
4640
3975
|
return {
|
|
@@ -4680,7 +4015,7 @@ var deserializeAws_restJson1RecoverySnapshot = function (output, context) {
|
|
|
4680
4015
|
};
|
|
4681
4016
|
};
|
|
4682
4017
|
var deserializeAws_restJson1RecoverySnapshotsList = function (output, context) {
|
|
4683
|
-
|
|
4018
|
+
var retVal = (output || [])
|
|
4684
4019
|
.filter(function (e) { return e != null; })
|
|
4685
4020
|
.map(function (entry) {
|
|
4686
4021
|
if (entry === null) {
|
|
@@ -4688,6 +4023,7 @@ var deserializeAws_restJson1RecoverySnapshotsList = function (output, context) {
|
|
|
4688
4023
|
}
|
|
4689
4024
|
return deserializeAws_restJson1RecoverySnapshot(entry, context);
|
|
4690
4025
|
});
|
|
4026
|
+
return retVal;
|
|
4691
4027
|
};
|
|
4692
4028
|
var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (output, context) {
|
|
4693
4029
|
return {
|
|
@@ -4699,7 +4035,7 @@ var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (o
|
|
|
4699
4035
|
};
|
|
4700
4036
|
};
|
|
4701
4037
|
var deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (output, context) {
|
|
4702
|
-
|
|
4038
|
+
var retVal = (output || [])
|
|
4703
4039
|
.filter(function (e) { return e != null; })
|
|
4704
4040
|
.map(function (entry) {
|
|
4705
4041
|
if (entry === null) {
|
|
@@ -4707,6 +4043,7 @@ var deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (
|
|
|
4707
4043
|
}
|
|
4708
4044
|
return deserializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context);
|
|
4709
4045
|
});
|
|
4046
|
+
return retVal;
|
|
4710
4047
|
};
|
|
4711
4048
|
var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output, context) {
|
|
4712
4049
|
return {
|
|
@@ -4737,7 +4074,7 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
|
|
|
4737
4074
|
};
|
|
4738
4075
|
};
|
|
4739
4076
|
var deserializeAws_restJson1ReplicationConfigurationTemplates = function (output, context) {
|
|
4740
|
-
|
|
4077
|
+
var retVal = (output || [])
|
|
4741
4078
|
.filter(function (e) { return e != null; })
|
|
4742
4079
|
.map(function (entry) {
|
|
4743
4080
|
if (entry === null) {
|
|
@@ -4745,9 +4082,10 @@ var deserializeAws_restJson1ReplicationConfigurationTemplates = function (output
|
|
|
4745
4082
|
}
|
|
4746
4083
|
return deserializeAws_restJson1ReplicationConfigurationTemplate(entry, context);
|
|
4747
4084
|
});
|
|
4085
|
+
return retVal;
|
|
4748
4086
|
};
|
|
4749
4087
|
var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (output, context) {
|
|
4750
|
-
|
|
4088
|
+
var retVal = (output || [])
|
|
4751
4089
|
.filter(function (e) { return e != null; })
|
|
4752
4090
|
.map(function (entry) {
|
|
4753
4091
|
if (entry === null) {
|
|
@@ -4755,6 +4093,7 @@ var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (outp
|
|
|
4755
4093
|
}
|
|
4756
4094
|
return __expectString(entry);
|
|
4757
4095
|
});
|
|
4096
|
+
return retVal;
|
|
4758
4097
|
};
|
|
4759
4098
|
var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
4760
4099
|
return {
|
|
@@ -4797,7 +4136,7 @@ var deserializeAws_restJson1SourceServer = function (output, context) {
|
|
|
4797
4136
|
};
|
|
4798
4137
|
};
|
|
4799
4138
|
var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
4800
|
-
|
|
4139
|
+
var retVal = (output || [])
|
|
4801
4140
|
.filter(function (e) { return e != null; })
|
|
4802
4141
|
.map(function (entry) {
|
|
4803
4142
|
if (entry === null) {
|
|
@@ -4805,6 +4144,7 @@ var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
|
4805
4144
|
}
|
|
4806
4145
|
return deserializeAws_restJson1SourceServer(entry, context);
|
|
4807
4146
|
});
|
|
4147
|
+
return retVal;
|
|
4808
4148
|
};
|
|
4809
4149
|
var deserializeAws_restJson1TagsMap = function (output, context) {
|
|
4810
4150
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -4823,7 +4163,7 @@ var deserializeAws_restJson1ValidationExceptionField = function (output, context
|
|
|
4823
4163
|
};
|
|
4824
4164
|
};
|
|
4825
4165
|
var deserializeAws_restJson1ValidationExceptionFieldList = function (output, context) {
|
|
4826
|
-
|
|
4166
|
+
var retVal = (output || [])
|
|
4827
4167
|
.filter(function (e) { return e != null; })
|
|
4828
4168
|
.map(function (entry) {
|
|
4829
4169
|
if (entry === null) {
|
|
@@ -4831,6 +4171,7 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
|
|
|
4831
4171
|
}
|
|
4832
4172
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
4833
4173
|
});
|
|
4174
|
+
return retVal;
|
|
4834
4175
|
};
|
|
4835
4176
|
var deserializeMetadata = function (output) {
|
|
4836
4177
|
var _a;
|