@aws-sdk/client-mgn 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MgnServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +136 -2
- package/dist-cjs/protocols/Aws_restJson1.js +303 -957
- package/dist-es/index.js +1 -0
- package/dist-es/models/MgnServiceException.js +12 -0
- package/dist-es/models/models_0.js +126 -1
- package/dist-es/protocols/Aws_restJson1.js +617 -1085
- package/dist-types/Mgn.d.ts +10 -10
- package/dist-types/MgnClient.d.ts +2 -2
- package/dist-types/commands/DeleteVcenterClientCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +1 -1
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -1
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -1
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -1
- package/dist-types/commands/StartReplicationCommand.d.ts +1 -1
- package/dist-types/commands/StartTestCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +1 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MgnServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +109 -65
- 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/MgnClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MgnServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +55 -33
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MgnServiceException as __BaseException } from "../models/MgnServiceException";
|
|
5
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -696,7 +698,7 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
|
|
|
696
698
|
"content-type": "application/json",
|
|
697
699
|
};
|
|
698
700
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfiguration";
|
|
699
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags })), (input.launchDisposition !== undefined &&
|
|
701
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bootMode !== undefined && input.bootMode !== null && { bootMode: input.bootMode })), (input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags })), (input.launchDisposition !== undefined &&
|
|
700
702
|
input.launchDisposition !== null && { launchDisposition: input.launchDisposition })), (input.licensing !== undefined &&
|
|
701
703
|
input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.sourceServerID !== undefined &&
|
|
702
704
|
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod !== undefined &&
|
|
@@ -899,16 +901,16 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
|
|
|
899
901
|
});
|
|
900
902
|
}); };
|
|
901
903
|
var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
902
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
903
|
-
var
|
|
904
|
-
return __generator(this, function (
|
|
905
|
-
switch (
|
|
904
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
905
|
+
var _c;
|
|
906
|
+
return __generator(this, function (_d) {
|
|
907
|
+
switch (_d.label) {
|
|
906
908
|
case 0:
|
|
907
909
|
_a = [__assign({}, output)];
|
|
908
|
-
|
|
910
|
+
_c = {};
|
|
909
911
|
return [4, parseBody(output.body, context)];
|
|
910
912
|
case 1:
|
|
911
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
913
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
912
914
|
errorCode = "UnknownError";
|
|
913
915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
916
|
_b = errorCode;
|
|
@@ -923,40 +925,22 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
|
|
|
923
925
|
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
924
926
|
}
|
|
925
927
|
return [3, 10];
|
|
926
|
-
case 2:
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
case
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
case 4
|
|
933
|
-
|
|
934
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
935
|
-
case 5:
|
|
936
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
937
|
-
return [3, 11];
|
|
938
|
-
case 6:
|
|
939
|
-
_e = [{}];
|
|
940
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
941
|
-
case 7:
|
|
942
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
943
|
-
return [3, 11];
|
|
944
|
-
case 8:
|
|
945
|
-
_f = [{}];
|
|
946
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
947
|
-
case 9:
|
|
948
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
949
|
-
return [3, 11];
|
|
928
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
929
|
+
case 3: throw _d.sent();
|
|
930
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
931
|
+
case 5: throw _d.sent();
|
|
932
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
933
|
+
case 7: throw _d.sent();
|
|
934
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
935
|
+
case 9: throw _d.sent();
|
|
950
936
|
case 10:
|
|
951
937
|
parsedBody = parsedOutput.body;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
response
|
|
958
|
-
delete response.Message;
|
|
959
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
938
|
+
response = new __BaseException({
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
940
|
+
$fault: "client",
|
|
941
|
+
$metadata: deserializeMetadata(output),
|
|
942
|
+
});
|
|
943
|
+
throw __decorateServiceException(response, parsedBody);
|
|
960
944
|
}
|
|
961
945
|
});
|
|
962
946
|
}); };
|
|
@@ -1041,16 +1025,16 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
1041
1025
|
});
|
|
1042
1026
|
}); };
|
|
1043
1027
|
var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1044
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1045
|
-
var
|
|
1046
|
-
return __generator(this, function (
|
|
1047
|
-
switch (
|
|
1028
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1029
|
+
var _c;
|
|
1030
|
+
return __generator(this, function (_d) {
|
|
1031
|
+
switch (_d.label) {
|
|
1048
1032
|
case 0:
|
|
1049
1033
|
_a = [__assign({}, output)];
|
|
1050
|
-
|
|
1034
|
+
_c = {};
|
|
1051
1035
|
return [4, parseBody(output.body, context)];
|
|
1052
1036
|
case 1:
|
|
1053
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1037
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1054
1038
|
errorCode = "UnknownError";
|
|
1055
1039
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
1040
|
_b = errorCode;
|
|
@@ -1063,34 +1047,20 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
|
|
|
1063
1047
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1064
1048
|
}
|
|
1065
1049
|
return [3, 8];
|
|
1066
|
-
case 2:
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
case
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
case 4:
|
|
1073
|
-
_d = [{}];
|
|
1074
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1075
|
-
case 5:
|
|
1076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1077
|
-
return [3, 9];
|
|
1078
|
-
case 6:
|
|
1079
|
-
_e = [{}];
|
|
1080
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1081
|
-
case 7:
|
|
1082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1083
|
-
return [3, 9];
|
|
1050
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1051
|
+
case 3: throw _d.sent();
|
|
1052
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1053
|
+
case 5: throw _d.sent();
|
|
1054
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1055
|
+
case 7: throw _d.sent();
|
|
1084
1056
|
case 8:
|
|
1085
1057
|
parsedBody = parsedOutput.body;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
response
|
|
1092
|
-
delete response.Message;
|
|
1093
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1058
|
+
response = new __BaseException({
|
|
1059
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1060
|
+
$fault: "client",
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
});
|
|
1063
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1094
1064
|
}
|
|
1095
1065
|
});
|
|
1096
1066
|
}); };
|
|
@@ -1113,16 +1083,16 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1113
1083
|
});
|
|
1114
1084
|
}); };
|
|
1115
1085
|
var deserializeAws_restJson1DeleteJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1116
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1117
|
-
var
|
|
1118
|
-
return __generator(this, function (
|
|
1119
|
-
switch (
|
|
1086
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1087
|
+
var _c;
|
|
1088
|
+
return __generator(this, function (_d) {
|
|
1089
|
+
switch (_d.label) {
|
|
1120
1090
|
case 0:
|
|
1121
1091
|
_a = [__assign({}, output)];
|
|
1122
|
-
|
|
1092
|
+
_c = {};
|
|
1123
1093
|
return [4, parseBody(output.body, context)];
|
|
1124
1094
|
case 1:
|
|
1125
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1095
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1126
1096
|
errorCode = "UnknownError";
|
|
1127
1097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
1098
|
_b = errorCode;
|
|
@@ -1135,34 +1105,20 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1135
1105
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
1136
1106
|
}
|
|
1137
1107
|
return [3, 8];
|
|
1138
|
-
case 2:
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
case
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
case 4:
|
|
1145
|
-
_d = [{}];
|
|
1146
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1147
|
-
case 5:
|
|
1148
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3, 9];
|
|
1150
|
-
case 6:
|
|
1151
|
-
_e = [{}];
|
|
1152
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1153
|
-
case 7:
|
|
1154
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3, 9];
|
|
1108
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1109
|
+
case 3: throw _d.sent();
|
|
1110
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1111
|
+
case 5: throw _d.sent();
|
|
1112
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1113
|
+
case 7: throw _d.sent();
|
|
1156
1114
|
case 8:
|
|
1157
1115
|
parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
response
|
|
1164
|
-
delete response.Message;
|
|
1165
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1116
|
+
response = new __BaseException({
|
|
1117
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1118
|
+
$fault: "client",
|
|
1119
|
+
$metadata: deserializeMetadata(output),
|
|
1120
|
+
});
|
|
1121
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1166
1122
|
}
|
|
1167
1123
|
});
|
|
1168
1124
|
}); };
|
|
@@ -1185,16 +1141,16 @@ export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
|
|
|
1185
1141
|
});
|
|
1186
1142
|
}); };
|
|
1187
1143
|
var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1189
|
-
var
|
|
1190
|
-
return __generator(this, function (
|
|
1191
|
-
switch (
|
|
1144
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1145
|
+
var _c;
|
|
1146
|
+
return __generator(this, function (_d) {
|
|
1147
|
+
switch (_d.label) {
|
|
1192
1148
|
case 0:
|
|
1193
1149
|
_a = [__assign({}, output)];
|
|
1194
|
-
|
|
1150
|
+
_c = {};
|
|
1195
1151
|
return [4, parseBody(output.body, context)];
|
|
1196
1152
|
case 1:
|
|
1197
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1153
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1198
1154
|
errorCode = "UnknownError";
|
|
1199
1155
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1156
|
_b = errorCode;
|
|
@@ -1207,34 +1163,20 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
|
|
|
1207
1163
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
1208
1164
|
}
|
|
1209
1165
|
return [3, 8];
|
|
1210
|
-
case 2:
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
case
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
case 4:
|
|
1217
|
-
_d = [{}];
|
|
1218
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1219
|
-
case 5:
|
|
1220
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1221
|
-
return [3, 9];
|
|
1222
|
-
case 6:
|
|
1223
|
-
_e = [{}];
|
|
1224
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1225
|
-
case 7:
|
|
1226
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1227
|
-
return [3, 9];
|
|
1166
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1167
|
+
case 3: throw _d.sent();
|
|
1168
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1169
|
+
case 5: throw _d.sent();
|
|
1170
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1171
|
+
case 7: throw _d.sent();
|
|
1228
1172
|
case 8:
|
|
1229
1173
|
parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
response
|
|
1236
|
-
delete response.Message;
|
|
1237
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1174
|
+
response = new __BaseException({
|
|
1175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1176
|
+
$fault: "client",
|
|
1177
|
+
$metadata: deserializeMetadata(output),
|
|
1178
|
+
});
|
|
1179
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1238
1180
|
}
|
|
1239
1181
|
});
|
|
1240
1182
|
}); };
|
|
@@ -1257,16 +1199,16 @@ export var deserializeAws_restJson1DeleteSourceServerCommand = function (output,
|
|
|
1257
1199
|
});
|
|
1258
1200
|
}); };
|
|
1259
1201
|
var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1260
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1261
|
-
var
|
|
1262
|
-
return __generator(this, function (
|
|
1263
|
-
switch (
|
|
1202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1203
|
+
var _c;
|
|
1204
|
+
return __generator(this, function (_d) {
|
|
1205
|
+
switch (_d.label) {
|
|
1264
1206
|
case 0:
|
|
1265
1207
|
_a = [__assign({}, output)];
|
|
1266
|
-
|
|
1208
|
+
_c = {};
|
|
1267
1209
|
return [4, parseBody(output.body, context)];
|
|
1268
1210
|
case 1:
|
|
1269
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1211
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1270
1212
|
errorCode = "UnknownError";
|
|
1271
1213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
1214
|
_b = errorCode;
|
|
@@ -1279,34 +1221,20 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
|
|
|
1279
1221
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
1280
1222
|
}
|
|
1281
1223
|
return [3, 8];
|
|
1282
|
-
case 2:
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
case
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
case 4:
|
|
1289
|
-
_d = [{}];
|
|
1290
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1291
|
-
case 5:
|
|
1292
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1293
|
-
return [3, 9];
|
|
1294
|
-
case 6:
|
|
1295
|
-
_e = [{}];
|
|
1296
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1297
|
-
case 7:
|
|
1298
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1299
|
-
return [3, 9];
|
|
1224
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1225
|
+
case 3: throw _d.sent();
|
|
1226
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 5: throw _d.sent();
|
|
1228
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 7: throw _d.sent();
|
|
1300
1230
|
case 8:
|
|
1301
1231
|
parsedBody = parsedOutput.body;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
response
|
|
1308
|
-
delete response.Message;
|
|
1309
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1232
|
+
response = new __BaseException({
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1234
|
+
$fault: "client",
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
});
|
|
1237
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1310
1238
|
}
|
|
1311
1239
|
});
|
|
1312
1240
|
}); };
|
|
@@ -1329,16 +1257,16 @@ export var deserializeAws_restJson1DeleteVcenterClientCommand = function (output
|
|
|
1329
1257
|
});
|
|
1330
1258
|
}); };
|
|
1331
1259
|
var deserializeAws_restJson1DeleteVcenterClientCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1332
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1333
|
-
var
|
|
1334
|
-
return __generator(this, function (
|
|
1335
|
-
switch (
|
|
1260
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1261
|
+
var _c;
|
|
1262
|
+
return __generator(this, function (_d) {
|
|
1263
|
+
switch (_d.label) {
|
|
1336
1264
|
case 0:
|
|
1337
1265
|
_a = [__assign({}, output)];
|
|
1338
|
-
|
|
1266
|
+
_c = {};
|
|
1339
1267
|
return [4, parseBody(output.body, context)];
|
|
1340
1268
|
case 1:
|
|
1341
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1269
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1342
1270
|
errorCode = "UnknownError";
|
|
1343
1271
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1272
|
_b = errorCode;
|
|
@@ -1351,34 +1279,20 @@ var deserializeAws_restJson1DeleteVcenterClientCommandError = function (output,
|
|
|
1351
1279
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1352
1280
|
}
|
|
1353
1281
|
return [3, 8];
|
|
1354
|
-
case 2:
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
case
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
case 4:
|
|
1361
|
-
_d = [{}];
|
|
1362
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1363
|
-
case 5:
|
|
1364
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1365
|
-
return [3, 9];
|
|
1366
|
-
case 6:
|
|
1367
|
-
_e = [{}];
|
|
1368
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1369
|
-
case 7:
|
|
1370
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1371
|
-
return [3, 9];
|
|
1282
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1283
|
+
case 3: throw _d.sent();
|
|
1284
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1285
|
+
case 5: throw _d.sent();
|
|
1286
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1287
|
+
case 7: throw _d.sent();
|
|
1372
1288
|
case 8:
|
|
1373
1289
|
parsedBody = parsedOutput.body;
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
response
|
|
1380
|
-
delete response.Message;
|
|
1381
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1290
|
+
response = new __BaseException({
|
|
1291
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1292
|
+
$fault: "client",
|
|
1293
|
+
$metadata: deserializeMetadata(output),
|
|
1294
|
+
});
|
|
1295
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1382
1296
|
}
|
|
1383
1297
|
});
|
|
1384
1298
|
}); };
|
|
@@ -1411,16 +1325,16 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
|
|
|
1411
1325
|
});
|
|
1412
1326
|
}); };
|
|
1413
1327
|
var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1414
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1415
|
-
var
|
|
1416
|
-
return __generator(this, function (
|
|
1417
|
-
switch (
|
|
1328
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1329
|
+
var _c;
|
|
1330
|
+
return __generator(this, function (_d) {
|
|
1331
|
+
switch (_d.label) {
|
|
1418
1332
|
case 0:
|
|
1419
1333
|
_a = [__assign({}, output)];
|
|
1420
|
-
|
|
1334
|
+
_c = {};
|
|
1421
1335
|
return [4, parseBody(output.body, context)];
|
|
1422
1336
|
case 1:
|
|
1423
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1337
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1424
1338
|
errorCode = "UnknownError";
|
|
1425
1339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
1340
|
_b = errorCode;
|
|
@@ -1431,28 +1345,18 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
|
|
|
1431
1345
|
case "com.amazonaws.mgn#ValidationException": return [3, 4];
|
|
1432
1346
|
}
|
|
1433
1347
|
return [3, 6];
|
|
1434
|
-
case 2:
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
case
|
|
1438
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1439
|
-
return [3, 7];
|
|
1440
|
-
case 4:
|
|
1441
|
-
_d = [{}];
|
|
1442
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1443
|
-
case 5:
|
|
1444
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1445
|
-
return [3, 7];
|
|
1348
|
+
case 2: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1349
|
+
case 3: throw _d.sent();
|
|
1350
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1351
|
+
case 5: throw _d.sent();
|
|
1446
1352
|
case 6:
|
|
1447
1353
|
parsedBody = parsedOutput.body;
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
response
|
|
1454
|
-
delete response.Message;
|
|
1455
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1354
|
+
response = new __BaseException({
|
|
1355
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1356
|
+
$fault: "client",
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
});
|
|
1359
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1456
1360
|
}
|
|
1457
1361
|
});
|
|
1458
1362
|
}); };
|
|
@@ -1485,16 +1389,16 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1485
1389
|
});
|
|
1486
1390
|
}); };
|
|
1487
1391
|
var deserializeAws_restJson1DescribeJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1488
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1489
|
-
var
|
|
1490
|
-
return __generator(this, function (
|
|
1491
|
-
switch (
|
|
1392
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1393
|
+
var _c;
|
|
1394
|
+
return __generator(this, function (_d) {
|
|
1395
|
+
switch (_d.label) {
|
|
1492
1396
|
case 0:
|
|
1493
1397
|
_a = [__assign({}, output)];
|
|
1494
|
-
|
|
1398
|
+
_c = {};
|
|
1495
1399
|
return [4, parseBody(output.body, context)];
|
|
1496
1400
|
case 1:
|
|
1497
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1401
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1498
1402
|
errorCode = "UnknownError";
|
|
1499
1403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1404
|
_b = errorCode;
|
|
@@ -1505,28 +1409,18 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1505
1409
|
case "com.amazonaws.mgn#ValidationException": return [3, 4];
|
|
1506
1410
|
}
|
|
1507
1411
|
return [3, 6];
|
|
1508
|
-
case 2:
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
case
|
|
1512
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1513
|
-
return [3, 7];
|
|
1514
|
-
case 4:
|
|
1515
|
-
_d = [{}];
|
|
1516
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1517
|
-
case 5:
|
|
1518
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1519
|
-
return [3, 7];
|
|
1412
|
+
case 2: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1413
|
+
case 3: throw _d.sent();
|
|
1414
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1415
|
+
case 5: throw _d.sent();
|
|
1520
1416
|
case 6:
|
|
1521
1417
|
parsedBody = parsedOutput.body;
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
response
|
|
1528
|
-
delete response.Message;
|
|
1529
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1418
|
+
response = new __BaseException({
|
|
1419
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
$fault: "client",
|
|
1421
|
+
$metadata: deserializeMetadata(output),
|
|
1422
|
+
});
|
|
1423
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1530
1424
|
}
|
|
1531
1425
|
});
|
|
1532
1426
|
}); };
|
|
@@ -1559,16 +1453,16 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
1559
1453
|
});
|
|
1560
1454
|
}); };
|
|
1561
1455
|
var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = 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 (
|
|
1456
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1457
|
+
var _c;
|
|
1458
|
+
return __generator(this, function (_d) {
|
|
1459
|
+
switch (_d.label) {
|
|
1566
1460
|
case 0:
|
|
1567
1461
|
_a = [__assign({}, output)];
|
|
1568
|
-
|
|
1462
|
+
_c = {};
|
|
1569
1463
|
return [4, parseBody(output.body, context)];
|
|
1570
1464
|
case 1:
|
|
1571
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1465
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1572
1466
|
errorCode = "UnknownError";
|
|
1573
1467
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1468
|
_b = errorCode;
|
|
@@ -1581,34 +1475,20 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
|
|
|
1581
1475
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1582
1476
|
}
|
|
1583
1477
|
return [3, 8];
|
|
1584
|
-
case 2:
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
case
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
case 4:
|
|
1591
|
-
_d = [{}];
|
|
1592
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1593
|
-
case 5:
|
|
1594
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1595
|
-
return [3, 9];
|
|
1596
|
-
case 6:
|
|
1597
|
-
_e = [{}];
|
|
1598
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1599
|
-
case 7:
|
|
1600
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1601
|
-
return [3, 9];
|
|
1478
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1479
|
+
case 3: throw _d.sent();
|
|
1480
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1481
|
+
case 5: throw _d.sent();
|
|
1482
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1483
|
+
case 7: throw _d.sent();
|
|
1602
1484
|
case 8:
|
|
1603
1485
|
parsedBody = parsedOutput.body;
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
response
|
|
1610
|
-
delete response.Message;
|
|
1611
|
-
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);
|
|
1612
1492
|
}
|
|
1613
1493
|
});
|
|
1614
1494
|
}); };
|
|
@@ -1641,16 +1521,16 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
|
|
|
1641
1521
|
});
|
|
1642
1522
|
}); };
|
|
1643
1523
|
var deserializeAws_restJson1DescribeSourceServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1644
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1645
|
-
var
|
|
1646
|
-
return __generator(this, function (
|
|
1647
|
-
switch (
|
|
1524
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1525
|
+
var _c;
|
|
1526
|
+
return __generator(this, function (_d) {
|
|
1527
|
+
switch (_d.label) {
|
|
1648
1528
|
case 0:
|
|
1649
1529
|
_a = [__assign({}, output)];
|
|
1650
|
-
|
|
1530
|
+
_c = {};
|
|
1651
1531
|
return [4, parseBody(output.body, context)];
|
|
1652
1532
|
case 1:
|
|
1653
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1533
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1654
1534
|
errorCode = "UnknownError";
|
|
1655
1535
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1536
|
_b = errorCode;
|
|
@@ -1661,28 +1541,18 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
|
|
|
1661
1541
|
case "com.amazonaws.mgn#ValidationException": return [3, 4];
|
|
1662
1542
|
}
|
|
1663
1543
|
return [3, 6];
|
|
1664
|
-
case 2:
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
case
|
|
1668
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1669
|
-
return [3, 7];
|
|
1670
|
-
case 4:
|
|
1671
|
-
_d = [{}];
|
|
1672
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1673
|
-
case 5:
|
|
1674
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1675
|
-
return [3, 7];
|
|
1544
|
+
case 2: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1545
|
+
case 3: throw _d.sent();
|
|
1546
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1547
|
+
case 5: throw _d.sent();
|
|
1676
1548
|
case 6:
|
|
1677
1549
|
parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
response
|
|
1684
|
-
delete response.Message;
|
|
1685
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1550
|
+
response = new __BaseException({
|
|
1551
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1552
|
+
$fault: "client",
|
|
1553
|
+
$metadata: deserializeMetadata(output),
|
|
1554
|
+
});
|
|
1555
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1686
1556
|
}
|
|
1687
1557
|
});
|
|
1688
1558
|
}); };
|
|
@@ -1715,16 +1585,16 @@ export var deserializeAws_restJson1DescribeVcenterClientsCommand = function (out
|
|
|
1715
1585
|
});
|
|
1716
1586
|
}); };
|
|
1717
1587
|
var deserializeAws_restJson1DescribeVcenterClientsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1718
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1719
|
-
var
|
|
1720
|
-
return __generator(this, function (
|
|
1721
|
-
switch (
|
|
1588
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1589
|
+
var _c;
|
|
1590
|
+
return __generator(this, function (_d) {
|
|
1591
|
+
switch (_d.label) {
|
|
1722
1592
|
case 0:
|
|
1723
1593
|
_a = [__assign({}, output)];
|
|
1724
|
-
|
|
1594
|
+
_c = {};
|
|
1725
1595
|
return [4, parseBody(output.body, context)];
|
|
1726
1596
|
case 1:
|
|
1727
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1597
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1728
1598
|
errorCode = "UnknownError";
|
|
1729
1599
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
1600
|
_b = errorCode;
|
|
@@ -1737,34 +1607,20 @@ var deserializeAws_restJson1DescribeVcenterClientsCommandError = function (outpu
|
|
|
1737
1607
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1738
1608
|
}
|
|
1739
1609
|
return [3, 8];
|
|
1740
|
-
case 2:
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
case
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
case 4:
|
|
1747
|
-
_d = [{}];
|
|
1748
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1749
|
-
case 5:
|
|
1750
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1751
|
-
return [3, 9];
|
|
1752
|
-
case 6:
|
|
1753
|
-
_e = [{}];
|
|
1754
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1755
|
-
case 7:
|
|
1756
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1757
|
-
return [3, 9];
|
|
1610
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1611
|
+
case 3: throw _d.sent();
|
|
1612
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1613
|
+
case 5: throw _d.sent();
|
|
1614
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1615
|
+
case 7: throw _d.sent();
|
|
1758
1616
|
case 8:
|
|
1759
1617
|
parsedBody = parsedOutput.body;
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
response
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1618
|
+
response = new __BaseException({
|
|
1619
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1620
|
+
$fault: "client",
|
|
1621
|
+
$metadata: deserializeMetadata(output),
|
|
1622
|
+
});
|
|
1623
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1768
1624
|
}
|
|
1769
1625
|
});
|
|
1770
1626
|
}); };
|
|
@@ -1829,16 +1685,16 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
|
|
|
1829
1685
|
});
|
|
1830
1686
|
}); };
|
|
1831
1687
|
var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1832
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1833
|
-
var
|
|
1834
|
-
return __generator(this, function (
|
|
1835
|
-
switch (
|
|
1688
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1689
|
+
var _c;
|
|
1690
|
+
return __generator(this, function (_d) {
|
|
1691
|
+
switch (_d.label) {
|
|
1836
1692
|
case 0:
|
|
1837
1693
|
_a = [__assign({}, output)];
|
|
1838
|
-
|
|
1694
|
+
_c = {};
|
|
1839
1695
|
return [4, parseBody(output.body, context)];
|
|
1840
1696
|
case 1:
|
|
1841
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1697
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1842
1698
|
errorCode = "UnknownError";
|
|
1843
1699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
1700
|
_b = errorCode;
|
|
@@ -1851,34 +1707,20 @@ var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output
|
|
|
1851
1707
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
1852
1708
|
}
|
|
1853
1709
|
return [3, 8];
|
|
1854
|
-
case 2:
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
case
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
case 4:
|
|
1861
|
-
_d = [{}];
|
|
1862
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1863
|
-
case 5:
|
|
1864
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1865
|
-
return [3, 9];
|
|
1866
|
-
case 6:
|
|
1867
|
-
_e = [{}];
|
|
1868
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1869
|
-
case 7:
|
|
1870
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1871
|
-
return [3, 9];
|
|
1710
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1711
|
+
case 3: throw _d.sent();
|
|
1712
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1713
|
+
case 5: throw _d.sent();
|
|
1714
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1715
|
+
case 7: throw _d.sent();
|
|
1872
1716
|
case 8:
|
|
1873
1717
|
parsedBody = parsedOutput.body;
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
response
|
|
1880
|
-
delete response.Message;
|
|
1881
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1718
|
+
response = new __BaseException({
|
|
1719
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1720
|
+
$fault: "client",
|
|
1721
|
+
$metadata: deserializeMetadata(output),
|
|
1722
|
+
});
|
|
1723
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1882
1724
|
}
|
|
1883
1725
|
});
|
|
1884
1726
|
}); };
|
|
@@ -1943,16 +1785,16 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
|
|
|
1943
1785
|
});
|
|
1944
1786
|
}); };
|
|
1945
1787
|
var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1946
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1947
|
-
var
|
|
1948
|
-
return __generator(this, function (
|
|
1949
|
-
switch (
|
|
1788
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1789
|
+
var _c;
|
|
1790
|
+
return __generator(this, function (_d) {
|
|
1791
|
+
switch (_d.label) {
|
|
1950
1792
|
case 0:
|
|
1951
1793
|
_a = [__assign({}, output)];
|
|
1952
|
-
|
|
1794
|
+
_c = {};
|
|
1953
1795
|
return [4, parseBody(output.body, context)];
|
|
1954
1796
|
case 1:
|
|
1955
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1797
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1956
1798
|
errorCode = "UnknownError";
|
|
1957
1799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1800
|
_b = errorCode;
|
|
@@ -1967,40 +1809,22 @@ var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, cont
|
|
|
1967
1809
|
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
1968
1810
|
}
|
|
1969
1811
|
return [3, 10];
|
|
1970
|
-
case 2:
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
case
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
case 4
|
|
1977
|
-
|
|
1978
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1979
|
-
case 5:
|
|
1980
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1981
|
-
return [3, 11];
|
|
1982
|
-
case 6:
|
|
1983
|
-
_e = [{}];
|
|
1984
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1985
|
-
case 7:
|
|
1986
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3, 11];
|
|
1988
|
-
case 8:
|
|
1989
|
-
_f = [{}];
|
|
1990
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1991
|
-
case 9:
|
|
1992
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3, 11];
|
|
1812
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1813
|
+
case 3: throw _d.sent();
|
|
1814
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1815
|
+
case 5: throw _d.sent();
|
|
1816
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1817
|
+
case 7: throw _d.sent();
|
|
1818
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1819
|
+
case 9: throw _d.sent();
|
|
1994
1820
|
case 10:
|
|
1995
1821
|
parsedBody = parsedOutput.body;
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
response
|
|
2002
|
-
delete response.Message;
|
|
2003
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1822
|
+
response = new __BaseException({
|
|
1823
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1824
|
+
$fault: "client",
|
|
1825
|
+
$metadata: deserializeMetadata(output),
|
|
1826
|
+
});
|
|
1827
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2004
1828
|
}
|
|
2005
1829
|
});
|
|
2006
1830
|
}); };
|
|
@@ -2014,6 +1838,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2014
1838
|
}
|
|
2015
1839
|
contents = {
|
|
2016
1840
|
$metadata: deserializeMetadata(output),
|
|
1841
|
+
bootMode: undefined,
|
|
2017
1842
|
copyPrivateIp: undefined,
|
|
2018
1843
|
copyTags: undefined,
|
|
2019
1844
|
ec2LaunchTemplateID: undefined,
|
|
@@ -2028,6 +1853,9 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2028
1853
|
return [4, parseBody(output.body, context)];
|
|
2029
1854
|
case 1:
|
|
2030
1855
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1856
|
+
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
1857
|
+
contents.bootMode = __expectString(data.bootMode);
|
|
1858
|
+
}
|
|
2031
1859
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
2032
1860
|
contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
|
|
2033
1861
|
}
|
|
@@ -2057,16 +1885,16 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2057
1885
|
});
|
|
2058
1886
|
}); };
|
|
2059
1887
|
var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2060
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2061
|
-
var
|
|
2062
|
-
return __generator(this, function (
|
|
2063
|
-
switch (
|
|
1888
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1889
|
+
var _c;
|
|
1890
|
+
return __generator(this, function (_d) {
|
|
1891
|
+
switch (_d.label) {
|
|
2064
1892
|
case 0:
|
|
2065
1893
|
_a = [__assign({}, output)];
|
|
2066
|
-
|
|
1894
|
+
_c = {};
|
|
2067
1895
|
return [4, parseBody(output.body, context)];
|
|
2068
1896
|
case 1:
|
|
2069
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1897
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2070
1898
|
errorCode = "UnknownError";
|
|
2071
1899
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
1900
|
_b = errorCode;
|
|
@@ -2077,28 +1905,18 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
|
|
|
2077
1905
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
|
|
2078
1906
|
}
|
|
2079
1907
|
return [3, 6];
|
|
2080
|
-
case 2:
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
case
|
|
2084
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2085
|
-
return [3, 7];
|
|
2086
|
-
case 4:
|
|
2087
|
-
_d = [{}];
|
|
2088
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2089
|
-
case 5:
|
|
2090
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2091
|
-
return [3, 7];
|
|
1908
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1909
|
+
case 3: throw _d.sent();
|
|
1910
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1911
|
+
case 5: throw _d.sent();
|
|
2092
1912
|
case 6:
|
|
2093
1913
|
parsedBody = parsedOutput.body;
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
response
|
|
2100
|
-
delete response.Message;
|
|
2101
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1914
|
+
response = new __BaseException({
|
|
1915
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1916
|
+
$fault: "client",
|
|
1917
|
+
$metadata: deserializeMetadata(output),
|
|
1918
|
+
});
|
|
1919
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2102
1920
|
}
|
|
2103
1921
|
});
|
|
2104
1922
|
}); };
|
|
@@ -2183,16 +2001,16 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
|
|
|
2183
2001
|
});
|
|
2184
2002
|
}); };
|
|
2185
2003
|
var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2186
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2187
|
-
var
|
|
2188
|
-
return __generator(this, function (
|
|
2189
|
-
switch (
|
|
2004
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2005
|
+
var _c;
|
|
2006
|
+
return __generator(this, function (_d) {
|
|
2007
|
+
switch (_d.label) {
|
|
2190
2008
|
case 0:
|
|
2191
2009
|
_a = [__assign({}, output)];
|
|
2192
|
-
|
|
2010
|
+
_c = {};
|
|
2193
2011
|
return [4, parseBody(output.body, context)];
|
|
2194
2012
|
case 1:
|
|
2195
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2013
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2196
2014
|
errorCode = "UnknownError";
|
|
2197
2015
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
2016
|
_b = errorCode;
|
|
@@ -2203,28 +2021,18 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
|
|
|
2203
2021
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
|
|
2204
2022
|
}
|
|
2205
2023
|
return [3, 6];
|
|
2206
|
-
case 2:
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
case
|
|
2210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2211
|
-
return [3, 7];
|
|
2212
|
-
case 4:
|
|
2213
|
-
_d = [{}];
|
|
2214
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2215
|
-
case 5:
|
|
2216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2217
|
-
return [3, 7];
|
|
2024
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2025
|
+
case 3: throw _d.sent();
|
|
2026
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2027
|
+
case 5: throw _d.sent();
|
|
2218
2028
|
case 6:
|
|
2219
2029
|
parsedBody = parsedOutput.body;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
response
|
|
2226
|
-
delete response.Message;
|
|
2227
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2030
|
+
response = new __BaseException({
|
|
2031
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2032
|
+
$fault: "client",
|
|
2033
|
+
$metadata: deserializeMetadata(output),
|
|
2034
|
+
});
|
|
2035
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2228
2036
|
}
|
|
2229
2037
|
});
|
|
2230
2038
|
}); };
|
|
@@ -2247,16 +2055,16 @@ export var deserializeAws_restJson1InitializeServiceCommand = function (output,
|
|
|
2247
2055
|
});
|
|
2248
2056
|
}); };
|
|
2249
2057
|
var deserializeAws_restJson1InitializeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2250
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2251
|
-
var
|
|
2252
|
-
return __generator(this, function (
|
|
2253
|
-
switch (
|
|
2058
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2059
|
+
var _c;
|
|
2060
|
+
return __generator(this, function (_d) {
|
|
2061
|
+
switch (_d.label) {
|
|
2254
2062
|
case 0:
|
|
2255
2063
|
_a = [__assign({}, output)];
|
|
2256
|
-
|
|
2064
|
+
_c = {};
|
|
2257
2065
|
return [4, parseBody(output.body, context)];
|
|
2258
2066
|
case 1:
|
|
2259
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2067
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2260
2068
|
errorCode = "UnknownError";
|
|
2261
2069
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
2070
|
_b = errorCode;
|
|
@@ -2267,28 +2075,18 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
|
|
|
2267
2075
|
case "com.amazonaws.mgn#ValidationException": return [3, 4];
|
|
2268
2076
|
}
|
|
2269
2077
|
return [3, 6];
|
|
2270
|
-
case 2:
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
case
|
|
2274
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2275
|
-
return [3, 7];
|
|
2276
|
-
case 4:
|
|
2277
|
-
_d = [{}];
|
|
2278
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2279
|
-
case 5:
|
|
2280
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2281
|
-
return [3, 7];
|
|
2078
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2079
|
+
case 3: throw _d.sent();
|
|
2080
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2081
|
+
case 5: throw _d.sent();
|
|
2282
2082
|
case 6:
|
|
2283
2083
|
parsedBody = parsedOutput.body;
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
response
|
|
2290
|
-
delete response.Message;
|
|
2291
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2084
|
+
response = new __BaseException({
|
|
2085
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2086
|
+
$fault: "client",
|
|
2087
|
+
$metadata: deserializeMetadata(output),
|
|
2088
|
+
});
|
|
2089
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2292
2090
|
}
|
|
2293
2091
|
});
|
|
2294
2092
|
}); };
|
|
@@ -2317,16 +2115,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2317
2115
|
});
|
|
2318
2116
|
}); };
|
|
2319
2117
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2320
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2321
|
-
var
|
|
2322
|
-
return __generator(this, function (
|
|
2323
|
-
switch (
|
|
2118
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2119
|
+
var _c;
|
|
2120
|
+
return __generator(this, function (_d) {
|
|
2121
|
+
switch (_d.label) {
|
|
2324
2122
|
case 0:
|
|
2325
2123
|
_a = [__assign({}, output)];
|
|
2326
|
-
|
|
2124
|
+
_c = {};
|
|
2327
2125
|
return [4, parseBody(output.body, context)];
|
|
2328
2126
|
case 1:
|
|
2329
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2127
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2330
2128
|
errorCode = "UnknownError";
|
|
2331
2129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2130
|
_b = errorCode;
|
|
@@ -2343,46 +2141,24 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2343
2141
|
case "com.amazonaws.mgn#ValidationException": return [3, 10];
|
|
2344
2142
|
}
|
|
2345
2143
|
return [3, 12];
|
|
2346
|
-
case 2:
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
case
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
case 4
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
case
|
|
2356
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2357
|
-
return [3, 13];
|
|
2358
|
-
case 6:
|
|
2359
|
-
_e = [{}];
|
|
2360
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2361
|
-
case 7:
|
|
2362
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2363
|
-
return [3, 13];
|
|
2364
|
-
case 8:
|
|
2365
|
-
_f = [{}];
|
|
2366
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2367
|
-
case 9:
|
|
2368
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2369
|
-
return [3, 13];
|
|
2370
|
-
case 10:
|
|
2371
|
-
_g = [{}];
|
|
2372
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2373
|
-
case 11:
|
|
2374
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2375
|
-
return [3, 13];
|
|
2144
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2145
|
+
case 3: throw _d.sent();
|
|
2146
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2147
|
+
case 5: throw _d.sent();
|
|
2148
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2149
|
+
case 7: throw _d.sent();
|
|
2150
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2151
|
+
case 9: throw _d.sent();
|
|
2152
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2153
|
+
case 11: throw _d.sent();
|
|
2376
2154
|
case 12:
|
|
2377
2155
|
parsedBody = parsedOutput.body;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
response
|
|
2384
|
-
delete response.Message;
|
|
2385
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2156
|
+
response = new __BaseException({
|
|
2157
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2158
|
+
$fault: "client",
|
|
2159
|
+
$metadata: deserializeMetadata(output),
|
|
2160
|
+
});
|
|
2161
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2386
2162
|
}
|
|
2387
2163
|
});
|
|
2388
2164
|
}); };
|
|
@@ -2447,16 +2223,16 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
|
|
|
2447
2223
|
});
|
|
2448
2224
|
}); };
|
|
2449
2225
|
var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2450
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2451
|
-
var
|
|
2452
|
-
return __generator(this, function (
|
|
2453
|
-
switch (
|
|
2226
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2227
|
+
var _c;
|
|
2228
|
+
return __generator(this, function (_d) {
|
|
2229
|
+
switch (_d.label) {
|
|
2454
2230
|
case 0:
|
|
2455
2231
|
_a = [__assign({}, output)];
|
|
2456
|
-
|
|
2232
|
+
_c = {};
|
|
2457
2233
|
return [4, parseBody(output.body, context)];
|
|
2458
2234
|
case 1:
|
|
2459
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2235
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2460
2236
|
errorCode = "UnknownError";
|
|
2461
2237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
2238
|
_b = errorCode;
|
|
@@ -2469,34 +2245,20 @@ var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, conte
|
|
|
2469
2245
|
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
2470
2246
|
}
|
|
2471
2247
|
return [3, 8];
|
|
2472
|
-
case 2:
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
case
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
case 4:
|
|
2479
|
-
_d = [{}];
|
|
2480
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2481
|
-
case 5:
|
|
2482
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2483
|
-
return [3, 9];
|
|
2484
|
-
case 6:
|
|
2485
|
-
_e = [{}];
|
|
2486
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2487
|
-
case 7:
|
|
2488
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2489
|
-
return [3, 9];
|
|
2248
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2249
|
+
case 3: throw _d.sent();
|
|
2250
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2251
|
+
case 5: throw _d.sent();
|
|
2252
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2253
|
+
case 7: throw _d.sent();
|
|
2490
2254
|
case 8:
|
|
2491
2255
|
parsedBody = parsedOutput.body;
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
response
|
|
2498
|
-
delete response.Message;
|
|
2499
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2256
|
+
response = new __BaseException({
|
|
2257
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2258
|
+
$fault: "client",
|
|
2259
|
+
$metadata: deserializeMetadata(output),
|
|
2260
|
+
});
|
|
2261
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2500
2262
|
}
|
|
2501
2263
|
});
|
|
2502
2264
|
}); };
|
|
@@ -2561,16 +2323,16 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
|
|
|
2561
2323
|
});
|
|
2562
2324
|
}); };
|
|
2563
2325
|
var deserializeAws_restJson1RetryDataReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2564
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2565
|
-
var
|
|
2566
|
-
return __generator(this, function (
|
|
2567
|
-
switch (
|
|
2326
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2327
|
+
var _c;
|
|
2328
|
+
return __generator(this, function (_d) {
|
|
2329
|
+
switch (_d.label) {
|
|
2568
2330
|
case 0:
|
|
2569
2331
|
_a = [__assign({}, output)];
|
|
2570
|
-
|
|
2332
|
+
_c = {};
|
|
2571
2333
|
return [4, parseBody(output.body, context)];
|
|
2572
2334
|
case 1:
|
|
2573
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2335
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2574
2336
|
errorCode = "UnknownError";
|
|
2575
2337
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2338
|
_b = errorCode;
|
|
@@ -2583,34 +2345,20 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
|
|
|
2583
2345
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
2584
2346
|
}
|
|
2585
2347
|
return [3, 8];
|
|
2586
|
-
case 2:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
case
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
case 4:
|
|
2593
|
-
_d = [{}];
|
|
2594
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2595
|
-
case 5:
|
|
2596
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2597
|
-
return [3, 9];
|
|
2598
|
-
case 6:
|
|
2599
|
-
_e = [{}];
|
|
2600
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2601
|
-
case 7:
|
|
2602
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2603
|
-
return [3, 9];
|
|
2348
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2349
|
+
case 3: throw _d.sent();
|
|
2350
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2351
|
+
case 5: throw _d.sent();
|
|
2352
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2353
|
+
case 7: throw _d.sent();
|
|
2604
2354
|
case 8:
|
|
2605
2355
|
parsedBody = parsedOutput.body;
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
response
|
|
2612
|
-
delete response.Message;
|
|
2613
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2356
|
+
response = new __BaseException({
|
|
2357
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2358
|
+
$fault: "client",
|
|
2359
|
+
$metadata: deserializeMetadata(output),
|
|
2360
|
+
});
|
|
2361
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2614
2362
|
}
|
|
2615
2363
|
});
|
|
2616
2364
|
}); };
|
|
@@ -2639,16 +2387,16 @@ export var deserializeAws_restJson1StartCutoverCommand = function (output, conte
|
|
|
2639
2387
|
});
|
|
2640
2388
|
}); };
|
|
2641
2389
|
var deserializeAws_restJson1StartCutoverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2642
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2643
|
-
var
|
|
2644
|
-
return __generator(this, function (
|
|
2645
|
-
switch (
|
|
2390
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2391
|
+
var _c;
|
|
2392
|
+
return __generator(this, function (_d) {
|
|
2393
|
+
switch (_d.label) {
|
|
2646
2394
|
case 0:
|
|
2647
2395
|
_a = [__assign({}, output)];
|
|
2648
|
-
|
|
2396
|
+
_c = {};
|
|
2649
2397
|
return [4, parseBody(output.body, context)];
|
|
2650
2398
|
case 1:
|
|
2651
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2399
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2652
2400
|
errorCode = "UnknownError";
|
|
2653
2401
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
2402
|
_b = errorCode;
|
|
@@ -2661,34 +2409,20 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
|
|
|
2661
2409
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
2662
2410
|
}
|
|
2663
2411
|
return [3, 8];
|
|
2664
|
-
case 2:
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
case
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
case 4:
|
|
2671
|
-
_d = [{}];
|
|
2672
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2673
|
-
case 5:
|
|
2674
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2675
|
-
return [3, 9];
|
|
2676
|
-
case 6:
|
|
2677
|
-
_e = [{}];
|
|
2678
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2679
|
-
case 7:
|
|
2680
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2681
|
-
return [3, 9];
|
|
2412
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2413
|
+
case 3: throw _d.sent();
|
|
2414
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2415
|
+
case 5: throw _d.sent();
|
|
2416
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2417
|
+
case 7: throw _d.sent();
|
|
2682
2418
|
case 8:
|
|
2683
2419
|
parsedBody = parsedOutput.body;
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
response
|
|
2690
|
-
delete response.Message;
|
|
2691
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2420
|
+
response = new __BaseException({
|
|
2421
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2422
|
+
$fault: "client",
|
|
2423
|
+
$metadata: deserializeMetadata(output),
|
|
2424
|
+
});
|
|
2425
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2692
2426
|
}
|
|
2693
2427
|
});
|
|
2694
2428
|
}); };
|
|
@@ -2753,16 +2487,16 @@ export var deserializeAws_restJson1StartReplicationCommand = function (output, c
|
|
|
2753
2487
|
});
|
|
2754
2488
|
}); };
|
|
2755
2489
|
var deserializeAws_restJson1StartReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2756
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2757
|
-
var
|
|
2758
|
-
return __generator(this, function (
|
|
2759
|
-
switch (
|
|
2490
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2491
|
+
var _c;
|
|
2492
|
+
return __generator(this, function (_d) {
|
|
2493
|
+
switch (_d.label) {
|
|
2760
2494
|
case 0:
|
|
2761
2495
|
_a = [__assign({}, output)];
|
|
2762
|
-
|
|
2496
|
+
_c = {};
|
|
2763
2497
|
return [4, parseBody(output.body, context)];
|
|
2764
2498
|
case 1:
|
|
2765
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2499
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2766
2500
|
errorCode = "UnknownError";
|
|
2767
2501
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
2502
|
_b = errorCode;
|
|
@@ -2779,46 +2513,24 @@ var deserializeAws_restJson1StartReplicationCommandError = function (output, con
|
|
|
2779
2513
|
case "com.amazonaws.mgn#ValidationException": return [3, 10];
|
|
2780
2514
|
}
|
|
2781
2515
|
return [3, 12];
|
|
2782
|
-
case 2:
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
case
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
case 4
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
case
|
|
2792
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2793
|
-
return [3, 13];
|
|
2794
|
-
case 6:
|
|
2795
|
-
_e = [{}];
|
|
2796
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2797
|
-
case 7:
|
|
2798
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2799
|
-
return [3, 13];
|
|
2800
|
-
case 8:
|
|
2801
|
-
_f = [{}];
|
|
2802
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2803
|
-
case 9:
|
|
2804
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2805
|
-
return [3, 13];
|
|
2806
|
-
case 10:
|
|
2807
|
-
_g = [{}];
|
|
2808
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2809
|
-
case 11:
|
|
2810
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2811
|
-
return [3, 13];
|
|
2516
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2517
|
+
case 3: throw _d.sent();
|
|
2518
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2519
|
+
case 5: throw _d.sent();
|
|
2520
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2521
|
+
case 7: throw _d.sent();
|
|
2522
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2523
|
+
case 9: throw _d.sent();
|
|
2524
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2525
|
+
case 11: throw _d.sent();
|
|
2812
2526
|
case 12:
|
|
2813
2527
|
parsedBody = parsedOutput.body;
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
response
|
|
2820
|
-
delete response.Message;
|
|
2821
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2528
|
+
response = new __BaseException({
|
|
2529
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2530
|
+
$fault: "client",
|
|
2531
|
+
$metadata: deserializeMetadata(output),
|
|
2532
|
+
});
|
|
2533
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2822
2534
|
}
|
|
2823
2535
|
});
|
|
2824
2536
|
}); };
|
|
@@ -2847,16 +2559,16 @@ export var deserializeAws_restJson1StartTestCommand = function (output, context)
|
|
|
2847
2559
|
});
|
|
2848
2560
|
}); };
|
|
2849
2561
|
var deserializeAws_restJson1StartTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2850
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2851
|
-
var
|
|
2852
|
-
return __generator(this, function (
|
|
2853
|
-
switch (
|
|
2562
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2563
|
+
var _c;
|
|
2564
|
+
return __generator(this, function (_d) {
|
|
2565
|
+
switch (_d.label) {
|
|
2854
2566
|
case 0:
|
|
2855
2567
|
_a = [__assign({}, output)];
|
|
2856
|
-
|
|
2568
|
+
_c = {};
|
|
2857
2569
|
return [4, parseBody(output.body, context)];
|
|
2858
2570
|
case 1:
|
|
2859
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2571
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2860
2572
|
errorCode = "UnknownError";
|
|
2861
2573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2862
2574
|
_b = errorCode;
|
|
@@ -2869,34 +2581,20 @@ var deserializeAws_restJson1StartTestCommandError = function (output, context) {
|
|
|
2869
2581
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
2870
2582
|
}
|
|
2871
2583
|
return [3, 8];
|
|
2872
|
-
case 2:
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
case
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
case 4:
|
|
2879
|
-
_d = [{}];
|
|
2880
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2881
|
-
case 5:
|
|
2882
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2883
|
-
return [3, 9];
|
|
2884
|
-
case 6:
|
|
2885
|
-
_e = [{}];
|
|
2886
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2887
|
-
case 7:
|
|
2888
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2889
|
-
return [3, 9];
|
|
2584
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2585
|
+
case 3: throw _d.sent();
|
|
2586
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2587
|
+
case 5: throw _d.sent();
|
|
2588
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2589
|
+
case 7: throw _d.sent();
|
|
2890
2590
|
case 8:
|
|
2891
2591
|
parsedBody = parsedOutput.body;
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
response
|
|
2898
|
-
delete response.Message;
|
|
2899
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2592
|
+
response = new __BaseException({
|
|
2593
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2594
|
+
$fault: "client",
|
|
2595
|
+
$metadata: deserializeMetadata(output),
|
|
2596
|
+
});
|
|
2597
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2900
2598
|
}
|
|
2901
2599
|
});
|
|
2902
2600
|
}); };
|
|
@@ -2919,16 +2617,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2919
2617
|
});
|
|
2920
2618
|
}); };
|
|
2921
2619
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2922
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2923
|
-
var
|
|
2924
|
-
return __generator(this, function (
|
|
2925
|
-
switch (
|
|
2620
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2621
|
+
var _c;
|
|
2622
|
+
return __generator(this, function (_d) {
|
|
2623
|
+
switch (_d.label) {
|
|
2926
2624
|
case 0:
|
|
2927
2625
|
_a = [__assign({}, output)];
|
|
2928
|
-
|
|
2626
|
+
_c = {};
|
|
2929
2627
|
return [4, parseBody(output.body, context)];
|
|
2930
2628
|
case 1:
|
|
2931
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2629
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2932
2630
|
errorCode = "UnknownError";
|
|
2933
2631
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
2632
|
_b = errorCode;
|
|
@@ -2945,46 +2643,24 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2945
2643
|
case "com.amazonaws.mgn#ValidationException": return [3, 10];
|
|
2946
2644
|
}
|
|
2947
2645
|
return [3, 12];
|
|
2948
|
-
case 2:
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
case
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
case 4
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
case
|
|
2958
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2959
|
-
return [3, 13];
|
|
2960
|
-
case 6:
|
|
2961
|
-
_e = [{}];
|
|
2962
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2963
|
-
case 7:
|
|
2964
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2965
|
-
return [3, 13];
|
|
2966
|
-
case 8:
|
|
2967
|
-
_f = [{}];
|
|
2968
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2969
|
-
case 9:
|
|
2970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2971
|
-
return [3, 13];
|
|
2972
|
-
case 10:
|
|
2973
|
-
_g = [{}];
|
|
2974
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2975
|
-
case 11:
|
|
2976
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2977
|
-
return [3, 13];
|
|
2646
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2647
|
+
case 3: throw _d.sent();
|
|
2648
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2649
|
+
case 5: throw _d.sent();
|
|
2650
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2651
|
+
case 7: throw _d.sent();
|
|
2652
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2653
|
+
case 9: throw _d.sent();
|
|
2654
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2655
|
+
case 11: throw _d.sent();
|
|
2978
2656
|
case 12:
|
|
2979
2657
|
parsedBody = parsedOutput.body;
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
response
|
|
2986
|
-
delete response.Message;
|
|
2987
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2658
|
+
response = new __BaseException({
|
|
2659
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2660
|
+
$fault: "client",
|
|
2661
|
+
$metadata: deserializeMetadata(output),
|
|
2662
|
+
});
|
|
2663
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2988
2664
|
}
|
|
2989
2665
|
});
|
|
2990
2666
|
}); };
|
|
@@ -3013,16 +2689,16 @@ export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (o
|
|
|
3013
2689
|
});
|
|
3014
2690
|
}); };
|
|
3015
2691
|
var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3016
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3017
|
-
var
|
|
3018
|
-
return __generator(this, function (
|
|
3019
|
-
switch (
|
|
2692
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2693
|
+
var _c;
|
|
2694
|
+
return __generator(this, function (_d) {
|
|
2695
|
+
switch (_d.label) {
|
|
3020
2696
|
case 0:
|
|
3021
2697
|
_a = [__assign({}, output)];
|
|
3022
|
-
|
|
2698
|
+
_c = {};
|
|
3023
2699
|
return [4, parseBody(output.body, context)];
|
|
3024
2700
|
case 1:
|
|
3025
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2701
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3026
2702
|
errorCode = "UnknownError";
|
|
3027
2703
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
2704
|
_b = errorCode;
|
|
@@ -3035,34 +2711,20 @@ var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (out
|
|
|
3035
2711
|
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
3036
2712
|
}
|
|
3037
2713
|
return [3, 8];
|
|
3038
|
-
case 2:
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
case
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
case 4:
|
|
3045
|
-
_d = [{}];
|
|
3046
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3047
|
-
case 5:
|
|
3048
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3049
|
-
return [3, 9];
|
|
3050
|
-
case 6:
|
|
3051
|
-
_e = [{}];
|
|
3052
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3053
|
-
case 7:
|
|
3054
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3055
|
-
return [3, 9];
|
|
2714
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2715
|
+
case 3: throw _d.sent();
|
|
2716
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2717
|
+
case 5: throw _d.sent();
|
|
2718
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2719
|
+
case 7: throw _d.sent();
|
|
3056
2720
|
case 8:
|
|
3057
2721
|
parsedBody = parsedOutput.body;
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
response
|
|
3064
|
-
delete response.Message;
|
|
3065
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2722
|
+
response = new __BaseException({
|
|
2723
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2724
|
+
$fault: "client",
|
|
2725
|
+
$metadata: deserializeMetadata(output),
|
|
2726
|
+
});
|
|
2727
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3066
2728
|
}
|
|
3067
2729
|
});
|
|
3068
2730
|
}); };
|
|
@@ -3085,16 +2747,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3085
2747
|
});
|
|
3086
2748
|
}); };
|
|
3087
2749
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3088
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3089
|
-
var
|
|
3090
|
-
return __generator(this, function (
|
|
3091
|
-
switch (
|
|
2750
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2751
|
+
var _c;
|
|
2752
|
+
return __generator(this, function (_d) {
|
|
2753
|
+
switch (_d.label) {
|
|
3092
2754
|
case 0:
|
|
3093
2755
|
_a = [__assign({}, output)];
|
|
3094
|
-
|
|
2756
|
+
_c = {};
|
|
3095
2757
|
return [4, parseBody(output.body, context)];
|
|
3096
2758
|
case 1:
|
|
3097
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2759
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3098
2760
|
errorCode = "UnknownError";
|
|
3099
2761
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
2762
|
_b = errorCode;
|
|
@@ -3111,46 +2773,24 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3111
2773
|
case "com.amazonaws.mgn#ValidationException": return [3, 10];
|
|
3112
2774
|
}
|
|
3113
2775
|
return [3, 12];
|
|
3114
|
-
case 2:
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
case
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
case 4
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
case
|
|
3124
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3125
|
-
return [3, 13];
|
|
3126
|
-
case 6:
|
|
3127
|
-
_e = [{}];
|
|
3128
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3129
|
-
case 7:
|
|
3130
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3131
|
-
return [3, 13];
|
|
3132
|
-
case 8:
|
|
3133
|
-
_f = [{}];
|
|
3134
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3135
|
-
case 9:
|
|
3136
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3137
|
-
return [3, 13];
|
|
3138
|
-
case 10:
|
|
3139
|
-
_g = [{}];
|
|
3140
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3141
|
-
case 11:
|
|
3142
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3143
|
-
return [3, 13];
|
|
2776
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2777
|
+
case 3: throw _d.sent();
|
|
2778
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2779
|
+
case 5: throw _d.sent();
|
|
2780
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2781
|
+
case 7: throw _d.sent();
|
|
2782
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2783
|
+
case 9: throw _d.sent();
|
|
2784
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2785
|
+
case 11: throw _d.sent();
|
|
3144
2786
|
case 12:
|
|
3145
2787
|
parsedBody = parsedOutput.body;
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
response
|
|
3152
|
-
delete response.Message;
|
|
3153
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2788
|
+
response = new __BaseException({
|
|
2789
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2790
|
+
$fault: "client",
|
|
2791
|
+
$metadata: deserializeMetadata(output),
|
|
2792
|
+
});
|
|
2793
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3154
2794
|
}
|
|
3155
2795
|
});
|
|
3156
2796
|
}); };
|
|
@@ -3164,6 +2804,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3164
2804
|
}
|
|
3165
2805
|
contents = {
|
|
3166
2806
|
$metadata: deserializeMetadata(output),
|
|
2807
|
+
bootMode: undefined,
|
|
3167
2808
|
copyPrivateIp: undefined,
|
|
3168
2809
|
copyTags: undefined,
|
|
3169
2810
|
ec2LaunchTemplateID: undefined,
|
|
@@ -3178,6 +2819,9 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3178
2819
|
return [4, parseBody(output.body, context)];
|
|
3179
2820
|
case 1:
|
|
3180
2821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2822
|
+
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
2823
|
+
contents.bootMode = __expectString(data.bootMode);
|
|
2824
|
+
}
|
|
3181
2825
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
3182
2826
|
contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
|
|
3183
2827
|
}
|
|
@@ -3207,16 +2851,16 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3207
2851
|
});
|
|
3208
2852
|
}); };
|
|
3209
2853
|
var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3210
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3211
|
-
var
|
|
3212
|
-
return __generator(this, function (
|
|
3213
|
-
switch (
|
|
2854
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2855
|
+
var _c;
|
|
2856
|
+
return __generator(this, function (_d) {
|
|
2857
|
+
switch (_d.label) {
|
|
3214
2858
|
case 0:
|
|
3215
2859
|
_a = [__assign({}, output)];
|
|
3216
|
-
|
|
2860
|
+
_c = {};
|
|
3217
2861
|
return [4, parseBody(output.body, context)];
|
|
3218
2862
|
case 1:
|
|
3219
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2863
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3220
2864
|
errorCode = "UnknownError";
|
|
3221
2865
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3222
2866
|
_b = errorCode;
|
|
@@ -3231,40 +2875,22 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
3231
2875
|
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
3232
2876
|
}
|
|
3233
2877
|
return [3, 10];
|
|
3234
|
-
case 2:
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
case
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
case 4
|
|
3241
|
-
|
|
3242
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3243
|
-
case 5:
|
|
3244
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3245
|
-
return [3, 11];
|
|
3246
|
-
case 6:
|
|
3247
|
-
_e = [{}];
|
|
3248
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3249
|
-
case 7:
|
|
3250
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3251
|
-
return [3, 11];
|
|
3252
|
-
case 8:
|
|
3253
|
-
_f = [{}];
|
|
3254
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3255
|
-
case 9:
|
|
3256
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3257
|
-
return [3, 11];
|
|
2878
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2879
|
+
case 3: throw _d.sent();
|
|
2880
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2881
|
+
case 5: throw _d.sent();
|
|
2882
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
2883
|
+
case 7: throw _d.sent();
|
|
2884
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2885
|
+
case 9: throw _d.sent();
|
|
3258
2886
|
case 10:
|
|
3259
2887
|
parsedBody = parsedOutput.body;
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
response
|
|
3266
|
-
delete response.Message;
|
|
3267
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2888
|
+
response = new __BaseException({
|
|
2889
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2890
|
+
$fault: "client",
|
|
2891
|
+
$metadata: deserializeMetadata(output),
|
|
2892
|
+
});
|
|
2893
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3268
2894
|
}
|
|
3269
2895
|
});
|
|
3270
2896
|
}); };
|
|
@@ -3349,16 +2975,16 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
|
|
|
3349
2975
|
});
|
|
3350
2976
|
}); };
|
|
3351
2977
|
var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3352
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3353
|
-
var
|
|
3354
|
-
return __generator(this, function (
|
|
3355
|
-
switch (
|
|
2978
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2979
|
+
var _c;
|
|
2980
|
+
return __generator(this, function (_d) {
|
|
2981
|
+
switch (_d.label) {
|
|
3356
2982
|
case 0:
|
|
3357
2983
|
_a = [__assign({}, output)];
|
|
3358
|
-
|
|
2984
|
+
_c = {};
|
|
3359
2985
|
return [4, parseBody(output.body, context)];
|
|
3360
2986
|
case 1:
|
|
3361
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2987
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3362
2988
|
errorCode = "UnknownError";
|
|
3363
2989
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3364
2990
|
_b = errorCode;
|
|
@@ -3375,46 +3001,24 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
|
|
|
3375
3001
|
case "com.amazonaws.mgn#ValidationException": return [3, 10];
|
|
3376
3002
|
}
|
|
3377
3003
|
return [3, 12];
|
|
3378
|
-
case 2:
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
case
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
case 4
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
case
|
|
3388
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3389
|
-
return [3, 13];
|
|
3390
|
-
case 6:
|
|
3391
|
-
_e = [{}];
|
|
3392
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3393
|
-
case 7:
|
|
3394
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3395
|
-
return [3, 13];
|
|
3396
|
-
case 8:
|
|
3397
|
-
_f = [{}];
|
|
3398
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3399
|
-
case 9:
|
|
3400
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3401
|
-
return [3, 13];
|
|
3402
|
-
case 10:
|
|
3403
|
-
_g = [{}];
|
|
3404
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3405
|
-
case 11:
|
|
3406
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3407
|
-
return [3, 13];
|
|
3004
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3005
|
+
case 3: throw _d.sent();
|
|
3006
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3007
|
+
case 5: throw _d.sent();
|
|
3008
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3009
|
+
case 7: throw _d.sent();
|
|
3010
|
+
case 8: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3011
|
+
case 9: throw _d.sent();
|
|
3012
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3013
|
+
case 11: throw _d.sent();
|
|
3408
3014
|
case 12:
|
|
3409
3015
|
parsedBody = parsedOutput.body;
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
response
|
|
3416
|
-
delete response.Message;
|
|
3417
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3016
|
+
response = new __BaseException({
|
|
3017
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3018
|
+
$fault: "client",
|
|
3019
|
+
$metadata: deserializeMetadata(output),
|
|
3020
|
+
});
|
|
3021
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3418
3022
|
}
|
|
3419
3023
|
});
|
|
3420
3024
|
}); };
|
|
@@ -3499,16 +3103,16 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
3499
3103
|
});
|
|
3500
3104
|
}); };
|
|
3501
3105
|
var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3502
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3503
|
-
var
|
|
3504
|
-
return __generator(this, function (
|
|
3505
|
-
switch (
|
|
3106
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3107
|
+
var _c;
|
|
3108
|
+
return __generator(this, function (_d) {
|
|
3109
|
+
switch (_d.label) {
|
|
3506
3110
|
case 0:
|
|
3507
3111
|
_a = [__assign({}, output)];
|
|
3508
|
-
|
|
3112
|
+
_c = {};
|
|
3509
3113
|
return [4, parseBody(output.body, context)];
|
|
3510
3114
|
case 1:
|
|
3511
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3115
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3512
3116
|
errorCode = "UnknownError";
|
|
3513
3117
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3514
3118
|
_b = errorCode;
|
|
@@ -3523,40 +3127,22 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
|
|
|
3523
3127
|
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
3524
3128
|
}
|
|
3525
3129
|
return [3, 10];
|
|
3526
|
-
case 2:
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
case
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
case 4
|
|
3533
|
-
|
|
3534
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3535
|
-
case 5:
|
|
3536
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3537
|
-
return [3, 11];
|
|
3538
|
-
case 6:
|
|
3539
|
-
_e = [{}];
|
|
3540
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3541
|
-
case 7:
|
|
3542
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3543
|
-
return [3, 11];
|
|
3544
|
-
case 8:
|
|
3545
|
-
_f = [{}];
|
|
3546
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3547
|
-
case 9:
|
|
3548
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3549
|
-
return [3, 11];
|
|
3130
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3131
|
+
case 3: throw _d.sent();
|
|
3132
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3133
|
+
case 5: throw _d.sent();
|
|
3134
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3135
|
+
case 7: throw _d.sent();
|
|
3136
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3137
|
+
case 9: throw _d.sent();
|
|
3550
3138
|
case 10:
|
|
3551
3139
|
parsedBody = parsedOutput.body;
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
response
|
|
3558
|
-
delete response.Message;
|
|
3559
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3140
|
+
response = new __BaseException({
|
|
3141
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3142
|
+
$fault: "client",
|
|
3143
|
+
$metadata: deserializeMetadata(output),
|
|
3144
|
+
});
|
|
3145
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3560
3146
|
}
|
|
3561
3147
|
});
|
|
3562
3148
|
}); };
|
|
@@ -3621,16 +3207,16 @@ export var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = fu
|
|
|
3621
3207
|
});
|
|
3622
3208
|
}); };
|
|
3623
3209
|
var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3624
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3625
|
-
var
|
|
3626
|
-
return __generator(this, function (
|
|
3627
|
-
switch (
|
|
3210
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3211
|
+
var _c;
|
|
3212
|
+
return __generator(this, function (_d) {
|
|
3213
|
+
switch (_d.label) {
|
|
3628
3214
|
case 0:
|
|
3629
3215
|
_a = [__assign({}, output)];
|
|
3630
|
-
|
|
3216
|
+
_c = {};
|
|
3631
3217
|
return [4, parseBody(output.body, context)];
|
|
3632
3218
|
case 1:
|
|
3633
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3219
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3634
3220
|
errorCode = "UnknownError";
|
|
3635
3221
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3636
3222
|
_b = errorCode;
|
|
@@ -3645,53 +3231,29 @@ var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = func
|
|
|
3645
3231
|
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
3646
3232
|
}
|
|
3647
3233
|
return [3, 10];
|
|
3648
|
-
case 2:
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
case
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
case 4
|
|
3655
|
-
|
|
3656
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3657
|
-
case 5:
|
|
3658
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3659
|
-
return [3, 11];
|
|
3660
|
-
case 6:
|
|
3661
|
-
_e = [{}];
|
|
3662
|
-
return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3663
|
-
case 7:
|
|
3664
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3665
|
-
return [3, 11];
|
|
3666
|
-
case 8:
|
|
3667
|
-
_f = [{}];
|
|
3668
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3669
|
-
case 9:
|
|
3670
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3671
|
-
return [3, 11];
|
|
3234
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3235
|
+
case 3: throw _d.sent();
|
|
3236
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3237
|
+
case 5: throw _d.sent();
|
|
3238
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3239
|
+
case 7: throw _d.sent();
|
|
3240
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3241
|
+
case 9: throw _d.sent();
|
|
3672
3242
|
case 10:
|
|
3673
3243
|
parsedBody = parsedOutput.body;
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
response
|
|
3680
|
-
delete response.Message;
|
|
3681
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3244
|
+
response = new __BaseException({
|
|
3245
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3246
|
+
$fault: "client",
|
|
3247
|
+
$metadata: deserializeMetadata(output),
|
|
3248
|
+
});
|
|
3249
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3682
3250
|
}
|
|
3683
3251
|
});
|
|
3684
3252
|
}); };
|
|
3685
3253
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3686
|
-
var contents, data;
|
|
3254
|
+
var contents, data, exception;
|
|
3687
3255
|
return __generator(this, function (_a) {
|
|
3688
|
-
contents = {
|
|
3689
|
-
name: "AccessDeniedException",
|
|
3690
|
-
$fault: "client",
|
|
3691
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3692
|
-
code: undefined,
|
|
3693
|
-
message: undefined,
|
|
3694
|
-
};
|
|
3256
|
+
contents = {};
|
|
3695
3257
|
data = parsedOutput.body;
|
|
3696
3258
|
if (data.code !== undefined && data.code !== null) {
|
|
3697
3259
|
contents.code = __expectString(data.code);
|
|
@@ -3699,21 +3261,14 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3699
3261
|
if (data.message !== undefined && data.message !== null) {
|
|
3700
3262
|
contents.message = __expectString(data.message);
|
|
3701
3263
|
}
|
|
3702
|
-
|
|
3264
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3265
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3703
3266
|
});
|
|
3704
3267
|
}); };
|
|
3705
3268
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3706
|
-
var contents, data;
|
|
3269
|
+
var contents, data, exception;
|
|
3707
3270
|
return __generator(this, function (_a) {
|
|
3708
|
-
contents = {
|
|
3709
|
-
name: "ConflictException",
|
|
3710
|
-
$fault: "client",
|
|
3711
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3712
|
-
code: undefined,
|
|
3713
|
-
message: undefined,
|
|
3714
|
-
resourceId: undefined,
|
|
3715
|
-
resourceType: undefined,
|
|
3716
|
-
};
|
|
3271
|
+
contents = {};
|
|
3717
3272
|
data = parsedOutput.body;
|
|
3718
3273
|
if (data.code !== undefined && data.code !== null) {
|
|
3719
3274
|
contents.code = __expectString(data.code);
|
|
@@ -3727,19 +3282,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3727
3282
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3728
3283
|
contents.resourceType = __expectString(data.resourceType);
|
|
3729
3284
|
}
|
|
3730
|
-
|
|
3285
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3286
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3731
3287
|
});
|
|
3732
3288
|
}); };
|
|
3733
3289
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3734
|
-
var contents, data;
|
|
3290
|
+
var contents, data, exception;
|
|
3735
3291
|
return __generator(this, function (_a) {
|
|
3736
|
-
contents = {
|
|
3737
|
-
name: "InternalServerException",
|
|
3738
|
-
$fault: "server",
|
|
3739
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3740
|
-
message: undefined,
|
|
3741
|
-
retryAfterSeconds: undefined,
|
|
3742
|
-
};
|
|
3292
|
+
contents = {};
|
|
3743
3293
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3744
3294
|
contents.retryAfterSeconds = __strictParseLong(parsedOutput.headers["retry-after"]);
|
|
3745
3295
|
}
|
|
@@ -3747,21 +3297,14 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3747
3297
|
if (data.message !== undefined && data.message !== null) {
|
|
3748
3298
|
contents.message = __expectString(data.message);
|
|
3749
3299
|
}
|
|
3750
|
-
|
|
3300
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3301
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3751
3302
|
});
|
|
3752
3303
|
}); };
|
|
3753
3304
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3754
|
-
var contents, data;
|
|
3305
|
+
var contents, data, exception;
|
|
3755
3306
|
return __generator(this, function (_a) {
|
|
3756
|
-
contents = {
|
|
3757
|
-
name: "ResourceNotFoundException",
|
|
3758
|
-
$fault: "client",
|
|
3759
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3760
|
-
code: undefined,
|
|
3761
|
-
message: undefined,
|
|
3762
|
-
resourceId: undefined,
|
|
3763
|
-
resourceType: undefined,
|
|
3764
|
-
};
|
|
3307
|
+
contents = {};
|
|
3765
3308
|
data = parsedOutput.body;
|
|
3766
3309
|
if (data.code !== undefined && data.code !== null) {
|
|
3767
3310
|
contents.code = __expectString(data.code);
|
|
@@ -3775,23 +3318,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3775
3318
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3776
3319
|
contents.resourceType = __expectString(data.resourceType);
|
|
3777
3320
|
}
|
|
3778
|
-
|
|
3321
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3322
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3779
3323
|
});
|
|
3780
3324
|
}); };
|
|
3781
3325
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3782
|
-
var contents, data;
|
|
3326
|
+
var contents, data, exception;
|
|
3783
3327
|
return __generator(this, function (_a) {
|
|
3784
|
-
contents = {
|
|
3785
|
-
name: "ServiceQuotaExceededException",
|
|
3786
|
-
$fault: "client",
|
|
3787
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3788
|
-
code: undefined,
|
|
3789
|
-
message: undefined,
|
|
3790
|
-
quotaCode: undefined,
|
|
3791
|
-
resourceId: undefined,
|
|
3792
|
-
resourceType: undefined,
|
|
3793
|
-
serviceCode: undefined,
|
|
3794
|
-
};
|
|
3328
|
+
contents = {};
|
|
3795
3329
|
data = parsedOutput.body;
|
|
3796
3330
|
if (data.code !== undefined && data.code !== null) {
|
|
3797
3331
|
contents.code = __expectString(data.code);
|
|
@@ -3811,21 +3345,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3811
3345
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3812
3346
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3813
3347
|
}
|
|
3814
|
-
|
|
3348
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3349
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3815
3350
|
});
|
|
3816
3351
|
}); };
|
|
3817
3352
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3818
|
-
var contents, data;
|
|
3353
|
+
var contents, data, exception;
|
|
3819
3354
|
return __generator(this, function (_a) {
|
|
3820
|
-
contents = {
|
|
3821
|
-
name: "ThrottlingException",
|
|
3822
|
-
$fault: "client",
|
|
3823
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3824
|
-
message: undefined,
|
|
3825
|
-
quotaCode: undefined,
|
|
3826
|
-
retryAfterSeconds: undefined,
|
|
3827
|
-
serviceCode: undefined,
|
|
3828
|
-
};
|
|
3355
|
+
contents = {};
|
|
3829
3356
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3830
3357
|
contents.retryAfterSeconds = parsedOutput.headers["retry-after"];
|
|
3831
3358
|
}
|
|
@@ -3839,19 +3366,14 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3839
3366
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3840
3367
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3841
3368
|
}
|
|
3842
|
-
|
|
3369
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3370
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3843
3371
|
});
|
|
3844
3372
|
}); };
|
|
3845
3373
|
var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3846
|
-
var contents, data;
|
|
3374
|
+
var contents, data, exception;
|
|
3847
3375
|
return __generator(this, function (_a) {
|
|
3848
|
-
contents = {
|
|
3849
|
-
name: "UninitializedAccountException",
|
|
3850
|
-
$fault: "client",
|
|
3851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3852
|
-
code: undefined,
|
|
3853
|
-
message: undefined,
|
|
3854
|
-
};
|
|
3376
|
+
contents = {};
|
|
3855
3377
|
data = parsedOutput.body;
|
|
3856
3378
|
if (data.code !== undefined && data.code !== null) {
|
|
3857
3379
|
contents.code = __expectString(data.code);
|
|
@@ -3859,21 +3381,14 @@ var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (pa
|
|
|
3859
3381
|
if (data.message !== undefined && data.message !== null) {
|
|
3860
3382
|
contents.message = __expectString(data.message);
|
|
3861
3383
|
}
|
|
3862
|
-
|
|
3384
|
+
exception = new UninitializedAccountException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3385
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3863
3386
|
});
|
|
3864
3387
|
}); };
|
|
3865
3388
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3866
|
-
var contents, data;
|
|
3389
|
+
var contents, data, exception;
|
|
3867
3390
|
return __generator(this, function (_a) {
|
|
3868
|
-
contents = {
|
|
3869
|
-
name: "ValidationException",
|
|
3870
|
-
$fault: "client",
|
|
3871
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3872
|
-
code: undefined,
|
|
3873
|
-
fieldList: undefined,
|
|
3874
|
-
message: undefined,
|
|
3875
|
-
reason: undefined,
|
|
3876
|
-
};
|
|
3391
|
+
contents = {};
|
|
3877
3392
|
data = parsedOutput.body;
|
|
3878
3393
|
if (data.code !== undefined && data.code !== null) {
|
|
3879
3394
|
contents.code = __expectString(data.code);
|
|
@@ -3887,7 +3402,8 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3887
3402
|
if (data.reason !== undefined && data.reason !== null) {
|
|
3888
3403
|
contents.reason = __expectString(data.reason);
|
|
3889
3404
|
}
|
|
3890
|
-
|
|
3405
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3406
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3891
3407
|
});
|
|
3892
3408
|
}); };
|
|
3893
3409
|
var serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = function (input, context) {
|
|
@@ -3945,8 +3461,8 @@ var serializeAws_restJson1LifeCycleStates = function (input, context) {
|
|
|
3945
3461
|
});
|
|
3946
3462
|
};
|
|
3947
3463
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
|
|
3948
|
-
return __assign(__assign(__assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType !== undefined &&
|
|
3949
|
-
input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType }));
|
|
3464
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType !== undefined &&
|
|
3465
|
+
input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }));
|
|
3950
3466
|
};
|
|
3951
3467
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (input, context) {
|
|
3952
3468
|
return input
|
|
@@ -4035,7 +3551,7 @@ var deserializeAws_restJson1CPU = function (output, context) {
|
|
|
4035
3551
|
};
|
|
4036
3552
|
};
|
|
4037
3553
|
var deserializeAws_restJson1Cpus = function (output, context) {
|
|
4038
|
-
|
|
3554
|
+
var retVal = (output || [])
|
|
4039
3555
|
.filter(function (e) { return e != null; })
|
|
4040
3556
|
.map(function (entry) {
|
|
4041
3557
|
if (entry === null) {
|
|
@@ -4043,6 +3559,7 @@ var deserializeAws_restJson1Cpus = function (output, context) {
|
|
|
4043
3559
|
}
|
|
4044
3560
|
return deserializeAws_restJson1CPU(entry, context);
|
|
4045
3561
|
});
|
|
3562
|
+
return retVal;
|
|
4046
3563
|
};
|
|
4047
3564
|
var deserializeAws_restJson1DataReplicationError = function (output, context) {
|
|
4048
3565
|
return {
|
|
@@ -4077,7 +3594,7 @@ var deserializeAws_restJson1DataReplicationInfoReplicatedDisk = function (output
|
|
|
4077
3594
|
};
|
|
4078
3595
|
};
|
|
4079
3596
|
var deserializeAws_restJson1DataReplicationInfoReplicatedDisks = function (output, context) {
|
|
4080
|
-
|
|
3597
|
+
var retVal = (output || [])
|
|
4081
3598
|
.filter(function (e) { return e != null; })
|
|
4082
3599
|
.map(function (entry) {
|
|
4083
3600
|
if (entry === null) {
|
|
@@ -4085,6 +3602,7 @@ var deserializeAws_restJson1DataReplicationInfoReplicatedDisks = function (outpu
|
|
|
4085
3602
|
}
|
|
4086
3603
|
return deserializeAws_restJson1DataReplicationInfoReplicatedDisk(entry, context);
|
|
4087
3604
|
});
|
|
3605
|
+
return retVal;
|
|
4088
3606
|
};
|
|
4089
3607
|
var deserializeAws_restJson1DataReplicationInitiation = function (output, context) {
|
|
4090
3608
|
return {
|
|
@@ -4102,7 +3620,7 @@ var deserializeAws_restJson1DataReplicationInitiationStep = function (output, co
|
|
|
4102
3620
|
};
|
|
4103
3621
|
};
|
|
4104
3622
|
var deserializeAws_restJson1DataReplicationInitiationSteps = function (output, context) {
|
|
4105
|
-
|
|
3623
|
+
var retVal = (output || [])
|
|
4106
3624
|
.filter(function (e) { return e != null; })
|
|
4107
3625
|
.map(function (entry) {
|
|
4108
3626
|
if (entry === null) {
|
|
@@ -4110,6 +3628,7 @@ var deserializeAws_restJson1DataReplicationInitiationSteps = function (output, c
|
|
|
4110
3628
|
}
|
|
4111
3629
|
return deserializeAws_restJson1DataReplicationInitiationStep(entry, context);
|
|
4112
3630
|
});
|
|
3631
|
+
return retVal;
|
|
4113
3632
|
};
|
|
4114
3633
|
var deserializeAws_restJson1Disk = function (output, context) {
|
|
4115
3634
|
return {
|
|
@@ -4118,7 +3637,7 @@ var deserializeAws_restJson1Disk = function (output, context) {
|
|
|
4118
3637
|
};
|
|
4119
3638
|
};
|
|
4120
3639
|
var deserializeAws_restJson1Disks = function (output, context) {
|
|
4121
|
-
|
|
3640
|
+
var retVal = (output || [])
|
|
4122
3641
|
.filter(function (e) { return e != null; })
|
|
4123
3642
|
.map(function (entry) {
|
|
4124
3643
|
if (entry === null) {
|
|
@@ -4126,6 +3645,7 @@ var deserializeAws_restJson1Disks = function (output, context) {
|
|
|
4126
3645
|
}
|
|
4127
3646
|
return deserializeAws_restJson1Disk(entry, context);
|
|
4128
3647
|
});
|
|
3648
|
+
return retVal;
|
|
4129
3649
|
};
|
|
4130
3650
|
var deserializeAws_restJson1IdentificationHints = function (output, context) {
|
|
4131
3651
|
return {
|
|
@@ -4137,7 +3657,7 @@ var deserializeAws_restJson1IdentificationHints = function (output, context) {
|
|
|
4137
3657
|
};
|
|
4138
3658
|
};
|
|
4139
3659
|
var deserializeAws_restJson1IPsList = function (output, context) {
|
|
4140
|
-
|
|
3660
|
+
var retVal = (output || [])
|
|
4141
3661
|
.filter(function (e) { return e != null; })
|
|
4142
3662
|
.map(function (entry) {
|
|
4143
3663
|
if (entry === null) {
|
|
@@ -4145,6 +3665,7 @@ var deserializeAws_restJson1IPsList = function (output, context) {
|
|
|
4145
3665
|
}
|
|
4146
3666
|
return __expectString(entry);
|
|
4147
3667
|
});
|
|
3668
|
+
return retVal;
|
|
4148
3669
|
};
|
|
4149
3670
|
var deserializeAws_restJson1Job = function (output, context) {
|
|
4150
3671
|
return {
|
|
@@ -4181,7 +3702,7 @@ var deserializeAws_restJson1JobLogEventData = function (output, context) {
|
|
|
4181
3702
|
};
|
|
4182
3703
|
};
|
|
4183
3704
|
var deserializeAws_restJson1JobLogs = function (output, context) {
|
|
4184
|
-
|
|
3705
|
+
var retVal = (output || [])
|
|
4185
3706
|
.filter(function (e) { return e != null; })
|
|
4186
3707
|
.map(function (entry) {
|
|
4187
3708
|
if (entry === null) {
|
|
@@ -4189,9 +3710,10 @@ var deserializeAws_restJson1JobLogs = function (output, context) {
|
|
|
4189
3710
|
}
|
|
4190
3711
|
return deserializeAws_restJson1JobLog(entry, context);
|
|
4191
3712
|
});
|
|
3713
|
+
return retVal;
|
|
4192
3714
|
};
|
|
4193
3715
|
var deserializeAws_restJson1JobsList = function (output, context) {
|
|
4194
|
-
|
|
3716
|
+
var retVal = (output || [])
|
|
4195
3717
|
.filter(function (e) { return e != null; })
|
|
4196
3718
|
.map(function (entry) {
|
|
4197
3719
|
if (entry === null) {
|
|
@@ -4199,6 +3721,7 @@ var deserializeAws_restJson1JobsList = function (output, context) {
|
|
|
4199
3721
|
}
|
|
4200
3722
|
return deserializeAws_restJson1Job(entry, context);
|
|
4201
3723
|
});
|
|
3724
|
+
return retVal;
|
|
4202
3725
|
};
|
|
4203
3726
|
var deserializeAws_restJson1LaunchedInstance = function (output, context) {
|
|
4204
3727
|
return {
|
|
@@ -4295,7 +3818,7 @@ var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
|
4295
3818
|
};
|
|
4296
3819
|
};
|
|
4297
3820
|
var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
4298
|
-
|
|
3821
|
+
var retVal = (output || [])
|
|
4299
3822
|
.filter(function (e) { return e != null; })
|
|
4300
3823
|
.map(function (entry) {
|
|
4301
3824
|
if (entry === null) {
|
|
@@ -4303,6 +3826,7 @@ var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
|
4303
3826
|
}
|
|
4304
3827
|
return deserializeAws_restJson1NetworkInterface(entry, context);
|
|
4305
3828
|
});
|
|
3829
|
+
return retVal;
|
|
4306
3830
|
};
|
|
4307
3831
|
var deserializeAws_restJson1OS = function (output, context) {
|
|
4308
3832
|
return {
|
|
@@ -4316,7 +3840,7 @@ var deserializeAws_restJson1ParticipatingServer = function (output, context) {
|
|
|
4316
3840
|
};
|
|
4317
3841
|
};
|
|
4318
3842
|
var deserializeAws_restJson1ParticipatingServers = function (output, context) {
|
|
4319
|
-
|
|
3843
|
+
var retVal = (output || [])
|
|
4320
3844
|
.filter(function (e) { return e != null; })
|
|
4321
3845
|
.map(function (entry) {
|
|
4322
3846
|
if (entry === null) {
|
|
@@ -4324,6 +3848,7 @@ var deserializeAws_restJson1ParticipatingServers = function (output, context) {
|
|
|
4324
3848
|
}
|
|
4325
3849
|
return deserializeAws_restJson1ParticipatingServer(entry, context);
|
|
4326
3850
|
});
|
|
3851
|
+
return retVal;
|
|
4327
3852
|
};
|
|
4328
3853
|
var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (output, context) {
|
|
4329
3854
|
return {
|
|
@@ -4331,10 +3856,11 @@ var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (o
|
|
|
4331
3856
|
iops: __expectLong(output.iops),
|
|
4332
3857
|
isBootDisk: __expectBoolean(output.isBootDisk),
|
|
4333
3858
|
stagingDiskType: __expectString(output.stagingDiskType),
|
|
3859
|
+
throughput: __expectLong(output.throughput),
|
|
4334
3860
|
};
|
|
4335
3861
|
};
|
|
4336
3862
|
var deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (output, context) {
|
|
4337
|
-
|
|
3863
|
+
var retVal = (output || [])
|
|
4338
3864
|
.filter(function (e) { return e != null; })
|
|
4339
3865
|
.map(function (entry) {
|
|
4340
3866
|
if (entry === null) {
|
|
@@ -4342,6 +3868,7 @@ var deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (
|
|
|
4342
3868
|
}
|
|
4343
3869
|
return deserializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context);
|
|
4344
3870
|
});
|
|
3871
|
+
return retVal;
|
|
4345
3872
|
};
|
|
4346
3873
|
var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output, context) {
|
|
4347
3874
|
return {
|
|
@@ -4369,7 +3896,7 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
|
|
|
4369
3896
|
};
|
|
4370
3897
|
};
|
|
4371
3898
|
var deserializeAws_restJson1ReplicationConfigurationTemplates = function (output, context) {
|
|
4372
|
-
|
|
3899
|
+
var retVal = (output || [])
|
|
4373
3900
|
.filter(function (e) { return e != null; })
|
|
4374
3901
|
.map(function (entry) {
|
|
4375
3902
|
if (entry === null) {
|
|
@@ -4377,9 +3904,10 @@ var deserializeAws_restJson1ReplicationConfigurationTemplates = function (output
|
|
|
4377
3904
|
}
|
|
4378
3905
|
return deserializeAws_restJson1ReplicationConfigurationTemplate(entry, context);
|
|
4379
3906
|
});
|
|
3907
|
+
return retVal;
|
|
4380
3908
|
};
|
|
4381
3909
|
var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (output, context) {
|
|
4382
|
-
|
|
3910
|
+
var retVal = (output || [])
|
|
4383
3911
|
.filter(function (e) { return e != null; })
|
|
4384
3912
|
.map(function (entry) {
|
|
4385
3913
|
if (entry === null) {
|
|
@@ -4387,6 +3915,7 @@ var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (outp
|
|
|
4387
3915
|
}
|
|
4388
3916
|
return __expectString(entry);
|
|
4389
3917
|
});
|
|
3918
|
+
return retVal;
|
|
4390
3919
|
};
|
|
4391
3920
|
var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
4392
3921
|
return {
|
|
@@ -4433,7 +3962,7 @@ var deserializeAws_restJson1SourceServer = function (output, context) {
|
|
|
4433
3962
|
};
|
|
4434
3963
|
};
|
|
4435
3964
|
var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
4436
|
-
|
|
3965
|
+
var retVal = (output || [])
|
|
4437
3966
|
.filter(function (e) { return e != null; })
|
|
4438
3967
|
.map(function (entry) {
|
|
4439
3968
|
if (entry === null) {
|
|
@@ -4441,6 +3970,7 @@ var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
|
4441
3970
|
}
|
|
4442
3971
|
return deserializeAws_restJson1SourceServer(entry, context);
|
|
4443
3972
|
});
|
|
3973
|
+
return retVal;
|
|
4444
3974
|
};
|
|
4445
3975
|
var deserializeAws_restJson1TagsMap = function (output, context) {
|
|
4446
3976
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -4459,7 +3989,7 @@ var deserializeAws_restJson1ValidationExceptionField = function (output, context
|
|
|
4459
3989
|
};
|
|
4460
3990
|
};
|
|
4461
3991
|
var deserializeAws_restJson1ValidationExceptionFieldList = function (output, context) {
|
|
4462
|
-
|
|
3992
|
+
var retVal = (output || [])
|
|
4463
3993
|
.filter(function (e) { return e != null; })
|
|
4464
3994
|
.map(function (entry) {
|
|
4465
3995
|
if (entry === null) {
|
|
@@ -4467,6 +3997,7 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
|
|
|
4467
3997
|
}
|
|
4468
3998
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
4469
3999
|
});
|
|
4000
|
+
return retVal;
|
|
4470
4001
|
};
|
|
4471
4002
|
var deserializeAws_restJson1VcenterClient = function (output, context) {
|
|
4472
4003
|
return {
|
|
@@ -4485,7 +4016,7 @@ var deserializeAws_restJson1VcenterClient = function (output, context) {
|
|
|
4485
4016
|
};
|
|
4486
4017
|
};
|
|
4487
4018
|
var deserializeAws_restJson1VcenterClientList = function (output, context) {
|
|
4488
|
-
|
|
4019
|
+
var retVal = (output || [])
|
|
4489
4020
|
.filter(function (e) { return e != null; })
|
|
4490
4021
|
.map(function (entry) {
|
|
4491
4022
|
if (entry === null) {
|
|
@@ -4493,6 +4024,7 @@ var deserializeAws_restJson1VcenterClientList = function (output, context) {
|
|
|
4493
4024
|
}
|
|
4494
4025
|
return deserializeAws_restJson1VcenterClient(entry, context);
|
|
4495
4026
|
});
|
|
4027
|
+
return retVal;
|
|
4496
4028
|
};
|
|
4497
4029
|
var deserializeMetadata = function (output) {
|
|
4498
4030
|
var _a;
|