@aws-sdk/client-migration-hub-refactor-spaces 3.52.0 → 3.54.1
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 +30 -0
- package/README.md +3 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MigrationHubRefactorSpacesServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +126 -2
- package/dist-cjs/protocols/Aws_restJson1.js +284 -1072
- package/dist-es/index.js +1 -0
- package/dist-es/models/MigrationHubRefactorSpacesServiceException.js +12 -0
- package/dist-es/models/models_0.js +117 -1
- package/dist-es/protocols/Aws_restJson1.js +581 -1173
- package/dist-types/MigrationHubRefactorSpaces.d.ts +29 -19
- package/dist-types/MigrationHubRefactorSpacesClient.d.ts +5 -2
- package/dist-types/commands/CreateApplicationCommand.d.ts +2 -2
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +5 -4
- package/dist-types/commands/CreateRouteCommand.d.ts +14 -10
- package/dist-types/commands/CreateServiceCommand.d.ts +1 -1
- package/dist-types/commands/ListEnvironmentVpcsCommand.d.ts +2 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MigrationHubRefactorSpacesServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +78 -37
- 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/MigrationHubRefactorSpacesClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MigrationHubRefactorSpacesServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -25
- 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 +27 -27
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { MigrationHubRefactorSpacesServiceException as __BaseException } from "../models/MigrationHubRefactorSpacesServiceException";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalServerException, InvalidResourcePolicyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
7
|
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
9
|
var _c;
|
|
@@ -959,16 +961,16 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
959
961
|
});
|
|
960
962
|
}); };
|
|
961
963
|
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
962
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
963
|
-
var
|
|
964
|
-
return __generator(this, function (
|
|
965
|
-
switch (
|
|
964
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
965
|
+
var _c;
|
|
966
|
+
return __generator(this, function (_d) {
|
|
967
|
+
switch (_d.label) {
|
|
966
968
|
case 0:
|
|
967
969
|
_a = [__assign({}, output)];
|
|
968
|
-
|
|
970
|
+
_c = {};
|
|
969
971
|
return [4, parseBody(output.body, context)];
|
|
970
972
|
case 1:
|
|
971
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
973
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
972
974
|
errorCode = "UnknownError";
|
|
973
975
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
976
|
_b = errorCode;
|
|
@@ -989,58 +991,28 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
989
991
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
990
992
|
}
|
|
991
993
|
return [3, 16];
|
|
992
|
-
case 2:
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
case
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
case 4
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
case
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
case
|
|
1005
|
-
|
|
1006
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1007
|
-
case 7:
|
|
1008
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1009
|
-
return [3, 17];
|
|
1010
|
-
case 8:
|
|
1011
|
-
_f = [{}];
|
|
1012
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1013
|
-
case 9:
|
|
1014
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1015
|
-
return [3, 17];
|
|
1016
|
-
case 10:
|
|
1017
|
-
_g = [{}];
|
|
1018
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1019
|
-
case 11:
|
|
1020
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1021
|
-
return [3, 17];
|
|
1022
|
-
case 12:
|
|
1023
|
-
_h = [{}];
|
|
1024
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1025
|
-
case 13:
|
|
1026
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1027
|
-
return [3, 17];
|
|
1028
|
-
case 14:
|
|
1029
|
-
_j = [{}];
|
|
1030
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1031
|
-
case 15:
|
|
1032
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1033
|
-
return [3, 17];
|
|
994
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
995
|
+
case 3: throw _d.sent();
|
|
996
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
997
|
+
case 5: throw _d.sent();
|
|
998
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
999
|
+
case 7: throw _d.sent();
|
|
1000
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1001
|
+
case 9: throw _d.sent();
|
|
1002
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1003
|
+
case 11: throw _d.sent();
|
|
1004
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1005
|
+
case 13: throw _d.sent();
|
|
1006
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1007
|
+
case 15: throw _d.sent();
|
|
1034
1008
|
case 16:
|
|
1035
1009
|
parsedBody = parsedOutput.body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
response
|
|
1042
|
-
delete response.Message;
|
|
1043
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1010
|
+
response = new __BaseException({
|
|
1011
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
$fault: "client",
|
|
1013
|
+
$metadata: deserializeMetadata(output),
|
|
1014
|
+
});
|
|
1015
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1044
1016
|
}
|
|
1045
1017
|
});
|
|
1046
1018
|
}); };
|
|
@@ -1105,16 +1077,16 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
1105
1077
|
});
|
|
1106
1078
|
}); };
|
|
1107
1079
|
var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1108
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1109
|
-
var
|
|
1110
|
-
return __generator(this, function (
|
|
1111
|
-
switch (
|
|
1080
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1081
|
+
var _c;
|
|
1082
|
+
return __generator(this, function (_d) {
|
|
1083
|
+
switch (_d.label) {
|
|
1112
1084
|
case 0:
|
|
1113
1085
|
_a = [__assign({}, output)];
|
|
1114
|
-
|
|
1086
|
+
_c = {};
|
|
1115
1087
|
return [4, parseBody(output.body, context)];
|
|
1116
1088
|
case 1:
|
|
1117
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1089
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1118
1090
|
errorCode = "UnknownError";
|
|
1119
1091
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1092
|
_b = errorCode;
|
|
@@ -1135,58 +1107,28 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1135
1107
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
1136
1108
|
}
|
|
1137
1109
|
return [3, 16];
|
|
1138
|
-
case 2:
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
case
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
case 4
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
case
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
case
|
|
1151
|
-
|
|
1152
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1153
|
-
case 7:
|
|
1154
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3, 17];
|
|
1156
|
-
case 8:
|
|
1157
|
-
_f = [{}];
|
|
1158
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1159
|
-
case 9:
|
|
1160
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1161
|
-
return [3, 17];
|
|
1162
|
-
case 10:
|
|
1163
|
-
_g = [{}];
|
|
1164
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1165
|
-
case 11:
|
|
1166
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1167
|
-
return [3, 17];
|
|
1168
|
-
case 12:
|
|
1169
|
-
_h = [{}];
|
|
1170
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1171
|
-
case 13:
|
|
1172
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1173
|
-
return [3, 17];
|
|
1174
|
-
case 14:
|
|
1175
|
-
_j = [{}];
|
|
1176
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1177
|
-
case 15:
|
|
1178
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1179
|
-
return [3, 17];
|
|
1110
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1111
|
+
case 3: throw _d.sent();
|
|
1112
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1113
|
+
case 5: throw _d.sent();
|
|
1114
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1115
|
+
case 7: throw _d.sent();
|
|
1116
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1117
|
+
case 9: throw _d.sent();
|
|
1118
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1119
|
+
case 11: throw _d.sent();
|
|
1120
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1121
|
+
case 13: throw _d.sent();
|
|
1122
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1123
|
+
case 15: throw _d.sent();
|
|
1180
1124
|
case 16:
|
|
1181
1125
|
parsedBody = parsedOutput.body;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
response
|
|
1188
|
-
delete response.Message;
|
|
1189
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1126
|
+
response = new __BaseException({
|
|
1127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1128
|
+
$fault: "client",
|
|
1129
|
+
$metadata: deserializeMetadata(output),
|
|
1130
|
+
});
|
|
1131
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1190
1132
|
}
|
|
1191
1133
|
});
|
|
1192
1134
|
}); };
|
|
@@ -1259,16 +1201,16 @@ export var deserializeAws_restJson1CreateRouteCommand = function (output, contex
|
|
|
1259
1201
|
});
|
|
1260
1202
|
}); };
|
|
1261
1203
|
var deserializeAws_restJson1CreateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1262
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1263
|
-
var
|
|
1264
|
-
return __generator(this, function (
|
|
1265
|
-
switch (
|
|
1204
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1205
|
+
var _c;
|
|
1206
|
+
return __generator(this, function (_d) {
|
|
1207
|
+
switch (_d.label) {
|
|
1266
1208
|
case 0:
|
|
1267
1209
|
_a = [__assign({}, output)];
|
|
1268
|
-
|
|
1210
|
+
_c = {};
|
|
1269
1211
|
return [4, parseBody(output.body, context)];
|
|
1270
1212
|
case 1:
|
|
1271
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1213
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1272
1214
|
errorCode = "UnknownError";
|
|
1273
1215
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
1216
|
_b = errorCode;
|
|
@@ -1289,58 +1231,28 @@ var deserializeAws_restJson1CreateRouteCommandError = function (output, context)
|
|
|
1289
1231
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
1290
1232
|
}
|
|
1291
1233
|
return [3, 16];
|
|
1292
|
-
case 2:
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
case
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
case 4
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
case
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
case
|
|
1305
|
-
|
|
1306
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1307
|
-
case 7:
|
|
1308
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1309
|
-
return [3, 17];
|
|
1310
|
-
case 8:
|
|
1311
|
-
_f = [{}];
|
|
1312
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1313
|
-
case 9:
|
|
1314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1315
|
-
return [3, 17];
|
|
1316
|
-
case 10:
|
|
1317
|
-
_g = [{}];
|
|
1318
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1319
|
-
case 11:
|
|
1320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1321
|
-
return [3, 17];
|
|
1322
|
-
case 12:
|
|
1323
|
-
_h = [{}];
|
|
1324
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1325
|
-
case 13:
|
|
1326
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1327
|
-
return [3, 17];
|
|
1328
|
-
case 14:
|
|
1329
|
-
_j = [{}];
|
|
1330
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1331
|
-
case 15:
|
|
1332
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1333
|
-
return [3, 17];
|
|
1234
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1235
|
+
case 3: throw _d.sent();
|
|
1236
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1237
|
+
case 5: throw _d.sent();
|
|
1238
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1239
|
+
case 7: throw _d.sent();
|
|
1240
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1241
|
+
case 9: throw _d.sent();
|
|
1242
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1243
|
+
case 11: throw _d.sent();
|
|
1244
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1245
|
+
case 13: throw _d.sent();
|
|
1246
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1247
|
+
case 15: throw _d.sent();
|
|
1334
1248
|
case 16:
|
|
1335
1249
|
parsedBody = parsedOutput.body;
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
response
|
|
1342
|
-
delete response.Message;
|
|
1343
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1250
|
+
response = new __BaseException({
|
|
1251
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1252
|
+
$fault: "client",
|
|
1253
|
+
$metadata: deserializeMetadata(output),
|
|
1254
|
+
});
|
|
1255
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1344
1256
|
}
|
|
1345
1257
|
});
|
|
1346
1258
|
}); };
|
|
@@ -1429,16 +1341,16 @@ export var deserializeAws_restJson1CreateServiceCommand = function (output, cont
|
|
|
1429
1341
|
});
|
|
1430
1342
|
}); };
|
|
1431
1343
|
var deserializeAws_restJson1CreateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1433
|
-
var
|
|
1434
|
-
return __generator(this, function (
|
|
1435
|
-
switch (
|
|
1344
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1345
|
+
var _c;
|
|
1346
|
+
return __generator(this, function (_d) {
|
|
1347
|
+
switch (_d.label) {
|
|
1436
1348
|
case 0:
|
|
1437
1349
|
_a = [__assign({}, output)];
|
|
1438
|
-
|
|
1350
|
+
_c = {};
|
|
1439
1351
|
return [4, parseBody(output.body, context)];
|
|
1440
1352
|
case 1:
|
|
1441
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1353
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1442
1354
|
errorCode = "UnknownError";
|
|
1443
1355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
1356
|
_b = errorCode;
|
|
@@ -1459,58 +1371,28 @@ var deserializeAws_restJson1CreateServiceCommandError = function (output, contex
|
|
|
1459
1371
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
1460
1372
|
}
|
|
1461
1373
|
return [3, 16];
|
|
1462
|
-
case 2:
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
case
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
case 4
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
case
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
case
|
|
1475
|
-
|
|
1476
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1477
|
-
case 7:
|
|
1478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3, 17];
|
|
1480
|
-
case 8:
|
|
1481
|
-
_f = [{}];
|
|
1482
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1483
|
-
case 9:
|
|
1484
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1485
|
-
return [3, 17];
|
|
1486
|
-
case 10:
|
|
1487
|
-
_g = [{}];
|
|
1488
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1489
|
-
case 11:
|
|
1490
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
-
return [3, 17];
|
|
1492
|
-
case 12:
|
|
1493
|
-
_h = [{}];
|
|
1494
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1495
|
-
case 13:
|
|
1496
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3, 17];
|
|
1498
|
-
case 14:
|
|
1499
|
-
_j = [{}];
|
|
1500
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1501
|
-
case 15:
|
|
1502
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
-
return [3, 17];
|
|
1374
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 3: throw _d.sent();
|
|
1376
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1377
|
+
case 5: throw _d.sent();
|
|
1378
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1379
|
+
case 7: throw _d.sent();
|
|
1380
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1381
|
+
case 9: throw _d.sent();
|
|
1382
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1383
|
+
case 11: throw _d.sent();
|
|
1384
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1385
|
+
case 13: throw _d.sent();
|
|
1386
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1387
|
+
case 15: throw _d.sent();
|
|
1504
1388
|
case 16:
|
|
1505
1389
|
parsedBody = parsedOutput.body;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
response
|
|
1512
|
-
delete response.Message;
|
|
1513
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1390
|
+
response = new __BaseException({
|
|
1391
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1392
|
+
$fault: "client",
|
|
1393
|
+
$metadata: deserializeMetadata(output),
|
|
1394
|
+
});
|
|
1395
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1514
1396
|
}
|
|
1515
1397
|
});
|
|
1516
1398
|
}); };
|
|
@@ -1559,16 +1441,16 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
1559
1441
|
});
|
|
1560
1442
|
}); };
|
|
1561
1443
|
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1563
|
-
var
|
|
1564
|
-
return __generator(this, function (
|
|
1565
|
-
switch (
|
|
1444
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1445
|
+
var _c;
|
|
1446
|
+
return __generator(this, function (_d) {
|
|
1447
|
+
switch (_d.label) {
|
|
1566
1448
|
case 0:
|
|
1567
1449
|
_a = [__assign({}, output)];
|
|
1568
|
-
|
|
1450
|
+
_c = {};
|
|
1569
1451
|
return [4, parseBody(output.body, context)];
|
|
1570
1452
|
case 1:
|
|
1571
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1453
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1572
1454
|
errorCode = "UnknownError";
|
|
1573
1455
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1456
|
_b = errorCode;
|
|
@@ -1587,52 +1469,26 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
1587
1469
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 12];
|
|
1588
1470
|
}
|
|
1589
1471
|
return [3, 14];
|
|
1590
|
-
case 2:
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
case
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
case 4
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
case
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
case 6:
|
|
1603
|
-
_e = [{}];
|
|
1604
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1605
|
-
case 7:
|
|
1606
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1607
|
-
return [3, 15];
|
|
1608
|
-
case 8:
|
|
1609
|
-
_f = [{}];
|
|
1610
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1611
|
-
case 9:
|
|
1612
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1613
|
-
return [3, 15];
|
|
1614
|
-
case 10:
|
|
1615
|
-
_g = [{}];
|
|
1616
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1617
|
-
case 11:
|
|
1618
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1619
|
-
return [3, 15];
|
|
1620
|
-
case 12:
|
|
1621
|
-
_h = [{}];
|
|
1622
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1623
|
-
case 13:
|
|
1624
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1625
|
-
return [3, 15];
|
|
1472
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1473
|
+
case 3: throw _d.sent();
|
|
1474
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1475
|
+
case 5: throw _d.sent();
|
|
1476
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1477
|
+
case 7: throw _d.sent();
|
|
1478
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1479
|
+
case 9: throw _d.sent();
|
|
1480
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1481
|
+
case 11: throw _d.sent();
|
|
1482
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1483
|
+
case 13: throw _d.sent();
|
|
1626
1484
|
case 14:
|
|
1627
1485
|
parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
response
|
|
1634
|
-
delete response.Message;
|
|
1635
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1486
|
+
response = new __BaseException({
|
|
1487
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1488
|
+
$fault: "client",
|
|
1489
|
+
$metadata: deserializeMetadata(output),
|
|
1490
|
+
});
|
|
1491
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1636
1492
|
}
|
|
1637
1493
|
});
|
|
1638
1494
|
}); };
|
|
@@ -1677,16 +1533,16 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
|
|
|
1677
1533
|
});
|
|
1678
1534
|
}); };
|
|
1679
1535
|
var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1681
|
-
var
|
|
1682
|
-
return __generator(this, function (
|
|
1683
|
-
switch (
|
|
1536
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1537
|
+
var _c;
|
|
1538
|
+
return __generator(this, function (_d) {
|
|
1539
|
+
switch (_d.label) {
|
|
1684
1540
|
case 0:
|
|
1685
1541
|
_a = [__assign({}, output)];
|
|
1686
|
-
|
|
1542
|
+
_c = {};
|
|
1687
1543
|
return [4, parseBody(output.body, context)];
|
|
1688
1544
|
case 1:
|
|
1689
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1545
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1690
1546
|
errorCode = "UnknownError";
|
|
1691
1547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1548
|
_b = errorCode;
|
|
@@ -1705,52 +1561,26 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
1705
1561
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 12];
|
|
1706
1562
|
}
|
|
1707
1563
|
return [3, 14];
|
|
1708
|
-
case 2:
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
case
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
case 4
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
case
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
case 6:
|
|
1721
|
-
_e = [{}];
|
|
1722
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1723
|
-
case 7:
|
|
1724
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1725
|
-
return [3, 15];
|
|
1726
|
-
case 8:
|
|
1727
|
-
_f = [{}];
|
|
1728
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1729
|
-
case 9:
|
|
1730
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1731
|
-
return [3, 15];
|
|
1732
|
-
case 10:
|
|
1733
|
-
_g = [{}];
|
|
1734
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1735
|
-
case 11:
|
|
1736
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1737
|
-
return [3, 15];
|
|
1738
|
-
case 12:
|
|
1739
|
-
_h = [{}];
|
|
1740
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1741
|
-
case 13:
|
|
1742
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1743
|
-
return [3, 15];
|
|
1564
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1565
|
+
case 3: throw _d.sent();
|
|
1566
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1567
|
+
case 5: throw _d.sent();
|
|
1568
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1569
|
+
case 7: throw _d.sent();
|
|
1570
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1571
|
+
case 9: throw _d.sent();
|
|
1572
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1573
|
+
case 11: throw _d.sent();
|
|
1574
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1575
|
+
case 13: throw _d.sent();
|
|
1744
1576
|
case 14:
|
|
1745
1577
|
parsedBody = parsedOutput.body;
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
response
|
|
1752
|
-
delete response.Message;
|
|
1753
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1578
|
+
response = new __BaseException({
|
|
1579
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1580
|
+
$fault: "client",
|
|
1581
|
+
$metadata: deserializeMetadata(output),
|
|
1582
|
+
});
|
|
1583
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1754
1584
|
}
|
|
1755
1585
|
});
|
|
1756
1586
|
}); };
|
|
@@ -1773,16 +1603,16 @@ export var deserializeAws_restJson1DeleteResourcePolicyCommand = function (outpu
|
|
|
1773
1603
|
});
|
|
1774
1604
|
}); };
|
|
1775
1605
|
var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1776
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1777
|
-
var
|
|
1778
|
-
return __generator(this, function (
|
|
1779
|
-
switch (
|
|
1606
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1607
|
+
var _c;
|
|
1608
|
+
return __generator(this, function (_d) {
|
|
1609
|
+
switch (_d.label) {
|
|
1780
1610
|
case 0:
|
|
1781
1611
|
_a = [__assign({}, output)];
|
|
1782
|
-
|
|
1612
|
+
_c = {};
|
|
1783
1613
|
return [4, parseBody(output.body, context)];
|
|
1784
1614
|
case 1:
|
|
1785
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1615
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1786
1616
|
errorCode = "UnknownError";
|
|
1787
1617
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1618
|
_b = errorCode;
|
|
@@ -1799,46 +1629,24 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
1799
1629
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
1800
1630
|
}
|
|
1801
1631
|
return [3, 12];
|
|
1802
|
-
case 2:
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
case
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
case 4
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
case
|
|
1812
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1813
|
-
return [3, 13];
|
|
1814
|
-
case 6:
|
|
1815
|
-
_e = [{}];
|
|
1816
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1817
|
-
case 7:
|
|
1818
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1819
|
-
return [3, 13];
|
|
1820
|
-
case 8:
|
|
1821
|
-
_f = [{}];
|
|
1822
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1823
|
-
case 9:
|
|
1824
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1825
|
-
return [3, 13];
|
|
1826
|
-
case 10:
|
|
1827
|
-
_g = [{}];
|
|
1828
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1829
|
-
case 11:
|
|
1830
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1831
|
-
return [3, 13];
|
|
1632
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1633
|
+
case 3: throw _d.sent();
|
|
1634
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1635
|
+
case 5: throw _d.sent();
|
|
1636
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1637
|
+
case 7: throw _d.sent();
|
|
1638
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1639
|
+
case 9: throw _d.sent();
|
|
1640
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 11: throw _d.sent();
|
|
1832
1642
|
case 12:
|
|
1833
1643
|
parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
response
|
|
1840
|
-
delete response.Message;
|
|
1841
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1644
|
+
response = new __BaseException({
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1646
|
+
$fault: "client",
|
|
1647
|
+
$metadata: deserializeMetadata(output),
|
|
1648
|
+
});
|
|
1649
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1842
1650
|
}
|
|
1843
1651
|
});
|
|
1844
1652
|
}); };
|
|
@@ -1887,16 +1695,16 @@ export var deserializeAws_restJson1DeleteRouteCommand = function (output, contex
|
|
|
1887
1695
|
});
|
|
1888
1696
|
}); };
|
|
1889
1697
|
var deserializeAws_restJson1DeleteRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1890
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1891
|
-
var
|
|
1892
|
-
return __generator(this, function (
|
|
1893
|
-
switch (
|
|
1698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1699
|
+
var _c;
|
|
1700
|
+
return __generator(this, function (_d) {
|
|
1701
|
+
switch (_d.label) {
|
|
1894
1702
|
case 0:
|
|
1895
1703
|
_a = [__assign({}, output)];
|
|
1896
|
-
|
|
1704
|
+
_c = {};
|
|
1897
1705
|
return [4, parseBody(output.body, context)];
|
|
1898
1706
|
case 1:
|
|
1899
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1900
1708
|
errorCode = "UnknownError";
|
|
1901
1709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
1710
|
_b = errorCode;
|
|
@@ -1915,52 +1723,26 @@ var deserializeAws_restJson1DeleteRouteCommandError = function (output, context)
|
|
|
1915
1723
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 12];
|
|
1916
1724
|
}
|
|
1917
1725
|
return [3, 14];
|
|
1918
|
-
case 2:
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
case
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
case 4
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
case
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
case 6:
|
|
1931
|
-
_e = [{}];
|
|
1932
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1933
|
-
case 7:
|
|
1934
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1935
|
-
return [3, 15];
|
|
1936
|
-
case 8:
|
|
1937
|
-
_f = [{}];
|
|
1938
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1939
|
-
case 9:
|
|
1940
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1941
|
-
return [3, 15];
|
|
1942
|
-
case 10:
|
|
1943
|
-
_g = [{}];
|
|
1944
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1945
|
-
case 11:
|
|
1946
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1947
|
-
return [3, 15];
|
|
1948
|
-
case 12:
|
|
1949
|
-
_h = [{}];
|
|
1950
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1951
|
-
case 13:
|
|
1952
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1953
|
-
return [3, 15];
|
|
1726
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1727
|
+
case 3: throw _d.sent();
|
|
1728
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1729
|
+
case 5: throw _d.sent();
|
|
1730
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1731
|
+
case 7: throw _d.sent();
|
|
1732
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1733
|
+
case 9: throw _d.sent();
|
|
1734
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1735
|
+
case 11: throw _d.sent();
|
|
1736
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1737
|
+
case 13: throw _d.sent();
|
|
1954
1738
|
case 14:
|
|
1955
1739
|
parsedBody = parsedOutput.body;
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
response
|
|
1962
|
-
delete response.Message;
|
|
1963
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1740
|
+
response = new __BaseException({
|
|
1741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1742
|
+
$fault: "client",
|
|
1743
|
+
$metadata: deserializeMetadata(output),
|
|
1744
|
+
});
|
|
1745
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1964
1746
|
}
|
|
1965
1747
|
});
|
|
1966
1748
|
}); };
|
|
@@ -2013,16 +1795,16 @@ export var deserializeAws_restJson1DeleteServiceCommand = function (output, cont
|
|
|
2013
1795
|
});
|
|
2014
1796
|
}); };
|
|
2015
1797
|
var deserializeAws_restJson1DeleteServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2016
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2017
|
-
var
|
|
2018
|
-
return __generator(this, function (
|
|
2019
|
-
switch (
|
|
1798
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1799
|
+
var _c;
|
|
1800
|
+
return __generator(this, function (_d) {
|
|
1801
|
+
switch (_d.label) {
|
|
2020
1802
|
case 0:
|
|
2021
1803
|
_a = [__assign({}, output)];
|
|
2022
|
-
|
|
1804
|
+
_c = {};
|
|
2023
1805
|
return [4, parseBody(output.body, context)];
|
|
2024
1806
|
case 1:
|
|
2025
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1807
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2026
1808
|
errorCode = "UnknownError";
|
|
2027
1809
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2028
1810
|
_b = errorCode;
|
|
@@ -2041,52 +1823,26 @@ var deserializeAws_restJson1DeleteServiceCommandError = function (output, contex
|
|
|
2041
1823
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 12];
|
|
2042
1824
|
}
|
|
2043
1825
|
return [3, 14];
|
|
2044
|
-
case 2:
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
case
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
case 4
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
case
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
case 6:
|
|
2057
|
-
_e = [{}];
|
|
2058
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2059
|
-
case 7:
|
|
2060
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2061
|
-
return [3, 15];
|
|
2062
|
-
case 8:
|
|
2063
|
-
_f = [{}];
|
|
2064
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2065
|
-
case 9:
|
|
2066
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2067
|
-
return [3, 15];
|
|
2068
|
-
case 10:
|
|
2069
|
-
_g = [{}];
|
|
2070
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2071
|
-
case 11:
|
|
2072
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2073
|
-
return [3, 15];
|
|
2074
|
-
case 12:
|
|
2075
|
-
_h = [{}];
|
|
2076
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2077
|
-
case 13:
|
|
2078
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2079
|
-
return [3, 15];
|
|
1826
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1827
|
+
case 3: throw _d.sent();
|
|
1828
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1829
|
+
case 5: throw _d.sent();
|
|
1830
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1831
|
+
case 7: throw _d.sent();
|
|
1832
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1833
|
+
case 9: throw _d.sent();
|
|
1834
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1835
|
+
case 11: throw _d.sent();
|
|
1836
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1837
|
+
case 13: throw _d.sent();
|
|
2080
1838
|
case 14:
|
|
2081
1839
|
parsedBody = parsedOutput.body;
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
response
|
|
2088
|
-
delete response.Message;
|
|
2089
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1840
|
+
response = new __BaseException({
|
|
1841
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1842
|
+
$fault: "client",
|
|
1843
|
+
$metadata: deserializeMetadata(output),
|
|
1844
|
+
});
|
|
1845
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2090
1846
|
}
|
|
2091
1847
|
});
|
|
2092
1848
|
}); };
|
|
@@ -2167,16 +1923,16 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
2167
1923
|
});
|
|
2168
1924
|
}); };
|
|
2169
1925
|
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2170
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2171
|
-
var
|
|
2172
|
-
return __generator(this, function (
|
|
2173
|
-
switch (
|
|
1926
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1927
|
+
var _c;
|
|
1928
|
+
return __generator(this, function (_d) {
|
|
1929
|
+
switch (_d.label) {
|
|
2174
1930
|
case 0:
|
|
2175
1931
|
_a = [__assign({}, output)];
|
|
2176
|
-
|
|
1932
|
+
_c = {};
|
|
2177
1933
|
return [4, parseBody(output.body, context)];
|
|
2178
1934
|
case 1:
|
|
2179
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1935
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2180
1936
|
errorCode = "UnknownError";
|
|
2181
1937
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
1938
|
_b = errorCode;
|
|
@@ -2193,46 +1949,24 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2193
1949
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2194
1950
|
}
|
|
2195
1951
|
return [3, 12];
|
|
2196
|
-
case 2:
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
case
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
case 4
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
case
|
|
2206
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2207
|
-
return [3, 13];
|
|
2208
|
-
case 6:
|
|
2209
|
-
_e = [{}];
|
|
2210
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2211
|
-
case 7:
|
|
2212
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2213
|
-
return [3, 13];
|
|
2214
|
-
case 8:
|
|
2215
|
-
_f = [{}];
|
|
2216
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2217
|
-
case 9:
|
|
2218
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2219
|
-
return [3, 13];
|
|
2220
|
-
case 10:
|
|
2221
|
-
_g = [{}];
|
|
2222
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2223
|
-
case 11:
|
|
2224
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2225
|
-
return [3, 13];
|
|
1952
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1953
|
+
case 3: throw _d.sent();
|
|
1954
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1955
|
+
case 5: throw _d.sent();
|
|
1956
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1957
|
+
case 7: throw _d.sent();
|
|
1958
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1959
|
+
case 9: throw _d.sent();
|
|
1960
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1961
|
+
case 11: throw _d.sent();
|
|
2226
1962
|
case 12:
|
|
2227
1963
|
parsedBody = parsedOutput.body;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
response
|
|
2234
|
-
delete response.Message;
|
|
2235
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1964
|
+
response = new __BaseException({
|
|
1965
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1966
|
+
$fault: "client",
|
|
1967
|
+
$metadata: deserializeMetadata(output),
|
|
1968
|
+
});
|
|
1969
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2236
1970
|
}
|
|
2237
1971
|
});
|
|
2238
1972
|
}); };
|
|
@@ -2305,16 +2039,16 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
2305
2039
|
});
|
|
2306
2040
|
}); };
|
|
2307
2041
|
var deserializeAws_restJson1GetEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2308
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2309
|
-
var
|
|
2310
|
-
return __generator(this, function (
|
|
2311
|
-
switch (
|
|
2042
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2043
|
+
var _c;
|
|
2044
|
+
return __generator(this, function (_d) {
|
|
2045
|
+
switch (_d.label) {
|
|
2312
2046
|
case 0:
|
|
2313
2047
|
_a = [__assign({}, output)];
|
|
2314
|
-
|
|
2048
|
+
_c = {};
|
|
2315
2049
|
return [4, parseBody(output.body, context)];
|
|
2316
2050
|
case 1:
|
|
2317
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2051
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2318
2052
|
errorCode = "UnknownError";
|
|
2319
2053
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2054
|
_b = errorCode;
|
|
@@ -2331,46 +2065,24 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
2331
2065
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2332
2066
|
}
|
|
2333
2067
|
return [3, 12];
|
|
2334
|
-
case 2:
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
case
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
case 4
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
case
|
|
2344
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2345
|
-
return [3, 13];
|
|
2346
|
-
case 6:
|
|
2347
|
-
_e = [{}];
|
|
2348
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2349
|
-
case 7:
|
|
2350
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2351
|
-
return [3, 13];
|
|
2352
|
-
case 8:
|
|
2353
|
-
_f = [{}];
|
|
2354
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2355
|
-
case 9:
|
|
2356
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2357
|
-
return [3, 13];
|
|
2358
|
-
case 10:
|
|
2359
|
-
_g = [{}];
|
|
2360
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2361
|
-
case 11:
|
|
2362
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2363
|
-
return [3, 13];
|
|
2068
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2069
|
+
case 3: throw _d.sent();
|
|
2070
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2071
|
+
case 5: throw _d.sent();
|
|
2072
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2073
|
+
case 7: throw _d.sent();
|
|
2074
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2075
|
+
case 9: throw _d.sent();
|
|
2076
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2077
|
+
case 11: throw _d.sent();
|
|
2364
2078
|
case 12:
|
|
2365
2079
|
parsedBody = parsedOutput.body;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
response
|
|
2372
|
-
delete response.Message;
|
|
2373
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2080
|
+
response = new __BaseException({
|
|
2081
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2082
|
+
$fault: "client",
|
|
2083
|
+
$metadata: deserializeMetadata(output),
|
|
2084
|
+
});
|
|
2085
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2374
2086
|
}
|
|
2375
2087
|
});
|
|
2376
2088
|
}); };
|
|
@@ -2399,16 +2111,16 @@ export var deserializeAws_restJson1GetResourcePolicyCommand = function (output,
|
|
|
2399
2111
|
});
|
|
2400
2112
|
}); };
|
|
2401
2113
|
var deserializeAws_restJson1GetResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2403
|
-
var
|
|
2404
|
-
return __generator(this, function (
|
|
2405
|
-
switch (
|
|
2114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2115
|
+
var _c;
|
|
2116
|
+
return __generator(this, function (_d) {
|
|
2117
|
+
switch (_d.label) {
|
|
2406
2118
|
case 0:
|
|
2407
2119
|
_a = [__assign({}, output)];
|
|
2408
|
-
|
|
2120
|
+
_c = {};
|
|
2409
2121
|
return [4, parseBody(output.body, context)];
|
|
2410
2122
|
case 1:
|
|
2411
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2123
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2412
2124
|
errorCode = "UnknownError";
|
|
2413
2125
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2126
|
_b = errorCode;
|
|
@@ -2425,46 +2137,24 @@ var deserializeAws_restJson1GetResourcePolicyCommandError = function (output, co
|
|
|
2425
2137
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2426
2138
|
}
|
|
2427
2139
|
return [3, 12];
|
|
2428
|
-
case 2:
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
case
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
case 4
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
case
|
|
2438
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2439
|
-
return [3, 13];
|
|
2440
|
-
case 6:
|
|
2441
|
-
_e = [{}];
|
|
2442
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2443
|
-
case 7:
|
|
2444
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2445
|
-
return [3, 13];
|
|
2446
|
-
case 8:
|
|
2447
|
-
_f = [{}];
|
|
2448
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2449
|
-
case 9:
|
|
2450
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2451
|
-
return [3, 13];
|
|
2452
|
-
case 10:
|
|
2453
|
-
_g = [{}];
|
|
2454
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2455
|
-
case 11:
|
|
2456
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2457
|
-
return [3, 13];
|
|
2140
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2141
|
+
case 3: throw _d.sent();
|
|
2142
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2143
|
+
case 5: throw _d.sent();
|
|
2144
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2145
|
+
case 7: throw _d.sent();
|
|
2146
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2147
|
+
case 9: throw _d.sent();
|
|
2148
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2149
|
+
case 11: throw _d.sent();
|
|
2458
2150
|
case 12:
|
|
2459
2151
|
parsedBody = parsedOutput.body;
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
response
|
|
2466
|
-
delete response.Message;
|
|
2467
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2152
|
+
response = new __BaseException({
|
|
2153
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
|
+
$fault: "client",
|
|
2155
|
+
$metadata: deserializeMetadata(output),
|
|
2156
|
+
});
|
|
2157
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2468
2158
|
}
|
|
2469
2159
|
});
|
|
2470
2160
|
}); };
|
|
@@ -2557,16 +2247,16 @@ export var deserializeAws_restJson1GetRouteCommand = function (output, context)
|
|
|
2557
2247
|
});
|
|
2558
2248
|
}); };
|
|
2559
2249
|
var deserializeAws_restJson1GetRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2560
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2561
|
-
var
|
|
2562
|
-
return __generator(this, function (
|
|
2563
|
-
switch (
|
|
2250
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2251
|
+
var _c;
|
|
2252
|
+
return __generator(this, function (_d) {
|
|
2253
|
+
switch (_d.label) {
|
|
2564
2254
|
case 0:
|
|
2565
2255
|
_a = [__assign({}, output)];
|
|
2566
|
-
|
|
2256
|
+
_c = {};
|
|
2567
2257
|
return [4, parseBody(output.body, context)];
|
|
2568
2258
|
case 1:
|
|
2569
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2259
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2570
2260
|
errorCode = "UnknownError";
|
|
2571
2261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
2262
|
_b = errorCode;
|
|
@@ -2583,46 +2273,24 @@ var deserializeAws_restJson1GetRouteCommandError = function (output, context) {
|
|
|
2583
2273
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2584
2274
|
}
|
|
2585
2275
|
return [3, 12];
|
|
2586
|
-
case 2:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
case
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
case 4
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
case
|
|
2596
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2597
|
-
return [3, 13];
|
|
2598
|
-
case 6:
|
|
2599
|
-
_e = [{}];
|
|
2600
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2601
|
-
case 7:
|
|
2602
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2603
|
-
return [3, 13];
|
|
2604
|
-
case 8:
|
|
2605
|
-
_f = [{}];
|
|
2606
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2607
|
-
case 9:
|
|
2608
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2609
|
-
return [3, 13];
|
|
2610
|
-
case 10:
|
|
2611
|
-
_g = [{}];
|
|
2612
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2613
|
-
case 11:
|
|
2614
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2615
|
-
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();
|
|
2616
2286
|
case 12:
|
|
2617
2287
|
parsedBody = parsedOutput.body;
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
response
|
|
2624
|
-
delete response.Message;
|
|
2625
|
-
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);
|
|
2626
2294
|
}
|
|
2627
2295
|
});
|
|
2628
2296
|
}); };
|
|
@@ -2715,16 +2383,16 @@ export var deserializeAws_restJson1GetServiceCommand = function (output, context
|
|
|
2715
2383
|
});
|
|
2716
2384
|
}); };
|
|
2717
2385
|
var deserializeAws_restJson1GetServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2718
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2719
|
-
var
|
|
2720
|
-
return __generator(this, function (
|
|
2721
|
-
switch (
|
|
2386
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2387
|
+
var _c;
|
|
2388
|
+
return __generator(this, function (_d) {
|
|
2389
|
+
switch (_d.label) {
|
|
2722
2390
|
case 0:
|
|
2723
2391
|
_a = [__assign({}, output)];
|
|
2724
|
-
|
|
2392
|
+
_c = {};
|
|
2725
2393
|
return [4, parseBody(output.body, context)];
|
|
2726
2394
|
case 1:
|
|
2727
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2395
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2728
2396
|
errorCode = "UnknownError";
|
|
2729
2397
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
2398
|
_b = errorCode;
|
|
@@ -2741,46 +2409,24 @@ var deserializeAws_restJson1GetServiceCommandError = function (output, context)
|
|
|
2741
2409
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2742
2410
|
}
|
|
2743
2411
|
return [3, 12];
|
|
2744
|
-
case 2:
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
case
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
case 4
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
case
|
|
2754
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2755
|
-
return [3, 13];
|
|
2756
|
-
case 6:
|
|
2757
|
-
_e = [{}];
|
|
2758
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2759
|
-
case 7:
|
|
2760
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2761
|
-
return [3, 13];
|
|
2762
|
-
case 8:
|
|
2763
|
-
_f = [{}];
|
|
2764
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2765
|
-
case 9:
|
|
2766
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2767
|
-
return [3, 13];
|
|
2768
|
-
case 10:
|
|
2769
|
-
_g = [{}];
|
|
2770
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2771
|
-
case 11:
|
|
2772
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2773
|
-
return [3, 13];
|
|
2412
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2413
|
+
case 3: throw _d.sent();
|
|
2414
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2415
|
+
case 5: throw _d.sent();
|
|
2416
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2417
|
+
case 7: throw _d.sent();
|
|
2418
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2419
|
+
case 9: throw _d.sent();
|
|
2420
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2421
|
+
case 11: throw _d.sent();
|
|
2774
2422
|
case 12:
|
|
2775
2423
|
parsedBody = parsedOutput.body;
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
response
|
|
2782
|
-
delete response.Message;
|
|
2783
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2424
|
+
response = new __BaseException({
|
|
2425
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2426
|
+
$fault: "client",
|
|
2427
|
+
$metadata: deserializeMetadata(output),
|
|
2428
|
+
});
|
|
2429
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2784
2430
|
}
|
|
2785
2431
|
});
|
|
2786
2432
|
}); };
|
|
@@ -2813,16 +2459,16 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2813
2459
|
});
|
|
2814
2460
|
}); };
|
|
2815
2461
|
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2816
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2817
|
-
var
|
|
2818
|
-
return __generator(this, function (
|
|
2819
|
-
switch (
|
|
2462
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2463
|
+
var _c;
|
|
2464
|
+
return __generator(this, function (_d) {
|
|
2465
|
+
switch (_d.label) {
|
|
2820
2466
|
case 0:
|
|
2821
2467
|
_a = [__assign({}, output)];
|
|
2822
|
-
|
|
2468
|
+
_c = {};
|
|
2823
2469
|
return [4, parseBody(output.body, context)];
|
|
2824
2470
|
case 1:
|
|
2825
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2471
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2826
2472
|
errorCode = "UnknownError";
|
|
2827
2473
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
2474
|
_b = errorCode;
|
|
@@ -2843,58 +2489,28 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2843
2489
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
2844
2490
|
}
|
|
2845
2491
|
return [3, 16];
|
|
2846
|
-
case 2:
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
case
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
case 4
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
case
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
case
|
|
2859
|
-
|
|
2860
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2861
|
-
case 7:
|
|
2862
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2863
|
-
return [3, 17];
|
|
2864
|
-
case 8:
|
|
2865
|
-
_f = [{}];
|
|
2866
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2867
|
-
case 9:
|
|
2868
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2869
|
-
return [3, 17];
|
|
2870
|
-
case 10:
|
|
2871
|
-
_g = [{}];
|
|
2872
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2873
|
-
case 11:
|
|
2874
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2875
|
-
return [3, 17];
|
|
2876
|
-
case 12:
|
|
2877
|
-
_h = [{}];
|
|
2878
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2879
|
-
case 13:
|
|
2880
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2881
|
-
return [3, 17];
|
|
2882
|
-
case 14:
|
|
2883
|
-
_j = [{}];
|
|
2884
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2885
|
-
case 15:
|
|
2886
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2887
|
-
return [3, 17];
|
|
2492
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2493
|
+
case 3: throw _d.sent();
|
|
2494
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2495
|
+
case 5: throw _d.sent();
|
|
2496
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2497
|
+
case 7: throw _d.sent();
|
|
2498
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2499
|
+
case 9: throw _d.sent();
|
|
2500
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2501
|
+
case 11: throw _d.sent();
|
|
2502
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2503
|
+
case 13: throw _d.sent();
|
|
2504
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2505
|
+
case 15: throw _d.sent();
|
|
2888
2506
|
case 16:
|
|
2889
2507
|
parsedBody = parsedOutput.body;
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
response
|
|
2896
|
-
delete response.Message;
|
|
2897
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2508
|
+
response = new __BaseException({
|
|
2509
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2510
|
+
$fault: "client",
|
|
2511
|
+
$metadata: deserializeMetadata(output),
|
|
2512
|
+
});
|
|
2513
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2898
2514
|
}
|
|
2899
2515
|
});
|
|
2900
2516
|
}); };
|
|
@@ -2927,16 +2543,16 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2927
2543
|
});
|
|
2928
2544
|
}); };
|
|
2929
2545
|
var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2930
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2931
|
-
var
|
|
2932
|
-
return __generator(this, function (
|
|
2933
|
-
switch (
|
|
2546
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2547
|
+
var _c;
|
|
2548
|
+
return __generator(this, function (_d) {
|
|
2549
|
+
switch (_d.label) {
|
|
2934
2550
|
case 0:
|
|
2935
2551
|
_a = [__assign({}, output)];
|
|
2936
|
-
|
|
2552
|
+
_c = {};
|
|
2937
2553
|
return [4, parseBody(output.body, context)];
|
|
2938
2554
|
case 1:
|
|
2939
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2555
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2940
2556
|
errorCode = "UnknownError";
|
|
2941
2557
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2942
2558
|
_b = errorCode;
|
|
@@ -2953,46 +2569,24 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
2953
2569
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
2954
2570
|
}
|
|
2955
2571
|
return [3, 12];
|
|
2956
|
-
case 2:
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
case
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
case 4
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
case
|
|
2966
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2967
|
-
return [3, 13];
|
|
2968
|
-
case 6:
|
|
2969
|
-
_e = [{}];
|
|
2970
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2971
|
-
case 7:
|
|
2972
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2973
|
-
return [3, 13];
|
|
2974
|
-
case 8:
|
|
2975
|
-
_f = [{}];
|
|
2976
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2977
|
-
case 9:
|
|
2978
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2979
|
-
return [3, 13];
|
|
2980
|
-
case 10:
|
|
2981
|
-
_g = [{}];
|
|
2982
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2983
|
-
case 11:
|
|
2984
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2985
|
-
return [3, 13];
|
|
2572
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2573
|
+
case 3: throw _d.sent();
|
|
2574
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2575
|
+
case 5: throw _d.sent();
|
|
2576
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2577
|
+
case 7: throw _d.sent();
|
|
2578
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2579
|
+
case 9: throw _d.sent();
|
|
2580
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2581
|
+
case 11: throw _d.sent();
|
|
2986
2582
|
case 12:
|
|
2987
2583
|
parsedBody = parsedOutput.body;
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
response
|
|
2994
|
-
delete response.Message;
|
|
2995
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2584
|
+
response = new __BaseException({
|
|
2585
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2586
|
+
$fault: "client",
|
|
2587
|
+
$metadata: deserializeMetadata(output),
|
|
2588
|
+
});
|
|
2589
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2996
2590
|
}
|
|
2997
2591
|
});
|
|
2998
2592
|
}); };
|
|
@@ -3025,16 +2619,16 @@ export var deserializeAws_restJson1ListEnvironmentVpcsCommand = function (output
|
|
|
3025
2619
|
});
|
|
3026
2620
|
}); };
|
|
3027
2621
|
var deserializeAws_restJson1ListEnvironmentVpcsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3028
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3029
|
-
var
|
|
3030
|
-
return __generator(this, function (
|
|
3031
|
-
switch (
|
|
2622
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2623
|
+
var _c;
|
|
2624
|
+
return __generator(this, function (_d) {
|
|
2625
|
+
switch (_d.label) {
|
|
3032
2626
|
case 0:
|
|
3033
2627
|
_a = [__assign({}, output)];
|
|
3034
|
-
|
|
2628
|
+
_c = {};
|
|
3035
2629
|
return [4, parseBody(output.body, context)];
|
|
3036
2630
|
case 1:
|
|
3037
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2631
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3038
2632
|
errorCode = "UnknownError";
|
|
3039
2633
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3040
2634
|
_b = errorCode;
|
|
@@ -3051,46 +2645,24 @@ var deserializeAws_restJson1ListEnvironmentVpcsCommandError = function (output,
|
|
|
3051
2645
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 10];
|
|
3052
2646
|
}
|
|
3053
2647
|
return [3, 12];
|
|
3054
|
-
case 2:
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
case
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
case 4
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
case
|
|
3064
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3065
|
-
return [3, 13];
|
|
3066
|
-
case 6:
|
|
3067
|
-
_e = [{}];
|
|
3068
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3069
|
-
case 7:
|
|
3070
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3071
|
-
return [3, 13];
|
|
3072
|
-
case 8:
|
|
3073
|
-
_f = [{}];
|
|
3074
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3075
|
-
case 9:
|
|
3076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3077
|
-
return [3, 13];
|
|
3078
|
-
case 10:
|
|
3079
|
-
_g = [{}];
|
|
3080
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3081
|
-
case 11:
|
|
3082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3083
|
-
return [3, 13];
|
|
2648
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2649
|
+
case 3: throw _d.sent();
|
|
2650
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2651
|
+
case 5: throw _d.sent();
|
|
2652
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2653
|
+
case 7: throw _d.sent();
|
|
2654
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2655
|
+
case 9: throw _d.sent();
|
|
2656
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2657
|
+
case 11: throw _d.sent();
|
|
3084
2658
|
case 12:
|
|
3085
2659
|
parsedBody = parsedOutput.body;
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
response
|
|
3092
|
-
delete response.Message;
|
|
3093
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2660
|
+
response = new __BaseException({
|
|
2661
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2662
|
+
$fault: "client",
|
|
2663
|
+
$metadata: deserializeMetadata(output),
|
|
2664
|
+
});
|
|
2665
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3094
2666
|
}
|
|
3095
2667
|
});
|
|
3096
2668
|
}); };
|
|
@@ -3123,16 +2695,16 @@ export var deserializeAws_restJson1ListRoutesCommand = function (output, context
|
|
|
3123
2695
|
});
|
|
3124
2696
|
}); };
|
|
3125
2697
|
var deserializeAws_restJson1ListRoutesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3126
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3127
|
-
var
|
|
3128
|
-
return __generator(this, function (
|
|
3129
|
-
switch (
|
|
2698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2699
|
+
var _c;
|
|
2700
|
+
return __generator(this, function (_d) {
|
|
2701
|
+
switch (_d.label) {
|
|
3130
2702
|
case 0:
|
|
3131
2703
|
_a = [__assign({}, output)];
|
|
3132
|
-
|
|
2704
|
+
_c = {};
|
|
3133
2705
|
return [4, parseBody(output.body, context)];
|
|
3134
2706
|
case 1:
|
|
3135
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3136
2708
|
errorCode = "UnknownError";
|
|
3137
2709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
2710
|
_b = errorCode;
|
|
@@ -3153,58 +2725,28 @@ var deserializeAws_restJson1ListRoutesCommandError = function (output, context)
|
|
|
3153
2725
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
3154
2726
|
}
|
|
3155
2727
|
return [3, 16];
|
|
3156
|
-
case 2:
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
case
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
case 4
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
case
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
case
|
|
3169
|
-
|
|
3170
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3171
|
-
case 7:
|
|
3172
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3173
|
-
return [3, 17];
|
|
3174
|
-
case 8:
|
|
3175
|
-
_f = [{}];
|
|
3176
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3177
|
-
case 9:
|
|
3178
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3179
|
-
return [3, 17];
|
|
3180
|
-
case 10:
|
|
3181
|
-
_g = [{}];
|
|
3182
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3183
|
-
case 11:
|
|
3184
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3185
|
-
return [3, 17];
|
|
3186
|
-
case 12:
|
|
3187
|
-
_h = [{}];
|
|
3188
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3189
|
-
case 13:
|
|
3190
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3191
|
-
return [3, 17];
|
|
3192
|
-
case 14:
|
|
3193
|
-
_j = [{}];
|
|
3194
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3195
|
-
case 15:
|
|
3196
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3197
|
-
return [3, 17];
|
|
2728
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2729
|
+
case 3: throw _d.sent();
|
|
2730
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2731
|
+
case 5: throw _d.sent();
|
|
2732
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2733
|
+
case 7: throw _d.sent();
|
|
2734
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2735
|
+
case 9: throw _d.sent();
|
|
2736
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2737
|
+
case 11: throw _d.sent();
|
|
2738
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2739
|
+
case 13: throw _d.sent();
|
|
2740
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2741
|
+
case 15: throw _d.sent();
|
|
3198
2742
|
case 16:
|
|
3199
2743
|
parsedBody = parsedOutput.body;
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
response
|
|
3206
|
-
delete response.Message;
|
|
3207
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2744
|
+
response = new __BaseException({
|
|
2745
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2746
|
+
$fault: "client",
|
|
2747
|
+
$metadata: deserializeMetadata(output),
|
|
2748
|
+
});
|
|
2749
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3208
2750
|
}
|
|
3209
2751
|
});
|
|
3210
2752
|
}); };
|
|
@@ -3237,16 +2779,16 @@ export var deserializeAws_restJson1ListServicesCommand = function (output, conte
|
|
|
3237
2779
|
});
|
|
3238
2780
|
}); };
|
|
3239
2781
|
var deserializeAws_restJson1ListServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3240
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3241
|
-
var
|
|
3242
|
-
return __generator(this, function (
|
|
3243
|
-
switch (
|
|
2782
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2783
|
+
var _c;
|
|
2784
|
+
return __generator(this, function (_d) {
|
|
2785
|
+
switch (_d.label) {
|
|
3244
2786
|
case 0:
|
|
3245
2787
|
_a = [__assign({}, output)];
|
|
3246
|
-
|
|
2788
|
+
_c = {};
|
|
3247
2789
|
return [4, parseBody(output.body, context)];
|
|
3248
2790
|
case 1:
|
|
3249
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2791
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3250
2792
|
errorCode = "UnknownError";
|
|
3251
2793
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
2794
|
_b = errorCode;
|
|
@@ -3267,58 +2809,28 @@ var deserializeAws_restJson1ListServicesCommandError = function (output, context
|
|
|
3267
2809
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 14];
|
|
3268
2810
|
}
|
|
3269
2811
|
return [3, 16];
|
|
3270
|
-
case 2:
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
case
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
case 4
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
case
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
case
|
|
3283
|
-
|
|
3284
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3285
|
-
case 7:
|
|
3286
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3287
|
-
return [3, 17];
|
|
3288
|
-
case 8:
|
|
3289
|
-
_f = [{}];
|
|
3290
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3291
|
-
case 9:
|
|
3292
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3293
|
-
return [3, 17];
|
|
3294
|
-
case 10:
|
|
3295
|
-
_g = [{}];
|
|
3296
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3297
|
-
case 11:
|
|
3298
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3299
|
-
return [3, 17];
|
|
3300
|
-
case 12:
|
|
3301
|
-
_h = [{}];
|
|
3302
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3303
|
-
case 13:
|
|
3304
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3305
|
-
return [3, 17];
|
|
3306
|
-
case 14:
|
|
3307
|
-
_j = [{}];
|
|
3308
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3309
|
-
case 15:
|
|
3310
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3311
|
-
return [3, 17];
|
|
2812
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2813
|
+
case 3: throw _d.sent();
|
|
2814
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2815
|
+
case 5: throw _d.sent();
|
|
2816
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2817
|
+
case 7: throw _d.sent();
|
|
2818
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2819
|
+
case 9: throw _d.sent();
|
|
2820
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2821
|
+
case 11: throw _d.sent();
|
|
2822
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2823
|
+
case 13: throw _d.sent();
|
|
2824
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2825
|
+
case 15: throw _d.sent();
|
|
3312
2826
|
case 16:
|
|
3313
2827
|
parsedBody = parsedOutput.body;
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
response
|
|
3320
|
-
delete response.Message;
|
|
3321
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2828
|
+
response = new __BaseException({
|
|
2829
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2830
|
+
$fault: "client",
|
|
2831
|
+
$metadata: deserializeMetadata(output),
|
|
2832
|
+
});
|
|
2833
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3322
2834
|
}
|
|
3323
2835
|
});
|
|
3324
2836
|
}); };
|
|
@@ -3347,16 +2859,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3347
2859
|
});
|
|
3348
2860
|
}); };
|
|
3349
2861
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3350
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3351
|
-
var
|
|
3352
|
-
return __generator(this, function (
|
|
3353
|
-
switch (
|
|
2862
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2863
|
+
var _c;
|
|
2864
|
+
return __generator(this, function (_d) {
|
|
2865
|
+
switch (_d.label) {
|
|
3354
2866
|
case 0:
|
|
3355
2867
|
_a = [__assign({}, output)];
|
|
3356
|
-
|
|
2868
|
+
_c = {};
|
|
3357
2869
|
return [4, parseBody(output.body, context)];
|
|
3358
2870
|
case 1:
|
|
3359
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2871
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3360
2872
|
errorCode = "UnknownError";
|
|
3361
2873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3362
2874
|
_b = errorCode;
|
|
@@ -3369,34 +2881,20 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3369
2881
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 6];
|
|
3370
2882
|
}
|
|
3371
2883
|
return [3, 8];
|
|
3372
|
-
case 2:
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
case
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
case 4:
|
|
3379
|
-
_d = [{}];
|
|
3380
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3381
|
-
case 5:
|
|
3382
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3383
|
-
return [3, 9];
|
|
3384
|
-
case 6:
|
|
3385
|
-
_e = [{}];
|
|
3386
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3387
|
-
case 7:
|
|
3388
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3389
|
-
return [3, 9];
|
|
2884
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2885
|
+
case 3: throw _d.sent();
|
|
2886
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2887
|
+
case 5: throw _d.sent();
|
|
2888
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2889
|
+
case 7: throw _d.sent();
|
|
3390
2890
|
case 8:
|
|
3391
2891
|
parsedBody = parsedOutput.body;
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
response
|
|
3398
|
-
delete response.Message;
|
|
3399
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2892
|
+
response = new __BaseException({
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2894
|
+
$fault: "client",
|
|
2895
|
+
$metadata: deserializeMetadata(output),
|
|
2896
|
+
});
|
|
2897
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3400
2898
|
}
|
|
3401
2899
|
});
|
|
3402
2900
|
}); };
|
|
@@ -3419,16 +2917,16 @@ export var deserializeAws_restJson1PutResourcePolicyCommand = function (output,
|
|
|
3419
2917
|
});
|
|
3420
2918
|
}); };
|
|
3421
2919
|
var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3422
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3423
|
-
var
|
|
3424
|
-
return __generator(this, function (
|
|
3425
|
-
switch (
|
|
2920
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2921
|
+
var _c;
|
|
2922
|
+
return __generator(this, function (_d) {
|
|
2923
|
+
switch (_d.label) {
|
|
3426
2924
|
case 0:
|
|
3427
2925
|
_a = [__assign({}, output)];
|
|
3428
|
-
|
|
2926
|
+
_c = {};
|
|
3429
2927
|
return [4, parseBody(output.body, context)];
|
|
3430
2928
|
case 1:
|
|
3431
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2929
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3432
2930
|
errorCode = "UnknownError";
|
|
3433
2931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
2932
|
_b = errorCode;
|
|
@@ -3447,52 +2945,26 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
3447
2945
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 12];
|
|
3448
2946
|
}
|
|
3449
2947
|
return [3, 14];
|
|
3450
|
-
case 2:
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
case
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
case 4
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
case
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
case 6:
|
|
3463
|
-
_e = [{}];
|
|
3464
|
-
return [4, deserializeAws_restJson1InvalidResourcePolicyExceptionResponse(parsedOutput, context)];
|
|
3465
|
-
case 7:
|
|
3466
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3467
|
-
return [3, 15];
|
|
3468
|
-
case 8:
|
|
3469
|
-
_f = [{}];
|
|
3470
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3471
|
-
case 9:
|
|
3472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3473
|
-
return [3, 15];
|
|
3474
|
-
case 10:
|
|
3475
|
-
_g = [{}];
|
|
3476
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3477
|
-
case 11:
|
|
3478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3479
|
-
return [3, 15];
|
|
3480
|
-
case 12:
|
|
3481
|
-
_h = [{}];
|
|
3482
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3483
|
-
case 13:
|
|
3484
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3485
|
-
return [3, 15];
|
|
2948
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2949
|
+
case 3: throw _d.sent();
|
|
2950
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2951
|
+
case 5: throw _d.sent();
|
|
2952
|
+
case 6: return [4, deserializeAws_restJson1InvalidResourcePolicyExceptionResponse(parsedOutput, context)];
|
|
2953
|
+
case 7: throw _d.sent();
|
|
2954
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2955
|
+
case 9: throw _d.sent();
|
|
2956
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2957
|
+
case 11: throw _d.sent();
|
|
2958
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2959
|
+
case 13: throw _d.sent();
|
|
3486
2960
|
case 14:
|
|
3487
2961
|
parsedBody = parsedOutput.body;
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
response
|
|
3494
|
-
delete response.Message;
|
|
3495
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2962
|
+
response = new __BaseException({
|
|
2963
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2964
|
+
$fault: "client",
|
|
2965
|
+
$metadata: deserializeMetadata(output),
|
|
2966
|
+
});
|
|
2967
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3496
2968
|
}
|
|
3497
2969
|
});
|
|
3498
2970
|
}); };
|
|
@@ -3515,16 +2987,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3515
2987
|
});
|
|
3516
2988
|
}); };
|
|
3517
2989
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3518
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3519
|
-
var
|
|
3520
|
-
return __generator(this, function (
|
|
3521
|
-
switch (
|
|
2990
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2991
|
+
var _c;
|
|
2992
|
+
return __generator(this, function (_d) {
|
|
2993
|
+
switch (_d.label) {
|
|
3522
2994
|
case 0:
|
|
3523
2995
|
_a = [__assign({}, output)];
|
|
3524
|
-
|
|
2996
|
+
_c = {};
|
|
3525
2997
|
return [4, parseBody(output.body, context)];
|
|
3526
2998
|
case 1:
|
|
3527
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2999
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3528
3000
|
errorCode = "UnknownError";
|
|
3529
3001
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3530
3002
|
_b = errorCode;
|
|
@@ -3537,34 +3009,20 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3537
3009
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 6];
|
|
3538
3010
|
}
|
|
3539
3011
|
return [3, 8];
|
|
3540
|
-
case 2:
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
case
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
case 4:
|
|
3547
|
-
_d = [{}];
|
|
3548
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3549
|
-
case 5:
|
|
3550
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3551
|
-
return [3, 9];
|
|
3552
|
-
case 6:
|
|
3553
|
-
_e = [{}];
|
|
3554
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3555
|
-
case 7:
|
|
3556
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3557
|
-
return [3, 9];
|
|
3012
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3013
|
+
case 3: throw _d.sent();
|
|
3014
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3015
|
+
case 5: throw _d.sent();
|
|
3016
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3017
|
+
case 7: throw _d.sent();
|
|
3558
3018
|
case 8:
|
|
3559
3019
|
parsedBody = parsedOutput.body;
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
response
|
|
3566
|
-
delete response.Message;
|
|
3567
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3020
|
+
response = new __BaseException({
|
|
3021
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3022
|
+
$fault: "client",
|
|
3023
|
+
$metadata: deserializeMetadata(output),
|
|
3024
|
+
});
|
|
3025
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3568
3026
|
}
|
|
3569
3027
|
});
|
|
3570
3028
|
}); };
|
|
@@ -3587,16 +3045,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3587
3045
|
});
|
|
3588
3046
|
}); };
|
|
3589
3047
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3590
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3591
|
-
var
|
|
3592
|
-
return __generator(this, function (
|
|
3593
|
-
switch (
|
|
3048
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3049
|
+
var _c;
|
|
3050
|
+
return __generator(this, function (_d) {
|
|
3051
|
+
switch (_d.label) {
|
|
3594
3052
|
case 0:
|
|
3595
3053
|
_a = [__assign({}, output)];
|
|
3596
|
-
|
|
3054
|
+
_c = {};
|
|
3597
3055
|
return [4, parseBody(output.body, context)];
|
|
3598
3056
|
case 1:
|
|
3599
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3057
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3600
3058
|
errorCode = "UnknownError";
|
|
3601
3059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3602
3060
|
_b = errorCode;
|
|
@@ -3609,64 +3067,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3609
3067
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException": return [3, 6];
|
|
3610
3068
|
}
|
|
3611
3069
|
return [3, 8];
|
|
3612
|
-
case 2:
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
case
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
case 4:
|
|
3619
|
-
_d = [{}];
|
|
3620
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3621
|
-
case 5:
|
|
3622
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3623
|
-
return [3, 9];
|
|
3624
|
-
case 6:
|
|
3625
|
-
_e = [{}];
|
|
3626
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3627
|
-
case 7:
|
|
3628
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3629
|
-
return [3, 9];
|
|
3070
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3071
|
+
case 3: throw _d.sent();
|
|
3072
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3073
|
+
case 5: throw _d.sent();
|
|
3074
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3075
|
+
case 7: throw _d.sent();
|
|
3630
3076
|
case 8:
|
|
3631
3077
|
parsedBody = parsedOutput.body;
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
response
|
|
3638
|
-
delete response.Message;
|
|
3639
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3078
|
+
response = new __BaseException({
|
|
3079
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3080
|
+
$fault: "client",
|
|
3081
|
+
$metadata: deserializeMetadata(output),
|
|
3082
|
+
});
|
|
3083
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3640
3084
|
}
|
|
3641
3085
|
});
|
|
3642
3086
|
}); };
|
|
3643
3087
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3644
|
-
var contents, data;
|
|
3088
|
+
var contents, data, exception;
|
|
3645
3089
|
return __generator(this, function (_a) {
|
|
3646
|
-
contents = {
|
|
3647
|
-
name: "AccessDeniedException",
|
|
3648
|
-
$fault: "client",
|
|
3649
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3650
|
-
Message: undefined,
|
|
3651
|
-
};
|
|
3090
|
+
contents = {};
|
|
3652
3091
|
data = parsedOutput.body;
|
|
3653
3092
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3654
3093
|
contents.Message = __expectString(data.Message);
|
|
3655
3094
|
}
|
|
3656
|
-
|
|
3095
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3096
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3657
3097
|
});
|
|
3658
3098
|
}); };
|
|
3659
3099
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3660
|
-
var contents, data;
|
|
3100
|
+
var contents, data, exception;
|
|
3661
3101
|
return __generator(this, function (_a) {
|
|
3662
|
-
contents = {
|
|
3663
|
-
name: "ConflictException",
|
|
3664
|
-
$fault: "client",
|
|
3665
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3666
|
-
Message: undefined,
|
|
3667
|
-
ResourceId: undefined,
|
|
3668
|
-
ResourceType: undefined,
|
|
3669
|
-
};
|
|
3102
|
+
contents = {};
|
|
3670
3103
|
data = parsedOutput.body;
|
|
3671
3104
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3672
3105
|
contents.Message = __expectString(data.Message);
|
|
@@ -3677,52 +3110,38 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3677
3110
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3678
3111
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3679
3112
|
}
|
|
3680
|
-
|
|
3113
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3114
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3681
3115
|
});
|
|
3682
3116
|
}); };
|
|
3683
3117
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3684
|
-
var contents, data;
|
|
3118
|
+
var contents, data, exception;
|
|
3685
3119
|
return __generator(this, function (_a) {
|
|
3686
|
-
contents = {
|
|
3687
|
-
name: "InternalServerException",
|
|
3688
|
-
$fault: "server",
|
|
3689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3690
|
-
Message: undefined,
|
|
3691
|
-
};
|
|
3120
|
+
contents = {};
|
|
3692
3121
|
data = parsedOutput.body;
|
|
3693
3122
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3694
3123
|
contents.Message = __expectString(data.Message);
|
|
3695
3124
|
}
|
|
3696
|
-
|
|
3125
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3126
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3697
3127
|
});
|
|
3698
3128
|
}); };
|
|
3699
3129
|
var deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3700
|
-
var contents, data;
|
|
3130
|
+
var contents, data, exception;
|
|
3701
3131
|
return __generator(this, function (_a) {
|
|
3702
|
-
contents = {
|
|
3703
|
-
name: "InvalidResourcePolicyException",
|
|
3704
|
-
$fault: "client",
|
|
3705
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3706
|
-
Message: undefined,
|
|
3707
|
-
};
|
|
3132
|
+
contents = {};
|
|
3708
3133
|
data = parsedOutput.body;
|
|
3709
3134
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3710
3135
|
contents.Message = __expectString(data.Message);
|
|
3711
3136
|
}
|
|
3712
|
-
|
|
3137
|
+
exception = new InvalidResourcePolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3138
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3713
3139
|
});
|
|
3714
3140
|
}); };
|
|
3715
3141
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3716
|
-
var contents, data;
|
|
3142
|
+
var contents, data, exception;
|
|
3717
3143
|
return __generator(this, function (_a) {
|
|
3718
|
-
contents = {
|
|
3719
|
-
name: "ResourceNotFoundException",
|
|
3720
|
-
$fault: "client",
|
|
3721
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3722
|
-
Message: undefined,
|
|
3723
|
-
ResourceId: undefined,
|
|
3724
|
-
ResourceType: undefined,
|
|
3725
|
-
};
|
|
3144
|
+
contents = {};
|
|
3726
3145
|
data = parsedOutput.body;
|
|
3727
3146
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3728
3147
|
contents.Message = __expectString(data.Message);
|
|
@@ -3733,22 +3152,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3733
3152
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3734
3153
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3735
3154
|
}
|
|
3736
|
-
|
|
3155
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3156
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3737
3157
|
});
|
|
3738
3158
|
}); };
|
|
3739
3159
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3740
|
-
var contents, data;
|
|
3160
|
+
var contents, data, exception;
|
|
3741
3161
|
return __generator(this, function (_a) {
|
|
3742
|
-
contents = {
|
|
3743
|
-
name: "ServiceQuotaExceededException",
|
|
3744
|
-
$fault: "client",
|
|
3745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3746
|
-
Message: undefined,
|
|
3747
|
-
QuotaCode: undefined,
|
|
3748
|
-
ResourceId: undefined,
|
|
3749
|
-
ResourceType: undefined,
|
|
3750
|
-
ServiceCode: undefined,
|
|
3751
|
-
};
|
|
3162
|
+
contents = {};
|
|
3752
3163
|
data = parsedOutput.body;
|
|
3753
3164
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3754
3165
|
contents.Message = __expectString(data.Message);
|
|
@@ -3765,21 +3176,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3765
3176
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
3766
3177
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3767
3178
|
}
|
|
3768
|
-
|
|
3179
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3180
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3769
3181
|
});
|
|
3770
3182
|
}); };
|
|
3771
3183
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3772
|
-
var contents, data;
|
|
3184
|
+
var contents, data, exception;
|
|
3773
3185
|
return __generator(this, function (_a) {
|
|
3774
|
-
contents = {
|
|
3775
|
-
name: "ThrottlingException",
|
|
3776
|
-
$fault: "client",
|
|
3777
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3778
|
-
Message: undefined,
|
|
3779
|
-
QuotaCode: undefined,
|
|
3780
|
-
RetryAfterSeconds: undefined,
|
|
3781
|
-
ServiceCode: undefined,
|
|
3782
|
-
};
|
|
3186
|
+
contents = {};
|
|
3783
3187
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3784
3188
|
contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3785
3189
|
}
|
|
@@ -3793,23 +3197,20 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3793
3197
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
3794
3198
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3795
3199
|
}
|
|
3796
|
-
|
|
3200
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3201
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3797
3202
|
});
|
|
3798
3203
|
}); };
|
|
3799
3204
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3800
|
-
var contents, data;
|
|
3205
|
+
var contents, data, exception;
|
|
3801
3206
|
return __generator(this, function (_a) {
|
|
3802
|
-
contents = {
|
|
3803
|
-
name: "ValidationException",
|
|
3804
|
-
$fault: "client",
|
|
3805
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3806
|
-
Message: undefined,
|
|
3807
|
-
};
|
|
3207
|
+
contents = {};
|
|
3808
3208
|
data = parsedOutput.body;
|
|
3809
3209
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3810
3210
|
contents.Message = __expectString(data.Message);
|
|
3811
3211
|
}
|
|
3812
|
-
|
|
3212
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3213
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3813
3214
|
});
|
|
3814
3215
|
}); };
|
|
3815
3216
|
var serializeAws_restJson1ApiGatewayProxyInput = function (input, context) {
|
|
@@ -3886,7 +3287,7 @@ var deserializeAws_restJson1ApiGatewayProxySummary = function (output, context)
|
|
|
3886
3287
|
};
|
|
3887
3288
|
};
|
|
3888
3289
|
var deserializeAws_restJson1ApplicationSummaries = function (output, context) {
|
|
3889
|
-
|
|
3290
|
+
var retVal = (output || [])
|
|
3890
3291
|
.filter(function (e) { return e != null; })
|
|
3891
3292
|
.map(function (entry) {
|
|
3892
3293
|
if (entry === null) {
|
|
@@ -3894,6 +3295,7 @@ var deserializeAws_restJson1ApplicationSummaries = function (output, context) {
|
|
|
3894
3295
|
}
|
|
3895
3296
|
return deserializeAws_restJson1ApplicationSummary(entry, context);
|
|
3896
3297
|
});
|
|
3298
|
+
return retVal;
|
|
3897
3299
|
};
|
|
3898
3300
|
var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
3899
3301
|
return {
|
|
@@ -3924,7 +3326,7 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
|
3924
3326
|
};
|
|
3925
3327
|
};
|
|
3926
3328
|
var deserializeAws_restJson1CidrBlocks = function (output, context) {
|
|
3927
|
-
|
|
3329
|
+
var retVal = (output || [])
|
|
3928
3330
|
.filter(function (e) { return e != null; })
|
|
3929
3331
|
.map(function (entry) {
|
|
3930
3332
|
if (entry === null) {
|
|
@@ -3932,9 +3334,10 @@ var deserializeAws_restJson1CidrBlocks = function (output, context) {
|
|
|
3932
3334
|
}
|
|
3933
3335
|
return __expectString(entry);
|
|
3934
3336
|
});
|
|
3337
|
+
return retVal;
|
|
3935
3338
|
};
|
|
3936
3339
|
var deserializeAws_restJson1EnvironmentSummaries = function (output, context) {
|
|
3937
|
-
|
|
3340
|
+
var retVal = (output || [])
|
|
3938
3341
|
.filter(function (e) { return e != null; })
|
|
3939
3342
|
.map(function (entry) {
|
|
3940
3343
|
if (entry === null) {
|
|
@@ -3942,6 +3345,7 @@ var deserializeAws_restJson1EnvironmentSummaries = function (output, context) {
|
|
|
3942
3345
|
}
|
|
3943
3346
|
return deserializeAws_restJson1EnvironmentSummary(entry, context);
|
|
3944
3347
|
});
|
|
3348
|
+
return retVal;
|
|
3945
3349
|
};
|
|
3946
3350
|
var deserializeAws_restJson1EnvironmentSummary = function (output, context) {
|
|
3947
3351
|
return {
|
|
@@ -3985,7 +3389,7 @@ var deserializeAws_restJson1EnvironmentVpc = function (output, context) {
|
|
|
3985
3389
|
};
|
|
3986
3390
|
};
|
|
3987
3391
|
var deserializeAws_restJson1EnvironmentVpcs = function (output, context) {
|
|
3988
|
-
|
|
3392
|
+
var retVal = (output || [])
|
|
3989
3393
|
.filter(function (e) { return e != null; })
|
|
3990
3394
|
.map(function (entry) {
|
|
3991
3395
|
if (entry === null) {
|
|
@@ -3993,6 +3397,7 @@ var deserializeAws_restJson1EnvironmentVpcs = function (output, context) {
|
|
|
3993
3397
|
}
|
|
3994
3398
|
return deserializeAws_restJson1EnvironmentVpc(entry, context);
|
|
3995
3399
|
});
|
|
3400
|
+
return retVal;
|
|
3996
3401
|
};
|
|
3997
3402
|
var deserializeAws_restJson1ErrorResponse = function (output, context) {
|
|
3998
3403
|
return {
|
|
@@ -4007,7 +3412,7 @@ var deserializeAws_restJson1ErrorResponse = function (output, context) {
|
|
|
4007
3412
|
};
|
|
4008
3413
|
};
|
|
4009
3414
|
var deserializeAws_restJson1HttpMethods = function (output, context) {
|
|
4010
|
-
|
|
3415
|
+
var retVal = (output || [])
|
|
4011
3416
|
.filter(function (e) { return e != null; })
|
|
4012
3417
|
.map(function (entry) {
|
|
4013
3418
|
if (entry === null) {
|
|
@@ -4015,6 +3420,7 @@ var deserializeAws_restJson1HttpMethods = function (output, context) {
|
|
|
4015
3420
|
}
|
|
4016
3421
|
return __expectString(entry);
|
|
4017
3422
|
});
|
|
3423
|
+
return retVal;
|
|
4018
3424
|
};
|
|
4019
3425
|
var deserializeAws_restJson1LambdaEndpointConfig = function (output, context) {
|
|
4020
3426
|
return {
|
|
@@ -4042,7 +3448,7 @@ var deserializeAws_restJson1PathResourceToId = function (output, context) {
|
|
|
4042
3448
|
}, {});
|
|
4043
3449
|
};
|
|
4044
3450
|
var deserializeAws_restJson1RouteSummaries = function (output, context) {
|
|
4045
|
-
|
|
3451
|
+
var retVal = (output || [])
|
|
4046
3452
|
.filter(function (e) { return e != null; })
|
|
4047
3453
|
.map(function (entry) {
|
|
4048
3454
|
if (entry === null) {
|
|
@@ -4050,6 +3456,7 @@ var deserializeAws_restJson1RouteSummaries = function (output, context) {
|
|
|
4050
3456
|
}
|
|
4051
3457
|
return deserializeAws_restJson1RouteSummary(entry, context);
|
|
4052
3458
|
});
|
|
3459
|
+
return retVal;
|
|
4053
3460
|
};
|
|
4054
3461
|
var deserializeAws_restJson1RouteSummary = function (output, context) {
|
|
4055
3462
|
return {
|
|
@@ -4085,7 +3492,7 @@ var deserializeAws_restJson1RouteSummary = function (output, context) {
|
|
|
4085
3492
|
};
|
|
4086
3493
|
};
|
|
4087
3494
|
var deserializeAws_restJson1ServiceSummaries = function (output, context) {
|
|
4088
|
-
|
|
3495
|
+
var retVal = (output || [])
|
|
4089
3496
|
.filter(function (e) { return e != null; })
|
|
4090
3497
|
.map(function (entry) {
|
|
4091
3498
|
if (entry === null) {
|
|
@@ -4093,6 +3500,7 @@ var deserializeAws_restJson1ServiceSummaries = function (output, context) {
|
|
|
4093
3500
|
}
|
|
4094
3501
|
return deserializeAws_restJson1ServiceSummary(entry, context);
|
|
4095
3502
|
});
|
|
3503
|
+
return retVal;
|
|
4096
3504
|
};
|
|
4097
3505
|
var deserializeAws_restJson1ServiceSummary = function (output, context) {
|
|
4098
3506
|
return {
|