@aws-sdk/client-drs 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DrsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +128 -3
- package/dist-cjs/protocols/Aws_restJson1.js +351 -1245
- package/dist-es/index.js +1 -0
- package/dist-es/models/DrsServiceException.js +12 -0
- package/dist-es/models/models_0.js +118 -1
- package/dist-es/protocols/Aws_restJson1.js +711 -1370
- package/dist-types/DrsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DrsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DrsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DrsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1StartRecoveryCommand = exports.deserializeAws_re
|
|
|
4
4
|
exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TerminateRecoveryInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFailbackCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const DrsServiceException_1 = require("../models/DrsServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -910,67 +912,31 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
910
912
|
switch (errorCode) {
|
|
911
913
|
case "AccessDeniedException":
|
|
912
914
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
913
|
-
|
|
914
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
915
|
-
name: errorCode,
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
};
|
|
918
|
-
break;
|
|
915
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
919
916
|
case "InternalServerException":
|
|
920
917
|
case "com.amazonaws.drs#InternalServerException":
|
|
921
|
-
|
|
922
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
923
|
-
name: errorCode,
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
};
|
|
926
|
-
break;
|
|
918
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
927
919
|
case "ServiceQuotaExceededException":
|
|
928
920
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
929
|
-
|
|
930
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
931
|
-
name: errorCode,
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
};
|
|
934
|
-
break;
|
|
921
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
935
922
|
case "ThrottlingException":
|
|
936
923
|
case "com.amazonaws.drs#ThrottlingException":
|
|
937
|
-
|
|
938
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
924
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
943
925
|
case "UninitializedAccountException":
|
|
944
926
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
945
|
-
|
|
946
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
927
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
951
928
|
case "ValidationException":
|
|
952
929
|
case "com.amazonaws.drs#ValidationException":
|
|
953
|
-
|
|
954
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
930
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
959
931
|
default:
|
|
960
932
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
...parsedBody,
|
|
964
|
-
name: `${errorCode}`,
|
|
965
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
933
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
966
935
|
$fault: "client",
|
|
967
936
|
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
937
|
+
});
|
|
938
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
969
939
|
}
|
|
970
|
-
const message = response.message || response.Message || errorCode;
|
|
971
|
-
response.message = message;
|
|
972
|
-
delete response.Message;
|
|
973
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
974
940
|
};
|
|
975
941
|
const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
976
942
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -994,59 +960,28 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
994
960
|
switch (errorCode) {
|
|
995
961
|
case "ConflictException":
|
|
996
962
|
case "com.amazonaws.drs#ConflictException":
|
|
997
|
-
|
|
998
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
999
|
-
name: errorCode,
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
1002
|
-
break;
|
|
963
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1003
964
|
case "InternalServerException":
|
|
1004
965
|
case "com.amazonaws.drs#InternalServerException":
|
|
1005
|
-
|
|
1006
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
966
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1011
967
|
case "ResourceNotFoundException":
|
|
1012
968
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1013
|
-
|
|
1014
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1015
|
-
name: errorCode,
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
1018
|
-
break;
|
|
969
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1019
970
|
case "ThrottlingException":
|
|
1020
971
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1021
|
-
|
|
1022
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1023
|
-
name: errorCode,
|
|
1024
|
-
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
1026
|
-
break;
|
|
972
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1027
973
|
case "UninitializedAccountException":
|
|
1028
974
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1029
|
-
|
|
1030
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1031
|
-
name: errorCode,
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
1034
|
-
break;
|
|
975
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1035
976
|
default:
|
|
1036
977
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
...parsedBody,
|
|
1040
|
-
name: `${errorCode}`,
|
|
1041
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
978
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
979
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1042
980
|
$fault: "client",
|
|
1043
981
|
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
982
|
+
});
|
|
983
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1045
984
|
}
|
|
1046
|
-
const message = response.message || response.Message || errorCode;
|
|
1047
|
-
response.message = message;
|
|
1048
|
-
delete response.Message;
|
|
1049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1050
985
|
};
|
|
1051
986
|
const deserializeAws_restJson1DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
1052
987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1070,59 +1005,28 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1070
1005
|
switch (errorCode) {
|
|
1071
1006
|
case "AccessDeniedException":
|
|
1072
1007
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
1008
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1079
1009
|
case "ConflictException":
|
|
1080
1010
|
case "com.amazonaws.drs#ConflictException":
|
|
1081
|
-
|
|
1082
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1083
|
-
name: errorCode,
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
};
|
|
1086
|
-
break;
|
|
1011
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1087
1012
|
case "InternalServerException":
|
|
1088
1013
|
case "com.amazonaws.drs#InternalServerException":
|
|
1089
|
-
|
|
1090
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1091
|
-
name: errorCode,
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
};
|
|
1094
|
-
break;
|
|
1014
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1095
1015
|
case "ThrottlingException":
|
|
1096
1016
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1097
|
-
|
|
1098
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1099
|
-
name: errorCode,
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
1102
|
-
break;
|
|
1017
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1103
1018
|
case "UninitializedAccountException":
|
|
1104
1019
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1105
|
-
|
|
1106
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1107
|
-
name: errorCode,
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
};
|
|
1110
|
-
break;
|
|
1020
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1111
1021
|
default:
|
|
1112
1022
|
const parsedBody = parsedOutput.body;
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
...parsedBody,
|
|
1116
|
-
name: `${errorCode}`,
|
|
1117
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1023
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1118
1025
|
$fault: "client",
|
|
1119
1026
|
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1027
|
+
});
|
|
1028
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1121
1029
|
}
|
|
1122
|
-
const message = response.message || response.Message || errorCode;
|
|
1123
|
-
response.message = message;
|
|
1124
|
-
delete response.Message;
|
|
1125
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1126
1030
|
};
|
|
1127
1031
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1128
1032
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1146,59 +1050,28 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1146
1050
|
switch (errorCode) {
|
|
1147
1051
|
case "ConflictException":
|
|
1148
1052
|
case "com.amazonaws.drs#ConflictException":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
1053
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1155
1054
|
case "InternalServerException":
|
|
1156
1055
|
case "com.amazonaws.drs#InternalServerException":
|
|
1157
|
-
|
|
1158
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
1056
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1163
1057
|
case "ResourceNotFoundException":
|
|
1164
1058
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1165
|
-
|
|
1166
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
1059
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1171
1060
|
case "ThrottlingException":
|
|
1172
1061
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1173
|
-
|
|
1174
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
1062
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1179
1063
|
case "UninitializedAccountException":
|
|
1180
1064
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1181
|
-
|
|
1182
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1183
|
-
name: errorCode,
|
|
1184
|
-
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1186
|
-
break;
|
|
1065
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1187
1066
|
default:
|
|
1188
1067
|
const parsedBody = parsedOutput.body;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
...parsedBody,
|
|
1192
|
-
name: `${errorCode}`,
|
|
1193
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1068
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1069
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1194
1070
|
$fault: "client",
|
|
1195
1071
|
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1072
|
+
});
|
|
1073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1197
1074
|
}
|
|
1198
|
-
const message = response.message || response.Message || errorCode;
|
|
1199
|
-
response.message = message;
|
|
1200
|
-
delete response.Message;
|
|
1201
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1202
1075
|
};
|
|
1203
1076
|
const deserializeAws_restJson1DeleteSourceServerCommand = async (output, context) => {
|
|
1204
1077
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1222,59 +1095,28 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1222
1095
|
switch (errorCode) {
|
|
1223
1096
|
case "ConflictException":
|
|
1224
1097
|
case "com.amazonaws.drs#ConflictException":
|
|
1225
|
-
|
|
1226
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1227
|
-
name: errorCode,
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
1230
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1231
1099
|
case "InternalServerException":
|
|
1232
1100
|
case "com.amazonaws.drs#InternalServerException":
|
|
1233
|
-
|
|
1234
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1235
|
-
name: errorCode,
|
|
1236
|
-
$metadata: deserializeMetadata(output),
|
|
1237
|
-
};
|
|
1238
|
-
break;
|
|
1101
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1239
1102
|
case "ResourceNotFoundException":
|
|
1240
1103
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1241
|
-
|
|
1242
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
1104
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1247
1105
|
case "ThrottlingException":
|
|
1248
1106
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
1107
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1255
1108
|
case "UninitializedAccountException":
|
|
1256
1109
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1110
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1263
1111
|
default:
|
|
1264
1112
|
const parsedBody = parsedOutput.body;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
...parsedBody,
|
|
1268
|
-
name: `${errorCode}`,
|
|
1269
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1113
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1114
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1270
1115
|
$fault: "client",
|
|
1271
1116
|
$metadata: deserializeMetadata(output),
|
|
1272
|
-
};
|
|
1117
|
+
});
|
|
1118
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1273
1119
|
}
|
|
1274
|
-
const message = response.message || response.Message || errorCode;
|
|
1275
|
-
response.message = message;
|
|
1276
|
-
delete response.Message;
|
|
1277
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1278
1120
|
};
|
|
1279
1121
|
const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
|
|
1280
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1306,51 +1148,25 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1306
1148
|
switch (errorCode) {
|
|
1307
1149
|
case "InternalServerException":
|
|
1308
1150
|
case "com.amazonaws.drs#InternalServerException":
|
|
1309
|
-
|
|
1310
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1311
|
-
name: errorCode,
|
|
1312
|
-
$metadata: deserializeMetadata(output),
|
|
1313
|
-
};
|
|
1314
|
-
break;
|
|
1151
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1315
1152
|
case "ThrottlingException":
|
|
1316
1153
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1317
|
-
|
|
1318
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1319
|
-
name: errorCode,
|
|
1320
|
-
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
1322
|
-
break;
|
|
1154
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1323
1155
|
case "UninitializedAccountException":
|
|
1324
1156
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1325
|
-
|
|
1326
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1327
|
-
name: errorCode,
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1330
|
-
break;
|
|
1157
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1331
1158
|
case "ValidationException":
|
|
1332
1159
|
case "com.amazonaws.drs#ValidationException":
|
|
1333
|
-
|
|
1334
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1335
|
-
name: errorCode,
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
};
|
|
1338
|
-
break;
|
|
1160
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1339
1161
|
default:
|
|
1340
1162
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...parsedBody,
|
|
1344
|
-
name: `${errorCode}`,
|
|
1345
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1163
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1164
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1346
1165
|
$fault: "client",
|
|
1347
1166
|
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1167
|
+
});
|
|
1168
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1349
1169
|
}
|
|
1350
|
-
const message = response.message || response.Message || errorCode;
|
|
1351
|
-
response.message = message;
|
|
1352
|
-
delete response.Message;
|
|
1353
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1354
1170
|
};
|
|
1355
1171
|
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
1356
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1382,51 +1198,25 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1382
1198
|
switch (errorCode) {
|
|
1383
1199
|
case "InternalServerException":
|
|
1384
1200
|
case "com.amazonaws.drs#InternalServerException":
|
|
1385
|
-
|
|
1386
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1387
|
-
name: errorCode,
|
|
1388
|
-
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1390
|
-
break;
|
|
1201
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1391
1202
|
case "ThrottlingException":
|
|
1392
1203
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1393
|
-
|
|
1394
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1395
|
-
name: errorCode,
|
|
1396
|
-
$metadata: deserializeMetadata(output),
|
|
1397
|
-
};
|
|
1398
|
-
break;
|
|
1204
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1399
1205
|
case "UninitializedAccountException":
|
|
1400
1206
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1401
|
-
|
|
1402
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1403
|
-
name: errorCode,
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
};
|
|
1406
|
-
break;
|
|
1207
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1407
1208
|
case "ValidationException":
|
|
1408
1209
|
case "com.amazonaws.drs#ValidationException":
|
|
1409
|
-
|
|
1410
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1411
|
-
name: errorCode,
|
|
1412
|
-
$metadata: deserializeMetadata(output),
|
|
1413
|
-
};
|
|
1414
|
-
break;
|
|
1210
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1415
1211
|
default:
|
|
1416
1212
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
...parsedBody,
|
|
1420
|
-
name: `${errorCode}`,
|
|
1421
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1213
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1214
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1422
1215
|
$fault: "client",
|
|
1423
1216
|
$metadata: deserializeMetadata(output),
|
|
1424
|
-
};
|
|
1217
|
+
});
|
|
1218
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1425
1219
|
}
|
|
1426
|
-
const message = response.message || response.Message || errorCode;
|
|
1427
|
-
response.message = message;
|
|
1428
|
-
delete response.Message;
|
|
1429
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1430
1220
|
};
|
|
1431
1221
|
const deserializeAws_restJson1DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
1432
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1458,51 +1248,25 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1458
1248
|
switch (errorCode) {
|
|
1459
1249
|
case "AccessDeniedException":
|
|
1460
1250
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1251
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1467
1252
|
case "InternalServerException":
|
|
1468
1253
|
case "com.amazonaws.drs#InternalServerException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1254
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1475
1255
|
case "ThrottlingException":
|
|
1476
1256
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1477
|
-
|
|
1478
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1479
|
-
name: errorCode,
|
|
1480
|
-
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1482
|
-
break;
|
|
1257
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1483
1258
|
case "UninitializedAccountException":
|
|
1484
1259
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1485
|
-
|
|
1486
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1487
|
-
name: errorCode,
|
|
1488
|
-
$metadata: deserializeMetadata(output),
|
|
1489
|
-
};
|
|
1490
|
-
break;
|
|
1260
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1491
1261
|
default:
|
|
1492
1262
|
const parsedBody = parsedOutput.body;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
...parsedBody,
|
|
1496
|
-
name: `${errorCode}`,
|
|
1497
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1263
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1264
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1498
1265
|
$fault: "client",
|
|
1499
1266
|
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1267
|
+
});
|
|
1268
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1501
1269
|
}
|
|
1502
|
-
const message = response.message || response.Message || errorCode;
|
|
1503
|
-
response.message = message;
|
|
1504
|
-
delete response.Message;
|
|
1505
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1506
1270
|
};
|
|
1507
1271
|
const deserializeAws_restJson1DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
1508
1272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1534,59 +1298,28 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1534
1298
|
switch (errorCode) {
|
|
1535
1299
|
case "AccessDeniedException":
|
|
1536
1300
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1301
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1543
1302
|
case "InternalServerException":
|
|
1544
1303
|
case "com.amazonaws.drs#InternalServerException":
|
|
1545
|
-
|
|
1546
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1547
|
-
name: errorCode,
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1304
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1551
1305
|
case "ThrottlingException":
|
|
1552
1306
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1553
|
-
|
|
1554
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1555
|
-
name: errorCode,
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
};
|
|
1558
|
-
break;
|
|
1307
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1559
1308
|
case "UninitializedAccountException":
|
|
1560
1309
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1561
|
-
|
|
1562
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1563
|
-
name: errorCode,
|
|
1564
|
-
$metadata: deserializeMetadata(output),
|
|
1565
|
-
};
|
|
1566
|
-
break;
|
|
1310
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1567
1311
|
case "ValidationException":
|
|
1568
1312
|
case "com.amazonaws.drs#ValidationException":
|
|
1569
|
-
|
|
1570
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1571
|
-
name: errorCode,
|
|
1572
|
-
$metadata: deserializeMetadata(output),
|
|
1573
|
-
};
|
|
1574
|
-
break;
|
|
1313
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1575
1314
|
default:
|
|
1576
1315
|
const parsedBody = parsedOutput.body;
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
...parsedBody,
|
|
1580
|
-
name: `${errorCode}`,
|
|
1581
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1316
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1317
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1582
1318
|
$fault: "client",
|
|
1583
1319
|
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1320
|
+
});
|
|
1321
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1585
1322
|
}
|
|
1586
|
-
const message = response.message || response.Message || errorCode;
|
|
1587
|
-
response.message = message;
|
|
1588
|
-
delete response.Message;
|
|
1589
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1590
1323
|
};
|
|
1591
1324
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
1592
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1618,59 +1351,28 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1618
1351
|
switch (errorCode) {
|
|
1619
1352
|
case "InternalServerException":
|
|
1620
1353
|
case "com.amazonaws.drs#InternalServerException":
|
|
1621
|
-
|
|
1622
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1623
|
-
name: errorCode,
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
};
|
|
1626
|
-
break;
|
|
1354
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1627
1355
|
case "ResourceNotFoundException":
|
|
1628
1356
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1629
|
-
|
|
1630
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1631
|
-
name: errorCode,
|
|
1632
|
-
$metadata: deserializeMetadata(output),
|
|
1633
|
-
};
|
|
1634
|
-
break;
|
|
1357
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1635
1358
|
case "ThrottlingException":
|
|
1636
1359
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1637
|
-
|
|
1638
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1639
|
-
name: errorCode,
|
|
1640
|
-
$metadata: deserializeMetadata(output),
|
|
1641
|
-
};
|
|
1642
|
-
break;
|
|
1360
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1643
1361
|
case "UninitializedAccountException":
|
|
1644
1362
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1645
|
-
|
|
1646
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1647
|
-
name: errorCode,
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
};
|
|
1650
|
-
break;
|
|
1363
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1651
1364
|
case "ValidationException":
|
|
1652
1365
|
case "com.amazonaws.drs#ValidationException":
|
|
1653
|
-
|
|
1654
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1655
|
-
name: errorCode,
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1658
|
-
break;
|
|
1366
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1659
1367
|
default:
|
|
1660
1368
|
const parsedBody = parsedOutput.body;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
...parsedBody,
|
|
1664
|
-
name: `${errorCode}`,
|
|
1665
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1369
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1370
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
1371
|
$fault: "client",
|
|
1667
1372
|
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1373
|
+
});
|
|
1374
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1669
1375
|
}
|
|
1670
|
-
const message = response.message || response.Message || errorCode;
|
|
1671
|
-
response.message = message;
|
|
1672
|
-
delete response.Message;
|
|
1673
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1674
1376
|
};
|
|
1675
1377
|
const deserializeAws_restJson1DescribeSourceServersCommand = async (output, context) => {
|
|
1676
1378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1702,51 +1404,25 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1702
1404
|
switch (errorCode) {
|
|
1703
1405
|
case "InternalServerException":
|
|
1704
1406
|
case "com.amazonaws.drs#InternalServerException":
|
|
1705
|
-
|
|
1706
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1407
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1711
1408
|
case "ThrottlingException":
|
|
1712
1409
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1713
|
-
|
|
1714
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1410
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1719
1411
|
case "UninitializedAccountException":
|
|
1720
1412
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1721
|
-
|
|
1722
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1723
|
-
name: errorCode,
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1726
|
-
break;
|
|
1413
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1727
1414
|
case "ValidationException":
|
|
1728
1415
|
case "com.amazonaws.drs#ValidationException":
|
|
1729
|
-
|
|
1730
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1731
|
-
name: errorCode,
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1734
|
-
break;
|
|
1416
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1735
1417
|
default:
|
|
1736
1418
|
const parsedBody = parsedOutput.body;
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
...parsedBody,
|
|
1740
|
-
name: `${errorCode}`,
|
|
1741
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1419
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1742
1421
|
$fault: "client",
|
|
1743
1422
|
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1423
|
+
});
|
|
1424
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1745
1425
|
}
|
|
1746
|
-
const message = response.message || response.Message || errorCode;
|
|
1747
|
-
response.message = message;
|
|
1748
|
-
delete response.Message;
|
|
1749
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1750
1426
|
};
|
|
1751
1427
|
const deserializeAws_restJson1DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
1752
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1770,67 +1446,31 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1770
1446
|
switch (errorCode) {
|
|
1771
1447
|
case "AccessDeniedException":
|
|
1772
1448
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1773
|
-
|
|
1774
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1775
|
-
name: errorCode,
|
|
1776
|
-
$metadata: deserializeMetadata(output),
|
|
1777
|
-
};
|
|
1778
|
-
break;
|
|
1449
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1779
1450
|
case "ConflictException":
|
|
1780
1451
|
case "com.amazonaws.drs#ConflictException":
|
|
1781
|
-
|
|
1782
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1783
|
-
name: errorCode,
|
|
1784
|
-
$metadata: deserializeMetadata(output),
|
|
1785
|
-
};
|
|
1786
|
-
break;
|
|
1452
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1787
1453
|
case "InternalServerException":
|
|
1788
1454
|
case "com.amazonaws.drs#InternalServerException":
|
|
1789
|
-
|
|
1790
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1791
|
-
name: errorCode,
|
|
1792
|
-
$metadata: deserializeMetadata(output),
|
|
1793
|
-
};
|
|
1794
|
-
break;
|
|
1455
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1795
1456
|
case "ResourceNotFoundException":
|
|
1796
1457
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1797
|
-
|
|
1798
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1799
|
-
name: errorCode,
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1802
|
-
break;
|
|
1458
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1459
|
case "ThrottlingException":
|
|
1804
1460
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1805
|
-
|
|
1806
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1807
|
-
name: errorCode,
|
|
1808
|
-
$metadata: deserializeMetadata(output),
|
|
1809
|
-
};
|
|
1810
|
-
break;
|
|
1461
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1811
1462
|
case "UninitializedAccountException":
|
|
1812
1463
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1813
|
-
|
|
1814
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1815
|
-
name: errorCode,
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
};
|
|
1818
|
-
break;
|
|
1464
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1819
1465
|
default:
|
|
1820
1466
|
const parsedBody = parsedOutput.body;
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
...parsedBody,
|
|
1824
|
-
name: `${errorCode}`,
|
|
1825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1467
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1468
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1826
1469
|
$fault: "client",
|
|
1827
1470
|
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1471
|
+
});
|
|
1472
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1829
1473
|
}
|
|
1830
|
-
const message = response.message || response.Message || errorCode;
|
|
1831
|
-
response.message = message;
|
|
1832
|
-
delete response.Message;
|
|
1833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1834
1474
|
};
|
|
1835
1475
|
const deserializeAws_restJson1DisconnectSourceServerCommand = async (output, context) => {
|
|
1836
1476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1886,59 +1526,28 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1886
1526
|
switch (errorCode) {
|
|
1887
1527
|
case "ConflictException":
|
|
1888
1528
|
case "com.amazonaws.drs#ConflictException":
|
|
1889
|
-
|
|
1890
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1891
|
-
name: errorCode,
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
};
|
|
1894
|
-
break;
|
|
1529
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1895
1530
|
case "InternalServerException":
|
|
1896
1531
|
case "com.amazonaws.drs#InternalServerException":
|
|
1897
|
-
|
|
1898
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1899
|
-
name: errorCode,
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
};
|
|
1902
|
-
break;
|
|
1532
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1903
1533
|
case "ResourceNotFoundException":
|
|
1904
1534
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1905
|
-
|
|
1906
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1907
|
-
name: errorCode,
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
};
|
|
1910
|
-
break;
|
|
1535
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1911
1536
|
case "ThrottlingException":
|
|
1912
1537
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1913
|
-
|
|
1914
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1915
|
-
name: errorCode,
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1918
|
-
break;
|
|
1538
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1919
1539
|
case "UninitializedAccountException":
|
|
1920
1540
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1921
|
-
|
|
1922
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
1923
|
-
name: errorCode,
|
|
1924
|
-
$metadata: deserializeMetadata(output),
|
|
1925
|
-
};
|
|
1926
|
-
break;
|
|
1541
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1927
1542
|
default:
|
|
1928
1543
|
const parsedBody = parsedOutput.body;
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
...parsedBody,
|
|
1932
|
-
name: `${errorCode}`,
|
|
1933
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1544
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1545
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1934
1546
|
$fault: "client",
|
|
1935
1547
|
$metadata: deserializeMetadata(output),
|
|
1936
|
-
};
|
|
1548
|
+
});
|
|
1549
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1937
1550
|
}
|
|
1938
|
-
const message = response.message || response.Message || errorCode;
|
|
1939
|
-
response.message = message;
|
|
1940
|
-
delete response.Message;
|
|
1941
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1942
1551
|
};
|
|
1943
1552
|
const deserializeAws_restJson1GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
1944
1553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1978,51 +1587,25 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1978
1587
|
switch (errorCode) {
|
|
1979
1588
|
case "InternalServerException":
|
|
1980
1589
|
case "com.amazonaws.drs#InternalServerException":
|
|
1981
|
-
|
|
1982
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1983
|
-
name: errorCode,
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
};
|
|
1986
|
-
break;
|
|
1590
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1987
1591
|
case "ResourceNotFoundException":
|
|
1988
1592
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1989
|
-
|
|
1990
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1991
|
-
name: errorCode,
|
|
1992
|
-
$metadata: deserializeMetadata(output),
|
|
1993
|
-
};
|
|
1994
|
-
break;
|
|
1593
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1995
1594
|
case "ThrottlingException":
|
|
1996
1595
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1997
|
-
|
|
1998
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1999
|
-
name: errorCode,
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
};
|
|
2002
|
-
break;
|
|
1596
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2003
1597
|
case "UninitializedAccountException":
|
|
2004
1598
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2005
|
-
|
|
2006
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2007
|
-
name: errorCode,
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
2010
|
-
break;
|
|
1599
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2011
1600
|
default:
|
|
2012
1601
|
const parsedBody = parsedOutput.body;
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
...parsedBody,
|
|
2016
|
-
name: `${errorCode}`,
|
|
2017
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1602
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2018
1604
|
$fault: "client",
|
|
2019
1605
|
$metadata: deserializeMetadata(output),
|
|
2020
|
-
};
|
|
1606
|
+
});
|
|
1607
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2021
1608
|
}
|
|
2022
|
-
const message = response.message || response.Message || errorCode;
|
|
2023
|
-
response.message = message;
|
|
2024
|
-
delete response.Message;
|
|
2025
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2026
1609
|
};
|
|
2027
1610
|
const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, context) => {
|
|
2028
1611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2078,51 +1661,25 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
2078
1661
|
switch (errorCode) {
|
|
2079
1662
|
case "InternalServerException":
|
|
2080
1663
|
case "com.amazonaws.drs#InternalServerException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1664
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2087
1665
|
case "ResourceNotFoundException":
|
|
2088
1666
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1667
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2095
1668
|
case "ThrottlingException":
|
|
2096
1669
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1670
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2103
1671
|
case "UninitializedAccountException":
|
|
2104
1672
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2105
|
-
|
|
2106
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2107
|
-
name: errorCode,
|
|
2108
|
-
$metadata: deserializeMetadata(output),
|
|
2109
|
-
};
|
|
2110
|
-
break;
|
|
1673
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2111
1674
|
default:
|
|
2112
1675
|
const parsedBody = parsedOutput.body;
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
...parsedBody,
|
|
2116
|
-
name: `${errorCode}`,
|
|
2117
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1676
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1677
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2118
1678
|
$fault: "client",
|
|
2119
1679
|
$metadata: deserializeMetadata(output),
|
|
2120
|
-
};
|
|
1680
|
+
});
|
|
1681
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2121
1682
|
}
|
|
2122
|
-
const message = response.message || response.Message || errorCode;
|
|
2123
|
-
response.message = message;
|
|
2124
|
-
delete response.Message;
|
|
2125
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2126
1683
|
};
|
|
2127
1684
|
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
2128
1685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2210,51 +1767,25 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
2210
1767
|
switch (errorCode) {
|
|
2211
1768
|
case "InternalServerException":
|
|
2212
1769
|
case "com.amazonaws.drs#InternalServerException":
|
|
2213
|
-
|
|
2214
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
1770
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2219
1771
|
case "ResourceNotFoundException":
|
|
2220
1772
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2221
|
-
|
|
2222
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
1773
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2227
1774
|
case "ThrottlingException":
|
|
2228
1775
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2229
|
-
|
|
2230
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2231
|
-
name: errorCode,
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2234
|
-
break;
|
|
1776
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2235
1777
|
case "UninitializedAccountException":
|
|
2236
1778
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2237
|
-
|
|
2238
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2239
|
-
name: errorCode,
|
|
2240
|
-
$metadata: deserializeMetadata(output),
|
|
2241
|
-
};
|
|
2242
|
-
break;
|
|
1779
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2243
1780
|
default:
|
|
2244
1781
|
const parsedBody = parsedOutput.body;
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
...parsedBody,
|
|
2248
|
-
name: `${errorCode}`,
|
|
2249
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1782
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1783
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2250
1784
|
$fault: "client",
|
|
2251
1785
|
$metadata: deserializeMetadata(output),
|
|
2252
|
-
};
|
|
1786
|
+
});
|
|
1787
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2253
1788
|
}
|
|
2254
|
-
const message = response.message || response.Message || errorCode;
|
|
2255
|
-
response.message = message;
|
|
2256
|
-
delete response.Message;
|
|
2257
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2258
1789
|
};
|
|
2259
1790
|
const deserializeAws_restJson1InitializeServiceCommand = async (output, context) => {
|
|
2260
1791
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2278,51 +1809,25 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
2278
1809
|
switch (errorCode) {
|
|
2279
1810
|
case "AccessDeniedException":
|
|
2280
1811
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
1812
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2287
1813
|
case "InternalServerException":
|
|
2288
1814
|
case "com.amazonaws.drs#InternalServerException":
|
|
2289
|
-
|
|
2290
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2291
|
-
name: errorCode,
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
2294
|
-
break;
|
|
1815
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2295
1816
|
case "ThrottlingException":
|
|
2296
1817
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2297
|
-
|
|
2298
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2299
|
-
name: errorCode,
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
};
|
|
2302
|
-
break;
|
|
1818
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2303
1819
|
case "ValidationException":
|
|
2304
1820
|
case "com.amazonaws.drs#ValidationException":
|
|
2305
|
-
|
|
2306
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2307
|
-
name: errorCode,
|
|
2308
|
-
$metadata: deserializeMetadata(output),
|
|
2309
|
-
};
|
|
2310
|
-
break;
|
|
1821
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2311
1822
|
default:
|
|
2312
1823
|
const parsedBody = parsedOutput.body;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
...parsedBody,
|
|
2316
|
-
name: `${errorCode}`,
|
|
2317
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1824
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1825
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2318
1826
|
$fault: "client",
|
|
2319
1827
|
$metadata: deserializeMetadata(output),
|
|
2320
|
-
};
|
|
1828
|
+
});
|
|
1829
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2321
1830
|
}
|
|
2322
|
-
const message = response.message || response.Message || errorCode;
|
|
2323
|
-
response.message = message;
|
|
2324
|
-
delete response.Message;
|
|
2325
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2326
1831
|
};
|
|
2327
1832
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2328
1833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2350,59 +1855,28 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2350
1855
|
switch (errorCode) {
|
|
2351
1856
|
case "AccessDeniedException":
|
|
2352
1857
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2353
|
-
|
|
2354
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2355
|
-
name: errorCode,
|
|
2356
|
-
$metadata: deserializeMetadata(output),
|
|
2357
|
-
};
|
|
2358
|
-
break;
|
|
1858
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2359
1859
|
case "InternalServerException":
|
|
2360
1860
|
case "com.amazonaws.drs#InternalServerException":
|
|
2361
|
-
|
|
2362
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2363
|
-
name: errorCode,
|
|
2364
|
-
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
2366
|
-
break;
|
|
1861
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2367
1862
|
case "ResourceNotFoundException":
|
|
2368
1863
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2369
|
-
|
|
2370
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2371
|
-
name: errorCode,
|
|
2372
|
-
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
2374
|
-
break;
|
|
1864
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2375
1865
|
case "ThrottlingException":
|
|
2376
1866
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2377
|
-
|
|
2378
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2379
|
-
name: errorCode,
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
};
|
|
2382
|
-
break;
|
|
1867
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2383
1868
|
case "ValidationException":
|
|
2384
1869
|
case "com.amazonaws.drs#ValidationException":
|
|
2385
|
-
|
|
2386
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2387
|
-
name: errorCode,
|
|
2388
|
-
$metadata: deserializeMetadata(output),
|
|
2389
|
-
};
|
|
2390
|
-
break;
|
|
1870
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2391
1871
|
default:
|
|
2392
1872
|
const parsedBody = parsedOutput.body;
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
...parsedBody,
|
|
2396
|
-
name: `${errorCode}`,
|
|
2397
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1873
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2398
1875
|
$fault: "client",
|
|
2399
1876
|
$metadata: deserializeMetadata(output),
|
|
2400
|
-
};
|
|
1877
|
+
});
|
|
1878
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2401
1879
|
}
|
|
2402
|
-
const message = response.message || response.Message || errorCode;
|
|
2403
|
-
response.message = message;
|
|
2404
|
-
delete response.Message;
|
|
2405
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2406
1880
|
};
|
|
2407
1881
|
const deserializeAws_restJson1RetryDataReplicationCommand = async (output, context) => {
|
|
2408
1882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2458,59 +1932,28 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2458
1932
|
switch (errorCode) {
|
|
2459
1933
|
case "InternalServerException":
|
|
2460
1934
|
case "com.amazonaws.drs#InternalServerException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
1935
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2467
1936
|
case "ResourceNotFoundException":
|
|
2468
1937
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2469
|
-
|
|
2470
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2471
|
-
name: errorCode,
|
|
2472
|
-
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
2474
|
-
break;
|
|
1938
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2475
1939
|
case "ThrottlingException":
|
|
2476
1940
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2477
|
-
|
|
2478
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2479
|
-
name: errorCode,
|
|
2480
|
-
$metadata: deserializeMetadata(output),
|
|
2481
|
-
};
|
|
2482
|
-
break;
|
|
1941
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2483
1942
|
case "UninitializedAccountException":
|
|
2484
1943
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2485
|
-
|
|
2486
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2487
|
-
name: errorCode,
|
|
2488
|
-
$metadata: deserializeMetadata(output),
|
|
2489
|
-
};
|
|
2490
|
-
break;
|
|
1944
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2491
1945
|
case "ValidationException":
|
|
2492
1946
|
case "com.amazonaws.drs#ValidationException":
|
|
2493
|
-
|
|
2494
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2495
|
-
name: errorCode,
|
|
2496
|
-
$metadata: deserializeMetadata(output),
|
|
2497
|
-
};
|
|
2498
|
-
break;
|
|
1947
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2499
1948
|
default:
|
|
2500
1949
|
const parsedBody = parsedOutput.body;
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
...parsedBody,
|
|
2504
|
-
name: `${errorCode}`,
|
|
2505
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1950
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
1951
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2506
1952
|
$fault: "client",
|
|
2507
1953
|
$metadata: deserializeMetadata(output),
|
|
2508
|
-
};
|
|
1954
|
+
});
|
|
1955
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2509
1956
|
}
|
|
2510
|
-
const message = response.message || response.Message || errorCode;
|
|
2511
|
-
response.message = message;
|
|
2512
|
-
delete response.Message;
|
|
2513
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2514
1957
|
};
|
|
2515
1958
|
const deserializeAws_restJson1StartFailbackLaunchCommand = async (output, context) => {
|
|
2516
1959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2538,67 +1981,31 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2538
1981
|
switch (errorCode) {
|
|
2539
1982
|
case "ConflictException":
|
|
2540
1983
|
case "com.amazonaws.drs#ConflictException":
|
|
2541
|
-
|
|
2542
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2543
|
-
name: errorCode,
|
|
2544
|
-
$metadata: deserializeMetadata(output),
|
|
2545
|
-
};
|
|
2546
|
-
break;
|
|
1984
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2547
1985
|
case "InternalServerException":
|
|
2548
1986
|
case "com.amazonaws.drs#InternalServerException":
|
|
2549
|
-
|
|
2550
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2551
|
-
name: errorCode,
|
|
2552
|
-
$metadata: deserializeMetadata(output),
|
|
2553
|
-
};
|
|
2554
|
-
break;
|
|
1987
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2555
1988
|
case "ServiceQuotaExceededException":
|
|
2556
1989
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2557
|
-
|
|
2558
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2559
|
-
name: errorCode,
|
|
2560
|
-
$metadata: deserializeMetadata(output),
|
|
2561
|
-
};
|
|
2562
|
-
break;
|
|
1990
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2563
1991
|
case "ThrottlingException":
|
|
2564
1992
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2565
|
-
|
|
2566
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2567
|
-
name: errorCode,
|
|
2568
|
-
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
2570
|
-
break;
|
|
1993
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2571
1994
|
case "UninitializedAccountException":
|
|
2572
1995
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2573
|
-
|
|
2574
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2575
|
-
name: errorCode,
|
|
2576
|
-
$metadata: deserializeMetadata(output),
|
|
2577
|
-
};
|
|
2578
|
-
break;
|
|
1996
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2579
1997
|
case "ValidationException":
|
|
2580
1998
|
case "com.amazonaws.drs#ValidationException":
|
|
2581
|
-
|
|
2582
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2583
|
-
name: errorCode,
|
|
2584
|
-
$metadata: deserializeMetadata(output),
|
|
2585
|
-
};
|
|
2586
|
-
break;
|
|
1999
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2587
2000
|
default:
|
|
2588
2001
|
const parsedBody = parsedOutput.body;
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
...parsedBody,
|
|
2592
|
-
name: `${errorCode}`,
|
|
2593
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2002
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2003
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2594
2004
|
$fault: "client",
|
|
2595
2005
|
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2006
|
+
});
|
|
2007
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2597
2008
|
}
|
|
2598
|
-
const message = response.message || response.Message || errorCode;
|
|
2599
|
-
response.message = message;
|
|
2600
|
-
delete response.Message;
|
|
2601
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2602
2009
|
};
|
|
2603
2010
|
const deserializeAws_restJson1StartRecoveryCommand = async (output, context) => {
|
|
2604
2011
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2626,59 +2033,28 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2626
2033
|
switch (errorCode) {
|
|
2627
2034
|
case "ConflictException":
|
|
2628
2035
|
case "com.amazonaws.drs#ConflictException":
|
|
2629
|
-
|
|
2630
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2631
|
-
name: errorCode,
|
|
2632
|
-
$metadata: deserializeMetadata(output),
|
|
2633
|
-
};
|
|
2634
|
-
break;
|
|
2036
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2635
2037
|
case "InternalServerException":
|
|
2636
2038
|
case "com.amazonaws.drs#InternalServerException":
|
|
2637
|
-
|
|
2638
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2639
|
-
name: errorCode,
|
|
2640
|
-
$metadata: deserializeMetadata(output),
|
|
2641
|
-
};
|
|
2642
|
-
break;
|
|
2039
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2643
2040
|
case "ServiceQuotaExceededException":
|
|
2644
2041
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2645
|
-
|
|
2646
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2647
|
-
name: errorCode,
|
|
2648
|
-
$metadata: deserializeMetadata(output),
|
|
2649
|
-
};
|
|
2650
|
-
break;
|
|
2042
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2651
2043
|
case "ThrottlingException":
|
|
2652
2044
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2653
|
-
|
|
2654
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2655
|
-
name: errorCode,
|
|
2656
|
-
$metadata: deserializeMetadata(output),
|
|
2657
|
-
};
|
|
2658
|
-
break;
|
|
2045
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2659
2046
|
case "UninitializedAccountException":
|
|
2660
2047
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2661
|
-
|
|
2662
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2663
|
-
name: errorCode,
|
|
2664
|
-
$metadata: deserializeMetadata(output),
|
|
2665
|
-
};
|
|
2666
|
-
break;
|
|
2048
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2667
2049
|
default:
|
|
2668
2050
|
const parsedBody = parsedOutput.body;
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
...parsedBody,
|
|
2672
|
-
name: `${errorCode}`,
|
|
2673
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2051
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2052
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2674
2053
|
$fault: "client",
|
|
2675
2054
|
$metadata: deserializeMetadata(output),
|
|
2676
|
-
};
|
|
2055
|
+
});
|
|
2056
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2677
2057
|
}
|
|
2678
|
-
const message = response.message || response.Message || errorCode;
|
|
2679
|
-
response.message = message;
|
|
2680
|
-
delete response.Message;
|
|
2681
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2682
2058
|
};
|
|
2683
2059
|
const deserializeAws_restJson1StopFailbackCommand = async (output, context) => {
|
|
2684
2060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2702,51 +2078,25 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2702
2078
|
switch (errorCode) {
|
|
2703
2079
|
case "InternalServerException":
|
|
2704
2080
|
case "com.amazonaws.drs#InternalServerException":
|
|
2705
|
-
|
|
2706
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2707
|
-
name: errorCode,
|
|
2708
|
-
$metadata: deserializeMetadata(output),
|
|
2709
|
-
};
|
|
2710
|
-
break;
|
|
2081
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2711
2082
|
case "ResourceNotFoundException":
|
|
2712
2083
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2713
|
-
|
|
2714
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2715
|
-
name: errorCode,
|
|
2716
|
-
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2718
|
-
break;
|
|
2084
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2719
2085
|
case "ThrottlingException":
|
|
2720
2086
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2721
|
-
|
|
2722
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2723
|
-
name: errorCode,
|
|
2724
|
-
$metadata: deserializeMetadata(output),
|
|
2725
|
-
};
|
|
2726
|
-
break;
|
|
2087
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2727
2088
|
case "UninitializedAccountException":
|
|
2728
2089
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2729
|
-
|
|
2730
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2731
|
-
name: errorCode,
|
|
2732
|
-
$metadata: deserializeMetadata(output),
|
|
2733
|
-
};
|
|
2734
|
-
break;
|
|
2090
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2735
2091
|
default:
|
|
2736
2092
|
const parsedBody = parsedOutput.body;
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
...parsedBody,
|
|
2740
|
-
name: `${errorCode}`,
|
|
2741
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2093
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2094
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2742
2095
|
$fault: "client",
|
|
2743
2096
|
$metadata: deserializeMetadata(output),
|
|
2744
|
-
};
|
|
2097
|
+
});
|
|
2098
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2745
2099
|
}
|
|
2746
|
-
const message = response.message || response.Message || errorCode;
|
|
2747
|
-
response.message = message;
|
|
2748
|
-
delete response.Message;
|
|
2749
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2750
2100
|
};
|
|
2751
2101
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2752
2102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2770,59 +2120,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2770
2120
|
switch (errorCode) {
|
|
2771
2121
|
case "AccessDeniedException":
|
|
2772
2122
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2773
|
-
|
|
2774
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2775
|
-
name: errorCode,
|
|
2776
|
-
$metadata: deserializeMetadata(output),
|
|
2777
|
-
};
|
|
2778
|
-
break;
|
|
2123
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2779
2124
|
case "InternalServerException":
|
|
2780
2125
|
case "com.amazonaws.drs#InternalServerException":
|
|
2781
|
-
|
|
2782
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2783
|
-
name: errorCode,
|
|
2784
|
-
$metadata: deserializeMetadata(output),
|
|
2785
|
-
};
|
|
2786
|
-
break;
|
|
2126
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2787
2127
|
case "ResourceNotFoundException":
|
|
2788
2128
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2789
|
-
|
|
2790
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2791
|
-
name: errorCode,
|
|
2792
|
-
$metadata: deserializeMetadata(output),
|
|
2793
|
-
};
|
|
2794
|
-
break;
|
|
2129
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2795
2130
|
case "ThrottlingException":
|
|
2796
2131
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2797
|
-
|
|
2798
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2799
|
-
name: errorCode,
|
|
2800
|
-
$metadata: deserializeMetadata(output),
|
|
2801
|
-
};
|
|
2802
|
-
break;
|
|
2132
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2803
2133
|
case "ValidationException":
|
|
2804
2134
|
case "com.amazonaws.drs#ValidationException":
|
|
2805
|
-
|
|
2806
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2807
|
-
name: errorCode,
|
|
2808
|
-
$metadata: deserializeMetadata(output),
|
|
2809
|
-
};
|
|
2810
|
-
break;
|
|
2135
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2811
2136
|
default:
|
|
2812
2137
|
const parsedBody = parsedOutput.body;
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
...parsedBody,
|
|
2816
|
-
name: `${errorCode}`,
|
|
2817
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2138
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2818
2140
|
$fault: "client",
|
|
2819
2141
|
$metadata: deserializeMetadata(output),
|
|
2820
|
-
};
|
|
2142
|
+
});
|
|
2143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2821
2144
|
}
|
|
2822
|
-
const message = response.message || response.Message || errorCode;
|
|
2823
|
-
response.message = message;
|
|
2824
|
-
delete response.Message;
|
|
2825
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2826
2145
|
};
|
|
2827
2146
|
const deserializeAws_restJson1TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
2828
2147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2850,59 +2169,28 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2850
2169
|
switch (errorCode) {
|
|
2851
2170
|
case "ConflictException":
|
|
2852
2171
|
case "com.amazonaws.drs#ConflictException":
|
|
2853
|
-
|
|
2854
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2855
|
-
name: errorCode,
|
|
2856
|
-
$metadata: deserializeMetadata(output),
|
|
2857
|
-
};
|
|
2858
|
-
break;
|
|
2172
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2859
2173
|
case "InternalServerException":
|
|
2860
2174
|
case "com.amazonaws.drs#InternalServerException":
|
|
2861
|
-
|
|
2862
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2863
|
-
name: errorCode,
|
|
2864
|
-
$metadata: deserializeMetadata(output),
|
|
2865
|
-
};
|
|
2866
|
-
break;
|
|
2175
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2867
2176
|
case "ServiceQuotaExceededException":
|
|
2868
2177
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2869
|
-
|
|
2870
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2871
|
-
name: errorCode,
|
|
2872
|
-
$metadata: deserializeMetadata(output),
|
|
2873
|
-
};
|
|
2874
|
-
break;
|
|
2178
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2875
2179
|
case "ThrottlingException":
|
|
2876
2180
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2877
|
-
|
|
2878
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2879
|
-
name: errorCode,
|
|
2880
|
-
$metadata: deserializeMetadata(output),
|
|
2881
|
-
};
|
|
2882
|
-
break;
|
|
2181
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2883
2182
|
case "UninitializedAccountException":
|
|
2884
2183
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2885
|
-
|
|
2886
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
2887
|
-
name: errorCode,
|
|
2888
|
-
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
2890
|
-
break;
|
|
2184
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2891
2185
|
default:
|
|
2892
2186
|
const parsedBody = parsedOutput.body;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
...parsedBody,
|
|
2896
|
-
name: `${errorCode}`,
|
|
2897
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2187
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2188
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2898
2189
|
$fault: "client",
|
|
2899
2190
|
$metadata: deserializeMetadata(output),
|
|
2900
|
-
};
|
|
2191
|
+
});
|
|
2192
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2901
2193
|
}
|
|
2902
|
-
const message = response.message || response.Message || errorCode;
|
|
2903
|
-
response.message = message;
|
|
2904
|
-
delete response.Message;
|
|
2905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2906
2194
|
};
|
|
2907
2195
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2908
2196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2926,59 +2214,28 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2926
2214
|
switch (errorCode) {
|
|
2927
2215
|
case "AccessDeniedException":
|
|
2928
2216
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2929
|
-
|
|
2930
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2931
|
-
name: errorCode,
|
|
2932
|
-
$metadata: deserializeMetadata(output),
|
|
2933
|
-
};
|
|
2934
|
-
break;
|
|
2217
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2935
2218
|
case "InternalServerException":
|
|
2936
2219
|
case "com.amazonaws.drs#InternalServerException":
|
|
2937
|
-
|
|
2938
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2939
|
-
name: errorCode,
|
|
2940
|
-
$metadata: deserializeMetadata(output),
|
|
2941
|
-
};
|
|
2942
|
-
break;
|
|
2220
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2943
2221
|
case "ResourceNotFoundException":
|
|
2944
2222
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2945
|
-
|
|
2946
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2947
|
-
name: errorCode,
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
};
|
|
2950
|
-
break;
|
|
2223
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2951
2224
|
case "ThrottlingException":
|
|
2952
2225
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2953
|
-
|
|
2954
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2955
|
-
name: errorCode,
|
|
2956
|
-
$metadata: deserializeMetadata(output),
|
|
2957
|
-
};
|
|
2958
|
-
break;
|
|
2226
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2959
2227
|
case "ValidationException":
|
|
2960
2228
|
case "com.amazonaws.drs#ValidationException":
|
|
2961
|
-
|
|
2962
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2963
|
-
name: errorCode,
|
|
2964
|
-
$metadata: deserializeMetadata(output),
|
|
2965
|
-
};
|
|
2966
|
-
break;
|
|
2229
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2967
2230
|
default:
|
|
2968
2231
|
const parsedBody = parsedOutput.body;
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
...parsedBody,
|
|
2972
|
-
name: `${errorCode}`,
|
|
2973
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2232
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2974
2234
|
$fault: "client",
|
|
2975
2235
|
$metadata: deserializeMetadata(output),
|
|
2976
|
-
};
|
|
2236
|
+
});
|
|
2237
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2977
2238
|
}
|
|
2978
|
-
const message = response.message || response.Message || errorCode;
|
|
2979
|
-
response.message = message;
|
|
2980
|
-
delete response.Message;
|
|
2981
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2982
2239
|
};
|
|
2983
2240
|
const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
2984
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3002,59 +2259,28 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
3002
2259
|
switch (errorCode) {
|
|
3003
2260
|
case "AccessDeniedException":
|
|
3004
2261
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
3005
|
-
|
|
3006
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3007
|
-
name: errorCode,
|
|
3008
|
-
$metadata: deserializeMetadata(output),
|
|
3009
|
-
};
|
|
3010
|
-
break;
|
|
2262
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3011
2263
|
case "InternalServerException":
|
|
3012
2264
|
case "com.amazonaws.drs#InternalServerException":
|
|
3013
|
-
|
|
3014
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3015
|
-
name: errorCode,
|
|
3016
|
-
$metadata: deserializeMetadata(output),
|
|
3017
|
-
};
|
|
3018
|
-
break;
|
|
2265
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3019
2266
|
case "ResourceNotFoundException":
|
|
3020
2267
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3021
|
-
|
|
3022
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3023
|
-
name: errorCode,
|
|
3024
|
-
$metadata: deserializeMetadata(output),
|
|
3025
|
-
};
|
|
3026
|
-
break;
|
|
2268
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3027
2269
|
case "ThrottlingException":
|
|
3028
2270
|
case "com.amazonaws.drs#ThrottlingException":
|
|
3029
|
-
|
|
3030
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3031
|
-
name: errorCode,
|
|
3032
|
-
$metadata: deserializeMetadata(output),
|
|
3033
|
-
};
|
|
3034
|
-
break;
|
|
2271
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3035
2272
|
case "UninitializedAccountException":
|
|
3036
2273
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3037
|
-
|
|
3038
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
3039
|
-
name: errorCode,
|
|
3040
|
-
$metadata: deserializeMetadata(output),
|
|
3041
|
-
};
|
|
3042
|
-
break;
|
|
2274
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3043
2275
|
default:
|
|
3044
2276
|
const parsedBody = parsedOutput.body;
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
...parsedBody,
|
|
3048
|
-
name: `${errorCode}`,
|
|
3049
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2277
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2278
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3050
2279
|
$fault: "client",
|
|
3051
2280
|
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
2281
|
+
});
|
|
2282
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3053
2283
|
}
|
|
3054
|
-
const message = response.message || response.Message || errorCode;
|
|
3055
|
-
response.message = message;
|
|
3056
|
-
delete response.Message;
|
|
3057
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3058
2284
|
};
|
|
3059
2285
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
3060
2286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3110,67 +2336,31 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
3110
2336
|
switch (errorCode) {
|
|
3111
2337
|
case "ConflictException":
|
|
3112
2338
|
case "com.amazonaws.drs#ConflictException":
|
|
3113
|
-
|
|
3114
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3115
|
-
name: errorCode,
|
|
3116
|
-
$metadata: deserializeMetadata(output),
|
|
3117
|
-
};
|
|
3118
|
-
break;
|
|
2339
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3119
2340
|
case "InternalServerException":
|
|
3120
2341
|
case "com.amazonaws.drs#InternalServerException":
|
|
3121
|
-
|
|
3122
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3123
|
-
name: errorCode,
|
|
3124
|
-
$metadata: deserializeMetadata(output),
|
|
3125
|
-
};
|
|
3126
|
-
break;
|
|
2342
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3127
2343
|
case "ResourceNotFoundException":
|
|
3128
2344
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3129
|
-
|
|
3130
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3131
|
-
name: errorCode,
|
|
3132
|
-
$metadata: deserializeMetadata(output),
|
|
3133
|
-
};
|
|
3134
|
-
break;
|
|
2345
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3135
2346
|
case "ThrottlingException":
|
|
3136
2347
|
case "com.amazonaws.drs#ThrottlingException":
|
|
3137
|
-
|
|
3138
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3139
|
-
name: errorCode,
|
|
3140
|
-
$metadata: deserializeMetadata(output),
|
|
3141
|
-
};
|
|
3142
|
-
break;
|
|
2348
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3143
2349
|
case "UninitializedAccountException":
|
|
3144
2350
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3145
|
-
|
|
3146
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
3147
|
-
name: errorCode,
|
|
3148
|
-
$metadata: deserializeMetadata(output),
|
|
3149
|
-
};
|
|
3150
|
-
break;
|
|
2351
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3151
2352
|
case "ValidationException":
|
|
3152
2353
|
case "com.amazonaws.drs#ValidationException":
|
|
3153
|
-
|
|
3154
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3155
|
-
name: errorCode,
|
|
3156
|
-
$metadata: deserializeMetadata(output),
|
|
3157
|
-
};
|
|
3158
|
-
break;
|
|
2354
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3159
2355
|
default:
|
|
3160
2356
|
const parsedBody = parsedOutput.body;
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
...parsedBody,
|
|
3164
|
-
name: `${errorCode}`,
|
|
3165
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2357
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2358
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3166
2359
|
$fault: "client",
|
|
3167
2360
|
$metadata: deserializeMetadata(output),
|
|
3168
|
-
};
|
|
2361
|
+
});
|
|
2362
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3169
2363
|
}
|
|
3170
|
-
const message = response.message || response.Message || errorCode;
|
|
3171
|
-
response.message = message;
|
|
3172
|
-
delete response.Message;
|
|
3173
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3174
2364
|
};
|
|
3175
2365
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
3176
2366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3258,75 +2448,34 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
3258
2448
|
switch (errorCode) {
|
|
3259
2449
|
case "AccessDeniedException":
|
|
3260
2450
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
3261
|
-
|
|
3262
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3263
|
-
name: errorCode,
|
|
3264
|
-
$metadata: deserializeMetadata(output),
|
|
3265
|
-
};
|
|
3266
|
-
break;
|
|
2451
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3267
2452
|
case "ConflictException":
|
|
3268
2453
|
case "com.amazonaws.drs#ConflictException":
|
|
3269
|
-
|
|
3270
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3271
|
-
name: errorCode,
|
|
3272
|
-
$metadata: deserializeMetadata(output),
|
|
3273
|
-
};
|
|
3274
|
-
break;
|
|
2454
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3275
2455
|
case "InternalServerException":
|
|
3276
2456
|
case "com.amazonaws.drs#InternalServerException":
|
|
3277
|
-
|
|
3278
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3279
|
-
name: errorCode,
|
|
3280
|
-
$metadata: deserializeMetadata(output),
|
|
3281
|
-
};
|
|
3282
|
-
break;
|
|
2457
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3283
2458
|
case "ResourceNotFoundException":
|
|
3284
2459
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3285
|
-
|
|
3286
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3287
|
-
name: errorCode,
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
};
|
|
3290
|
-
break;
|
|
2460
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3291
2461
|
case "ThrottlingException":
|
|
3292
2462
|
case "com.amazonaws.drs#ThrottlingException":
|
|
3293
|
-
|
|
3294
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3295
|
-
name: errorCode,
|
|
3296
|
-
$metadata: deserializeMetadata(output),
|
|
3297
|
-
};
|
|
3298
|
-
break;
|
|
2463
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3299
2464
|
case "UninitializedAccountException":
|
|
3300
2465
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3301
|
-
|
|
3302
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
3303
|
-
name: errorCode,
|
|
3304
|
-
$metadata: deserializeMetadata(output),
|
|
3305
|
-
};
|
|
3306
|
-
break;
|
|
2466
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3307
2467
|
case "ValidationException":
|
|
3308
2468
|
case "com.amazonaws.drs#ValidationException":
|
|
3309
|
-
|
|
3310
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3311
|
-
name: errorCode,
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
};
|
|
3314
|
-
break;
|
|
2469
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3315
2470
|
default:
|
|
3316
2471
|
const parsedBody = parsedOutput.body;
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
...parsedBody,
|
|
3320
|
-
name: `${errorCode}`,
|
|
3321
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2472
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2473
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3322
2474
|
$fault: "client",
|
|
3323
2475
|
$metadata: deserializeMetadata(output),
|
|
3324
|
-
};
|
|
2476
|
+
});
|
|
2477
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3325
2478
|
}
|
|
3326
|
-
const message = response.message || response.Message || errorCode;
|
|
3327
|
-
response.message = message;
|
|
3328
|
-
delete response.Message;
|
|
3329
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3330
2479
|
};
|
|
3331
2480
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
3332
2481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3414,76 +2563,34 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
3414
2563
|
switch (errorCode) {
|
|
3415
2564
|
case "AccessDeniedException":
|
|
3416
2565
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
3417
|
-
|
|
3418
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3419
|
-
name: errorCode,
|
|
3420
|
-
$metadata: deserializeMetadata(output),
|
|
3421
|
-
};
|
|
3422
|
-
break;
|
|
2566
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3423
2567
|
case "InternalServerException":
|
|
3424
2568
|
case "com.amazonaws.drs#InternalServerException":
|
|
3425
|
-
|
|
3426
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3427
|
-
name: errorCode,
|
|
3428
|
-
$metadata: deserializeMetadata(output),
|
|
3429
|
-
};
|
|
3430
|
-
break;
|
|
2569
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3431
2570
|
case "ResourceNotFoundException":
|
|
3432
2571
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3433
|
-
|
|
3434
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3435
|
-
name: errorCode,
|
|
3436
|
-
$metadata: deserializeMetadata(output),
|
|
3437
|
-
};
|
|
3438
|
-
break;
|
|
2572
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3439
2573
|
case "ThrottlingException":
|
|
3440
2574
|
case "com.amazonaws.drs#ThrottlingException":
|
|
3441
|
-
|
|
3442
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3443
|
-
name: errorCode,
|
|
3444
|
-
$metadata: deserializeMetadata(output),
|
|
3445
|
-
};
|
|
3446
|
-
break;
|
|
2575
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3447
2576
|
case "UninitializedAccountException":
|
|
3448
2577
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3449
|
-
|
|
3450
|
-
...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
|
|
3451
|
-
name: errorCode,
|
|
3452
|
-
$metadata: deserializeMetadata(output),
|
|
3453
|
-
};
|
|
3454
|
-
break;
|
|
2578
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3455
2579
|
case "ValidationException":
|
|
3456
2580
|
case "com.amazonaws.drs#ValidationException":
|
|
3457
|
-
|
|
3458
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3459
|
-
name: errorCode,
|
|
3460
|
-
$metadata: deserializeMetadata(output),
|
|
3461
|
-
};
|
|
3462
|
-
break;
|
|
2581
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3463
2582
|
default:
|
|
3464
2583
|
const parsedBody = parsedOutput.body;
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
...parsedBody,
|
|
3468
|
-
name: `${errorCode}`,
|
|
3469
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2584
|
+
response = new DrsServiceException_1.DrsServiceException({
|
|
2585
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3470
2586
|
$fault: "client",
|
|
3471
2587
|
$metadata: deserializeMetadata(output),
|
|
3472
|
-
};
|
|
2588
|
+
});
|
|
2589
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3473
2590
|
}
|
|
3474
|
-
const message = response.message || response.Message || errorCode;
|
|
3475
|
-
response.message = message;
|
|
3476
|
-
delete response.Message;
|
|
3477
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3478
2591
|
};
|
|
3479
2592
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3480
|
-
const contents = {
|
|
3481
|
-
name: "AccessDeniedException",
|
|
3482
|
-
$fault: "client",
|
|
3483
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3484
|
-
code: undefined,
|
|
3485
|
-
message: undefined,
|
|
3486
|
-
};
|
|
2593
|
+
const contents = {};
|
|
3487
2594
|
const data = parsedOutput.body;
|
|
3488
2595
|
if (data.code !== undefined && data.code !== null) {
|
|
3489
2596
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3491,18 +2598,14 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3491
2598
|
if (data.message !== undefined && data.message !== null) {
|
|
3492
2599
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3493
2600
|
}
|
|
3494
|
-
|
|
2601
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2602
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
|
+
...contents,
|
|
2604
|
+
});
|
|
2605
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3495
2606
|
};
|
|
3496
2607
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3497
|
-
const contents = {
|
|
3498
|
-
name: "ConflictException",
|
|
3499
|
-
$fault: "client",
|
|
3500
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3501
|
-
code: undefined,
|
|
3502
|
-
message: undefined,
|
|
3503
|
-
resourceId: undefined,
|
|
3504
|
-
resourceType: undefined,
|
|
3505
|
-
};
|
|
2608
|
+
const contents = {};
|
|
3506
2609
|
const data = parsedOutput.body;
|
|
3507
2610
|
if (data.code !== undefined && data.code !== null) {
|
|
3508
2611
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3516,16 +2619,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3516
2619
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3517
2620
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3518
2621
|
}
|
|
3519
|
-
|
|
2622
|
+
const exception = new models_0_1.ConflictException({
|
|
2623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2624
|
+
...contents,
|
|
2625
|
+
});
|
|
2626
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3520
2627
|
};
|
|
3521
2628
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3522
|
-
const contents = {
|
|
3523
|
-
name: "InternalServerException",
|
|
3524
|
-
$fault: "server",
|
|
3525
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3526
|
-
message: undefined,
|
|
3527
|
-
retryAfterSeconds: undefined,
|
|
3528
|
-
};
|
|
2629
|
+
const contents = {};
|
|
3529
2630
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3530
2631
|
contents.retryAfterSeconds = smithy_client_1.strictParseLong(parsedOutput.headers["retry-after"]);
|
|
3531
2632
|
}
|
|
@@ -3533,18 +2634,14 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3533
2634
|
if (data.message !== undefined && data.message !== null) {
|
|
3534
2635
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3535
2636
|
}
|
|
3536
|
-
|
|
2637
|
+
const exception = new models_0_1.InternalServerException({
|
|
2638
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2639
|
+
...contents,
|
|
2640
|
+
});
|
|
2641
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3537
2642
|
};
|
|
3538
2643
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3539
|
-
const contents = {
|
|
3540
|
-
name: "ResourceNotFoundException",
|
|
3541
|
-
$fault: "client",
|
|
3542
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3543
|
-
code: undefined,
|
|
3544
|
-
message: undefined,
|
|
3545
|
-
resourceId: undefined,
|
|
3546
|
-
resourceType: undefined,
|
|
3547
|
-
};
|
|
2644
|
+
const contents = {};
|
|
3548
2645
|
const data = parsedOutput.body;
|
|
3549
2646
|
if (data.code !== undefined && data.code !== null) {
|
|
3550
2647
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3558,20 +2655,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3558
2655
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3559
2656
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3560
2657
|
}
|
|
3561
|
-
|
|
2658
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2659
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2660
|
+
...contents,
|
|
2661
|
+
});
|
|
2662
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3562
2663
|
};
|
|
3563
2664
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3564
|
-
const contents = {
|
|
3565
|
-
name: "ServiceQuotaExceededException",
|
|
3566
|
-
$fault: "client",
|
|
3567
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3568
|
-
code: undefined,
|
|
3569
|
-
message: undefined,
|
|
3570
|
-
quotaCode: undefined,
|
|
3571
|
-
resourceId: undefined,
|
|
3572
|
-
resourceType: undefined,
|
|
3573
|
-
serviceCode: undefined,
|
|
3574
|
-
};
|
|
2665
|
+
const contents = {};
|
|
3575
2666
|
const data = parsedOutput.body;
|
|
3576
2667
|
if (data.code !== undefined && data.code !== null) {
|
|
3577
2668
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3591,18 +2682,14 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3591
2682
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3592
2683
|
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
3593
2684
|
}
|
|
3594
|
-
|
|
2685
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2686
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2687
|
+
...contents,
|
|
2688
|
+
});
|
|
2689
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3595
2690
|
};
|
|
3596
2691
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3597
|
-
const contents = {
|
|
3598
|
-
name: "ThrottlingException",
|
|
3599
|
-
$fault: "client",
|
|
3600
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3601
|
-
message: undefined,
|
|
3602
|
-
quotaCode: undefined,
|
|
3603
|
-
retryAfterSeconds: undefined,
|
|
3604
|
-
serviceCode: undefined,
|
|
3605
|
-
};
|
|
2692
|
+
const contents = {};
|
|
3606
2693
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3607
2694
|
contents.retryAfterSeconds = parsedOutput.headers["retry-after"];
|
|
3608
2695
|
}
|
|
@@ -3616,16 +2703,14 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3616
2703
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3617
2704
|
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
3618
2705
|
}
|
|
3619
|
-
|
|
2706
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2707
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2708
|
+
...contents,
|
|
2709
|
+
});
|
|
2710
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3620
2711
|
};
|
|
3621
2712
|
const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (parsedOutput, context) => {
|
|
3622
|
-
const contents = {
|
|
3623
|
-
name: "UninitializedAccountException",
|
|
3624
|
-
$fault: "client",
|
|
3625
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3626
|
-
code: undefined,
|
|
3627
|
-
message: undefined,
|
|
3628
|
-
};
|
|
2713
|
+
const contents = {};
|
|
3629
2714
|
const data = parsedOutput.body;
|
|
3630
2715
|
if (data.code !== undefined && data.code !== null) {
|
|
3631
2716
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3633,18 +2718,14 @@ const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (par
|
|
|
3633
2718
|
if (data.message !== undefined && data.message !== null) {
|
|
3634
2719
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3635
2720
|
}
|
|
3636
|
-
|
|
2721
|
+
const exception = new models_0_1.UninitializedAccountException({
|
|
2722
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2723
|
+
...contents,
|
|
2724
|
+
});
|
|
2725
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3637
2726
|
};
|
|
3638
2727
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3639
|
-
const contents = {
|
|
3640
|
-
name: "ValidationException",
|
|
3641
|
-
$fault: "client",
|
|
3642
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3643
|
-
code: undefined,
|
|
3644
|
-
fieldList: undefined,
|
|
3645
|
-
message: undefined,
|
|
3646
|
-
reason: undefined,
|
|
3647
|
-
};
|
|
2728
|
+
const contents = {};
|
|
3648
2729
|
const data = parsedOutput.body;
|
|
3649
2730
|
if (data.code !== undefined && data.code !== null) {
|
|
3650
2731
|
contents.code = smithy_client_1.expectString(data.code);
|
|
@@ -3658,7 +2739,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3658
2739
|
if (data.reason !== undefined && data.reason !== null) {
|
|
3659
2740
|
contents.reason = smithy_client_1.expectString(data.reason);
|
|
3660
2741
|
}
|
|
3661
|
-
|
|
2742
|
+
const exception = new models_0_1.ValidationException({
|
|
2743
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2744
|
+
...contents,
|
|
2745
|
+
});
|
|
2746
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3662
2747
|
};
|
|
3663
2748
|
const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
|
|
3664
2749
|
return {
|
|
@@ -3858,7 +2943,7 @@ const deserializeAws_restJson1CPU = (output, context) => {
|
|
|
3858
2943
|
};
|
|
3859
2944
|
};
|
|
3860
2945
|
const deserializeAws_restJson1Cpus = (output, context) => {
|
|
3861
|
-
|
|
2946
|
+
const retVal = (output || [])
|
|
3862
2947
|
.filter((e) => e != null)
|
|
3863
2948
|
.map((entry) => {
|
|
3864
2949
|
if (entry === null) {
|
|
@@ -3866,6 +2951,7 @@ const deserializeAws_restJson1Cpus = (output, context) => {
|
|
|
3866
2951
|
}
|
|
3867
2952
|
return deserializeAws_restJson1CPU(entry, context);
|
|
3868
2953
|
});
|
|
2954
|
+
return retVal;
|
|
3869
2955
|
};
|
|
3870
2956
|
const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
3871
2957
|
return {
|
|
@@ -3899,7 +2985,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, conte
|
|
|
3899
2985
|
};
|
|
3900
2986
|
};
|
|
3901
2987
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
3902
|
-
|
|
2988
|
+
const retVal = (output || [])
|
|
3903
2989
|
.filter((e) => e != null)
|
|
3904
2990
|
.map((entry) => {
|
|
3905
2991
|
if (entry === null) {
|
|
@@ -3907,6 +2993,7 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, cont
|
|
|
3907
2993
|
}
|
|
3908
2994
|
return deserializeAws_restJson1DataReplicationInfoReplicatedDisk(entry, context);
|
|
3909
2995
|
});
|
|
2996
|
+
return retVal;
|
|
3910
2997
|
};
|
|
3911
2998
|
const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
3912
2999
|
return {
|
|
@@ -3924,7 +3011,7 @@ const deserializeAws_restJson1DataReplicationInitiationStep = (output, context)
|
|
|
3924
3011
|
};
|
|
3925
3012
|
};
|
|
3926
3013
|
const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context) => {
|
|
3927
|
-
|
|
3014
|
+
const retVal = (output || [])
|
|
3928
3015
|
.filter((e) => e != null)
|
|
3929
3016
|
.map((entry) => {
|
|
3930
3017
|
if (entry === null) {
|
|
@@ -3932,9 +3019,10 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context)
|
|
|
3932
3019
|
}
|
|
3933
3020
|
return deserializeAws_restJson1DataReplicationInitiationStep(entry, context);
|
|
3934
3021
|
});
|
|
3022
|
+
return retVal;
|
|
3935
3023
|
};
|
|
3936
3024
|
const deserializeAws_restJson1DescribeRecoveryInstancesItems = (output, context) => {
|
|
3937
|
-
|
|
3025
|
+
const retVal = (output || [])
|
|
3938
3026
|
.filter((e) => e != null)
|
|
3939
3027
|
.map((entry) => {
|
|
3940
3028
|
if (entry === null) {
|
|
@@ -3942,6 +3030,7 @@ const deserializeAws_restJson1DescribeRecoveryInstancesItems = (output, context)
|
|
|
3942
3030
|
}
|
|
3943
3031
|
return deserializeAws_restJson1RecoveryInstance(entry, context);
|
|
3944
3032
|
});
|
|
3033
|
+
return retVal;
|
|
3945
3034
|
};
|
|
3946
3035
|
const deserializeAws_restJson1Disk = (output, context) => {
|
|
3947
3036
|
return {
|
|
@@ -3950,7 +3039,7 @@ const deserializeAws_restJson1Disk = (output, context) => {
|
|
|
3950
3039
|
};
|
|
3951
3040
|
};
|
|
3952
3041
|
const deserializeAws_restJson1Disks = (output, context) => {
|
|
3953
|
-
|
|
3042
|
+
const retVal = (output || [])
|
|
3954
3043
|
.filter((e) => e != null)
|
|
3955
3044
|
.map((entry) => {
|
|
3956
3045
|
if (entry === null) {
|
|
@@ -3958,9 +3047,10 @@ const deserializeAws_restJson1Disks = (output, context) => {
|
|
|
3958
3047
|
}
|
|
3959
3048
|
return deserializeAws_restJson1Disk(entry, context);
|
|
3960
3049
|
});
|
|
3050
|
+
return retVal;
|
|
3961
3051
|
};
|
|
3962
3052
|
const deserializeAws_restJson1EbsSnapshotsList = (output, context) => {
|
|
3963
|
-
|
|
3053
|
+
const retVal = (output || [])
|
|
3964
3054
|
.filter((e) => e != null)
|
|
3965
3055
|
.map((entry) => {
|
|
3966
3056
|
if (entry === null) {
|
|
@@ -3968,6 +3058,7 @@ const deserializeAws_restJson1EbsSnapshotsList = (output, context) => {
|
|
|
3968
3058
|
}
|
|
3969
3059
|
return smithy_client_1.expectString(entry);
|
|
3970
3060
|
});
|
|
3061
|
+
return retVal;
|
|
3971
3062
|
};
|
|
3972
3063
|
const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
3973
3064
|
return {
|
|
@@ -3978,7 +3069,7 @@ const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
|
3978
3069
|
};
|
|
3979
3070
|
};
|
|
3980
3071
|
const deserializeAws_restJson1IPsList = (output, context) => {
|
|
3981
|
-
|
|
3072
|
+
const retVal = (output || [])
|
|
3982
3073
|
.filter((e) => e != null)
|
|
3983
3074
|
.map((entry) => {
|
|
3984
3075
|
if (entry === null) {
|
|
@@ -3986,6 +3077,7 @@ const deserializeAws_restJson1IPsList = (output, context) => {
|
|
|
3986
3077
|
}
|
|
3987
3078
|
return smithy_client_1.expectString(entry);
|
|
3988
3079
|
});
|
|
3080
|
+
return retVal;
|
|
3989
3081
|
};
|
|
3990
3082
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
3991
3083
|
return {
|
|
@@ -4022,7 +3114,7 @@ const deserializeAws_restJson1JobLogEventData = (output, context) => {
|
|
|
4022
3114
|
};
|
|
4023
3115
|
};
|
|
4024
3116
|
const deserializeAws_restJson1JobLogs = (output, context) => {
|
|
4025
|
-
|
|
3117
|
+
const retVal = (output || [])
|
|
4026
3118
|
.filter((e) => e != null)
|
|
4027
3119
|
.map((entry) => {
|
|
4028
3120
|
if (entry === null) {
|
|
@@ -4030,9 +3122,10 @@ const deserializeAws_restJson1JobLogs = (output, context) => {
|
|
|
4030
3122
|
}
|
|
4031
3123
|
return deserializeAws_restJson1JobLog(entry, context);
|
|
4032
3124
|
});
|
|
3125
|
+
return retVal;
|
|
4033
3126
|
};
|
|
4034
3127
|
const deserializeAws_restJson1JobsList = (output, context) => {
|
|
4035
|
-
|
|
3128
|
+
const retVal = (output || [])
|
|
4036
3129
|
.filter((e) => e != null)
|
|
4037
3130
|
.map((entry) => {
|
|
4038
3131
|
if (entry === null) {
|
|
@@ -4040,6 +3133,7 @@ const deserializeAws_restJson1JobsList = (output, context) => {
|
|
|
4040
3133
|
}
|
|
4041
3134
|
return deserializeAws_restJson1Job(entry, context);
|
|
4042
3135
|
});
|
|
3136
|
+
return retVal;
|
|
4043
3137
|
};
|
|
4044
3138
|
const deserializeAws_restJson1Licensing = (output, context) => {
|
|
4045
3139
|
return {
|
|
@@ -4081,7 +3175,7 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
|
4081
3175
|
};
|
|
4082
3176
|
};
|
|
4083
3177
|
const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
4084
|
-
|
|
3178
|
+
const retVal = (output || [])
|
|
4085
3179
|
.filter((e) => e != null)
|
|
4086
3180
|
.map((entry) => {
|
|
4087
3181
|
if (entry === null) {
|
|
@@ -4089,6 +3183,7 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
|
4089
3183
|
}
|
|
4090
3184
|
return deserializeAws_restJson1NetworkInterface(entry, context);
|
|
4091
3185
|
});
|
|
3186
|
+
return retVal;
|
|
4092
3187
|
};
|
|
4093
3188
|
const deserializeAws_restJson1OS = (output, context) => {
|
|
4094
3189
|
return {
|
|
@@ -4103,7 +3198,7 @@ const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
|
4103
3198
|
};
|
|
4104
3199
|
};
|
|
4105
3200
|
const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
4106
|
-
|
|
3201
|
+
const retVal = (output || [])
|
|
4107
3202
|
.filter((e) => e != null)
|
|
4108
3203
|
.map((entry) => {
|
|
4109
3204
|
if (entry === null) {
|
|
@@ -4111,9 +3206,10 @@ const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
|
4111
3206
|
}
|
|
4112
3207
|
return deserializeAws_restJson1ParticipatingServer(entry, context);
|
|
4113
3208
|
});
|
|
3209
|
+
return retVal;
|
|
4114
3210
|
};
|
|
4115
3211
|
const deserializeAws_restJson1PITPolicy = (output, context) => {
|
|
4116
|
-
|
|
3212
|
+
const retVal = (output || [])
|
|
4117
3213
|
.filter((e) => e != null)
|
|
4118
3214
|
.map((entry) => {
|
|
4119
3215
|
if (entry === null) {
|
|
@@ -4121,6 +3217,7 @@ const deserializeAws_restJson1PITPolicy = (output, context) => {
|
|
|
4121
3217
|
}
|
|
4122
3218
|
return deserializeAws_restJson1PITPolicyRule(entry, context);
|
|
4123
3219
|
});
|
|
3220
|
+
return retVal;
|
|
4124
3221
|
};
|
|
4125
3222
|
const deserializeAws_restJson1PITPolicyRule = (output, context) => {
|
|
4126
3223
|
return {
|
|
@@ -4187,7 +3284,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk
|
|
|
4187
3284
|
};
|
|
4188
3285
|
};
|
|
4189
3286
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks = (output, context) => {
|
|
4190
|
-
|
|
3287
|
+
const retVal = (output || [])
|
|
4191
3288
|
.filter((e) => e != null)
|
|
4192
3289
|
.map((entry) => {
|
|
4193
3290
|
if (entry === null) {
|
|
@@ -4195,6 +3292,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks
|
|
|
4195
3292
|
}
|
|
4196
3293
|
return deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk(entry, context);
|
|
4197
3294
|
});
|
|
3295
|
+
return retVal;
|
|
4198
3296
|
};
|
|
4199
3297
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = (output, context) => {
|
|
4200
3298
|
return {
|
|
@@ -4211,7 +3309,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep = (o
|
|
|
4211
3309
|
};
|
|
4212
3310
|
};
|
|
4213
3311
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = (output, context) => {
|
|
4214
|
-
|
|
3312
|
+
const retVal = (output || [])
|
|
4215
3313
|
.filter((e) => e != null)
|
|
4216
3314
|
.map((entry) => {
|
|
4217
3315
|
if (entry === null) {
|
|
@@ -4219,6 +3317,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = (
|
|
|
4219
3317
|
}
|
|
4220
3318
|
return deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep(entry, context);
|
|
4221
3319
|
});
|
|
3320
|
+
return retVal;
|
|
4222
3321
|
};
|
|
4223
3322
|
const deserializeAws_restJson1RecoveryInstanceDisk = (output, context) => {
|
|
4224
3323
|
return {
|
|
@@ -4228,7 +3327,7 @@ const deserializeAws_restJson1RecoveryInstanceDisk = (output, context) => {
|
|
|
4228
3327
|
};
|
|
4229
3328
|
};
|
|
4230
3329
|
const deserializeAws_restJson1RecoveryInstanceDisks = (output, context) => {
|
|
4231
|
-
|
|
3330
|
+
const retVal = (output || [])
|
|
4232
3331
|
.filter((e) => e != null)
|
|
4233
3332
|
.map((entry) => {
|
|
4234
3333
|
if (entry === null) {
|
|
@@ -4236,6 +3335,7 @@ const deserializeAws_restJson1RecoveryInstanceDisks = (output, context) => {
|
|
|
4236
3335
|
}
|
|
4237
3336
|
return deserializeAws_restJson1RecoveryInstanceDisk(entry, context);
|
|
4238
3337
|
});
|
|
3338
|
+
return retVal;
|
|
4239
3339
|
};
|
|
4240
3340
|
const deserializeAws_restJson1RecoveryInstanceFailback = (output, context) => {
|
|
4241
3341
|
return {
|
|
@@ -4281,7 +3381,7 @@ const deserializeAws_restJson1RecoverySnapshot = (output, context) => {
|
|
|
4281
3381
|
};
|
|
4282
3382
|
};
|
|
4283
3383
|
const deserializeAws_restJson1RecoverySnapshotsList = (output, context) => {
|
|
4284
|
-
|
|
3384
|
+
const retVal = (output || [])
|
|
4285
3385
|
.filter((e) => e != null)
|
|
4286
3386
|
.map((entry) => {
|
|
4287
3387
|
if (entry === null) {
|
|
@@ -4289,6 +3389,7 @@ const deserializeAws_restJson1RecoverySnapshotsList = (output, context) => {
|
|
|
4289
3389
|
}
|
|
4290
3390
|
return deserializeAws_restJson1RecoverySnapshot(entry, context);
|
|
4291
3391
|
});
|
|
3392
|
+
return retVal;
|
|
4292
3393
|
};
|
|
4293
3394
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
4294
3395
|
return {
|
|
@@ -4300,7 +3401,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output,
|
|
|
4300
3401
|
};
|
|
4301
3402
|
};
|
|
4302
3403
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output, context) => {
|
|
4303
|
-
|
|
3404
|
+
const retVal = (output || [])
|
|
4304
3405
|
.filter((e) => e != null)
|
|
4305
3406
|
.map((entry) => {
|
|
4306
3407
|
if (entry === null) {
|
|
@@ -4308,6 +3409,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output,
|
|
|
4308
3409
|
}
|
|
4309
3410
|
return deserializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context);
|
|
4310
3411
|
});
|
|
3412
|
+
return retVal;
|
|
4311
3413
|
};
|
|
4312
3414
|
const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, context) => {
|
|
4313
3415
|
return {
|
|
@@ -4338,7 +3440,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
4338
3440
|
};
|
|
4339
3441
|
};
|
|
4340
3442
|
const deserializeAws_restJson1ReplicationConfigurationTemplates = (output, context) => {
|
|
4341
|
-
|
|
3443
|
+
const retVal = (output || [])
|
|
4342
3444
|
.filter((e) => e != null)
|
|
4343
3445
|
.map((entry) => {
|
|
4344
3446
|
if (entry === null) {
|
|
@@ -4346,9 +3448,10 @@ const deserializeAws_restJson1ReplicationConfigurationTemplates = (output, conte
|
|
|
4346
3448
|
}
|
|
4347
3449
|
return deserializeAws_restJson1ReplicationConfigurationTemplate(entry, context);
|
|
4348
3450
|
});
|
|
3451
|
+
return retVal;
|
|
4349
3452
|
};
|
|
4350
3453
|
const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, context) => {
|
|
4351
|
-
|
|
3454
|
+
const retVal = (output || [])
|
|
4352
3455
|
.filter((e) => e != null)
|
|
4353
3456
|
.map((entry) => {
|
|
4354
3457
|
if (entry === null) {
|
|
@@ -4356,6 +3459,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
4356
3459
|
}
|
|
4357
3460
|
return smithy_client_1.expectString(entry);
|
|
4358
3461
|
});
|
|
3462
|
+
return retVal;
|
|
4359
3463
|
};
|
|
4360
3464
|
const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
4361
3465
|
return {
|
|
@@ -4398,7 +3502,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
|
4398
3502
|
};
|
|
4399
3503
|
};
|
|
4400
3504
|
const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
4401
|
-
|
|
3505
|
+
const retVal = (output || [])
|
|
4402
3506
|
.filter((e) => e != null)
|
|
4403
3507
|
.map((entry) => {
|
|
4404
3508
|
if (entry === null) {
|
|
@@ -4406,6 +3510,7 @@ const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
|
4406
3510
|
}
|
|
4407
3511
|
return deserializeAws_restJson1SourceServer(entry, context);
|
|
4408
3512
|
});
|
|
3513
|
+
return retVal;
|
|
4409
3514
|
};
|
|
4410
3515
|
const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
4411
3516
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4425,7 +3530,7 @@ const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
|
4425
3530
|
};
|
|
4426
3531
|
};
|
|
4427
3532
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
4428
|
-
|
|
3533
|
+
const retVal = (output || [])
|
|
4429
3534
|
.filter((e) => e != null)
|
|
4430
3535
|
.map((entry) => {
|
|
4431
3536
|
if (entry === null) {
|
|
@@ -4433,6 +3538,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
4433
3538
|
}
|
|
4434
3539
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
4435
3540
|
});
|
|
3541
|
+
return retVal;
|
|
4436
3542
|
};
|
|
4437
3543
|
const deserializeMetadata = (output) => {
|
|
4438
3544
|
var _a;
|