@aws-sdk/client-route53-recovery-readiness 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/Route53RecoveryReadinessServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +87 -2
- package/dist-cjs/protocols/Aws_restJson1.js +339 -1257
- package/dist-es/index.js +1 -0
- package/dist-es/models/Route53RecoveryReadinessServiceException.js +12 -0
- package/dist-es/models/models_0.js +80 -1
- package/dist-es/protocols/Aws_restJson1.js +731 -1392
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/Route53RecoveryReadinessServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/Route53RecoveryReadinessServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/package.json +25 -25
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommand = export
|
|
|
4
4
|
exports.deserializeAws_restJson1UpdateResourceSetCommand = exports.deserializeAws_restJson1UpdateRecoveryGroupCommand = exports.deserializeAws_restJson1UpdateReadinessCheckCommand = exports.deserializeAws_restJson1UpdateCellCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourcesCommand = exports.deserializeAws_restJson1ListRulesCommand = exports.deserializeAws_restJson1ListResourceSetsCommand = exports.deserializeAws_restJson1ListRecoveryGroupsCommand = exports.deserializeAws_restJson1ListReadinessChecksCommand = exports.deserializeAws_restJson1ListCrossAccountAuthorizationsCommand = exports.deserializeAws_restJson1ListCellsCommand = exports.deserializeAws_restJson1GetResourceSetCommand = 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 models_0_1 = require("../models/models_0");
|
|
8
|
+
const Route53RecoveryReadinessServiceException_1 = require("../models/Route53RecoveryReadinessServiceException");
|
|
7
9
|
const serializeAws_restJson1CreateCellCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -917,59 +919,28 @@ const deserializeAws_restJson1CreateCellCommandError = async (output, context) =
|
|
|
917
919
|
switch (errorCode) {
|
|
918
920
|
case "AccessDeniedException":
|
|
919
921
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
920
|
-
|
|
921
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
922
|
-
name: errorCode,
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
break;
|
|
922
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
926
923
|
case "ConflictException":
|
|
927
924
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
928
|
-
|
|
929
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
925
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
934
926
|
case "InternalServerException":
|
|
935
927
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
936
|
-
|
|
937
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
928
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
942
929
|
case "ThrottlingException":
|
|
943
930
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
944
|
-
|
|
945
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
946
|
-
name: errorCode,
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
949
|
-
break;
|
|
931
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
950
932
|
case "ValidationException":
|
|
951
933
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
952
|
-
|
|
953
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
954
|
-
name: errorCode,
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
};
|
|
957
|
-
break;
|
|
934
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
958
935
|
default:
|
|
959
936
|
const parsedBody = parsedOutput.body;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
...parsedBody,
|
|
963
|
-
name: `${errorCode}`,
|
|
964
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
937
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
938
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
965
939
|
$fault: "client",
|
|
966
940
|
$metadata: deserializeMetadata(output),
|
|
967
|
-
};
|
|
941
|
+
});
|
|
942
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
968
943
|
}
|
|
969
|
-
const message = response.message || response.Message || errorCode;
|
|
970
|
-
response.message = message;
|
|
971
|
-
delete response.Message;
|
|
972
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
973
944
|
};
|
|
974
945
|
const deserializeAws_restJson1CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
975
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -997,59 +968,28 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = asyn
|
|
|
997
968
|
switch (errorCode) {
|
|
998
969
|
case "AccessDeniedException":
|
|
999
970
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1000
|
-
|
|
1001
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1002
|
-
name: errorCode,
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
};
|
|
1005
|
-
break;
|
|
971
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1006
972
|
case "ConflictException":
|
|
1007
973
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
1008
|
-
|
|
1009
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1010
|
-
name: errorCode,
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1012
|
-
};
|
|
1013
|
-
break;
|
|
974
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1014
975
|
case "InternalServerException":
|
|
1015
976
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1016
|
-
|
|
1017
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1018
|
-
name: errorCode,
|
|
1019
|
-
$metadata: deserializeMetadata(output),
|
|
1020
|
-
};
|
|
1021
|
-
break;
|
|
977
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1022
978
|
case "ThrottlingException":
|
|
1023
979
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1024
|
-
|
|
1025
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1026
|
-
name: errorCode,
|
|
1027
|
-
$metadata: deserializeMetadata(output),
|
|
1028
|
-
};
|
|
1029
|
-
break;
|
|
980
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1030
981
|
case "ValidationException":
|
|
1031
982
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1032
|
-
|
|
1033
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1034
|
-
name: errorCode,
|
|
1035
|
-
$metadata: deserializeMetadata(output),
|
|
1036
|
-
};
|
|
1037
|
-
break;
|
|
983
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1038
984
|
default:
|
|
1039
985
|
const parsedBody = parsedOutput.body;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
...parsedBody,
|
|
1043
|
-
name: `${errorCode}`,
|
|
1044
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
986
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
987
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1045
988
|
$fault: "client",
|
|
1046
989
|
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
990
|
+
});
|
|
991
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1048
992
|
}
|
|
1049
|
-
const message = response.message || response.Message || errorCode;
|
|
1050
|
-
response.message = message;
|
|
1051
|
-
delete response.Message;
|
|
1052
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1053
993
|
};
|
|
1054
994
|
const deserializeAws_restJson1CreateReadinessCheckCommand = async (output, context) => {
|
|
1055
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1089,59 +1029,28 @@ const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output,
|
|
|
1089
1029
|
switch (errorCode) {
|
|
1090
1030
|
case "AccessDeniedException":
|
|
1091
1031
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1092
|
-
|
|
1093
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1094
|
-
name: errorCode,
|
|
1095
|
-
$metadata: deserializeMetadata(output),
|
|
1096
|
-
};
|
|
1097
|
-
break;
|
|
1032
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1098
1033
|
case "ConflictException":
|
|
1099
1034
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
1100
|
-
|
|
1101
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1102
|
-
name: errorCode,
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
};
|
|
1105
|
-
break;
|
|
1035
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1106
1036
|
case "InternalServerException":
|
|
1107
1037
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1108
|
-
|
|
1109
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
1038
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1114
1039
|
case "ThrottlingException":
|
|
1115
1040
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
1041
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1122
1042
|
case "ValidationException":
|
|
1123
1043
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1124
|
-
|
|
1125
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1126
|
-
name: errorCode,
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
};
|
|
1129
|
-
break;
|
|
1044
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1130
1045
|
default:
|
|
1131
1046
|
const parsedBody = parsedOutput.body;
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
...parsedBody,
|
|
1135
|
-
name: `${errorCode}`,
|
|
1136
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1047
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1048
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1137
1049
|
$fault: "client",
|
|
1138
1050
|
$metadata: deserializeMetadata(output),
|
|
1139
|
-
};
|
|
1051
|
+
});
|
|
1052
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1140
1053
|
}
|
|
1141
|
-
const message = response.message || response.Message || errorCode;
|
|
1142
|
-
response.message = message;
|
|
1143
|
-
delete response.Message;
|
|
1144
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1145
1054
|
};
|
|
1146
1055
|
const deserializeAws_restJson1CreateRecoveryGroupCommand = async (output, context) => {
|
|
1147
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1181,59 +1090,28 @@ const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, c
|
|
|
1181
1090
|
switch (errorCode) {
|
|
1182
1091
|
case "AccessDeniedException":
|
|
1183
1092
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1184
|
-
|
|
1185
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1186
|
-
name: errorCode,
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1189
|
-
break;
|
|
1093
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1190
1094
|
case "ConflictException":
|
|
1191
1095
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
1192
|
-
|
|
1193
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1194
|
-
name: errorCode,
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1197
|
-
break;
|
|
1096
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1198
1097
|
case "InternalServerException":
|
|
1199
1098
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1200
|
-
|
|
1201
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1202
|
-
name: errorCode,
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
};
|
|
1205
|
-
break;
|
|
1099
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1206
1100
|
case "ThrottlingException":
|
|
1207
1101
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1208
|
-
|
|
1209
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1210
|
-
name: errorCode,
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
break;
|
|
1102
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1214
1103
|
case "ValidationException":
|
|
1215
1104
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1216
|
-
|
|
1217
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
1105
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1222
1106
|
default:
|
|
1223
1107
|
const parsedBody = parsedOutput.body;
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
...parsedBody,
|
|
1227
|
-
name: `${errorCode}`,
|
|
1228
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1108
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1229
1110
|
$fault: "client",
|
|
1230
1111
|
$metadata: deserializeMetadata(output),
|
|
1231
|
-
};
|
|
1112
|
+
});
|
|
1113
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1232
1114
|
}
|
|
1233
|
-
const message = response.message || response.Message || errorCode;
|
|
1234
|
-
response.message = message;
|
|
1235
|
-
delete response.Message;
|
|
1236
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1237
1115
|
};
|
|
1238
1116
|
const deserializeAws_restJson1CreateResourceSetCommand = async (output, context) => {
|
|
1239
1117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1277,59 +1155,28 @@ const deserializeAws_restJson1CreateResourceSetCommandError = async (output, con
|
|
|
1277
1155
|
switch (errorCode) {
|
|
1278
1156
|
case "AccessDeniedException":
|
|
1279
1157
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1280
|
-
|
|
1281
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1282
|
-
name: errorCode,
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
1285
|
-
break;
|
|
1158
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1286
1159
|
case "ConflictException":
|
|
1287
1160
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
1288
|
-
|
|
1289
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1290
|
-
name: errorCode,
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
1293
|
-
break;
|
|
1161
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1294
1162
|
case "InternalServerException":
|
|
1295
1163
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1296
|
-
|
|
1297
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1298
|
-
name: errorCode,
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
};
|
|
1301
|
-
break;
|
|
1164
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1302
1165
|
case "ThrottlingException":
|
|
1303
1166
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1304
|
-
|
|
1305
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1306
|
-
name: errorCode,
|
|
1307
|
-
$metadata: deserializeMetadata(output),
|
|
1308
|
-
};
|
|
1309
|
-
break;
|
|
1167
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1310
1168
|
case "ValidationException":
|
|
1311
1169
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1312
|
-
|
|
1313
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1314
|
-
name: errorCode,
|
|
1315
|
-
$metadata: deserializeMetadata(output),
|
|
1316
|
-
};
|
|
1317
|
-
break;
|
|
1170
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1318
1171
|
default:
|
|
1319
1172
|
const parsedBody = parsedOutput.body;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
...parsedBody,
|
|
1323
|
-
name: `${errorCode}`,
|
|
1324
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1173
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1325
1175
|
$fault: "client",
|
|
1326
1176
|
$metadata: deserializeMetadata(output),
|
|
1327
|
-
};
|
|
1177
|
+
});
|
|
1178
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1328
1179
|
}
|
|
1329
|
-
const message = response.message || response.Message || errorCode;
|
|
1330
|
-
response.message = message;
|
|
1331
|
-
delete response.Message;
|
|
1332
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1333
1180
|
};
|
|
1334
1181
|
const deserializeAws_restJson1DeleteCellCommand = async (output, context) => {
|
|
1335
1182
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1353,59 +1200,28 @@ const deserializeAws_restJson1DeleteCellCommandError = async (output, context) =
|
|
|
1353
1200
|
switch (errorCode) {
|
|
1354
1201
|
case "AccessDeniedException":
|
|
1355
1202
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1356
|
-
|
|
1357
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1358
|
-
name: errorCode,
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
};
|
|
1361
|
-
break;
|
|
1203
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1362
1204
|
case "InternalServerException":
|
|
1363
1205
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1364
|
-
|
|
1365
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1366
|
-
name: errorCode,
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
};
|
|
1369
|
-
break;
|
|
1206
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1370
1207
|
case "ResourceNotFoundException":
|
|
1371
1208
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1372
|
-
|
|
1373
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1374
|
-
name: errorCode,
|
|
1375
|
-
$metadata: deserializeMetadata(output),
|
|
1376
|
-
};
|
|
1377
|
-
break;
|
|
1209
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1378
1210
|
case "ThrottlingException":
|
|
1379
1211
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1380
|
-
|
|
1381
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1382
|
-
name: errorCode,
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1385
|
-
break;
|
|
1212
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1386
1213
|
case "ValidationException":
|
|
1387
1214
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1388
|
-
|
|
1389
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1390
|
-
name: errorCode,
|
|
1391
|
-
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1393
|
-
break;
|
|
1215
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1394
1216
|
default:
|
|
1395
1217
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
...parsedBody,
|
|
1399
|
-
name: `${errorCode}`,
|
|
1400
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1218
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1401
1220
|
$fault: "client",
|
|
1402
1221
|
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
1222
|
+
});
|
|
1223
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1404
1224
|
}
|
|
1405
|
-
const message = response.message || response.Message || errorCode;
|
|
1406
|
-
response.message = message;
|
|
1407
|
-
delete response.Message;
|
|
1408
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1409
1225
|
};
|
|
1410
1226
|
const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
1411
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1429,51 +1245,25 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = asyn
|
|
|
1429
1245
|
switch (errorCode) {
|
|
1430
1246
|
case "AccessDeniedException":
|
|
1431
1247
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1432
|
-
|
|
1433
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1434
|
-
name: errorCode,
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1437
|
-
break;
|
|
1248
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1438
1249
|
case "InternalServerException":
|
|
1439
1250
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1440
|
-
|
|
1441
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1442
|
-
name: errorCode,
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1445
|
-
break;
|
|
1251
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1446
1252
|
case "ThrottlingException":
|
|
1447
1253
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1448
|
-
|
|
1449
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1450
|
-
name: errorCode,
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
};
|
|
1453
|
-
break;
|
|
1254
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1454
1255
|
case "ValidationException":
|
|
1455
1256
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1456
|
-
|
|
1457
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1458
|
-
name: errorCode,
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
};
|
|
1461
|
-
break;
|
|
1257
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1462
1258
|
default:
|
|
1463
1259
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
...parsedBody,
|
|
1467
|
-
name: `${errorCode}`,
|
|
1468
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1260
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1261
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1469
1262
|
$fault: "client",
|
|
1470
1263
|
$metadata: deserializeMetadata(output),
|
|
1471
|
-
};
|
|
1264
|
+
});
|
|
1265
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1472
1266
|
}
|
|
1473
|
-
const message = response.message || response.Message || errorCode;
|
|
1474
|
-
response.message = message;
|
|
1475
|
-
delete response.Message;
|
|
1476
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1477
1267
|
};
|
|
1478
1268
|
const deserializeAws_restJson1DeleteReadinessCheckCommand = async (output, context) => {
|
|
1479
1269
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1497,59 +1287,28 @@ const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output,
|
|
|
1497
1287
|
switch (errorCode) {
|
|
1498
1288
|
case "AccessDeniedException":
|
|
1499
1289
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1500
|
-
|
|
1501
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1502
|
-
name: errorCode,
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
};
|
|
1505
|
-
break;
|
|
1290
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1506
1291
|
case "InternalServerException":
|
|
1507
1292
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1508
|
-
|
|
1509
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1510
|
-
name: errorCode,
|
|
1511
|
-
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1513
|
-
break;
|
|
1293
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1514
1294
|
case "ResourceNotFoundException":
|
|
1515
1295
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1516
|
-
|
|
1517
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1518
|
-
name: errorCode,
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
};
|
|
1521
|
-
break;
|
|
1296
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1522
1297
|
case "ThrottlingException":
|
|
1523
1298
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1524
|
-
|
|
1525
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1526
|
-
name: errorCode,
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1529
|
-
break;
|
|
1299
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1530
1300
|
case "ValidationException":
|
|
1531
1301
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1532
|
-
|
|
1533
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1534
|
-
name: errorCode,
|
|
1535
|
-
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1537
|
-
break;
|
|
1302
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1538
1303
|
default:
|
|
1539
1304
|
const parsedBody = parsedOutput.body;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
...parsedBody,
|
|
1543
|
-
name: `${errorCode}`,
|
|
1544
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1305
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1306
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1545
1307
|
$fault: "client",
|
|
1546
1308
|
$metadata: deserializeMetadata(output),
|
|
1547
|
-
};
|
|
1309
|
+
});
|
|
1310
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1548
1311
|
}
|
|
1549
|
-
const message = response.message || response.Message || errorCode;
|
|
1550
|
-
response.message = message;
|
|
1551
|
-
delete response.Message;
|
|
1552
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1553
1312
|
};
|
|
1554
1313
|
const deserializeAws_restJson1DeleteRecoveryGroupCommand = async (output, context) => {
|
|
1555
1314
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1573,59 +1332,28 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, c
|
|
|
1573
1332
|
switch (errorCode) {
|
|
1574
1333
|
case "AccessDeniedException":
|
|
1575
1334
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1576
|
-
|
|
1577
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1335
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1582
1336
|
case "InternalServerException":
|
|
1583
1337
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1584
|
-
|
|
1585
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1586
|
-
name: errorCode,
|
|
1587
|
-
$metadata: deserializeMetadata(output),
|
|
1588
|
-
};
|
|
1589
|
-
break;
|
|
1338
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1590
1339
|
case "ResourceNotFoundException":
|
|
1591
1340
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1592
|
-
|
|
1593
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1594
|
-
name: errorCode,
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
};
|
|
1597
|
-
break;
|
|
1341
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1598
1342
|
case "ThrottlingException":
|
|
1599
1343
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1600
|
-
|
|
1601
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1602
|
-
name: errorCode,
|
|
1603
|
-
$metadata: deserializeMetadata(output),
|
|
1604
|
-
};
|
|
1605
|
-
break;
|
|
1344
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1606
1345
|
case "ValidationException":
|
|
1607
1346
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1608
|
-
|
|
1609
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1610
|
-
name: errorCode,
|
|
1611
|
-
$metadata: deserializeMetadata(output),
|
|
1612
|
-
};
|
|
1613
|
-
break;
|
|
1347
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1614
1348
|
default:
|
|
1615
1349
|
const parsedBody = parsedOutput.body;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
...parsedBody,
|
|
1619
|
-
name: `${errorCode}`,
|
|
1620
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1350
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1621
1352
|
$fault: "client",
|
|
1622
1353
|
$metadata: deserializeMetadata(output),
|
|
1623
|
-
};
|
|
1354
|
+
});
|
|
1355
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1624
1356
|
}
|
|
1625
|
-
const message = response.message || response.Message || errorCode;
|
|
1626
|
-
response.message = message;
|
|
1627
|
-
delete response.Message;
|
|
1628
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1629
1357
|
};
|
|
1630
1358
|
const deserializeAws_restJson1DeleteResourceSetCommand = async (output, context) => {
|
|
1631
1359
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1649,59 +1377,28 @@ const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, con
|
|
|
1649
1377
|
switch (errorCode) {
|
|
1650
1378
|
case "AccessDeniedException":
|
|
1651
1379
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1652
|
-
|
|
1653
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1654
|
-
name: errorCode,
|
|
1655
|
-
$metadata: deserializeMetadata(output),
|
|
1656
|
-
};
|
|
1657
|
-
break;
|
|
1380
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1658
1381
|
case "InternalServerException":
|
|
1659
1382
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1660
|
-
|
|
1661
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1662
|
-
name: errorCode,
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
};
|
|
1665
|
-
break;
|
|
1383
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1666
1384
|
case "ResourceNotFoundException":
|
|
1667
1385
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1668
|
-
|
|
1669
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1670
|
-
name: errorCode,
|
|
1671
|
-
$metadata: deserializeMetadata(output),
|
|
1672
|
-
};
|
|
1673
|
-
break;
|
|
1386
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1674
1387
|
case "ThrottlingException":
|
|
1675
1388
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1676
|
-
|
|
1677
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1678
|
-
name: errorCode,
|
|
1679
|
-
$metadata: deserializeMetadata(output),
|
|
1680
|
-
};
|
|
1681
|
-
break;
|
|
1389
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1682
1390
|
case "ValidationException":
|
|
1683
1391
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1684
|
-
|
|
1685
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1686
|
-
name: errorCode,
|
|
1687
|
-
$metadata: deserializeMetadata(output),
|
|
1688
|
-
};
|
|
1689
|
-
break;
|
|
1392
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1690
1393
|
default:
|
|
1691
1394
|
const parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
...parsedBody,
|
|
1695
|
-
name: `${errorCode}`,
|
|
1696
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1395
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1697
1397
|
$fault: "client",
|
|
1698
1398
|
$metadata: deserializeMetadata(output),
|
|
1699
|
-
};
|
|
1399
|
+
});
|
|
1400
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1700
1401
|
}
|
|
1701
|
-
const message = response.message || response.Message || errorCode;
|
|
1702
|
-
response.message = message;
|
|
1703
|
-
delete response.Message;
|
|
1704
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1705
1402
|
};
|
|
1706
1403
|
const deserializeAws_restJson1GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
1707
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1737,59 +1434,28 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async
|
|
|
1737
1434
|
switch (errorCode) {
|
|
1738
1435
|
case "AccessDeniedException":
|
|
1739
1436
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1437
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1746
1438
|
case "InternalServerException":
|
|
1747
1439
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1440
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1754
1441
|
case "ResourceNotFoundException":
|
|
1755
1442
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1443
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1762
1444
|
case "ThrottlingException":
|
|
1763
1445
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1446
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1770
1447
|
case "ValidationException":
|
|
1771
1448
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1772
|
-
|
|
1773
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1449
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1778
1450
|
default:
|
|
1779
1451
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
...parsedBody,
|
|
1783
|
-
name: `${errorCode}`,
|
|
1784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1452
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1453
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1785
1454
|
$fault: "client",
|
|
1786
1455
|
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1456
|
+
});
|
|
1457
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1788
1458
|
}
|
|
1789
|
-
const message = response.message || response.Message || errorCode;
|
|
1790
|
-
response.message = message;
|
|
1791
|
-
delete response.Message;
|
|
1792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1793
1459
|
};
|
|
1794
1460
|
const deserializeAws_restJson1GetCellCommand = async (output, context) => {
|
|
1795
1461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1833,59 +1499,28 @@ const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
|
1833
1499
|
switch (errorCode) {
|
|
1834
1500
|
case "AccessDeniedException":
|
|
1835
1501
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1502
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1842
1503
|
case "InternalServerException":
|
|
1843
1504
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1844
|
-
|
|
1845
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1846
|
-
name: errorCode,
|
|
1847
|
-
$metadata: deserializeMetadata(output),
|
|
1848
|
-
};
|
|
1849
|
-
break;
|
|
1505
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1850
1506
|
case "ResourceNotFoundException":
|
|
1851
1507
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1852
|
-
|
|
1853
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1854
|
-
name: errorCode,
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
};
|
|
1857
|
-
break;
|
|
1508
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1858
1509
|
case "ThrottlingException":
|
|
1859
1510
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1860
|
-
|
|
1861
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1862
|
-
name: errorCode,
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
};
|
|
1865
|
-
break;
|
|
1511
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1866
1512
|
case "ValidationException":
|
|
1867
1513
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1868
|
-
|
|
1869
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1870
|
-
name: errorCode,
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
};
|
|
1873
|
-
break;
|
|
1514
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1874
1515
|
default:
|
|
1875
1516
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
...parsedBody,
|
|
1879
|
-
name: `${errorCode}`,
|
|
1880
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1517
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1518
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
1519
|
$fault: "client",
|
|
1882
1520
|
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1521
|
+
});
|
|
1522
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1884
1523
|
}
|
|
1885
|
-
const message = response.message || response.Message || errorCode;
|
|
1886
|
-
response.message = message;
|
|
1887
|
-
delete response.Message;
|
|
1888
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1889
1524
|
};
|
|
1890
1525
|
const deserializeAws_restJson1GetCellReadinessSummaryCommand = async (output, context) => {
|
|
1891
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1921,59 +1556,28 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (outpu
|
|
|
1921
1556
|
switch (errorCode) {
|
|
1922
1557
|
case "AccessDeniedException":
|
|
1923
1558
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1924
|
-
|
|
1925
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1926
|
-
name: errorCode,
|
|
1927
|
-
$metadata: deserializeMetadata(output),
|
|
1928
|
-
};
|
|
1929
|
-
break;
|
|
1559
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1930
1560
|
case "InternalServerException":
|
|
1931
1561
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1932
|
-
|
|
1933
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1934
|
-
name: errorCode,
|
|
1935
|
-
$metadata: deserializeMetadata(output),
|
|
1936
|
-
};
|
|
1937
|
-
break;
|
|
1562
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1938
1563
|
case "ResourceNotFoundException":
|
|
1939
1564
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1940
|
-
|
|
1941
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1942
|
-
name: errorCode,
|
|
1943
|
-
$metadata: deserializeMetadata(output),
|
|
1944
|
-
};
|
|
1945
|
-
break;
|
|
1565
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1946
1566
|
case "ThrottlingException":
|
|
1947
1567
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1948
|
-
|
|
1949
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1950
|
-
name: errorCode,
|
|
1951
|
-
$metadata: deserializeMetadata(output),
|
|
1952
|
-
};
|
|
1953
|
-
break;
|
|
1568
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1954
1569
|
case "ValidationException":
|
|
1955
1570
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1956
|
-
|
|
1957
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1958
|
-
name: errorCode,
|
|
1959
|
-
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1961
|
-
break;
|
|
1571
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1962
1572
|
default:
|
|
1963
1573
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
...parsedBody,
|
|
1967
|
-
name: `${errorCode}`,
|
|
1968
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1574
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1575
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
1576
|
$fault: "client",
|
|
1970
1577
|
$metadata: deserializeMetadata(output),
|
|
1971
|
-
};
|
|
1578
|
+
});
|
|
1579
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1972
1580
|
}
|
|
1973
|
-
const message = response.message || response.Message || errorCode;
|
|
1974
|
-
response.message = message;
|
|
1975
|
-
delete response.Message;
|
|
1976
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1977
1581
|
};
|
|
1978
1582
|
const deserializeAws_restJson1GetReadinessCheckCommand = async (output, context) => {
|
|
1979
1583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2013,59 +1617,28 @@ const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, con
|
|
|
2013
1617
|
switch (errorCode) {
|
|
2014
1618
|
case "AccessDeniedException":
|
|
2015
1619
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2016
|
-
|
|
2017
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2018
|
-
name: errorCode,
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
};
|
|
2021
|
-
break;
|
|
1620
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2022
1621
|
case "InternalServerException":
|
|
2023
1622
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2024
|
-
|
|
2025
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2026
|
-
name: errorCode,
|
|
2027
|
-
$metadata: deserializeMetadata(output),
|
|
2028
|
-
};
|
|
2029
|
-
break;
|
|
1623
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2030
1624
|
case "ResourceNotFoundException":
|
|
2031
1625
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2032
|
-
|
|
2033
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2034
|
-
name: errorCode,
|
|
2035
|
-
$metadata: deserializeMetadata(output),
|
|
2036
|
-
};
|
|
2037
|
-
break;
|
|
1626
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2038
1627
|
case "ThrottlingException":
|
|
2039
1628
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2040
|
-
|
|
2041
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2042
|
-
name: errorCode,
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2045
|
-
break;
|
|
1629
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2046
1630
|
case "ValidationException":
|
|
2047
1631
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2048
|
-
|
|
2049
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2050
|
-
name: errorCode,
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
2053
|
-
break;
|
|
1632
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2054
1633
|
default:
|
|
2055
1634
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
...parsedBody,
|
|
2059
|
-
name: `${errorCode}`,
|
|
2060
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1635
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1636
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
1637
|
$fault: "client",
|
|
2062
1638
|
$metadata: deserializeMetadata(output),
|
|
2063
|
-
};
|
|
1639
|
+
});
|
|
1640
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2064
1641
|
}
|
|
2065
|
-
const message = response.message || response.Message || errorCode;
|
|
2066
|
-
response.message = message;
|
|
2067
|
-
delete response.Message;
|
|
2068
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2069
1642
|
};
|
|
2070
1643
|
const deserializeAws_restJson1GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
2071
1644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2101,59 +1674,28 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = asyn
|
|
|
2101
1674
|
switch (errorCode) {
|
|
2102
1675
|
case "AccessDeniedException":
|
|
2103
1676
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2104
|
-
|
|
2105
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2106
|
-
name: errorCode,
|
|
2107
|
-
$metadata: deserializeMetadata(output),
|
|
2108
|
-
};
|
|
2109
|
-
break;
|
|
1677
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2110
1678
|
case "InternalServerException":
|
|
2111
1679
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2112
|
-
|
|
2113
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2114
|
-
name: errorCode,
|
|
2115
|
-
$metadata: deserializeMetadata(output),
|
|
2116
|
-
};
|
|
2117
|
-
break;
|
|
1680
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2118
1681
|
case "ResourceNotFoundException":
|
|
2119
1682
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2120
|
-
|
|
2121
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2122
|
-
name: errorCode,
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
};
|
|
2125
|
-
break;
|
|
1683
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2126
1684
|
case "ThrottlingException":
|
|
2127
1685
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2128
|
-
|
|
2129
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2130
|
-
name: errorCode,
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
};
|
|
2133
|
-
break;
|
|
1686
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2134
1687
|
case "ValidationException":
|
|
2135
1688
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2136
|
-
|
|
2137
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
1689
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2142
1690
|
default:
|
|
2143
1691
|
const parsedBody = parsedOutput.body;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
...parsedBody,
|
|
2147
|
-
name: `${errorCode}`,
|
|
2148
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1692
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1693
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2149
1694
|
$fault: "client",
|
|
2150
1695
|
$metadata: deserializeMetadata(output),
|
|
2151
|
-
};
|
|
1696
|
+
});
|
|
1697
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2152
1698
|
}
|
|
2153
|
-
const message = response.message || response.Message || errorCode;
|
|
2154
|
-
response.message = message;
|
|
2155
|
-
delete response.Message;
|
|
2156
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2157
1699
|
};
|
|
2158
1700
|
const deserializeAws_restJson1GetReadinessCheckStatusCommand = async (output, context) => {
|
|
2159
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2193,59 +1735,28 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (outpu
|
|
|
2193
1735
|
switch (errorCode) {
|
|
2194
1736
|
case "AccessDeniedException":
|
|
2195
1737
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2196
|
-
|
|
2197
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2198
|
-
name: errorCode,
|
|
2199
|
-
$metadata: deserializeMetadata(output),
|
|
2200
|
-
};
|
|
2201
|
-
break;
|
|
1738
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2202
1739
|
case "InternalServerException":
|
|
2203
1740
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2204
|
-
|
|
2205
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2206
|
-
name: errorCode,
|
|
2207
|
-
$metadata: deserializeMetadata(output),
|
|
2208
|
-
};
|
|
2209
|
-
break;
|
|
1741
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2210
1742
|
case "ResourceNotFoundException":
|
|
2211
1743
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2212
|
-
|
|
2213
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2214
|
-
name: errorCode,
|
|
2215
|
-
$metadata: deserializeMetadata(output),
|
|
2216
|
-
};
|
|
2217
|
-
break;
|
|
1744
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2218
1745
|
case "ThrottlingException":
|
|
2219
1746
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2220
|
-
|
|
2221
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2222
|
-
name: errorCode,
|
|
2223
|
-
$metadata: deserializeMetadata(output),
|
|
2224
|
-
};
|
|
2225
|
-
break;
|
|
1747
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2226
1748
|
case "ValidationException":
|
|
2227
1749
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2228
|
-
|
|
2229
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2230
|
-
name: errorCode,
|
|
2231
|
-
$metadata: deserializeMetadata(output),
|
|
2232
|
-
};
|
|
2233
|
-
break;
|
|
1750
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2234
1751
|
default:
|
|
2235
1752
|
const parsedBody = parsedOutput.body;
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
...parsedBody,
|
|
2239
|
-
name: `${errorCode}`,
|
|
2240
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1753
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1754
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2241
1755
|
$fault: "client",
|
|
2242
1756
|
$metadata: deserializeMetadata(output),
|
|
2243
|
-
};
|
|
1757
|
+
});
|
|
1758
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2244
1759
|
}
|
|
2245
|
-
const message = response.message || response.Message || errorCode;
|
|
2246
|
-
response.message = message;
|
|
2247
|
-
delete response.Message;
|
|
2248
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2249
1760
|
};
|
|
2250
1761
|
const deserializeAws_restJson1GetRecoveryGroupCommand = async (output, context) => {
|
|
2251
1762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2285,59 +1796,28 @@ const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, cont
|
|
|
2285
1796
|
switch (errorCode) {
|
|
2286
1797
|
case "AccessDeniedException":
|
|
2287
1798
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2288
|
-
|
|
2289
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2290
|
-
name: errorCode,
|
|
2291
|
-
$metadata: deserializeMetadata(output),
|
|
2292
|
-
};
|
|
2293
|
-
break;
|
|
1799
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2294
1800
|
case "InternalServerException":
|
|
2295
1801
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2296
|
-
|
|
2297
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2298
|
-
name: errorCode,
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
};
|
|
2301
|
-
break;
|
|
1802
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2302
1803
|
case "ResourceNotFoundException":
|
|
2303
1804
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2304
|
-
|
|
2305
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2306
|
-
name: errorCode,
|
|
2307
|
-
$metadata: deserializeMetadata(output),
|
|
2308
|
-
};
|
|
2309
|
-
break;
|
|
1805
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2310
1806
|
case "ThrottlingException":
|
|
2311
1807
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2312
|
-
|
|
2313
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2314
|
-
name: errorCode,
|
|
2315
|
-
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
2317
|
-
break;
|
|
1808
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2318
1809
|
case "ValidationException":
|
|
2319
1810
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2320
|
-
|
|
2321
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2322
|
-
name: errorCode,
|
|
2323
|
-
$metadata: deserializeMetadata(output),
|
|
2324
|
-
};
|
|
2325
|
-
break;
|
|
1811
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2326
1812
|
default:
|
|
2327
1813
|
const parsedBody = parsedOutput.body;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
...parsedBody,
|
|
2331
|
-
name: `${errorCode}`,
|
|
2332
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1814
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1815
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2333
1816
|
$fault: "client",
|
|
2334
1817
|
$metadata: deserializeMetadata(output),
|
|
2335
|
-
};
|
|
1818
|
+
});
|
|
1819
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2336
1820
|
}
|
|
2337
|
-
const message = response.message || response.Message || errorCode;
|
|
2338
|
-
response.message = message;
|
|
2339
|
-
delete response.Message;
|
|
2340
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2341
1821
|
};
|
|
2342
1822
|
const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
2343
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2373,59 +1853,28 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = asy
|
|
|
2373
1853
|
switch (errorCode) {
|
|
2374
1854
|
case "AccessDeniedException":
|
|
2375
1855
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2376
|
-
|
|
2377
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2378
|
-
name: errorCode,
|
|
2379
|
-
$metadata: deserializeMetadata(output),
|
|
2380
|
-
};
|
|
2381
|
-
break;
|
|
1856
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2382
1857
|
case "InternalServerException":
|
|
2383
1858
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2384
|
-
|
|
2385
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2386
|
-
name: errorCode,
|
|
2387
|
-
$metadata: deserializeMetadata(output),
|
|
2388
|
-
};
|
|
2389
|
-
break;
|
|
1859
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2390
1860
|
case "ResourceNotFoundException":
|
|
2391
1861
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2392
|
-
|
|
2393
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2394
|
-
name: errorCode,
|
|
2395
|
-
$metadata: deserializeMetadata(output),
|
|
2396
|
-
};
|
|
2397
|
-
break;
|
|
1862
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2398
1863
|
case "ThrottlingException":
|
|
2399
1864
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2400
|
-
|
|
2401
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2402
|
-
name: errorCode,
|
|
2403
|
-
$metadata: deserializeMetadata(output),
|
|
2404
|
-
};
|
|
2405
|
-
break;
|
|
1865
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2406
1866
|
case "ValidationException":
|
|
2407
1867
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2408
|
-
|
|
2409
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2410
|
-
name: errorCode,
|
|
2411
|
-
$metadata: deserializeMetadata(output),
|
|
2412
|
-
};
|
|
2413
|
-
break;
|
|
1868
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2414
1869
|
default:
|
|
2415
1870
|
const parsedBody = parsedOutput.body;
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
...parsedBody,
|
|
2419
|
-
name: `${errorCode}`,
|
|
2420
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1871
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1872
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2421
1873
|
$fault: "client",
|
|
2422
1874
|
$metadata: deserializeMetadata(output),
|
|
2423
|
-
};
|
|
1875
|
+
});
|
|
1876
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2424
1877
|
}
|
|
2425
|
-
const message = response.message || response.Message || errorCode;
|
|
2426
|
-
response.message = message;
|
|
2427
|
-
delete response.Message;
|
|
2428
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2429
1878
|
};
|
|
2430
1879
|
const deserializeAws_restJson1GetResourceSetCommand = async (output, context) => {
|
|
2431
1880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2469,59 +1918,28 @@ const deserializeAws_restJson1GetResourceSetCommandError = async (output, contex
|
|
|
2469
1918
|
switch (errorCode) {
|
|
2470
1919
|
case "AccessDeniedException":
|
|
2471
1920
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2472
|
-
|
|
2473
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2474
|
-
name: errorCode,
|
|
2475
|
-
$metadata: deserializeMetadata(output),
|
|
2476
|
-
};
|
|
2477
|
-
break;
|
|
1921
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2478
1922
|
case "InternalServerException":
|
|
2479
1923
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2480
|
-
|
|
2481
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2482
|
-
name: errorCode,
|
|
2483
|
-
$metadata: deserializeMetadata(output),
|
|
2484
|
-
};
|
|
2485
|
-
break;
|
|
1924
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2486
1925
|
case "ResourceNotFoundException":
|
|
2487
1926
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2488
|
-
|
|
2489
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2490
|
-
name: errorCode,
|
|
2491
|
-
$metadata: deserializeMetadata(output),
|
|
2492
|
-
};
|
|
2493
|
-
break;
|
|
1927
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2494
1928
|
case "ThrottlingException":
|
|
2495
1929
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2496
|
-
|
|
2497
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2498
|
-
name: errorCode,
|
|
2499
|
-
$metadata: deserializeMetadata(output),
|
|
2500
|
-
};
|
|
2501
|
-
break;
|
|
1930
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2502
1931
|
case "ValidationException":
|
|
2503
1932
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2504
|
-
|
|
2505
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2506
|
-
name: errorCode,
|
|
2507
|
-
$metadata: deserializeMetadata(output),
|
|
2508
|
-
};
|
|
2509
|
-
break;
|
|
1933
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2510
1934
|
default:
|
|
2511
1935
|
const parsedBody = parsedOutput.body;
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
...parsedBody,
|
|
2515
|
-
name: `${errorCode}`,
|
|
2516
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1936
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1937
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2517
1938
|
$fault: "client",
|
|
2518
1939
|
$metadata: deserializeMetadata(output),
|
|
2519
|
-
};
|
|
1940
|
+
});
|
|
1941
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2520
1942
|
}
|
|
2521
|
-
const message = response.message || response.Message || errorCode;
|
|
2522
|
-
response.message = message;
|
|
2523
|
-
delete response.Message;
|
|
2524
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2525
1943
|
};
|
|
2526
1944
|
const deserializeAws_restJson1ListCellsCommand = async (output, context) => {
|
|
2527
1945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2553,51 +1971,25 @@ const deserializeAws_restJson1ListCellsCommandError = async (output, context) =>
|
|
|
2553
1971
|
switch (errorCode) {
|
|
2554
1972
|
case "AccessDeniedException":
|
|
2555
1973
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2556
|
-
|
|
2557
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2558
|
-
name: errorCode,
|
|
2559
|
-
$metadata: deserializeMetadata(output),
|
|
2560
|
-
};
|
|
2561
|
-
break;
|
|
1974
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2562
1975
|
case "InternalServerException":
|
|
2563
1976
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2564
|
-
|
|
2565
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2566
|
-
name: errorCode,
|
|
2567
|
-
$metadata: deserializeMetadata(output),
|
|
2568
|
-
};
|
|
2569
|
-
break;
|
|
1977
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2570
1978
|
case "ThrottlingException":
|
|
2571
1979
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2572
|
-
|
|
2573
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2574
|
-
name: errorCode,
|
|
2575
|
-
$metadata: deserializeMetadata(output),
|
|
2576
|
-
};
|
|
2577
|
-
break;
|
|
1980
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2578
1981
|
case "ValidationException":
|
|
2579
1982
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2580
|
-
|
|
2581
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2582
|
-
name: errorCode,
|
|
2583
|
-
$metadata: deserializeMetadata(output),
|
|
2584
|
-
};
|
|
2585
|
-
break;
|
|
1983
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2586
1984
|
default:
|
|
2587
1985
|
const parsedBody = parsedOutput.body;
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
...parsedBody,
|
|
2591
|
-
name: `${errorCode}`,
|
|
2592
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1986
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1987
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2593
1988
|
$fault: "client",
|
|
2594
1989
|
$metadata: deserializeMetadata(output),
|
|
2595
|
-
};
|
|
1990
|
+
});
|
|
1991
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2596
1992
|
}
|
|
2597
|
-
const message = response.message || response.Message || errorCode;
|
|
2598
|
-
response.message = message;
|
|
2599
|
-
delete response.Message;
|
|
2600
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2601
1993
|
};
|
|
2602
1994
|
const deserializeAws_restJson1ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
2603
1995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2629,51 +2021,25 @@ const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async
|
|
|
2629
2021
|
switch (errorCode) {
|
|
2630
2022
|
case "AccessDeniedException":
|
|
2631
2023
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2632
|
-
|
|
2633
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2634
|
-
name: errorCode,
|
|
2635
|
-
$metadata: deserializeMetadata(output),
|
|
2636
|
-
};
|
|
2637
|
-
break;
|
|
2024
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2638
2025
|
case "InternalServerException":
|
|
2639
2026
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2640
|
-
|
|
2641
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2642
|
-
name: errorCode,
|
|
2643
|
-
$metadata: deserializeMetadata(output),
|
|
2644
|
-
};
|
|
2645
|
-
break;
|
|
2027
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2646
2028
|
case "ThrottlingException":
|
|
2647
2029
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2648
|
-
|
|
2649
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2650
|
-
name: errorCode,
|
|
2651
|
-
$metadata: deserializeMetadata(output),
|
|
2652
|
-
};
|
|
2653
|
-
break;
|
|
2030
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2654
2031
|
case "ValidationException":
|
|
2655
2032
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2656
|
-
|
|
2657
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2658
|
-
name: errorCode,
|
|
2659
|
-
$metadata: deserializeMetadata(output),
|
|
2660
|
-
};
|
|
2661
|
-
break;
|
|
2033
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2662
2034
|
default:
|
|
2663
2035
|
const parsedBody = parsedOutput.body;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
...parsedBody,
|
|
2667
|
-
name: `${errorCode}`,
|
|
2668
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2036
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2037
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2669
2038
|
$fault: "client",
|
|
2670
2039
|
$metadata: deserializeMetadata(output),
|
|
2671
|
-
};
|
|
2040
|
+
});
|
|
2041
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2672
2042
|
}
|
|
2673
|
-
const message = response.message || response.Message || errorCode;
|
|
2674
|
-
response.message = message;
|
|
2675
|
-
delete response.Message;
|
|
2676
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2677
2043
|
};
|
|
2678
2044
|
const deserializeAws_restJson1ListReadinessChecksCommand = async (output, context) => {
|
|
2679
2045
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2705,51 +2071,25 @@ const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, c
|
|
|
2705
2071
|
switch (errorCode) {
|
|
2706
2072
|
case "AccessDeniedException":
|
|
2707
2073
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2708
|
-
|
|
2709
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2710
|
-
name: errorCode,
|
|
2711
|
-
$metadata: deserializeMetadata(output),
|
|
2712
|
-
};
|
|
2713
|
-
break;
|
|
2074
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2714
2075
|
case "InternalServerException":
|
|
2715
2076
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2716
|
-
|
|
2717
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2718
|
-
name: errorCode,
|
|
2719
|
-
$metadata: deserializeMetadata(output),
|
|
2720
|
-
};
|
|
2721
|
-
break;
|
|
2077
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2722
2078
|
case "ThrottlingException":
|
|
2723
2079
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2724
|
-
|
|
2725
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2726
|
-
name: errorCode,
|
|
2727
|
-
$metadata: deserializeMetadata(output),
|
|
2728
|
-
};
|
|
2729
|
-
break;
|
|
2080
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2730
2081
|
case "ValidationException":
|
|
2731
2082
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2732
|
-
|
|
2733
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2734
|
-
name: errorCode,
|
|
2735
|
-
$metadata: deserializeMetadata(output),
|
|
2736
|
-
};
|
|
2737
|
-
break;
|
|
2083
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2738
2084
|
default:
|
|
2739
2085
|
const parsedBody = parsedOutput.body;
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
...parsedBody,
|
|
2743
|
-
name: `${errorCode}`,
|
|
2744
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2086
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2745
2088
|
$fault: "client",
|
|
2746
2089
|
$metadata: deserializeMetadata(output),
|
|
2747
|
-
};
|
|
2090
|
+
});
|
|
2091
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2748
2092
|
}
|
|
2749
|
-
const message = response.message || response.Message || errorCode;
|
|
2750
|
-
response.message = message;
|
|
2751
|
-
delete response.Message;
|
|
2752
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2753
2093
|
};
|
|
2754
2094
|
const deserializeAws_restJson1ListRecoveryGroupsCommand = async (output, context) => {
|
|
2755
2095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2781,51 +2121,25 @@ const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, co
|
|
|
2781
2121
|
switch (errorCode) {
|
|
2782
2122
|
case "AccessDeniedException":
|
|
2783
2123
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2784
|
-
|
|
2785
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2786
|
-
name: errorCode,
|
|
2787
|
-
$metadata: deserializeMetadata(output),
|
|
2788
|
-
};
|
|
2789
|
-
break;
|
|
2124
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2790
2125
|
case "InternalServerException":
|
|
2791
2126
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2792
|
-
|
|
2793
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2794
|
-
name: errorCode,
|
|
2795
|
-
$metadata: deserializeMetadata(output),
|
|
2796
|
-
};
|
|
2797
|
-
break;
|
|
2127
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2798
2128
|
case "ThrottlingException":
|
|
2799
2129
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2800
|
-
|
|
2801
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2802
|
-
name: errorCode,
|
|
2803
|
-
$metadata: deserializeMetadata(output),
|
|
2804
|
-
};
|
|
2805
|
-
break;
|
|
2130
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2806
2131
|
case "ValidationException":
|
|
2807
2132
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2808
|
-
|
|
2809
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2810
|
-
name: errorCode,
|
|
2811
|
-
$metadata: deserializeMetadata(output),
|
|
2812
|
-
};
|
|
2813
|
-
break;
|
|
2133
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2814
2134
|
default:
|
|
2815
2135
|
const parsedBody = parsedOutput.body;
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
...parsedBody,
|
|
2819
|
-
name: `${errorCode}`,
|
|
2820
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2136
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2137
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2821
2138
|
$fault: "client",
|
|
2822
2139
|
$metadata: deserializeMetadata(output),
|
|
2823
|
-
};
|
|
2140
|
+
});
|
|
2141
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2824
2142
|
}
|
|
2825
|
-
const message = response.message || response.Message || errorCode;
|
|
2826
|
-
response.message = message;
|
|
2827
|
-
delete response.Message;
|
|
2828
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2829
2143
|
};
|
|
2830
2144
|
const deserializeAws_restJson1ListResourceSetsCommand = async (output, context) => {
|
|
2831
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2857,51 +2171,25 @@ const deserializeAws_restJson1ListResourceSetsCommandError = async (output, cont
|
|
|
2857
2171
|
switch (errorCode) {
|
|
2858
2172
|
case "AccessDeniedException":
|
|
2859
2173
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2860
|
-
|
|
2861
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2862
|
-
name: errorCode,
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
};
|
|
2865
|
-
break;
|
|
2174
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2866
2175
|
case "InternalServerException":
|
|
2867
2176
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2868
|
-
|
|
2869
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2870
|
-
name: errorCode,
|
|
2871
|
-
$metadata: deserializeMetadata(output),
|
|
2872
|
-
};
|
|
2873
|
-
break;
|
|
2177
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2874
2178
|
case "ThrottlingException":
|
|
2875
2179
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2876
|
-
|
|
2877
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2878
|
-
name: errorCode,
|
|
2879
|
-
$metadata: deserializeMetadata(output),
|
|
2880
|
-
};
|
|
2881
|
-
break;
|
|
2180
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2882
2181
|
case "ValidationException":
|
|
2883
2182
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2884
|
-
|
|
2885
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2886
|
-
name: errorCode,
|
|
2887
|
-
$metadata: deserializeMetadata(output),
|
|
2888
|
-
};
|
|
2889
|
-
break;
|
|
2183
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2890
2184
|
default:
|
|
2891
2185
|
const parsedBody = parsedOutput.body;
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
...parsedBody,
|
|
2895
|
-
name: `${errorCode}`,
|
|
2896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2186
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2187
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2897
2188
|
$fault: "client",
|
|
2898
2189
|
$metadata: deserializeMetadata(output),
|
|
2899
|
-
};
|
|
2190
|
+
});
|
|
2191
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2900
2192
|
}
|
|
2901
|
-
const message = response.message || response.Message || errorCode;
|
|
2902
|
-
response.message = message;
|
|
2903
|
-
delete response.Message;
|
|
2904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2905
2193
|
};
|
|
2906
2194
|
const deserializeAws_restJson1ListRulesCommand = async (output, context) => {
|
|
2907
2195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2933,51 +2221,25 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
2933
2221
|
switch (errorCode) {
|
|
2934
2222
|
case "AccessDeniedException":
|
|
2935
2223
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2936
|
-
|
|
2937
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2938
|
-
name: errorCode,
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
};
|
|
2941
|
-
break;
|
|
2224
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2942
2225
|
case "InternalServerException":
|
|
2943
2226
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2944
|
-
|
|
2945
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2946
|
-
name: errorCode,
|
|
2947
|
-
$metadata: deserializeMetadata(output),
|
|
2948
|
-
};
|
|
2949
|
-
break;
|
|
2227
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2950
2228
|
case "ThrottlingException":
|
|
2951
2229
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2952
|
-
|
|
2953
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2954
|
-
name: errorCode,
|
|
2955
|
-
$metadata: deserializeMetadata(output),
|
|
2956
|
-
};
|
|
2957
|
-
break;
|
|
2230
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2958
2231
|
case "ValidationException":
|
|
2959
2232
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2960
|
-
|
|
2961
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2962
|
-
name: errorCode,
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
};
|
|
2965
|
-
break;
|
|
2233
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2966
2234
|
default:
|
|
2967
2235
|
const parsedBody = parsedOutput.body;
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
...parsedBody,
|
|
2971
|
-
name: `${errorCode}`,
|
|
2972
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2236
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2237
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
2238
|
$fault: "client",
|
|
2974
2239
|
$metadata: deserializeMetadata(output),
|
|
2975
|
-
};
|
|
2240
|
+
});
|
|
2241
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2976
2242
|
}
|
|
2977
|
-
const message = response.message || response.Message || errorCode;
|
|
2978
|
-
response.message = message;
|
|
2979
|
-
delete response.Message;
|
|
2980
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2981
2243
|
};
|
|
2982
2244
|
const deserializeAws_restJson1ListTagsForResourcesCommand = async (output, context) => {
|
|
2983
2245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3005,43 +2267,22 @@ const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output,
|
|
|
3005
2267
|
switch (errorCode) {
|
|
3006
2268
|
case "InternalServerException":
|
|
3007
2269
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3008
|
-
|
|
3009
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3010
|
-
name: errorCode,
|
|
3011
|
-
$metadata: deserializeMetadata(output),
|
|
3012
|
-
};
|
|
3013
|
-
break;
|
|
2270
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3014
2271
|
case "ResourceNotFoundException":
|
|
3015
2272
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3016
|
-
|
|
3017
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3018
|
-
name: errorCode,
|
|
3019
|
-
$metadata: deserializeMetadata(output),
|
|
3020
|
-
};
|
|
3021
|
-
break;
|
|
2273
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3022
2274
|
case "ValidationException":
|
|
3023
2275
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3024
|
-
|
|
3025
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3026
|
-
name: errorCode,
|
|
3027
|
-
$metadata: deserializeMetadata(output),
|
|
3028
|
-
};
|
|
3029
|
-
break;
|
|
2276
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3030
2277
|
default:
|
|
3031
2278
|
const parsedBody = parsedOutput.body;
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
...parsedBody,
|
|
3035
|
-
name: `${errorCode}`,
|
|
3036
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2279
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2280
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3037
2281
|
$fault: "client",
|
|
3038
2282
|
$metadata: deserializeMetadata(output),
|
|
3039
|
-
};
|
|
2283
|
+
});
|
|
2284
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3040
2285
|
}
|
|
3041
|
-
const message = response.message || response.Message || errorCode;
|
|
3042
|
-
response.message = message;
|
|
3043
|
-
delete response.Message;
|
|
3044
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3045
2286
|
};
|
|
3046
2287
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3047
2288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3065,43 +2306,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3065
2306
|
switch (errorCode) {
|
|
3066
2307
|
case "InternalServerException":
|
|
3067
2308
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3068
|
-
|
|
3069
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3070
|
-
name: errorCode,
|
|
3071
|
-
$metadata: deserializeMetadata(output),
|
|
3072
|
-
};
|
|
3073
|
-
break;
|
|
2309
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3074
2310
|
case "ResourceNotFoundException":
|
|
3075
2311
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3076
|
-
|
|
3077
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3078
|
-
name: errorCode,
|
|
3079
|
-
$metadata: deserializeMetadata(output),
|
|
3080
|
-
};
|
|
3081
|
-
break;
|
|
2312
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3082
2313
|
case "ValidationException":
|
|
3083
2314
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3084
|
-
|
|
3085
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3086
|
-
name: errorCode,
|
|
3087
|
-
$metadata: deserializeMetadata(output),
|
|
3088
|
-
};
|
|
3089
|
-
break;
|
|
2315
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3090
2316
|
default:
|
|
3091
2317
|
const parsedBody = parsedOutput.body;
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
...parsedBody,
|
|
3095
|
-
name: `${errorCode}`,
|
|
3096
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2318
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3097
2320
|
$fault: "client",
|
|
3098
2321
|
$metadata: deserializeMetadata(output),
|
|
3099
|
-
};
|
|
2322
|
+
});
|
|
2323
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3100
2324
|
}
|
|
3101
|
-
const message = response.message || response.Message || errorCode;
|
|
3102
|
-
response.message = message;
|
|
3103
|
-
delete response.Message;
|
|
3104
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3105
2325
|
};
|
|
3106
2326
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3107
2327
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3125,43 +2345,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3125
2345
|
switch (errorCode) {
|
|
3126
2346
|
case "InternalServerException":
|
|
3127
2347
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3128
|
-
|
|
3129
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3130
|
-
name: errorCode,
|
|
3131
|
-
$metadata: deserializeMetadata(output),
|
|
3132
|
-
};
|
|
3133
|
-
break;
|
|
2348
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3134
2349
|
case "ResourceNotFoundException":
|
|
3135
2350
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3136
|
-
|
|
3137
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3138
|
-
name: errorCode,
|
|
3139
|
-
$metadata: deserializeMetadata(output),
|
|
3140
|
-
};
|
|
3141
|
-
break;
|
|
2351
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3142
2352
|
case "ValidationException":
|
|
3143
2353
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3144
|
-
|
|
3145
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3146
|
-
name: errorCode,
|
|
3147
|
-
$metadata: deserializeMetadata(output),
|
|
3148
|
-
};
|
|
3149
|
-
break;
|
|
2354
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3150
2355
|
default:
|
|
3151
2356
|
const parsedBody = parsedOutput.body;
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
...parsedBody,
|
|
3155
|
-
name: `${errorCode}`,
|
|
3156
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2357
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2358
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3157
2359
|
$fault: "client",
|
|
3158
2360
|
$metadata: deserializeMetadata(output),
|
|
3159
|
-
};
|
|
2361
|
+
});
|
|
2362
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3160
2363
|
}
|
|
3161
|
-
const message = response.message || response.Message || errorCode;
|
|
3162
|
-
response.message = message;
|
|
3163
|
-
delete response.Message;
|
|
3164
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3165
2364
|
};
|
|
3166
2365
|
const deserializeAws_restJson1UpdateCellCommand = async (output, context) => {
|
|
3167
2366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3205,59 +2404,28 @@ const deserializeAws_restJson1UpdateCellCommandError = async (output, context) =
|
|
|
3205
2404
|
switch (errorCode) {
|
|
3206
2405
|
case "AccessDeniedException":
|
|
3207
2406
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
3208
|
-
|
|
3209
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3210
|
-
name: errorCode,
|
|
3211
|
-
$metadata: deserializeMetadata(output),
|
|
3212
|
-
};
|
|
3213
|
-
break;
|
|
2407
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3214
2408
|
case "InternalServerException":
|
|
3215
2409
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3216
|
-
|
|
3217
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3218
|
-
name: errorCode,
|
|
3219
|
-
$metadata: deserializeMetadata(output),
|
|
3220
|
-
};
|
|
3221
|
-
break;
|
|
2410
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3222
2411
|
case "ResourceNotFoundException":
|
|
3223
2412
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3224
|
-
|
|
3225
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3226
|
-
name: errorCode,
|
|
3227
|
-
$metadata: deserializeMetadata(output),
|
|
3228
|
-
};
|
|
3229
|
-
break;
|
|
2413
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3230
2414
|
case "ThrottlingException":
|
|
3231
2415
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
3232
|
-
|
|
3233
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3234
|
-
name: errorCode,
|
|
3235
|
-
$metadata: deserializeMetadata(output),
|
|
3236
|
-
};
|
|
3237
|
-
break;
|
|
2416
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3238
2417
|
case "ValidationException":
|
|
3239
2418
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3240
|
-
|
|
3241
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3242
|
-
name: errorCode,
|
|
3243
|
-
$metadata: deserializeMetadata(output),
|
|
3244
|
-
};
|
|
3245
|
-
break;
|
|
2419
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3246
2420
|
default:
|
|
3247
2421
|
const parsedBody = parsedOutput.body;
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
...parsedBody,
|
|
3251
|
-
name: `${errorCode}`,
|
|
3252
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2422
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2423
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3253
2424
|
$fault: "client",
|
|
3254
2425
|
$metadata: deserializeMetadata(output),
|
|
3255
|
-
};
|
|
2426
|
+
});
|
|
2427
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3256
2428
|
}
|
|
3257
|
-
const message = response.message || response.Message || errorCode;
|
|
3258
|
-
response.message = message;
|
|
3259
|
-
delete response.Message;
|
|
3260
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3261
2429
|
};
|
|
3262
2430
|
const deserializeAws_restJson1UpdateReadinessCheckCommand = async (output, context) => {
|
|
3263
2431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3297,59 +2465,28 @@ const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output,
|
|
|
3297
2465
|
switch (errorCode) {
|
|
3298
2466
|
case "AccessDeniedException":
|
|
3299
2467
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
3300
|
-
|
|
3301
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3302
|
-
name: errorCode,
|
|
3303
|
-
$metadata: deserializeMetadata(output),
|
|
3304
|
-
};
|
|
3305
|
-
break;
|
|
2468
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3306
2469
|
case "InternalServerException":
|
|
3307
2470
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3308
|
-
|
|
3309
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3310
|
-
name: errorCode,
|
|
3311
|
-
$metadata: deserializeMetadata(output),
|
|
3312
|
-
};
|
|
3313
|
-
break;
|
|
2471
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3314
2472
|
case "ResourceNotFoundException":
|
|
3315
2473
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3316
|
-
|
|
3317
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3318
|
-
name: errorCode,
|
|
3319
|
-
$metadata: deserializeMetadata(output),
|
|
3320
|
-
};
|
|
3321
|
-
break;
|
|
2474
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3322
2475
|
case "ThrottlingException":
|
|
3323
2476
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
3324
|
-
|
|
3325
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3326
|
-
name: errorCode,
|
|
3327
|
-
$metadata: deserializeMetadata(output),
|
|
3328
|
-
};
|
|
3329
|
-
break;
|
|
2477
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3330
2478
|
case "ValidationException":
|
|
3331
2479
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3332
|
-
|
|
3333
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3334
|
-
name: errorCode,
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
};
|
|
3337
|
-
break;
|
|
2480
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3338
2481
|
default:
|
|
3339
2482
|
const parsedBody = parsedOutput.body;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
...parsedBody,
|
|
3343
|
-
name: `${errorCode}`,
|
|
3344
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2483
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3345
2485
|
$fault: "client",
|
|
3346
2486
|
$metadata: deserializeMetadata(output),
|
|
3347
|
-
};
|
|
2487
|
+
});
|
|
2488
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3348
2489
|
}
|
|
3349
|
-
const message = response.message || response.Message || errorCode;
|
|
3350
|
-
response.message = message;
|
|
3351
|
-
delete response.Message;
|
|
3352
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3353
2490
|
};
|
|
3354
2491
|
const deserializeAws_restJson1UpdateRecoveryGroupCommand = async (output, context) => {
|
|
3355
2492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3389,59 +2526,28 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommandError = async (output, c
|
|
|
3389
2526
|
switch (errorCode) {
|
|
3390
2527
|
case "AccessDeniedException":
|
|
3391
2528
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
3392
|
-
|
|
3393
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3394
|
-
name: errorCode,
|
|
3395
|
-
$metadata: deserializeMetadata(output),
|
|
3396
|
-
};
|
|
3397
|
-
break;
|
|
2529
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3398
2530
|
case "InternalServerException":
|
|
3399
2531
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3400
|
-
|
|
3401
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3402
|
-
name: errorCode,
|
|
3403
|
-
$metadata: deserializeMetadata(output),
|
|
3404
|
-
};
|
|
3405
|
-
break;
|
|
2532
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3406
2533
|
case "ResourceNotFoundException":
|
|
3407
2534
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3408
|
-
|
|
3409
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3410
|
-
name: errorCode,
|
|
3411
|
-
$metadata: deserializeMetadata(output),
|
|
3412
|
-
};
|
|
3413
|
-
break;
|
|
2535
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3414
2536
|
case "ThrottlingException":
|
|
3415
2537
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
3416
|
-
|
|
3417
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3418
|
-
name: errorCode,
|
|
3419
|
-
$metadata: deserializeMetadata(output),
|
|
3420
|
-
};
|
|
3421
|
-
break;
|
|
2538
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3422
2539
|
case "ValidationException":
|
|
3423
2540
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3424
|
-
|
|
3425
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3426
|
-
name: errorCode,
|
|
3427
|
-
$metadata: deserializeMetadata(output),
|
|
3428
|
-
};
|
|
3429
|
-
break;
|
|
2541
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3430
2542
|
default:
|
|
3431
2543
|
const parsedBody = parsedOutput.body;
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
...parsedBody,
|
|
3435
|
-
name: `${errorCode}`,
|
|
3436
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2544
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2545
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3437
2546
|
$fault: "client",
|
|
3438
2547
|
$metadata: deserializeMetadata(output),
|
|
3439
|
-
};
|
|
2548
|
+
});
|
|
2549
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3440
2550
|
}
|
|
3441
|
-
const message = response.message || response.Message || errorCode;
|
|
3442
|
-
response.message = message;
|
|
3443
|
-
delete response.Message;
|
|
3444
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3445
2551
|
};
|
|
3446
2552
|
const deserializeAws_restJson1UpdateResourceSetCommand = async (output, context) => {
|
|
3447
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3485,137 +2591,100 @@ const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, con
|
|
|
3485
2591
|
switch (errorCode) {
|
|
3486
2592
|
case "AccessDeniedException":
|
|
3487
2593
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
3488
|
-
|
|
3489
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3490
|
-
name: errorCode,
|
|
3491
|
-
$metadata: deserializeMetadata(output),
|
|
3492
|
-
};
|
|
3493
|
-
break;
|
|
2594
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3494
2595
|
case "InternalServerException":
|
|
3495
2596
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
3496
|
-
|
|
3497
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3498
|
-
name: errorCode,
|
|
3499
|
-
$metadata: deserializeMetadata(output),
|
|
3500
|
-
};
|
|
3501
|
-
break;
|
|
2597
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3502
2598
|
case "ResourceNotFoundException":
|
|
3503
2599
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
3504
|
-
|
|
3505
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3506
|
-
name: errorCode,
|
|
3507
|
-
$metadata: deserializeMetadata(output),
|
|
3508
|
-
};
|
|
3509
|
-
break;
|
|
2600
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3510
2601
|
case "ThrottlingException":
|
|
3511
2602
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
3512
|
-
|
|
3513
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3514
|
-
name: errorCode,
|
|
3515
|
-
$metadata: deserializeMetadata(output),
|
|
3516
|
-
};
|
|
3517
|
-
break;
|
|
2603
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3518
2604
|
case "ValidationException":
|
|
3519
2605
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
3520
|
-
|
|
3521
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3522
|
-
name: errorCode,
|
|
3523
|
-
$metadata: deserializeMetadata(output),
|
|
3524
|
-
};
|
|
3525
|
-
break;
|
|
2606
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3526
2607
|
default:
|
|
3527
2608
|
const parsedBody = parsedOutput.body;
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
...parsedBody,
|
|
3531
|
-
name: `${errorCode}`,
|
|
3532
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2609
|
+
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2610
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3533
2611
|
$fault: "client",
|
|
3534
2612
|
$metadata: deserializeMetadata(output),
|
|
3535
|
-
};
|
|
2613
|
+
});
|
|
2614
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3536
2615
|
}
|
|
3537
|
-
const message = response.message || response.Message || errorCode;
|
|
3538
|
-
response.message = message;
|
|
3539
|
-
delete response.Message;
|
|
3540
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3541
2616
|
};
|
|
3542
2617
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3543
|
-
const contents = {
|
|
3544
|
-
name: "AccessDeniedException",
|
|
3545
|
-
$fault: "client",
|
|
3546
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3547
|
-
Message: undefined,
|
|
3548
|
-
};
|
|
2618
|
+
const contents = {};
|
|
3549
2619
|
const data = parsedOutput.body;
|
|
3550
2620
|
if (data.message !== undefined && data.message !== null) {
|
|
3551
2621
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3552
2622
|
}
|
|
3553
|
-
|
|
2623
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2624
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2625
|
+
...contents,
|
|
2626
|
+
});
|
|
2627
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3554
2628
|
};
|
|
3555
2629
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3556
|
-
const contents = {
|
|
3557
|
-
name: "ConflictException",
|
|
3558
|
-
$fault: "client",
|
|
3559
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3560
|
-
Message: undefined,
|
|
3561
|
-
};
|
|
2630
|
+
const contents = {};
|
|
3562
2631
|
const data = parsedOutput.body;
|
|
3563
2632
|
if (data.message !== undefined && data.message !== null) {
|
|
3564
2633
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3565
2634
|
}
|
|
3566
|
-
|
|
2635
|
+
const exception = new models_0_1.ConflictException({
|
|
2636
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2637
|
+
...contents,
|
|
2638
|
+
});
|
|
2639
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3567
2640
|
};
|
|
3568
2641
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3569
|
-
const contents = {
|
|
3570
|
-
name: "InternalServerException",
|
|
3571
|
-
$fault: "server",
|
|
3572
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3573
|
-
Message: undefined,
|
|
3574
|
-
};
|
|
2642
|
+
const contents = {};
|
|
3575
2643
|
const data = parsedOutput.body;
|
|
3576
2644
|
if (data.message !== undefined && data.message !== null) {
|
|
3577
2645
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3578
2646
|
}
|
|
3579
|
-
|
|
2647
|
+
const exception = new models_0_1.InternalServerException({
|
|
2648
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2649
|
+
...contents,
|
|
2650
|
+
});
|
|
2651
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3580
2652
|
};
|
|
3581
2653
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3582
|
-
const contents = {
|
|
3583
|
-
name: "ResourceNotFoundException",
|
|
3584
|
-
$fault: "client",
|
|
3585
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3586
|
-
Message: undefined,
|
|
3587
|
-
};
|
|
2654
|
+
const contents = {};
|
|
3588
2655
|
const data = parsedOutput.body;
|
|
3589
2656
|
if (data.message !== undefined && data.message !== null) {
|
|
3590
2657
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3591
2658
|
}
|
|
3592
|
-
|
|
2659
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2660
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2661
|
+
...contents,
|
|
2662
|
+
});
|
|
2663
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3593
2664
|
};
|
|
3594
2665
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3595
|
-
const contents = {
|
|
3596
|
-
name: "ThrottlingException",
|
|
3597
|
-
$fault: "client",
|
|
3598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3599
|
-
Message: undefined,
|
|
3600
|
-
};
|
|
2666
|
+
const contents = {};
|
|
3601
2667
|
const data = parsedOutput.body;
|
|
3602
2668
|
if (data.message !== undefined && data.message !== null) {
|
|
3603
2669
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3604
2670
|
}
|
|
3605
|
-
|
|
2671
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2672
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2673
|
+
...contents,
|
|
2674
|
+
});
|
|
2675
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3606
2676
|
};
|
|
3607
2677
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3608
|
-
const contents = {
|
|
3609
|
-
name: "ValidationException",
|
|
3610
|
-
$fault: "client",
|
|
3611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3612
|
-
Message: undefined,
|
|
3613
|
-
};
|
|
2678
|
+
const contents = {};
|
|
3614
2679
|
const data = parsedOutput.body;
|
|
3615
2680
|
if (data.message !== undefined && data.message !== null) {
|
|
3616
2681
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3617
2682
|
}
|
|
3618
|
-
|
|
2683
|
+
const exception = new models_0_1.ValidationException({
|
|
2684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2685
|
+
...contents,
|
|
2686
|
+
});
|
|
2687
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3619
2688
|
};
|
|
3620
2689
|
const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
3621
2690
|
return input
|
|
@@ -3696,7 +2765,7 @@ const serializeAws_restJson1TargetResource = (input, context) => {
|
|
|
3696
2765
|
};
|
|
3697
2766
|
};
|
|
3698
2767
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
3699
|
-
|
|
2768
|
+
const retVal = (output || [])
|
|
3700
2769
|
.filter((e) => e != null)
|
|
3701
2770
|
.map((entry) => {
|
|
3702
2771
|
if (entry === null) {
|
|
@@ -3704,9 +2773,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
3704
2773
|
}
|
|
3705
2774
|
return smithy_client_1.expectString(entry);
|
|
3706
2775
|
});
|
|
2776
|
+
return retVal;
|
|
3707
2777
|
};
|
|
3708
2778
|
const deserializeAws_restJson1__listOfCellOutput = (output, context) => {
|
|
3709
|
-
|
|
2779
|
+
const retVal = (output || [])
|
|
3710
2780
|
.filter((e) => e != null)
|
|
3711
2781
|
.map((entry) => {
|
|
3712
2782
|
if (entry === null) {
|
|
@@ -3714,9 +2784,10 @@ const deserializeAws_restJson1__listOfCellOutput = (output, context) => {
|
|
|
3714
2784
|
}
|
|
3715
2785
|
return deserializeAws_restJson1CellOutput(entry, context);
|
|
3716
2786
|
});
|
|
2787
|
+
return retVal;
|
|
3717
2788
|
};
|
|
3718
2789
|
const deserializeAws_restJson1__listOfCrossAccountAuthorization = (output, context) => {
|
|
3719
|
-
|
|
2790
|
+
const retVal = (output || [])
|
|
3720
2791
|
.filter((e) => e != null)
|
|
3721
2792
|
.map((entry) => {
|
|
3722
2793
|
if (entry === null) {
|
|
@@ -3724,9 +2795,10 @@ const deserializeAws_restJson1__listOfCrossAccountAuthorization = (output, conte
|
|
|
3724
2795
|
}
|
|
3725
2796
|
return smithy_client_1.expectString(entry);
|
|
3726
2797
|
});
|
|
2798
|
+
return retVal;
|
|
3727
2799
|
};
|
|
3728
2800
|
const deserializeAws_restJson1__listOfListRulesOutput = (output, context) => {
|
|
3729
|
-
|
|
2801
|
+
const retVal = (output || [])
|
|
3730
2802
|
.filter((e) => e != null)
|
|
3731
2803
|
.map((entry) => {
|
|
3732
2804
|
if (entry === null) {
|
|
@@ -3734,9 +2806,10 @@ const deserializeAws_restJson1__listOfListRulesOutput = (output, context) => {
|
|
|
3734
2806
|
}
|
|
3735
2807
|
return deserializeAws_restJson1ListRulesOutput(entry, context);
|
|
3736
2808
|
});
|
|
2809
|
+
return retVal;
|
|
3737
2810
|
};
|
|
3738
2811
|
const deserializeAws_restJson1__listOfMessage = (output, context) => {
|
|
3739
|
-
|
|
2812
|
+
const retVal = (output || [])
|
|
3740
2813
|
.filter((e) => e != null)
|
|
3741
2814
|
.map((entry) => {
|
|
3742
2815
|
if (entry === null) {
|
|
@@ -3744,9 +2817,10 @@ const deserializeAws_restJson1__listOfMessage = (output, context) => {
|
|
|
3744
2817
|
}
|
|
3745
2818
|
return deserializeAws_restJson1Message(entry, context);
|
|
3746
2819
|
});
|
|
2820
|
+
return retVal;
|
|
3747
2821
|
};
|
|
3748
2822
|
const deserializeAws_restJson1__listOfReadinessCheckOutput = (output, context) => {
|
|
3749
|
-
|
|
2823
|
+
const retVal = (output || [])
|
|
3750
2824
|
.filter((e) => e != null)
|
|
3751
2825
|
.map((entry) => {
|
|
3752
2826
|
if (entry === null) {
|
|
@@ -3754,9 +2828,10 @@ const deserializeAws_restJson1__listOfReadinessCheckOutput = (output, context) =
|
|
|
3754
2828
|
}
|
|
3755
2829
|
return deserializeAws_restJson1ReadinessCheckOutput(entry, context);
|
|
3756
2830
|
});
|
|
2831
|
+
return retVal;
|
|
3757
2832
|
};
|
|
3758
2833
|
const deserializeAws_restJson1__listOfReadinessCheckSummary = (output, context) => {
|
|
3759
|
-
|
|
2834
|
+
const retVal = (output || [])
|
|
3760
2835
|
.filter((e) => e != null)
|
|
3761
2836
|
.map((entry) => {
|
|
3762
2837
|
if (entry === null) {
|
|
@@ -3764,9 +2839,10 @@ const deserializeAws_restJson1__listOfReadinessCheckSummary = (output, context)
|
|
|
3764
2839
|
}
|
|
3765
2840
|
return deserializeAws_restJson1ReadinessCheckSummary(entry, context);
|
|
3766
2841
|
});
|
|
2842
|
+
return retVal;
|
|
3767
2843
|
};
|
|
3768
2844
|
const deserializeAws_restJson1__listOfRecommendation = (output, context) => {
|
|
3769
|
-
|
|
2845
|
+
const retVal = (output || [])
|
|
3770
2846
|
.filter((e) => e != null)
|
|
3771
2847
|
.map((entry) => {
|
|
3772
2848
|
if (entry === null) {
|
|
@@ -3774,9 +2850,10 @@ const deserializeAws_restJson1__listOfRecommendation = (output, context) => {
|
|
|
3774
2850
|
}
|
|
3775
2851
|
return deserializeAws_restJson1Recommendation(entry, context);
|
|
3776
2852
|
});
|
|
2853
|
+
return retVal;
|
|
3777
2854
|
};
|
|
3778
2855
|
const deserializeAws_restJson1__listOfRecoveryGroupOutput = (output, context) => {
|
|
3779
|
-
|
|
2856
|
+
const retVal = (output || [])
|
|
3780
2857
|
.filter((e) => e != null)
|
|
3781
2858
|
.map((entry) => {
|
|
3782
2859
|
if (entry === null) {
|
|
@@ -3784,9 +2861,10 @@ const deserializeAws_restJson1__listOfRecoveryGroupOutput = (output, context) =>
|
|
|
3784
2861
|
}
|
|
3785
2862
|
return deserializeAws_restJson1RecoveryGroupOutput(entry, context);
|
|
3786
2863
|
});
|
|
2864
|
+
return retVal;
|
|
3787
2865
|
};
|
|
3788
2866
|
const deserializeAws_restJson1__listOfResource = (output, context) => {
|
|
3789
|
-
|
|
2867
|
+
const retVal = (output || [])
|
|
3790
2868
|
.filter((e) => e != null)
|
|
3791
2869
|
.map((entry) => {
|
|
3792
2870
|
if (entry === null) {
|
|
@@ -3794,9 +2872,10 @@ const deserializeAws_restJson1__listOfResource = (output, context) => {
|
|
|
3794
2872
|
}
|
|
3795
2873
|
return deserializeAws_restJson1Resource(entry, context);
|
|
3796
2874
|
});
|
|
2875
|
+
return retVal;
|
|
3797
2876
|
};
|
|
3798
2877
|
const deserializeAws_restJson1__listOfResourceResult = (output, context) => {
|
|
3799
|
-
|
|
2878
|
+
const retVal = (output || [])
|
|
3800
2879
|
.filter((e) => e != null)
|
|
3801
2880
|
.map((entry) => {
|
|
3802
2881
|
if (entry === null) {
|
|
@@ -3804,9 +2883,10 @@ const deserializeAws_restJson1__listOfResourceResult = (output, context) => {
|
|
|
3804
2883
|
}
|
|
3805
2884
|
return deserializeAws_restJson1ResourceResult(entry, context);
|
|
3806
2885
|
});
|
|
2886
|
+
return retVal;
|
|
3807
2887
|
};
|
|
3808
2888
|
const deserializeAws_restJson1__listOfResourceSetOutput = (output, context) => {
|
|
3809
|
-
|
|
2889
|
+
const retVal = (output || [])
|
|
3810
2890
|
.filter((e) => e != null)
|
|
3811
2891
|
.map((entry) => {
|
|
3812
2892
|
if (entry === null) {
|
|
@@ -3814,9 +2894,10 @@ const deserializeAws_restJson1__listOfResourceSetOutput = (output, context) => {
|
|
|
3814
2894
|
}
|
|
3815
2895
|
return deserializeAws_restJson1ResourceSetOutput(entry, context);
|
|
3816
2896
|
});
|
|
2897
|
+
return retVal;
|
|
3817
2898
|
};
|
|
3818
2899
|
const deserializeAws_restJson1__listOfRuleResult = (output, context) => {
|
|
3819
|
-
|
|
2900
|
+
const retVal = (output || [])
|
|
3820
2901
|
.filter((e) => e != null)
|
|
3821
2902
|
.map((entry) => {
|
|
3822
2903
|
if (entry === null) {
|
|
@@ -3824,6 +2905,7 @@ const deserializeAws_restJson1__listOfRuleResult = (output, context) => {
|
|
|
3824
2905
|
}
|
|
3825
2906
|
return deserializeAws_restJson1RuleResult(entry, context);
|
|
3826
2907
|
});
|
|
2908
|
+
return retVal;
|
|
3827
2909
|
};
|
|
3828
2910
|
const deserializeAws_restJson1CellOutput = (output, context) => {
|
|
3829
2911
|
return {
|