@aws-sdk/client-efs 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/EFSServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +440 -2
- package/dist-cjs/protocols/Aws_restJson1.js +455 -1378
- package/dist-es/index.js +1 -0
- package/dist-es/models/EFSServiceException.js +12 -0
- package/dist-es/models/models_0.js +410 -1
- package/dist-es/protocols/Aws_restJson1.js +777 -1528
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/EFSServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +205 -88
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/EFSServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +147 -88
- package/package.json +25 -25
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1UpdateFileSystemCommand = exports.deserializeAws
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const EFSServiceException_1 = require("../models/EFSServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_restJson1CreateAccessPointCommand = async (input, context) => {
|
|
9
11
|
var _a;
|
|
10
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -933,67 +935,31 @@ const deserializeAws_restJson1CreateAccessPointCommandError = async (output, con
|
|
|
933
935
|
switch (errorCode) {
|
|
934
936
|
case "AccessPointAlreadyExists":
|
|
935
937
|
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
936
|
-
|
|
937
|
-
...(await deserializeAws_restJson1AccessPointAlreadyExistsResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
938
|
+
throw await deserializeAws_restJson1AccessPointAlreadyExistsResponse(parsedOutput, context);
|
|
942
939
|
case "AccessPointLimitExceeded":
|
|
943
940
|
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
944
|
-
|
|
945
|
-
...(await deserializeAws_restJson1AccessPointLimitExceededResponse(parsedOutput, context)),
|
|
946
|
-
name: errorCode,
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
949
|
-
break;
|
|
941
|
+
throw await deserializeAws_restJson1AccessPointLimitExceededResponse(parsedOutput, context);
|
|
950
942
|
case "BadRequest":
|
|
951
943
|
case "com.amazonaws.efs#BadRequest":
|
|
952
|
-
|
|
953
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
954
|
-
name: errorCode,
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
};
|
|
957
|
-
break;
|
|
944
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
958
945
|
case "FileSystemNotFound":
|
|
959
946
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
960
|
-
|
|
961
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
962
|
-
name: errorCode,
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
965
|
-
break;
|
|
947
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
966
948
|
case "IncorrectFileSystemLifeCycleState":
|
|
967
949
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
968
|
-
|
|
969
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
970
|
-
name: errorCode,
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
};
|
|
973
|
-
break;
|
|
950
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
974
951
|
case "InternalServerError":
|
|
975
952
|
case "com.amazonaws.efs#InternalServerError":
|
|
976
|
-
|
|
977
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
978
|
-
name: errorCode,
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
};
|
|
981
|
-
break;
|
|
953
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
982
954
|
default:
|
|
983
955
|
const parsedBody = parsedOutput.body;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
...parsedBody,
|
|
987
|
-
name: `${errorCode}`,
|
|
988
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
956
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
957
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
989
958
|
$fault: "client",
|
|
990
959
|
$metadata: deserializeMetadata(output),
|
|
991
|
-
};
|
|
960
|
+
});
|
|
961
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
992
962
|
}
|
|
993
|
-
const message = response.message || response.Message || errorCode;
|
|
994
|
-
response.message = message;
|
|
995
|
-
delete response.Message;
|
|
996
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
997
963
|
};
|
|
998
964
|
const deserializeAws_restJson1CreateFileSystemCommand = async (output, context) => {
|
|
999
965
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1085,75 +1051,34 @@ const deserializeAws_restJson1CreateFileSystemCommandError = async (output, cont
|
|
|
1085
1051
|
switch (errorCode) {
|
|
1086
1052
|
case "BadRequest":
|
|
1087
1053
|
case "com.amazonaws.efs#BadRequest":
|
|
1088
|
-
|
|
1089
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1090
|
-
name: errorCode,
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
};
|
|
1093
|
-
break;
|
|
1054
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1094
1055
|
case "FileSystemAlreadyExists":
|
|
1095
1056
|
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
1096
|
-
|
|
1097
|
-
...(await deserializeAws_restJson1FileSystemAlreadyExistsResponse(parsedOutput, context)),
|
|
1098
|
-
name: errorCode,
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
};
|
|
1101
|
-
break;
|
|
1057
|
+
throw await deserializeAws_restJson1FileSystemAlreadyExistsResponse(parsedOutput, context);
|
|
1102
1058
|
case "FileSystemLimitExceeded":
|
|
1103
1059
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1104
|
-
|
|
1105
|
-
...(await deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context)),
|
|
1106
|
-
name: errorCode,
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
};
|
|
1109
|
-
break;
|
|
1060
|
+
throw await deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context);
|
|
1110
1061
|
case "InsufficientThroughputCapacity":
|
|
1111
1062
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1112
|
-
|
|
1113
|
-
...(await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)),
|
|
1114
|
-
name: errorCode,
|
|
1115
|
-
$metadata: deserializeMetadata(output),
|
|
1116
|
-
};
|
|
1117
|
-
break;
|
|
1063
|
+
throw await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context);
|
|
1118
1064
|
case "InternalServerError":
|
|
1119
1065
|
case "com.amazonaws.efs#InternalServerError":
|
|
1120
|
-
|
|
1121
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1122
|
-
name: errorCode,
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
};
|
|
1125
|
-
break;
|
|
1066
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1126
1067
|
case "ThroughputLimitExceeded":
|
|
1127
1068
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1128
|
-
|
|
1129
|
-
...(await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)),
|
|
1130
|
-
name: errorCode,
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
};
|
|
1133
|
-
break;
|
|
1069
|
+
throw await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context);
|
|
1134
1070
|
case "UnsupportedAvailabilityZone":
|
|
1135
1071
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1136
|
-
|
|
1137
|
-
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)),
|
|
1138
|
-
name: errorCode,
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
1141
|
-
break;
|
|
1072
|
+
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context);
|
|
1142
1073
|
default:
|
|
1143
1074
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
...parsedBody,
|
|
1147
|
-
name: `${errorCode}`,
|
|
1148
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1075
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1076
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1149
1077
|
$fault: "client",
|
|
1150
1078
|
$metadata: deserializeMetadata(output),
|
|
1151
|
-
};
|
|
1079
|
+
});
|
|
1080
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1152
1081
|
}
|
|
1153
|
-
const message = response.message || response.Message || errorCode;
|
|
1154
|
-
response.message = message;
|
|
1155
|
-
delete response.Message;
|
|
1156
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1157
1082
|
};
|
|
1158
1083
|
const deserializeAws_restJson1CreateMountTargetCommand = async (output, context) => {
|
|
1159
1084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1217,123 +1142,52 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
1217
1142
|
switch (errorCode) {
|
|
1218
1143
|
case "AvailabilityZonesMismatch":
|
|
1219
1144
|
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
1220
|
-
|
|
1221
|
-
...(await deserializeAws_restJson1AvailabilityZonesMismatchResponse(parsedOutput, context)),
|
|
1222
|
-
name: errorCode,
|
|
1223
|
-
$metadata: deserializeMetadata(output),
|
|
1224
|
-
};
|
|
1225
|
-
break;
|
|
1145
|
+
throw await deserializeAws_restJson1AvailabilityZonesMismatchResponse(parsedOutput, context);
|
|
1226
1146
|
case "BadRequest":
|
|
1227
1147
|
case "com.amazonaws.efs#BadRequest":
|
|
1228
|
-
|
|
1229
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1230
|
-
name: errorCode,
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
};
|
|
1233
|
-
break;
|
|
1148
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1234
1149
|
case "FileSystemNotFound":
|
|
1235
1150
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1236
|
-
|
|
1237
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1238
|
-
name: errorCode,
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
};
|
|
1241
|
-
break;
|
|
1151
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1242
1152
|
case "IncorrectFileSystemLifeCycleState":
|
|
1243
1153
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1244
|
-
|
|
1245
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
1246
|
-
name: errorCode,
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
};
|
|
1249
|
-
break;
|
|
1154
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
1250
1155
|
case "InternalServerError":
|
|
1251
1156
|
case "com.amazonaws.efs#InternalServerError":
|
|
1252
|
-
|
|
1253
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1254
|
-
name: errorCode,
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
};
|
|
1257
|
-
break;
|
|
1157
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1258
1158
|
case "IpAddressInUse":
|
|
1259
1159
|
case "com.amazonaws.efs#IpAddressInUse":
|
|
1260
|
-
|
|
1261
|
-
...(await deserializeAws_restJson1IpAddressInUseResponse(parsedOutput, context)),
|
|
1262
|
-
name: errorCode,
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
};
|
|
1265
|
-
break;
|
|
1160
|
+
throw await deserializeAws_restJson1IpAddressInUseResponse(parsedOutput, context);
|
|
1266
1161
|
case "MountTargetConflict":
|
|
1267
1162
|
case "com.amazonaws.efs#MountTargetConflict":
|
|
1268
|
-
|
|
1269
|
-
...(await deserializeAws_restJson1MountTargetConflictResponse(parsedOutput, context)),
|
|
1270
|
-
name: errorCode,
|
|
1271
|
-
$metadata: deserializeMetadata(output),
|
|
1272
|
-
};
|
|
1273
|
-
break;
|
|
1163
|
+
throw await deserializeAws_restJson1MountTargetConflictResponse(parsedOutput, context);
|
|
1274
1164
|
case "NetworkInterfaceLimitExceeded":
|
|
1275
1165
|
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
1276
|
-
|
|
1277
|
-
...(await deserializeAws_restJson1NetworkInterfaceLimitExceededResponse(parsedOutput, context)),
|
|
1278
|
-
name: errorCode,
|
|
1279
|
-
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
1281
|
-
break;
|
|
1166
|
+
throw await deserializeAws_restJson1NetworkInterfaceLimitExceededResponse(parsedOutput, context);
|
|
1282
1167
|
case "NoFreeAddressesInSubnet":
|
|
1283
1168
|
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
1284
|
-
|
|
1285
|
-
...(await deserializeAws_restJson1NoFreeAddressesInSubnetResponse(parsedOutput, context)),
|
|
1286
|
-
name: errorCode,
|
|
1287
|
-
$metadata: deserializeMetadata(output),
|
|
1288
|
-
};
|
|
1289
|
-
break;
|
|
1169
|
+
throw await deserializeAws_restJson1NoFreeAddressesInSubnetResponse(parsedOutput, context);
|
|
1290
1170
|
case "SecurityGroupLimitExceeded":
|
|
1291
1171
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1292
|
-
|
|
1293
|
-
...(await deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context)),
|
|
1294
|
-
name: errorCode,
|
|
1295
|
-
$metadata: deserializeMetadata(output),
|
|
1296
|
-
};
|
|
1297
|
-
break;
|
|
1172
|
+
throw await deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context);
|
|
1298
1173
|
case "SecurityGroupNotFound":
|
|
1299
1174
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1300
|
-
|
|
1301
|
-
...(await deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context)),
|
|
1302
|
-
name: errorCode,
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
};
|
|
1305
|
-
break;
|
|
1175
|
+
throw await deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context);
|
|
1306
1176
|
case "SubnetNotFound":
|
|
1307
1177
|
case "com.amazonaws.efs#SubnetNotFound":
|
|
1308
|
-
|
|
1309
|
-
...(await deserializeAws_restJson1SubnetNotFoundResponse(parsedOutput, context)),
|
|
1310
|
-
name: errorCode,
|
|
1311
|
-
$metadata: deserializeMetadata(output),
|
|
1312
|
-
};
|
|
1313
|
-
break;
|
|
1178
|
+
throw await deserializeAws_restJson1SubnetNotFoundResponse(parsedOutput, context);
|
|
1314
1179
|
case "UnsupportedAvailabilityZone":
|
|
1315
1180
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1316
|
-
|
|
1317
|
-
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)),
|
|
1318
|
-
name: errorCode,
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
};
|
|
1321
|
-
break;
|
|
1181
|
+
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context);
|
|
1322
1182
|
default:
|
|
1323
1183
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
...parsedBody,
|
|
1327
|
-
name: `${errorCode}`,
|
|
1328
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1184
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1185
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1329
1186
|
$fault: "client",
|
|
1330
1187
|
$metadata: deserializeMetadata(output),
|
|
1331
|
-
};
|
|
1188
|
+
});
|
|
1189
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1332
1190
|
}
|
|
1333
|
-
const message = response.message || response.Message || errorCode;
|
|
1334
|
-
response.message = message;
|
|
1335
|
-
delete response.Message;
|
|
1336
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1337
1191
|
};
|
|
1338
1192
|
const deserializeAws_restJson1CreateReplicationConfigurationCommand = async (output, context) => {
|
|
1339
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1381,99 +1235,43 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async
|
|
|
1381
1235
|
switch (errorCode) {
|
|
1382
1236
|
case "BadRequest":
|
|
1383
1237
|
case "com.amazonaws.efs#BadRequest":
|
|
1384
|
-
|
|
1385
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1386
|
-
name: errorCode,
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
};
|
|
1389
|
-
break;
|
|
1238
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1390
1239
|
case "FileSystemLimitExceeded":
|
|
1391
1240
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1392
|
-
|
|
1393
|
-
...(await deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context)),
|
|
1394
|
-
name: errorCode,
|
|
1395
|
-
$metadata: deserializeMetadata(output),
|
|
1396
|
-
};
|
|
1397
|
-
break;
|
|
1241
|
+
throw await deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context);
|
|
1398
1242
|
case "FileSystemNotFound":
|
|
1399
1243
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1400
|
-
|
|
1401
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1402
|
-
name: errorCode,
|
|
1403
|
-
$metadata: deserializeMetadata(output),
|
|
1404
|
-
};
|
|
1405
|
-
break;
|
|
1244
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1406
1245
|
case "IncorrectFileSystemLifeCycleState":
|
|
1407
1246
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1408
|
-
|
|
1409
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
1410
|
-
name: errorCode,
|
|
1411
|
-
$metadata: deserializeMetadata(output),
|
|
1412
|
-
};
|
|
1413
|
-
break;
|
|
1247
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
1414
1248
|
case "InsufficientThroughputCapacity":
|
|
1415
1249
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1416
|
-
|
|
1417
|
-
...(await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)),
|
|
1418
|
-
name: errorCode,
|
|
1419
|
-
$metadata: deserializeMetadata(output),
|
|
1420
|
-
};
|
|
1421
|
-
break;
|
|
1250
|
+
throw await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context);
|
|
1422
1251
|
case "InternalServerError":
|
|
1423
1252
|
case "com.amazonaws.efs#InternalServerError":
|
|
1424
|
-
|
|
1425
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1426
|
-
name: errorCode,
|
|
1427
|
-
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1429
|
-
break;
|
|
1253
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1430
1254
|
case "ReplicationNotFound":
|
|
1431
1255
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1432
|
-
|
|
1433
|
-
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
1434
|
-
name: errorCode,
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1437
|
-
break;
|
|
1256
|
+
throw await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context);
|
|
1438
1257
|
case "ThroughputLimitExceeded":
|
|
1439
1258
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1440
|
-
|
|
1441
|
-
...(await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)),
|
|
1442
|
-
name: errorCode,
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1445
|
-
break;
|
|
1259
|
+
throw await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context);
|
|
1446
1260
|
case "UnsupportedAvailabilityZone":
|
|
1447
1261
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1448
|
-
|
|
1449
|
-
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)),
|
|
1450
|
-
name: errorCode,
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
};
|
|
1453
|
-
break;
|
|
1262
|
+
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context);
|
|
1454
1263
|
case "ValidationException":
|
|
1455
1264
|
case "com.amazonaws.efs#ValidationException":
|
|
1456
|
-
|
|
1457
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1458
|
-
name: errorCode,
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
};
|
|
1461
|
-
break;
|
|
1265
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1462
1266
|
default:
|
|
1463
1267
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
...parsedBody,
|
|
1467
|
-
name: `${errorCode}`,
|
|
1468
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1268
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1269
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1469
1270
|
$fault: "client",
|
|
1470
1271
|
$metadata: deserializeMetadata(output),
|
|
1471
|
-
};
|
|
1272
|
+
});
|
|
1273
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1472
1274
|
}
|
|
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
1275
|
};
|
|
1478
1276
|
const deserializeAws_restJson1CreateTagsCommand = async (output, context) => {
|
|
1479
1277
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1497,43 +1295,22 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
1497
1295
|
switch (errorCode) {
|
|
1498
1296
|
case "BadRequest":
|
|
1499
1297
|
case "com.amazonaws.efs#BadRequest":
|
|
1500
|
-
|
|
1501
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1502
|
-
name: errorCode,
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
};
|
|
1505
|
-
break;
|
|
1298
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1506
1299
|
case "FileSystemNotFound":
|
|
1507
1300
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1508
|
-
|
|
1509
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1510
|
-
name: errorCode,
|
|
1511
|
-
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1513
|
-
break;
|
|
1301
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1514
1302
|
case "InternalServerError":
|
|
1515
1303
|
case "com.amazonaws.efs#InternalServerError":
|
|
1516
|
-
|
|
1517
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1518
|
-
name: errorCode,
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
};
|
|
1521
|
-
break;
|
|
1304
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1522
1305
|
default:
|
|
1523
1306
|
const parsedBody = parsedOutput.body;
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
...parsedBody,
|
|
1527
|
-
name: `${errorCode}`,
|
|
1528
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1307
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1308
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1529
1309
|
$fault: "client",
|
|
1530
1310
|
$metadata: deserializeMetadata(output),
|
|
1531
|
-
};
|
|
1311
|
+
});
|
|
1312
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1532
1313
|
}
|
|
1533
|
-
const message = response.message || response.Message || errorCode;
|
|
1534
|
-
response.message = message;
|
|
1535
|
-
delete response.Message;
|
|
1536
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1537
1314
|
};
|
|
1538
1315
|
const deserializeAws_restJson1DeleteAccessPointCommand = async (output, context) => {
|
|
1539
1316
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1557,43 +1334,22 @@ const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, con
|
|
|
1557
1334
|
switch (errorCode) {
|
|
1558
1335
|
case "AccessPointNotFound":
|
|
1559
1336
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1560
|
-
|
|
1561
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
1562
|
-
name: errorCode,
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1565
|
-
break;
|
|
1337
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
1566
1338
|
case "BadRequest":
|
|
1567
1339
|
case "com.amazonaws.efs#BadRequest":
|
|
1568
|
-
|
|
1569
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1570
|
-
name: errorCode,
|
|
1571
|
-
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1573
|
-
break;
|
|
1340
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1574
1341
|
case "InternalServerError":
|
|
1575
1342
|
case "com.amazonaws.efs#InternalServerError":
|
|
1576
|
-
|
|
1577
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1343
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1582
1344
|
default:
|
|
1583
1345
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
...parsedBody,
|
|
1587
|
-
name: `${errorCode}`,
|
|
1588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1346
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1347
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
1348
|
$fault: "client",
|
|
1590
1349
|
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1350
|
+
});
|
|
1351
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1592
1352
|
}
|
|
1593
|
-
const message = response.message || response.Message || errorCode;
|
|
1594
|
-
response.message = message;
|
|
1595
|
-
delete response.Message;
|
|
1596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1597
1353
|
};
|
|
1598
1354
|
const deserializeAws_restJson1DeleteFileSystemCommand = async (output, context) => {
|
|
1599
1355
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1617,51 +1373,25 @@ const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, cont
|
|
|
1617
1373
|
switch (errorCode) {
|
|
1618
1374
|
case "BadRequest":
|
|
1619
1375
|
case "com.amazonaws.efs#BadRequest":
|
|
1620
|
-
|
|
1621
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1622
|
-
name: errorCode,
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1625
|
-
break;
|
|
1376
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1626
1377
|
case "FileSystemInUse":
|
|
1627
1378
|
case "com.amazonaws.efs#FileSystemInUse":
|
|
1628
|
-
|
|
1629
|
-
...(await deserializeAws_restJson1FileSystemInUseResponse(parsedOutput, context)),
|
|
1630
|
-
name: errorCode,
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1633
|
-
break;
|
|
1379
|
+
throw await deserializeAws_restJson1FileSystemInUseResponse(parsedOutput, context);
|
|
1634
1380
|
case "FileSystemNotFound":
|
|
1635
1381
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1636
|
-
|
|
1637
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1382
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1642
1383
|
case "InternalServerError":
|
|
1643
1384
|
case "com.amazonaws.efs#InternalServerError":
|
|
1644
|
-
|
|
1645
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1646
|
-
name: errorCode,
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
};
|
|
1649
|
-
break;
|
|
1385
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1650
1386
|
default:
|
|
1651
1387
|
const parsedBody = parsedOutput.body;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
...parsedBody,
|
|
1655
|
-
name: `${errorCode}`,
|
|
1656
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1388
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1389
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1657
1390
|
$fault: "client",
|
|
1658
1391
|
$metadata: deserializeMetadata(output),
|
|
1659
|
-
};
|
|
1392
|
+
});
|
|
1393
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1660
1394
|
}
|
|
1661
|
-
const message = response.message || response.Message || errorCode;
|
|
1662
|
-
response.message = message;
|
|
1663
|
-
delete response.Message;
|
|
1664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1665
1395
|
};
|
|
1666
1396
|
const deserializeAws_restJson1DeleteFileSystemPolicyCommand = async (output, context) => {
|
|
1667
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1685,51 +1415,25 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1685
1415
|
switch (errorCode) {
|
|
1686
1416
|
case "BadRequest":
|
|
1687
1417
|
case "com.amazonaws.efs#BadRequest":
|
|
1688
|
-
|
|
1689
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1690
|
-
name: errorCode,
|
|
1691
|
-
$metadata: deserializeMetadata(output),
|
|
1692
|
-
};
|
|
1693
|
-
break;
|
|
1418
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1694
1419
|
case "FileSystemNotFound":
|
|
1695
1420
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1696
|
-
|
|
1697
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1698
|
-
name: errorCode,
|
|
1699
|
-
$metadata: deserializeMetadata(output),
|
|
1700
|
-
};
|
|
1701
|
-
break;
|
|
1421
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1702
1422
|
case "IncorrectFileSystemLifeCycleState":
|
|
1703
1423
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1704
|
-
|
|
1705
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
1706
|
-
name: errorCode,
|
|
1707
|
-
$metadata: deserializeMetadata(output),
|
|
1708
|
-
};
|
|
1709
|
-
break;
|
|
1424
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
1710
1425
|
case "InternalServerError":
|
|
1711
1426
|
case "com.amazonaws.efs#InternalServerError":
|
|
1712
|
-
|
|
1713
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1714
|
-
name: errorCode,
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
};
|
|
1717
|
-
break;
|
|
1427
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1718
1428
|
default:
|
|
1719
1429
|
const parsedBody = parsedOutput.body;
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
...parsedBody,
|
|
1723
|
-
name: `${errorCode}`,
|
|
1724
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1430
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1431
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1725
1432
|
$fault: "client",
|
|
1726
1433
|
$metadata: deserializeMetadata(output),
|
|
1727
|
-
};
|
|
1434
|
+
});
|
|
1435
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1728
1436
|
}
|
|
1729
|
-
const message = response.message || response.Message || errorCode;
|
|
1730
|
-
response.message = message;
|
|
1731
|
-
delete response.Message;
|
|
1732
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1733
1437
|
};
|
|
1734
1438
|
const deserializeAws_restJson1DeleteMountTargetCommand = async (output, context) => {
|
|
1735
1439
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1753,51 +1457,25 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1753
1457
|
switch (errorCode) {
|
|
1754
1458
|
case "BadRequest":
|
|
1755
1459
|
case "com.amazonaws.efs#BadRequest":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1460
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1762
1461
|
case "DependencyTimeout":
|
|
1763
1462
|
case "com.amazonaws.efs#DependencyTimeout":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_restJson1DependencyTimeoutResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1463
|
+
throw await deserializeAws_restJson1DependencyTimeoutResponse(parsedOutput, context);
|
|
1770
1464
|
case "InternalServerError":
|
|
1771
1465
|
case "com.amazonaws.efs#InternalServerError":
|
|
1772
|
-
|
|
1773
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1466
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1778
1467
|
case "MountTargetNotFound":
|
|
1779
1468
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1780
|
-
|
|
1781
|
-
...(await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)),
|
|
1782
|
-
name: errorCode,
|
|
1783
|
-
$metadata: deserializeMetadata(output),
|
|
1784
|
-
};
|
|
1785
|
-
break;
|
|
1469
|
+
throw await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context);
|
|
1786
1470
|
default:
|
|
1787
1471
|
const parsedBody = parsedOutput.body;
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
...parsedBody,
|
|
1791
|
-
name: `${errorCode}`,
|
|
1792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1472
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1473
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1793
1474
|
$fault: "client",
|
|
1794
1475
|
$metadata: deserializeMetadata(output),
|
|
1795
|
-
};
|
|
1476
|
+
});
|
|
1477
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1796
1478
|
}
|
|
1797
|
-
const message = response.message || response.Message || errorCode;
|
|
1798
|
-
response.message = message;
|
|
1799
|
-
delete response.Message;
|
|
1800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1801
1479
|
};
|
|
1802
1480
|
const deserializeAws_restJson1DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
1803
1481
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1821,51 +1499,25 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async
|
|
|
1821
1499
|
switch (errorCode) {
|
|
1822
1500
|
case "BadRequest":
|
|
1823
1501
|
case "com.amazonaws.efs#BadRequest":
|
|
1824
|
-
|
|
1825
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1826
|
-
name: errorCode,
|
|
1827
|
-
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1829
|
-
break;
|
|
1502
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1830
1503
|
case "FileSystemNotFound":
|
|
1831
1504
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1832
|
-
|
|
1833
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1834
|
-
name: errorCode,
|
|
1835
|
-
$metadata: deserializeMetadata(output),
|
|
1836
|
-
};
|
|
1837
|
-
break;
|
|
1505
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1838
1506
|
case "InternalServerError":
|
|
1839
1507
|
case "com.amazonaws.efs#InternalServerError":
|
|
1840
|
-
|
|
1841
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1842
|
-
name: errorCode,
|
|
1843
|
-
$metadata: deserializeMetadata(output),
|
|
1844
|
-
};
|
|
1845
|
-
break;
|
|
1508
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1846
1509
|
case "ReplicationNotFound":
|
|
1847
1510
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1848
|
-
|
|
1849
|
-
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
1850
|
-
name: errorCode,
|
|
1851
|
-
$metadata: deserializeMetadata(output),
|
|
1852
|
-
};
|
|
1853
|
-
break;
|
|
1511
|
+
throw await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context);
|
|
1854
1512
|
default:
|
|
1855
1513
|
const parsedBody = parsedOutput.body;
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
...parsedBody,
|
|
1859
|
-
name: `${errorCode}`,
|
|
1860
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1514
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1515
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1861
1516
|
$fault: "client",
|
|
1862
1517
|
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1518
|
+
});
|
|
1519
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1864
1520
|
}
|
|
1865
|
-
const message = response.message || response.Message || errorCode;
|
|
1866
|
-
response.message = message;
|
|
1867
|
-
delete response.Message;
|
|
1868
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1869
1521
|
};
|
|
1870
1522
|
const deserializeAws_restJson1DeleteTagsCommand = async (output, context) => {
|
|
1871
1523
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1889,43 +1541,22 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
1889
1541
|
switch (errorCode) {
|
|
1890
1542
|
case "BadRequest":
|
|
1891
1543
|
case "com.amazonaws.efs#BadRequest":
|
|
1892
|
-
|
|
1893
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1544
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1898
1545
|
case "FileSystemNotFound":
|
|
1899
1546
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1900
|
-
|
|
1901
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1902
|
-
name: errorCode,
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1547
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1906
1548
|
case "InternalServerError":
|
|
1907
1549
|
case "com.amazonaws.efs#InternalServerError":
|
|
1908
|
-
|
|
1909
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1910
|
-
name: errorCode,
|
|
1911
|
-
$metadata: deserializeMetadata(output),
|
|
1912
|
-
};
|
|
1913
|
-
break;
|
|
1550
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1914
1551
|
default:
|
|
1915
1552
|
const parsedBody = parsedOutput.body;
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
...parsedBody,
|
|
1919
|
-
name: `${errorCode}`,
|
|
1920
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1553
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1554
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1921
1555
|
$fault: "client",
|
|
1922
1556
|
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1557
|
+
});
|
|
1558
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1924
1559
|
}
|
|
1925
|
-
const message = response.message || response.Message || errorCode;
|
|
1926
|
-
response.message = message;
|
|
1927
|
-
delete response.Message;
|
|
1928
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1929
1560
|
};
|
|
1930
1561
|
const deserializeAws_restJson1DescribeAccessPointsCommand = async (output, context) => {
|
|
1931
1562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1957,51 +1588,25 @@ const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output,
|
|
|
1957
1588
|
switch (errorCode) {
|
|
1958
1589
|
case "AccessPointNotFound":
|
|
1959
1590
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1960
|
-
|
|
1961
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
1962
|
-
name: errorCode,
|
|
1963
|
-
$metadata: deserializeMetadata(output),
|
|
1964
|
-
};
|
|
1965
|
-
break;
|
|
1591
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
1966
1592
|
case "BadRequest":
|
|
1967
1593
|
case "com.amazonaws.efs#BadRequest":
|
|
1968
|
-
|
|
1969
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1970
|
-
name: errorCode,
|
|
1971
|
-
$metadata: deserializeMetadata(output),
|
|
1972
|
-
};
|
|
1973
|
-
break;
|
|
1594
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
1974
1595
|
case "FileSystemNotFound":
|
|
1975
1596
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1976
|
-
|
|
1977
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1978
|
-
name: errorCode,
|
|
1979
|
-
$metadata: deserializeMetadata(output),
|
|
1980
|
-
};
|
|
1981
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
1982
1598
|
case "InternalServerError":
|
|
1983
1599
|
case "com.amazonaws.efs#InternalServerError":
|
|
1984
|
-
|
|
1985
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1986
|
-
name: errorCode,
|
|
1987
|
-
$metadata: deserializeMetadata(output),
|
|
1988
|
-
};
|
|
1989
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
1990
1601
|
default:
|
|
1991
1602
|
const parsedBody = parsedOutput.body;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
...parsedBody,
|
|
1995
|
-
name: `${errorCode}`,
|
|
1996
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1603
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1604
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1997
1605
|
$fault: "client",
|
|
1998
1606
|
$metadata: deserializeMetadata(output),
|
|
1999
|
-
};
|
|
1607
|
+
});
|
|
1608
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2000
1609
|
}
|
|
2001
|
-
const message = response.message || response.Message || errorCode;
|
|
2002
|
-
response.message = message;
|
|
2003
|
-
delete response.Message;
|
|
2004
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2005
1610
|
};
|
|
2006
1611
|
const deserializeAws_restJson1DescribeAccountPreferencesCommand = async (output, context) => {
|
|
2007
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2033,27 +1638,16 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (ou
|
|
|
2033
1638
|
switch (errorCode) {
|
|
2034
1639
|
case "InternalServerError":
|
|
2035
1640
|
case "com.amazonaws.efs#InternalServerError":
|
|
2036
|
-
|
|
2037
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2038
|
-
name: errorCode,
|
|
2039
|
-
$metadata: deserializeMetadata(output),
|
|
2040
|
-
};
|
|
2041
|
-
break;
|
|
1641
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2042
1642
|
default:
|
|
2043
1643
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
...parsedBody,
|
|
2047
|
-
name: `${errorCode}`,
|
|
2048
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1644
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2049
1646
|
$fault: "client",
|
|
2050
1647
|
$metadata: deserializeMetadata(output),
|
|
2051
|
-
};
|
|
1648
|
+
});
|
|
1649
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2052
1650
|
}
|
|
2053
|
-
const message = response.message || response.Message || errorCode;
|
|
2054
|
-
response.message = message;
|
|
2055
|
-
delete response.Message;
|
|
2056
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2057
1651
|
};
|
|
2058
1652
|
const deserializeAws_restJson1DescribeBackupPolicyCommand = async (output, context) => {
|
|
2059
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2081,59 +1675,28 @@ const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output,
|
|
|
2081
1675
|
switch (errorCode) {
|
|
2082
1676
|
case "BadRequest":
|
|
2083
1677
|
case "com.amazonaws.efs#BadRequest":
|
|
2084
|
-
|
|
2085
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2086
|
-
name: errorCode,
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
};
|
|
2089
|
-
break;
|
|
1678
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2090
1679
|
case "FileSystemNotFound":
|
|
2091
1680
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2092
|
-
|
|
2093
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2094
|
-
name: errorCode,
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
2097
|
-
break;
|
|
1681
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2098
1682
|
case "InternalServerError":
|
|
2099
1683
|
case "com.amazonaws.efs#InternalServerError":
|
|
2100
|
-
|
|
2101
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2102
|
-
name: errorCode,
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
};
|
|
2105
|
-
break;
|
|
1684
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2106
1685
|
case "PolicyNotFound":
|
|
2107
1686
|
case "com.amazonaws.efs#PolicyNotFound":
|
|
2108
|
-
|
|
2109
|
-
...(await deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context)),
|
|
2110
|
-
name: errorCode,
|
|
2111
|
-
$metadata: deserializeMetadata(output),
|
|
2112
|
-
};
|
|
2113
|
-
break;
|
|
1687
|
+
throw await deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context);
|
|
2114
1688
|
case "ValidationException":
|
|
2115
1689
|
case "com.amazonaws.efs#ValidationException":
|
|
2116
|
-
|
|
2117
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2118
|
-
name: errorCode,
|
|
2119
|
-
$metadata: deserializeMetadata(output),
|
|
2120
|
-
};
|
|
2121
|
-
break;
|
|
1690
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2122
1691
|
default:
|
|
2123
1692
|
const parsedBody = parsedOutput.body;
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
...parsedBody,
|
|
2127
|
-
name: `${errorCode}`,
|
|
2128
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1693
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2129
1695
|
$fault: "client",
|
|
2130
1696
|
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
1697
|
+
});
|
|
1698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2132
1699
|
}
|
|
2133
|
-
const message = response.message || response.Message || errorCode;
|
|
2134
|
-
response.message = message;
|
|
2135
|
-
delete response.Message;
|
|
2136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2137
1700
|
};
|
|
2138
1701
|
const deserializeAws_restJson1DescribeFileSystemPolicyCommand = async (output, context) => {
|
|
2139
1702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2165,51 +1728,25 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
2165
1728
|
switch (errorCode) {
|
|
2166
1729
|
case "BadRequest":
|
|
2167
1730
|
case "com.amazonaws.efs#BadRequest":
|
|
2168
|
-
|
|
2169
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2170
|
-
name: errorCode,
|
|
2171
|
-
$metadata: deserializeMetadata(output),
|
|
2172
|
-
};
|
|
2173
|
-
break;
|
|
1731
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2174
1732
|
case "FileSystemNotFound":
|
|
2175
1733
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2176
|
-
|
|
2177
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2178
|
-
name: errorCode,
|
|
2179
|
-
$metadata: deserializeMetadata(output),
|
|
2180
|
-
};
|
|
2181
|
-
break;
|
|
1734
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2182
1735
|
case "InternalServerError":
|
|
2183
1736
|
case "com.amazonaws.efs#InternalServerError":
|
|
2184
|
-
|
|
2185
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2186
|
-
name: errorCode,
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
};
|
|
2189
|
-
break;
|
|
1737
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2190
1738
|
case "PolicyNotFound":
|
|
2191
1739
|
case "com.amazonaws.efs#PolicyNotFound":
|
|
2192
|
-
|
|
2193
|
-
...(await deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
1740
|
+
throw await deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context);
|
|
2198
1741
|
default:
|
|
2199
1742
|
const parsedBody = parsedOutput.body;
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
...parsedBody,
|
|
2203
|
-
name: `${errorCode}`,
|
|
2204
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1743
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1744
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2205
1745
|
$fault: "client",
|
|
2206
1746
|
$metadata: deserializeMetadata(output),
|
|
2207
|
-
};
|
|
1747
|
+
});
|
|
1748
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2208
1749
|
}
|
|
2209
|
-
const message = response.message || response.Message || errorCode;
|
|
2210
|
-
response.message = message;
|
|
2211
|
-
delete response.Message;
|
|
2212
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2213
1750
|
};
|
|
2214
1751
|
const deserializeAws_restJson1DescribeFileSystemsCommand = async (output, context) => {
|
|
2215
1752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2245,43 +1782,22 @@ const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, c
|
|
|
2245
1782
|
switch (errorCode) {
|
|
2246
1783
|
case "BadRequest":
|
|
2247
1784
|
case "com.amazonaws.efs#BadRequest":
|
|
2248
|
-
|
|
2249
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2250
|
-
name: errorCode,
|
|
2251
|
-
$metadata: deserializeMetadata(output),
|
|
2252
|
-
};
|
|
2253
|
-
break;
|
|
1785
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2254
1786
|
case "FileSystemNotFound":
|
|
2255
1787
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2256
|
-
|
|
2257
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2258
|
-
name: errorCode,
|
|
2259
|
-
$metadata: deserializeMetadata(output),
|
|
2260
|
-
};
|
|
2261
|
-
break;
|
|
1788
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2262
1789
|
case "InternalServerError":
|
|
2263
1790
|
case "com.amazonaws.efs#InternalServerError":
|
|
2264
|
-
|
|
2265
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2266
|
-
name: errorCode,
|
|
2267
|
-
$metadata: deserializeMetadata(output),
|
|
2268
|
-
};
|
|
2269
|
-
break;
|
|
1791
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2270
1792
|
default:
|
|
2271
1793
|
const parsedBody = parsedOutput.body;
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
...parsedBody,
|
|
2275
|
-
name: `${errorCode}`,
|
|
2276
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1794
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2277
1796
|
$fault: "client",
|
|
2278
1797
|
$metadata: deserializeMetadata(output),
|
|
2279
|
-
};
|
|
1798
|
+
});
|
|
1799
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2280
1800
|
}
|
|
2281
|
-
const message = response.message || response.Message || errorCode;
|
|
2282
|
-
response.message = message;
|
|
2283
|
-
delete response.Message;
|
|
2284
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2285
1801
|
};
|
|
2286
1802
|
const deserializeAws_restJson1DescribeLifecycleConfigurationCommand = async (output, context) => {
|
|
2287
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2309,43 +1825,22 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async
|
|
|
2309
1825
|
switch (errorCode) {
|
|
2310
1826
|
case "BadRequest":
|
|
2311
1827
|
case "com.amazonaws.efs#BadRequest":
|
|
2312
|
-
|
|
2313
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2314
|
-
name: errorCode,
|
|
2315
|
-
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
2317
|
-
break;
|
|
1828
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2318
1829
|
case "FileSystemNotFound":
|
|
2319
1830
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2320
|
-
|
|
2321
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2322
|
-
name: errorCode,
|
|
2323
|
-
$metadata: deserializeMetadata(output),
|
|
2324
|
-
};
|
|
2325
|
-
break;
|
|
1831
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2326
1832
|
case "InternalServerError":
|
|
2327
1833
|
case "com.amazonaws.efs#InternalServerError":
|
|
2328
|
-
|
|
2329
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2330
|
-
name: errorCode,
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
};
|
|
2333
|
-
break;
|
|
1834
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2334
1835
|
default:
|
|
2335
1836
|
const parsedBody = parsedOutput.body;
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
...parsedBody,
|
|
2339
|
-
name: `${errorCode}`,
|
|
2340
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1837
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1838
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2341
1839
|
$fault: "client",
|
|
2342
1840
|
$metadata: deserializeMetadata(output),
|
|
2343
|
-
};
|
|
1841
|
+
});
|
|
1842
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2344
1843
|
}
|
|
2345
|
-
const message = response.message || response.Message || errorCode;
|
|
2346
|
-
response.message = message;
|
|
2347
|
-
delete response.Message;
|
|
2348
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2349
1844
|
};
|
|
2350
1845
|
const deserializeAws_restJson1DescribeMountTargetsCommand = async (output, context) => {
|
|
2351
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2381,59 +1876,28 @@ const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output,
|
|
|
2381
1876
|
switch (errorCode) {
|
|
2382
1877
|
case "AccessPointNotFound":
|
|
2383
1878
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2384
|
-
|
|
2385
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
2386
|
-
name: errorCode,
|
|
2387
|
-
$metadata: deserializeMetadata(output),
|
|
2388
|
-
};
|
|
2389
|
-
break;
|
|
1879
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
2390
1880
|
case "BadRequest":
|
|
2391
1881
|
case "com.amazonaws.efs#BadRequest":
|
|
2392
|
-
|
|
2393
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2394
|
-
name: errorCode,
|
|
2395
|
-
$metadata: deserializeMetadata(output),
|
|
2396
|
-
};
|
|
2397
|
-
break;
|
|
1882
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2398
1883
|
case "FileSystemNotFound":
|
|
2399
1884
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2400
|
-
|
|
2401
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2402
|
-
name: errorCode,
|
|
2403
|
-
$metadata: deserializeMetadata(output),
|
|
2404
|
-
};
|
|
2405
|
-
break;
|
|
1885
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2406
1886
|
case "InternalServerError":
|
|
2407
1887
|
case "com.amazonaws.efs#InternalServerError":
|
|
2408
|
-
|
|
2409
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2410
|
-
name: errorCode,
|
|
2411
|
-
$metadata: deserializeMetadata(output),
|
|
2412
|
-
};
|
|
2413
|
-
break;
|
|
1888
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2414
1889
|
case "MountTargetNotFound":
|
|
2415
1890
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2416
|
-
|
|
2417
|
-
...(await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)),
|
|
2418
|
-
name: errorCode,
|
|
2419
|
-
$metadata: deserializeMetadata(output),
|
|
2420
|
-
};
|
|
2421
|
-
break;
|
|
1891
|
+
throw await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context);
|
|
2422
1892
|
default:
|
|
2423
1893
|
const parsedBody = parsedOutput.body;
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
...parsedBody,
|
|
2427
|
-
name: `${errorCode}`,
|
|
2428
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1894
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2429
1896
|
$fault: "client",
|
|
2430
1897
|
$metadata: deserializeMetadata(output),
|
|
2431
|
-
};
|
|
1898
|
+
});
|
|
1899
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2432
1900
|
}
|
|
2433
|
-
const message = response.message || response.Message || errorCode;
|
|
2434
|
-
response.message = message;
|
|
2435
|
-
delete response.Message;
|
|
2436
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2437
1901
|
};
|
|
2438
1902
|
const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
2439
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2461,51 +1925,25 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
2461
1925
|
switch (errorCode) {
|
|
2462
1926
|
case "BadRequest":
|
|
2463
1927
|
case "com.amazonaws.efs#BadRequest":
|
|
2464
|
-
|
|
2465
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2466
|
-
name: errorCode,
|
|
2467
|
-
$metadata: deserializeMetadata(output),
|
|
2468
|
-
};
|
|
2469
|
-
break;
|
|
1928
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2470
1929
|
case "IncorrectMountTargetState":
|
|
2471
1930
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
2472
|
-
|
|
2473
|
-
...(await deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context)),
|
|
2474
|
-
name: errorCode,
|
|
2475
|
-
$metadata: deserializeMetadata(output),
|
|
2476
|
-
};
|
|
2477
|
-
break;
|
|
1931
|
+
throw await deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context);
|
|
2478
1932
|
case "InternalServerError":
|
|
2479
1933
|
case "com.amazonaws.efs#InternalServerError":
|
|
2480
|
-
|
|
2481
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2482
|
-
name: errorCode,
|
|
2483
|
-
$metadata: deserializeMetadata(output),
|
|
2484
|
-
};
|
|
2485
|
-
break;
|
|
1934
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2486
1935
|
case "MountTargetNotFound":
|
|
2487
1936
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2488
|
-
|
|
2489
|
-
...(await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)),
|
|
2490
|
-
name: errorCode,
|
|
2491
|
-
$metadata: deserializeMetadata(output),
|
|
2492
|
-
};
|
|
2493
|
-
break;
|
|
1937
|
+
throw await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context);
|
|
2494
1938
|
default:
|
|
2495
1939
|
const parsedBody = parsedOutput.body;
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
...parsedBody,
|
|
2499
|
-
name: `${errorCode}`,
|
|
2500
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1940
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1941
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2501
1942
|
$fault: "client",
|
|
2502
1943
|
$metadata: deserializeMetadata(output),
|
|
2503
|
-
};
|
|
1944
|
+
});
|
|
1945
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2504
1946
|
}
|
|
2505
|
-
const message = response.message || response.Message || errorCode;
|
|
2506
|
-
response.message = message;
|
|
2507
|
-
delete response.Message;
|
|
2508
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2509
1947
|
};
|
|
2510
1948
|
const deserializeAws_restJson1DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
2511
1949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2537,59 +1975,28 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = as
|
|
|
2537
1975
|
switch (errorCode) {
|
|
2538
1976
|
case "BadRequest":
|
|
2539
1977
|
case "com.amazonaws.efs#BadRequest":
|
|
2540
|
-
|
|
2541
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2542
|
-
name: errorCode,
|
|
2543
|
-
$metadata: deserializeMetadata(output),
|
|
2544
|
-
};
|
|
2545
|
-
break;
|
|
1978
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2546
1979
|
case "FileSystemNotFound":
|
|
2547
1980
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2548
|
-
|
|
2549
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2550
|
-
name: errorCode,
|
|
2551
|
-
$metadata: deserializeMetadata(output),
|
|
2552
|
-
};
|
|
2553
|
-
break;
|
|
1981
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2554
1982
|
case "InternalServerError":
|
|
2555
1983
|
case "com.amazonaws.efs#InternalServerError":
|
|
2556
|
-
|
|
2557
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2558
|
-
name: errorCode,
|
|
2559
|
-
$metadata: deserializeMetadata(output),
|
|
2560
|
-
};
|
|
2561
|
-
break;
|
|
1984
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2562
1985
|
case "ReplicationNotFound":
|
|
2563
1986
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
2564
|
-
|
|
2565
|
-
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
2566
|
-
name: errorCode,
|
|
2567
|
-
$metadata: deserializeMetadata(output),
|
|
2568
|
-
};
|
|
2569
|
-
break;
|
|
1987
|
+
throw await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context);
|
|
2570
1988
|
case "ValidationException":
|
|
2571
1989
|
case "com.amazonaws.efs#ValidationException":
|
|
2572
|
-
|
|
2573
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2574
|
-
name: errorCode,
|
|
2575
|
-
$metadata: deserializeMetadata(output),
|
|
2576
|
-
};
|
|
2577
|
-
break;
|
|
1990
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2578
1991
|
default:
|
|
2579
1992
|
const parsedBody = parsedOutput.body;
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
...parsedBody,
|
|
2583
|
-
name: `${errorCode}`,
|
|
2584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1993
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
1994
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2585
1995
|
$fault: "client",
|
|
2586
1996
|
$metadata: deserializeMetadata(output),
|
|
2587
|
-
};
|
|
1997
|
+
});
|
|
1998
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2588
1999
|
}
|
|
2589
|
-
const message = response.message || response.Message || errorCode;
|
|
2590
|
-
response.message = message;
|
|
2591
|
-
delete response.Message;
|
|
2592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2593
2000
|
};
|
|
2594
2001
|
const deserializeAws_restJson1DescribeTagsCommand = async (output, context) => {
|
|
2595
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2625,43 +2032,22 @@ const deserializeAws_restJson1DescribeTagsCommandError = async (output, context)
|
|
|
2625
2032
|
switch (errorCode) {
|
|
2626
2033
|
case "BadRequest":
|
|
2627
2034
|
case "com.amazonaws.efs#BadRequest":
|
|
2628
|
-
|
|
2629
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2630
|
-
name: errorCode,
|
|
2631
|
-
$metadata: deserializeMetadata(output),
|
|
2632
|
-
};
|
|
2633
|
-
break;
|
|
2035
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2634
2036
|
case "FileSystemNotFound":
|
|
2635
2037
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2636
|
-
|
|
2637
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2638
|
-
name: errorCode,
|
|
2639
|
-
$metadata: deserializeMetadata(output),
|
|
2640
|
-
};
|
|
2641
|
-
break;
|
|
2038
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2642
2039
|
case "InternalServerError":
|
|
2643
2040
|
case "com.amazonaws.efs#InternalServerError":
|
|
2644
|
-
|
|
2645
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2646
|
-
name: errorCode,
|
|
2647
|
-
$metadata: deserializeMetadata(output),
|
|
2648
|
-
};
|
|
2649
|
-
break;
|
|
2041
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2650
2042
|
default:
|
|
2651
2043
|
const parsedBody = parsedOutput.body;
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
...parsedBody,
|
|
2655
|
-
name: `${errorCode}`,
|
|
2656
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2044
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2045
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2657
2046
|
$fault: "client",
|
|
2658
2047
|
$metadata: deserializeMetadata(output),
|
|
2659
|
-
};
|
|
2048
|
+
});
|
|
2049
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2660
2050
|
}
|
|
2661
|
-
const message = response.message || response.Message || errorCode;
|
|
2662
|
-
response.message = message;
|
|
2663
|
-
delete response.Message;
|
|
2664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2665
2051
|
};
|
|
2666
2052
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2667
2053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2693,51 +2079,25 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2693
2079
|
switch (errorCode) {
|
|
2694
2080
|
case "AccessPointNotFound":
|
|
2695
2081
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2696
|
-
|
|
2697
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
2698
|
-
name: errorCode,
|
|
2699
|
-
$metadata: deserializeMetadata(output),
|
|
2700
|
-
};
|
|
2701
|
-
break;
|
|
2082
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
2702
2083
|
case "BadRequest":
|
|
2703
2084
|
case "com.amazonaws.efs#BadRequest":
|
|
2704
|
-
|
|
2705
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2706
|
-
name: errorCode,
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
2709
|
-
break;
|
|
2085
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2710
2086
|
case "FileSystemNotFound":
|
|
2711
2087
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2712
|
-
|
|
2713
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2714
|
-
name: errorCode,
|
|
2715
|
-
$metadata: deserializeMetadata(output),
|
|
2716
|
-
};
|
|
2717
|
-
break;
|
|
2088
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2718
2089
|
case "InternalServerError":
|
|
2719
2090
|
case "com.amazonaws.efs#InternalServerError":
|
|
2720
|
-
|
|
2721
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2722
|
-
name: errorCode,
|
|
2723
|
-
$metadata: deserializeMetadata(output),
|
|
2724
|
-
};
|
|
2725
|
-
break;
|
|
2091
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2726
2092
|
default:
|
|
2727
2093
|
const parsedBody = parsedOutput.body;
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
...parsedBody,
|
|
2731
|
-
name: `${errorCode}`,
|
|
2732
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2094
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2095
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2733
2096
|
$fault: "client",
|
|
2734
2097
|
$metadata: deserializeMetadata(output),
|
|
2735
|
-
};
|
|
2098
|
+
});
|
|
2099
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2736
2100
|
}
|
|
2737
|
-
const message = response.message || response.Message || errorCode;
|
|
2738
|
-
response.message = message;
|
|
2739
|
-
delete response.Message;
|
|
2740
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2741
2101
|
};
|
|
2742
2102
|
const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
2743
2103
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2761,67 +2121,31 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = asyn
|
|
|
2761
2121
|
switch (errorCode) {
|
|
2762
2122
|
case "BadRequest":
|
|
2763
2123
|
case "com.amazonaws.efs#BadRequest":
|
|
2764
|
-
|
|
2765
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2766
|
-
name: errorCode,
|
|
2767
|
-
$metadata: deserializeMetadata(output),
|
|
2768
|
-
};
|
|
2769
|
-
break;
|
|
2124
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2770
2125
|
case "IncorrectMountTargetState":
|
|
2771
2126
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
2772
|
-
|
|
2773
|
-
...(await deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context)),
|
|
2774
|
-
name: errorCode,
|
|
2775
|
-
$metadata: deserializeMetadata(output),
|
|
2776
|
-
};
|
|
2777
|
-
break;
|
|
2127
|
+
throw await deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context);
|
|
2778
2128
|
case "InternalServerError":
|
|
2779
2129
|
case "com.amazonaws.efs#InternalServerError":
|
|
2780
|
-
|
|
2781
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2782
|
-
name: errorCode,
|
|
2783
|
-
$metadata: deserializeMetadata(output),
|
|
2784
|
-
};
|
|
2785
|
-
break;
|
|
2130
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2786
2131
|
case "MountTargetNotFound":
|
|
2787
2132
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2788
|
-
|
|
2789
|
-
...(await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)),
|
|
2790
|
-
name: errorCode,
|
|
2791
|
-
$metadata: deserializeMetadata(output),
|
|
2792
|
-
};
|
|
2793
|
-
break;
|
|
2133
|
+
throw await deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context);
|
|
2794
2134
|
case "SecurityGroupLimitExceeded":
|
|
2795
2135
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
2796
|
-
|
|
2797
|
-
...(await deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context)),
|
|
2798
|
-
name: errorCode,
|
|
2799
|
-
$metadata: deserializeMetadata(output),
|
|
2800
|
-
};
|
|
2801
|
-
break;
|
|
2136
|
+
throw await deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context);
|
|
2802
2137
|
case "SecurityGroupNotFound":
|
|
2803
2138
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
2804
|
-
|
|
2805
|
-
...(await deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context)),
|
|
2806
|
-
name: errorCode,
|
|
2807
|
-
$metadata: deserializeMetadata(output),
|
|
2808
|
-
};
|
|
2809
|
-
break;
|
|
2139
|
+
throw await deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context);
|
|
2810
2140
|
default:
|
|
2811
2141
|
const parsedBody = parsedOutput.body;
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
...parsedBody,
|
|
2815
|
-
name: `${errorCode}`,
|
|
2816
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2142
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2817
2144
|
$fault: "client",
|
|
2818
2145
|
$metadata: deserializeMetadata(output),
|
|
2819
|
-
};
|
|
2146
|
+
});
|
|
2147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2820
2148
|
}
|
|
2821
|
-
const message = response.message || response.Message || errorCode;
|
|
2822
|
-
response.message = message;
|
|
2823
|
-
delete response.Message;
|
|
2824
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2825
2149
|
};
|
|
2826
2150
|
const deserializeAws_restJson1PutAccountPreferencesCommand = async (output, context) => {
|
|
2827
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2849,35 +2173,19 @@ const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output,
|
|
|
2849
2173
|
switch (errorCode) {
|
|
2850
2174
|
case "BadRequest":
|
|
2851
2175
|
case "com.amazonaws.efs#BadRequest":
|
|
2852
|
-
|
|
2853
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2854
|
-
name: errorCode,
|
|
2855
|
-
$metadata: deserializeMetadata(output),
|
|
2856
|
-
};
|
|
2857
|
-
break;
|
|
2176
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2858
2177
|
case "InternalServerError":
|
|
2859
2178
|
case "com.amazonaws.efs#InternalServerError":
|
|
2860
|
-
|
|
2861
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2862
|
-
name: errorCode,
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
};
|
|
2865
|
-
break;
|
|
2179
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2866
2180
|
default:
|
|
2867
2181
|
const parsedBody = parsedOutput.body;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
...parsedBody,
|
|
2871
|
-
name: `${errorCode}`,
|
|
2872
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2182
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2183
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2873
2184
|
$fault: "client",
|
|
2874
2185
|
$metadata: deserializeMetadata(output),
|
|
2875
|
-
};
|
|
2186
|
+
});
|
|
2187
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2876
2188
|
}
|
|
2877
|
-
const message = response.message || response.Message || errorCode;
|
|
2878
|
-
response.message = message;
|
|
2879
|
-
delete response.Message;
|
|
2880
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2881
2189
|
};
|
|
2882
2190
|
const deserializeAws_restJson1PutBackupPolicyCommand = async (output, context) => {
|
|
2883
2191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2905,59 +2213,28 @@ const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, conte
|
|
|
2905
2213
|
switch (errorCode) {
|
|
2906
2214
|
case "BadRequest":
|
|
2907
2215
|
case "com.amazonaws.efs#BadRequest":
|
|
2908
|
-
|
|
2909
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2910
|
-
name: errorCode,
|
|
2911
|
-
$metadata: deserializeMetadata(output),
|
|
2912
|
-
};
|
|
2913
|
-
break;
|
|
2216
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2914
2217
|
case "FileSystemNotFound":
|
|
2915
2218
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2916
|
-
|
|
2917
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2918
|
-
name: errorCode,
|
|
2919
|
-
$metadata: deserializeMetadata(output),
|
|
2920
|
-
};
|
|
2921
|
-
break;
|
|
2219
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
2922
2220
|
case "IncorrectFileSystemLifeCycleState":
|
|
2923
2221
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2924
|
-
|
|
2925
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
2926
|
-
name: errorCode,
|
|
2927
|
-
$metadata: deserializeMetadata(output),
|
|
2928
|
-
};
|
|
2929
|
-
break;
|
|
2222
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
2930
2223
|
case "InternalServerError":
|
|
2931
2224
|
case "com.amazonaws.efs#InternalServerError":
|
|
2932
|
-
|
|
2933
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2934
|
-
name: errorCode,
|
|
2935
|
-
$metadata: deserializeMetadata(output),
|
|
2936
|
-
};
|
|
2937
|
-
break;
|
|
2225
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
2938
2226
|
case "ValidationException":
|
|
2939
2227
|
case "com.amazonaws.efs#ValidationException":
|
|
2940
|
-
|
|
2941
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2942
|
-
name: errorCode,
|
|
2943
|
-
$metadata: deserializeMetadata(output),
|
|
2944
|
-
};
|
|
2945
|
-
break;
|
|
2228
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2946
2229
|
default:
|
|
2947
2230
|
const parsedBody = parsedOutput.body;
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
...parsedBody,
|
|
2951
|
-
name: `${errorCode}`,
|
|
2952
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2231
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2232
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2953
2233
|
$fault: "client",
|
|
2954
2234
|
$metadata: deserializeMetadata(output),
|
|
2955
|
-
};
|
|
2235
|
+
});
|
|
2236
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2956
2237
|
}
|
|
2957
|
-
const message = response.message || response.Message || errorCode;
|
|
2958
|
-
response.message = message;
|
|
2959
|
-
delete response.Message;
|
|
2960
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2961
2238
|
};
|
|
2962
2239
|
const deserializeAws_restJson1PutFileSystemPolicyCommand = async (output, context) => {
|
|
2963
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2989,59 +2266,28 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
2989
2266
|
switch (errorCode) {
|
|
2990
2267
|
case "BadRequest":
|
|
2991
2268
|
case "com.amazonaws.efs#BadRequest":
|
|
2992
|
-
|
|
2993
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2994
|
-
name: errorCode,
|
|
2995
|
-
$metadata: deserializeMetadata(output),
|
|
2996
|
-
};
|
|
2997
|
-
break;
|
|
2269
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
2998
2270
|
case "FileSystemNotFound":
|
|
2999
2271
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
3000
|
-
|
|
3001
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
3002
|
-
name: errorCode,
|
|
3003
|
-
$metadata: deserializeMetadata(output),
|
|
3004
|
-
};
|
|
3005
|
-
break;
|
|
2272
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
3006
2273
|
case "IncorrectFileSystemLifeCycleState":
|
|
3007
2274
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
3008
|
-
|
|
3009
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
3010
|
-
name: errorCode,
|
|
3011
|
-
$metadata: deserializeMetadata(output),
|
|
3012
|
-
};
|
|
3013
|
-
break;
|
|
2275
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
3014
2276
|
case "InternalServerError":
|
|
3015
2277
|
case "com.amazonaws.efs#InternalServerError":
|
|
3016
|
-
|
|
3017
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
3018
|
-
name: errorCode,
|
|
3019
|
-
$metadata: deserializeMetadata(output),
|
|
3020
|
-
};
|
|
3021
|
-
break;
|
|
2278
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
3022
2279
|
case "InvalidPolicyException":
|
|
3023
2280
|
case "com.amazonaws.efs#InvalidPolicyException":
|
|
3024
|
-
|
|
3025
|
-
...(await deserializeAws_restJson1InvalidPolicyExceptionResponse(parsedOutput, context)),
|
|
3026
|
-
name: errorCode,
|
|
3027
|
-
$metadata: deserializeMetadata(output),
|
|
3028
|
-
};
|
|
3029
|
-
break;
|
|
2281
|
+
throw await deserializeAws_restJson1InvalidPolicyExceptionResponse(parsedOutput, context);
|
|
3030
2282
|
default:
|
|
3031
2283
|
const parsedBody = parsedOutput.body;
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
...parsedBody,
|
|
3035
|
-
name: `${errorCode}`,
|
|
3036
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2284
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2285
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3037
2286
|
$fault: "client",
|
|
3038
2287
|
$metadata: deserializeMetadata(output),
|
|
3039
|
-
};
|
|
2288
|
+
});
|
|
2289
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3040
2290
|
}
|
|
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
2291
|
};
|
|
3046
2292
|
const deserializeAws_restJson1PutLifecycleConfigurationCommand = async (output, context) => {
|
|
3047
2293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3069,51 +2315,25 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (out
|
|
|
3069
2315
|
switch (errorCode) {
|
|
3070
2316
|
case "BadRequest":
|
|
3071
2317
|
case "com.amazonaws.efs#BadRequest":
|
|
3072
|
-
|
|
3073
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
3074
|
-
name: errorCode,
|
|
3075
|
-
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
3077
|
-
break;
|
|
2318
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
3078
2319
|
case "FileSystemNotFound":
|
|
3079
2320
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
3080
|
-
|
|
3081
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
3082
|
-
name: errorCode,
|
|
3083
|
-
$metadata: deserializeMetadata(output),
|
|
3084
|
-
};
|
|
3085
|
-
break;
|
|
2321
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
3086
2322
|
case "IncorrectFileSystemLifeCycleState":
|
|
3087
2323
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
3088
|
-
|
|
3089
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
3090
|
-
name: errorCode,
|
|
3091
|
-
$metadata: deserializeMetadata(output),
|
|
3092
|
-
};
|
|
3093
|
-
break;
|
|
2324
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
3094
2325
|
case "InternalServerError":
|
|
3095
2326
|
case "com.amazonaws.efs#InternalServerError":
|
|
3096
|
-
|
|
3097
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
3098
|
-
name: errorCode,
|
|
3099
|
-
$metadata: deserializeMetadata(output),
|
|
3100
|
-
};
|
|
3101
|
-
break;
|
|
2327
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
3102
2328
|
default:
|
|
3103
2329
|
const parsedBody = parsedOutput.body;
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
...parsedBody,
|
|
3107
|
-
name: `${errorCode}`,
|
|
3108
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2330
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2331
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3109
2332
|
$fault: "client",
|
|
3110
2333
|
$metadata: deserializeMetadata(output),
|
|
3111
|
-
};
|
|
2334
|
+
});
|
|
2335
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3112
2336
|
}
|
|
3113
|
-
const message = response.message || response.Message || errorCode;
|
|
3114
|
-
response.message = message;
|
|
3115
|
-
delete response.Message;
|
|
3116
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3117
2337
|
};
|
|
3118
2338
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3119
2339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3137,51 +2357,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3137
2357
|
switch (errorCode) {
|
|
3138
2358
|
case "AccessPointNotFound":
|
|
3139
2359
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
3140
|
-
|
|
3141
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
3142
|
-
name: errorCode,
|
|
3143
|
-
$metadata: deserializeMetadata(output),
|
|
3144
|
-
};
|
|
3145
|
-
break;
|
|
2360
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
3146
2361
|
case "BadRequest":
|
|
3147
2362
|
case "com.amazonaws.efs#BadRequest":
|
|
3148
|
-
|
|
3149
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
3150
|
-
name: errorCode,
|
|
3151
|
-
$metadata: deserializeMetadata(output),
|
|
3152
|
-
};
|
|
3153
|
-
break;
|
|
2363
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
3154
2364
|
case "FileSystemNotFound":
|
|
3155
2365
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
3156
|
-
|
|
3157
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
3158
|
-
name: errorCode,
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
};
|
|
3161
|
-
break;
|
|
2366
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
3162
2367
|
case "InternalServerError":
|
|
3163
2368
|
case "com.amazonaws.efs#InternalServerError":
|
|
3164
|
-
|
|
3165
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
3166
|
-
name: errorCode,
|
|
3167
|
-
$metadata: deserializeMetadata(output),
|
|
3168
|
-
};
|
|
3169
|
-
break;
|
|
2369
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
3170
2370
|
default:
|
|
3171
2371
|
const parsedBody = parsedOutput.body;
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
...parsedBody,
|
|
3175
|
-
name: `${errorCode}`,
|
|
3176
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2372
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2373
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3177
2374
|
$fault: "client",
|
|
3178
2375
|
$metadata: deserializeMetadata(output),
|
|
3179
|
-
};
|
|
2376
|
+
});
|
|
2377
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3180
2378
|
}
|
|
3181
|
-
const message = response.message || response.Message || errorCode;
|
|
3182
|
-
response.message = message;
|
|
3183
|
-
delete response.Message;
|
|
3184
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3185
2379
|
};
|
|
3186
2380
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3187
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3205,51 +2399,25 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3205
2399
|
switch (errorCode) {
|
|
3206
2400
|
case "AccessPointNotFound":
|
|
3207
2401
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
3208
|
-
|
|
3209
|
-
...(await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)),
|
|
3210
|
-
name: errorCode,
|
|
3211
|
-
$metadata: deserializeMetadata(output),
|
|
3212
|
-
};
|
|
3213
|
-
break;
|
|
2402
|
+
throw await deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context);
|
|
3214
2403
|
case "BadRequest":
|
|
3215
2404
|
case "com.amazonaws.efs#BadRequest":
|
|
3216
|
-
|
|
3217
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
3218
|
-
name: errorCode,
|
|
3219
|
-
$metadata: deserializeMetadata(output),
|
|
3220
|
-
};
|
|
3221
|
-
break;
|
|
2405
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
3222
2406
|
case "FileSystemNotFound":
|
|
3223
2407
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
3224
|
-
|
|
3225
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
3226
|
-
name: errorCode,
|
|
3227
|
-
$metadata: deserializeMetadata(output),
|
|
3228
|
-
};
|
|
3229
|
-
break;
|
|
2408
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
3230
2409
|
case "InternalServerError":
|
|
3231
2410
|
case "com.amazonaws.efs#InternalServerError":
|
|
3232
|
-
|
|
3233
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
3234
|
-
name: errorCode,
|
|
3235
|
-
$metadata: deserializeMetadata(output),
|
|
3236
|
-
};
|
|
3237
|
-
break;
|
|
2411
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
3238
2412
|
default:
|
|
3239
2413
|
const parsedBody = parsedOutput.body;
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
...parsedBody,
|
|
3243
|
-
name: `${errorCode}`,
|
|
3244
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2414
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2415
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3245
2416
|
$fault: "client",
|
|
3246
2417
|
$metadata: deserializeMetadata(output),
|
|
3247
|
-
};
|
|
2418
|
+
});
|
|
2419
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3248
2420
|
}
|
|
3249
|
-
const message = response.message || response.Message || errorCode;
|
|
3250
|
-
response.message = message;
|
|
3251
|
-
delete response.Message;
|
|
3252
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3253
2421
|
};
|
|
3254
2422
|
const deserializeAws_restJson1UpdateFileSystemCommand = async (output, context) => {
|
|
3255
2423
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3341,85 +2509,37 @@ const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, cont
|
|
|
3341
2509
|
switch (errorCode) {
|
|
3342
2510
|
case "BadRequest":
|
|
3343
2511
|
case "com.amazonaws.efs#BadRequest":
|
|
3344
|
-
|
|
3345
|
-
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
3346
|
-
name: errorCode,
|
|
3347
|
-
$metadata: deserializeMetadata(output),
|
|
3348
|
-
};
|
|
3349
|
-
break;
|
|
2512
|
+
throw await deserializeAws_restJson1BadRequestResponse(parsedOutput, context);
|
|
3350
2513
|
case "FileSystemNotFound":
|
|
3351
2514
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
3352
|
-
|
|
3353
|
-
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
3354
|
-
name: errorCode,
|
|
3355
|
-
$metadata: deserializeMetadata(output),
|
|
3356
|
-
};
|
|
3357
|
-
break;
|
|
2515
|
+
throw await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context);
|
|
3358
2516
|
case "IncorrectFileSystemLifeCycleState":
|
|
3359
2517
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
3360
|
-
|
|
3361
|
-
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
3362
|
-
name: errorCode,
|
|
3363
|
-
$metadata: deserializeMetadata(output),
|
|
3364
|
-
};
|
|
3365
|
-
break;
|
|
2518
|
+
throw await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context);
|
|
3366
2519
|
case "InsufficientThroughputCapacity":
|
|
3367
2520
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
3368
|
-
|
|
3369
|
-
...(await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)),
|
|
3370
|
-
name: errorCode,
|
|
3371
|
-
$metadata: deserializeMetadata(output),
|
|
3372
|
-
};
|
|
3373
|
-
break;
|
|
2521
|
+
throw await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context);
|
|
3374
2522
|
case "InternalServerError":
|
|
3375
2523
|
case "com.amazonaws.efs#InternalServerError":
|
|
3376
|
-
|
|
3377
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
3378
|
-
name: errorCode,
|
|
3379
|
-
$metadata: deserializeMetadata(output),
|
|
3380
|
-
};
|
|
3381
|
-
break;
|
|
2524
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
3382
2525
|
case "ThroughputLimitExceeded":
|
|
3383
2526
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
3384
|
-
|
|
3385
|
-
...(await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)),
|
|
3386
|
-
name: errorCode,
|
|
3387
|
-
$metadata: deserializeMetadata(output),
|
|
3388
|
-
};
|
|
3389
|
-
break;
|
|
2527
|
+
throw await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context);
|
|
3390
2528
|
case "TooManyRequests":
|
|
3391
2529
|
case "com.amazonaws.efs#TooManyRequests":
|
|
3392
|
-
|
|
3393
|
-
...(await deserializeAws_restJson1TooManyRequestsResponse(parsedOutput, context)),
|
|
3394
|
-
name: errorCode,
|
|
3395
|
-
$metadata: deserializeMetadata(output),
|
|
3396
|
-
};
|
|
3397
|
-
break;
|
|
2530
|
+
throw await deserializeAws_restJson1TooManyRequestsResponse(parsedOutput, context);
|
|
3398
2531
|
default:
|
|
3399
2532
|
const parsedBody = parsedOutput.body;
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
...parsedBody,
|
|
3403
|
-
name: `${errorCode}`,
|
|
3404
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2533
|
+
response = new EFSServiceException_1.EFSServiceException({
|
|
2534
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3405
2535
|
$fault: "client",
|
|
3406
2536
|
$metadata: deserializeMetadata(output),
|
|
3407
|
-
};
|
|
2537
|
+
});
|
|
2538
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3408
2539
|
}
|
|
3409
|
-
const message = response.message || response.Message || errorCode;
|
|
3410
|
-
response.message = message;
|
|
3411
|
-
delete response.Message;
|
|
3412
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3413
2540
|
};
|
|
3414
2541
|
const deserializeAws_restJson1AccessPointAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
3415
|
-
const contents = {
|
|
3416
|
-
name: "AccessPointAlreadyExists",
|
|
3417
|
-
$fault: "client",
|
|
3418
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3419
|
-
AccessPointId: undefined,
|
|
3420
|
-
ErrorCode: undefined,
|
|
3421
|
-
Message: undefined,
|
|
3422
|
-
};
|
|
2542
|
+
const contents = {};
|
|
3423
2543
|
const data = parsedOutput.body;
|
|
3424
2544
|
if (data.AccessPointId !== undefined && data.AccessPointId !== null) {
|
|
3425
2545
|
contents.AccessPointId = smithy_client_1.expectString(data.AccessPointId);
|
|
@@ -3430,16 +2550,14 @@ const deserializeAws_restJson1AccessPointAlreadyExistsResponse = async (parsedOu
|
|
|
3430
2550
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3431
2551
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3432
2552
|
}
|
|
3433
|
-
|
|
2553
|
+
const exception = new models_0_1.AccessPointAlreadyExists({
|
|
2554
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2555
|
+
...contents,
|
|
2556
|
+
});
|
|
2557
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3434
2558
|
};
|
|
3435
2559
|
const deserializeAws_restJson1AccessPointLimitExceededResponse = async (parsedOutput, context) => {
|
|
3436
|
-
const contents = {
|
|
3437
|
-
name: "AccessPointLimitExceeded",
|
|
3438
|
-
$fault: "client",
|
|
3439
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3440
|
-
ErrorCode: undefined,
|
|
3441
|
-
Message: undefined,
|
|
3442
|
-
};
|
|
2560
|
+
const contents = {};
|
|
3443
2561
|
const data = parsedOutput.body;
|
|
3444
2562
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3445
2563
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3447,16 +2565,14 @@ const deserializeAws_restJson1AccessPointLimitExceededResponse = async (parsedOu
|
|
|
3447
2565
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3448
2566
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3449
2567
|
}
|
|
3450
|
-
|
|
2568
|
+
const exception = new models_0_1.AccessPointLimitExceeded({
|
|
2569
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2570
|
+
...contents,
|
|
2571
|
+
});
|
|
2572
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3451
2573
|
};
|
|
3452
2574
|
const deserializeAws_restJson1AccessPointNotFoundResponse = async (parsedOutput, context) => {
|
|
3453
|
-
const contents = {
|
|
3454
|
-
name: "AccessPointNotFound",
|
|
3455
|
-
$fault: "client",
|
|
3456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3457
|
-
ErrorCode: undefined,
|
|
3458
|
-
Message: undefined,
|
|
3459
|
-
};
|
|
2575
|
+
const contents = {};
|
|
3460
2576
|
const data = parsedOutput.body;
|
|
3461
2577
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3462
2578
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3464,16 +2580,14 @@ const deserializeAws_restJson1AccessPointNotFoundResponse = async (parsedOutput,
|
|
|
3464
2580
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3465
2581
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3466
2582
|
}
|
|
3467
|
-
|
|
2583
|
+
const exception = new models_0_1.AccessPointNotFound({
|
|
2584
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2585
|
+
...contents,
|
|
2586
|
+
});
|
|
2587
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3468
2588
|
};
|
|
3469
2589
|
const deserializeAws_restJson1AvailabilityZonesMismatchResponse = async (parsedOutput, context) => {
|
|
3470
|
-
const contents = {
|
|
3471
|
-
name: "AvailabilityZonesMismatch",
|
|
3472
|
-
$fault: "client",
|
|
3473
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3474
|
-
ErrorCode: undefined,
|
|
3475
|
-
Message: undefined,
|
|
3476
|
-
};
|
|
2590
|
+
const contents = {};
|
|
3477
2591
|
const data = parsedOutput.body;
|
|
3478
2592
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3479
2593
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3481,16 +2595,14 @@ const deserializeAws_restJson1AvailabilityZonesMismatchResponse = async (parsedO
|
|
|
3481
2595
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3482
2596
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3483
2597
|
}
|
|
3484
|
-
|
|
2598
|
+
const exception = new models_0_1.AvailabilityZonesMismatch({
|
|
2599
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2600
|
+
...contents,
|
|
2601
|
+
});
|
|
2602
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3485
2603
|
};
|
|
3486
2604
|
const deserializeAws_restJson1BadRequestResponse = async (parsedOutput, context) => {
|
|
3487
|
-
const contents = {
|
|
3488
|
-
name: "BadRequest",
|
|
3489
|
-
$fault: "client",
|
|
3490
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3491
|
-
ErrorCode: undefined,
|
|
3492
|
-
Message: undefined,
|
|
3493
|
-
};
|
|
2605
|
+
const contents = {};
|
|
3494
2606
|
const data = parsedOutput.body;
|
|
3495
2607
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3496
2608
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3498,16 +2610,14 @@ const deserializeAws_restJson1BadRequestResponse = async (parsedOutput, context)
|
|
|
3498
2610
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3499
2611
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3500
2612
|
}
|
|
3501
|
-
|
|
2613
|
+
const exception = new models_0_1.BadRequest({
|
|
2614
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2615
|
+
...contents,
|
|
2616
|
+
});
|
|
2617
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3502
2618
|
};
|
|
3503
2619
|
const deserializeAws_restJson1DependencyTimeoutResponse = async (parsedOutput, context) => {
|
|
3504
|
-
const contents = {
|
|
3505
|
-
name: "DependencyTimeout",
|
|
3506
|
-
$fault: "server",
|
|
3507
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3508
|
-
ErrorCode: undefined,
|
|
3509
|
-
Message: undefined,
|
|
3510
|
-
};
|
|
2620
|
+
const contents = {};
|
|
3511
2621
|
const data = parsedOutput.body;
|
|
3512
2622
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3513
2623
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3515,17 +2625,14 @@ const deserializeAws_restJson1DependencyTimeoutResponse = async (parsedOutput, c
|
|
|
3515
2625
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3516
2626
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3517
2627
|
}
|
|
3518
|
-
|
|
2628
|
+
const exception = new models_0_1.DependencyTimeout({
|
|
2629
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2630
|
+
...contents,
|
|
2631
|
+
});
|
|
2632
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3519
2633
|
};
|
|
3520
2634
|
const deserializeAws_restJson1FileSystemAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
3521
|
-
const contents = {
|
|
3522
|
-
name: "FileSystemAlreadyExists",
|
|
3523
|
-
$fault: "client",
|
|
3524
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3525
|
-
ErrorCode: undefined,
|
|
3526
|
-
FileSystemId: undefined,
|
|
3527
|
-
Message: undefined,
|
|
3528
|
-
};
|
|
2635
|
+
const contents = {};
|
|
3529
2636
|
const data = parsedOutput.body;
|
|
3530
2637
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3531
2638
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3536,16 +2643,14 @@ const deserializeAws_restJson1FileSystemAlreadyExistsResponse = async (parsedOut
|
|
|
3536
2643
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3537
2644
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3538
2645
|
}
|
|
3539
|
-
|
|
2646
|
+
const exception = new models_0_1.FileSystemAlreadyExists({
|
|
2647
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2648
|
+
...contents,
|
|
2649
|
+
});
|
|
2650
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3540
2651
|
};
|
|
3541
2652
|
const deserializeAws_restJson1FileSystemInUseResponse = async (parsedOutput, context) => {
|
|
3542
|
-
const contents = {
|
|
3543
|
-
name: "FileSystemInUse",
|
|
3544
|
-
$fault: "client",
|
|
3545
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3546
|
-
ErrorCode: undefined,
|
|
3547
|
-
Message: undefined,
|
|
3548
|
-
};
|
|
2653
|
+
const contents = {};
|
|
3549
2654
|
const data = parsedOutput.body;
|
|
3550
2655
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3551
2656
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3553,16 +2658,14 @@ const deserializeAws_restJson1FileSystemInUseResponse = async (parsedOutput, con
|
|
|
3553
2658
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3554
2659
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3555
2660
|
}
|
|
3556
|
-
|
|
2661
|
+
const exception = new models_0_1.FileSystemInUse({
|
|
2662
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2663
|
+
...contents,
|
|
2664
|
+
});
|
|
2665
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3557
2666
|
};
|
|
3558
2667
|
const deserializeAws_restJson1FileSystemLimitExceededResponse = async (parsedOutput, context) => {
|
|
3559
|
-
const contents = {
|
|
3560
|
-
name: "FileSystemLimitExceeded",
|
|
3561
|
-
$fault: "client",
|
|
3562
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3563
|
-
ErrorCode: undefined,
|
|
3564
|
-
Message: undefined,
|
|
3565
|
-
};
|
|
2668
|
+
const contents = {};
|
|
3566
2669
|
const data = parsedOutput.body;
|
|
3567
2670
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3568
2671
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3570,16 +2673,14 @@ const deserializeAws_restJson1FileSystemLimitExceededResponse = async (parsedOut
|
|
|
3570
2673
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3571
2674
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3572
2675
|
}
|
|
3573
|
-
|
|
2676
|
+
const exception = new models_0_1.FileSystemLimitExceeded({
|
|
2677
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2678
|
+
...contents,
|
|
2679
|
+
});
|
|
2680
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3574
2681
|
};
|
|
3575
2682
|
const deserializeAws_restJson1FileSystemNotFoundResponse = async (parsedOutput, context) => {
|
|
3576
|
-
const contents = {
|
|
3577
|
-
name: "FileSystemNotFound",
|
|
3578
|
-
$fault: "client",
|
|
3579
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3580
|
-
ErrorCode: undefined,
|
|
3581
|
-
Message: undefined,
|
|
3582
|
-
};
|
|
2683
|
+
const contents = {};
|
|
3583
2684
|
const data = parsedOutput.body;
|
|
3584
2685
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3585
2686
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3587,16 +2688,14 @@ const deserializeAws_restJson1FileSystemNotFoundResponse = async (parsedOutput,
|
|
|
3587
2688
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3588
2689
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3589
2690
|
}
|
|
3590
|
-
|
|
2691
|
+
const exception = new models_0_1.FileSystemNotFound({
|
|
2692
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2693
|
+
...contents,
|
|
2694
|
+
});
|
|
2695
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3591
2696
|
};
|
|
3592
2697
|
const deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = async (parsedOutput, context) => {
|
|
3593
|
-
const contents = {
|
|
3594
|
-
name: "IncorrectFileSystemLifeCycleState",
|
|
3595
|
-
$fault: "client",
|
|
3596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3597
|
-
ErrorCode: undefined,
|
|
3598
|
-
Message: undefined,
|
|
3599
|
-
};
|
|
2698
|
+
const contents = {};
|
|
3600
2699
|
const data = parsedOutput.body;
|
|
3601
2700
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3602
2701
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3604,16 +2703,14 @@ const deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = async
|
|
|
3604
2703
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3605
2704
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3606
2705
|
}
|
|
3607
|
-
|
|
2706
|
+
const exception = new models_0_1.IncorrectFileSystemLifeCycleState({
|
|
2707
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2708
|
+
...contents,
|
|
2709
|
+
});
|
|
2710
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3608
2711
|
};
|
|
3609
2712
|
const deserializeAws_restJson1IncorrectMountTargetStateResponse = async (parsedOutput, context) => {
|
|
3610
|
-
const contents = {
|
|
3611
|
-
name: "IncorrectMountTargetState",
|
|
3612
|
-
$fault: "client",
|
|
3613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3614
|
-
ErrorCode: undefined,
|
|
3615
|
-
Message: undefined,
|
|
3616
|
-
};
|
|
2713
|
+
const contents = {};
|
|
3617
2714
|
const data = parsedOutput.body;
|
|
3618
2715
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3619
2716
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3621,16 +2718,14 @@ const deserializeAws_restJson1IncorrectMountTargetStateResponse = async (parsedO
|
|
|
3621
2718
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3622
2719
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3623
2720
|
}
|
|
3624
|
-
|
|
2721
|
+
const exception = new models_0_1.IncorrectMountTargetState({
|
|
2722
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2723
|
+
...contents,
|
|
2724
|
+
});
|
|
2725
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3625
2726
|
};
|
|
3626
2727
|
const deserializeAws_restJson1InsufficientThroughputCapacityResponse = async (parsedOutput, context) => {
|
|
3627
|
-
const contents = {
|
|
3628
|
-
name: "InsufficientThroughputCapacity",
|
|
3629
|
-
$fault: "server",
|
|
3630
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3631
|
-
ErrorCode: undefined,
|
|
3632
|
-
Message: undefined,
|
|
3633
|
-
};
|
|
2728
|
+
const contents = {};
|
|
3634
2729
|
const data = parsedOutput.body;
|
|
3635
2730
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3636
2731
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3638,16 +2733,14 @@ const deserializeAws_restJson1InsufficientThroughputCapacityResponse = async (pa
|
|
|
3638
2733
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3639
2734
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3640
2735
|
}
|
|
3641
|
-
|
|
2736
|
+
const exception = new models_0_1.InsufficientThroughputCapacity({
|
|
2737
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2738
|
+
...contents,
|
|
2739
|
+
});
|
|
2740
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3642
2741
|
};
|
|
3643
2742
|
const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
3644
|
-
const contents = {
|
|
3645
|
-
name: "InternalServerError",
|
|
3646
|
-
$fault: "server",
|
|
3647
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3648
|
-
ErrorCode: undefined,
|
|
3649
|
-
Message: undefined,
|
|
3650
|
-
};
|
|
2743
|
+
const contents = {};
|
|
3651
2744
|
const data = parsedOutput.body;
|
|
3652
2745
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3653
2746
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3655,16 +2748,14 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
3655
2748
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3656
2749
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3657
2750
|
}
|
|
3658
|
-
|
|
2751
|
+
const exception = new models_0_1.InternalServerError({
|
|
2752
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2753
|
+
...contents,
|
|
2754
|
+
});
|
|
2755
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3659
2756
|
};
|
|
3660
2757
|
const deserializeAws_restJson1InvalidPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
3661
|
-
const contents = {
|
|
3662
|
-
name: "InvalidPolicyException",
|
|
3663
|
-
$fault: "client",
|
|
3664
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3665
|
-
ErrorCode: undefined,
|
|
3666
|
-
Message: undefined,
|
|
3667
|
-
};
|
|
2758
|
+
const contents = {};
|
|
3668
2759
|
const data = parsedOutput.body;
|
|
3669
2760
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3670
2761
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3672,16 +2763,14 @@ const deserializeAws_restJson1InvalidPolicyExceptionResponse = async (parsedOutp
|
|
|
3672
2763
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3673
2764
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3674
2765
|
}
|
|
3675
|
-
|
|
2766
|
+
const exception = new models_0_1.InvalidPolicyException({
|
|
2767
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2768
|
+
...contents,
|
|
2769
|
+
});
|
|
2770
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3676
2771
|
};
|
|
3677
2772
|
const deserializeAws_restJson1IpAddressInUseResponse = async (parsedOutput, context) => {
|
|
3678
|
-
const contents = {
|
|
3679
|
-
name: "IpAddressInUse",
|
|
3680
|
-
$fault: "client",
|
|
3681
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3682
|
-
ErrorCode: undefined,
|
|
3683
|
-
Message: undefined,
|
|
3684
|
-
};
|
|
2773
|
+
const contents = {};
|
|
3685
2774
|
const data = parsedOutput.body;
|
|
3686
2775
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3687
2776
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3689,16 +2778,14 @@ const deserializeAws_restJson1IpAddressInUseResponse = async (parsedOutput, cont
|
|
|
3689
2778
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3690
2779
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3691
2780
|
}
|
|
3692
|
-
|
|
2781
|
+
const exception = new models_0_1.IpAddressInUse({
|
|
2782
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2783
|
+
...contents,
|
|
2784
|
+
});
|
|
2785
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3693
2786
|
};
|
|
3694
2787
|
const deserializeAws_restJson1MountTargetConflictResponse = async (parsedOutput, context) => {
|
|
3695
|
-
const contents = {
|
|
3696
|
-
name: "MountTargetConflict",
|
|
3697
|
-
$fault: "client",
|
|
3698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3699
|
-
ErrorCode: undefined,
|
|
3700
|
-
Message: undefined,
|
|
3701
|
-
};
|
|
2788
|
+
const contents = {};
|
|
3702
2789
|
const data = parsedOutput.body;
|
|
3703
2790
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3704
2791
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3706,16 +2793,14 @@ const deserializeAws_restJson1MountTargetConflictResponse = async (parsedOutput,
|
|
|
3706
2793
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3707
2794
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3708
2795
|
}
|
|
3709
|
-
|
|
2796
|
+
const exception = new models_0_1.MountTargetConflict({
|
|
2797
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2798
|
+
...contents,
|
|
2799
|
+
});
|
|
2800
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3710
2801
|
};
|
|
3711
2802
|
const deserializeAws_restJson1MountTargetNotFoundResponse = async (parsedOutput, context) => {
|
|
3712
|
-
const contents = {
|
|
3713
|
-
name: "MountTargetNotFound",
|
|
3714
|
-
$fault: "client",
|
|
3715
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3716
|
-
ErrorCode: undefined,
|
|
3717
|
-
Message: undefined,
|
|
3718
|
-
};
|
|
2803
|
+
const contents = {};
|
|
3719
2804
|
const data = parsedOutput.body;
|
|
3720
2805
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3721
2806
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3723,16 +2808,14 @@ const deserializeAws_restJson1MountTargetNotFoundResponse = async (parsedOutput,
|
|
|
3723
2808
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3724
2809
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3725
2810
|
}
|
|
3726
|
-
|
|
2811
|
+
const exception = new models_0_1.MountTargetNotFound({
|
|
2812
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2813
|
+
...contents,
|
|
2814
|
+
});
|
|
2815
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3727
2816
|
};
|
|
3728
2817
|
const deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = async (parsedOutput, context) => {
|
|
3729
|
-
const contents = {
|
|
3730
|
-
name: "NetworkInterfaceLimitExceeded",
|
|
3731
|
-
$fault: "client",
|
|
3732
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3733
|
-
ErrorCode: undefined,
|
|
3734
|
-
Message: undefined,
|
|
3735
|
-
};
|
|
2818
|
+
const contents = {};
|
|
3736
2819
|
const data = parsedOutput.body;
|
|
3737
2820
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3738
2821
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3740,16 +2823,14 @@ const deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = async (par
|
|
|
3740
2823
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3741
2824
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3742
2825
|
}
|
|
3743
|
-
|
|
2826
|
+
const exception = new models_0_1.NetworkInterfaceLimitExceeded({
|
|
2827
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2828
|
+
...contents,
|
|
2829
|
+
});
|
|
2830
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3744
2831
|
};
|
|
3745
2832
|
const deserializeAws_restJson1NoFreeAddressesInSubnetResponse = async (parsedOutput, context) => {
|
|
3746
|
-
const contents = {
|
|
3747
|
-
name: "NoFreeAddressesInSubnet",
|
|
3748
|
-
$fault: "client",
|
|
3749
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3750
|
-
ErrorCode: undefined,
|
|
3751
|
-
Message: undefined,
|
|
3752
|
-
};
|
|
2833
|
+
const contents = {};
|
|
3753
2834
|
const data = parsedOutput.body;
|
|
3754
2835
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3755
2836
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3757,16 +2838,14 @@ const deserializeAws_restJson1NoFreeAddressesInSubnetResponse = async (parsedOut
|
|
|
3757
2838
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3758
2839
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3759
2840
|
}
|
|
3760
|
-
|
|
2841
|
+
const exception = new models_0_1.NoFreeAddressesInSubnet({
|
|
2842
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2843
|
+
...contents,
|
|
2844
|
+
});
|
|
2845
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3761
2846
|
};
|
|
3762
2847
|
const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, context) => {
|
|
3763
|
-
const contents = {
|
|
3764
|
-
name: "PolicyNotFound",
|
|
3765
|
-
$fault: "client",
|
|
3766
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3767
|
-
ErrorCode: undefined,
|
|
3768
|
-
Message: undefined,
|
|
3769
|
-
};
|
|
2848
|
+
const contents = {};
|
|
3770
2849
|
const data = parsedOutput.body;
|
|
3771
2850
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3772
2851
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3774,16 +2853,14 @@ const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, cont
|
|
|
3774
2853
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3775
2854
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3776
2855
|
}
|
|
3777
|
-
|
|
2856
|
+
const exception = new models_0_1.PolicyNotFound({
|
|
2857
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2858
|
+
...contents,
|
|
2859
|
+
});
|
|
2860
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3778
2861
|
};
|
|
3779
2862
|
const deserializeAws_restJson1ReplicationNotFoundResponse = async (parsedOutput, context) => {
|
|
3780
|
-
const contents = {
|
|
3781
|
-
name: "ReplicationNotFound",
|
|
3782
|
-
$fault: "client",
|
|
3783
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3784
|
-
ErrorCode: undefined,
|
|
3785
|
-
Message: undefined,
|
|
3786
|
-
};
|
|
2863
|
+
const contents = {};
|
|
3787
2864
|
const data = parsedOutput.body;
|
|
3788
2865
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3789
2866
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3791,16 +2868,14 @@ const deserializeAws_restJson1ReplicationNotFoundResponse = async (parsedOutput,
|
|
|
3791
2868
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3792
2869
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3793
2870
|
}
|
|
3794
|
-
|
|
2871
|
+
const exception = new models_0_1.ReplicationNotFound({
|
|
2872
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2873
|
+
...contents,
|
|
2874
|
+
});
|
|
2875
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3795
2876
|
};
|
|
3796
2877
|
const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsedOutput, context) => {
|
|
3797
|
-
const contents = {
|
|
3798
|
-
name: "SecurityGroupLimitExceeded",
|
|
3799
|
-
$fault: "client",
|
|
3800
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3801
|
-
ErrorCode: undefined,
|
|
3802
|
-
Message: undefined,
|
|
3803
|
-
};
|
|
2878
|
+
const contents = {};
|
|
3804
2879
|
const data = parsedOutput.body;
|
|
3805
2880
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3806
2881
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3808,16 +2883,14 @@ const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsed
|
|
|
3808
2883
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3809
2884
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3810
2885
|
}
|
|
3811
|
-
|
|
2886
|
+
const exception = new models_0_1.SecurityGroupLimitExceeded({
|
|
2887
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2888
|
+
...contents,
|
|
2889
|
+
});
|
|
2890
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3812
2891
|
};
|
|
3813
2892
|
const deserializeAws_restJson1SecurityGroupNotFoundResponse = async (parsedOutput, context) => {
|
|
3814
|
-
const contents = {
|
|
3815
|
-
name: "SecurityGroupNotFound",
|
|
3816
|
-
$fault: "client",
|
|
3817
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3818
|
-
ErrorCode: undefined,
|
|
3819
|
-
Message: undefined,
|
|
3820
|
-
};
|
|
2893
|
+
const contents = {};
|
|
3821
2894
|
const data = parsedOutput.body;
|
|
3822
2895
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3823
2896
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3825,16 +2898,14 @@ const deserializeAws_restJson1SecurityGroupNotFoundResponse = async (parsedOutpu
|
|
|
3825
2898
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3826
2899
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3827
2900
|
}
|
|
3828
|
-
|
|
2901
|
+
const exception = new models_0_1.SecurityGroupNotFound({
|
|
2902
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2903
|
+
...contents,
|
|
2904
|
+
});
|
|
2905
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3829
2906
|
};
|
|
3830
2907
|
const deserializeAws_restJson1SubnetNotFoundResponse = async (parsedOutput, context) => {
|
|
3831
|
-
const contents = {
|
|
3832
|
-
name: "SubnetNotFound",
|
|
3833
|
-
$fault: "client",
|
|
3834
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3835
|
-
ErrorCode: undefined,
|
|
3836
|
-
Message: undefined,
|
|
3837
|
-
};
|
|
2908
|
+
const contents = {};
|
|
3838
2909
|
const data = parsedOutput.body;
|
|
3839
2910
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3840
2911
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3842,16 +2913,14 @@ const deserializeAws_restJson1SubnetNotFoundResponse = async (parsedOutput, cont
|
|
|
3842
2913
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3843
2914
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3844
2915
|
}
|
|
3845
|
-
|
|
2916
|
+
const exception = new models_0_1.SubnetNotFound({
|
|
2917
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2918
|
+
...contents,
|
|
2919
|
+
});
|
|
2920
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3846
2921
|
};
|
|
3847
2922
|
const deserializeAws_restJson1ThroughputLimitExceededResponse = async (parsedOutput, context) => {
|
|
3848
|
-
const contents = {
|
|
3849
|
-
name: "ThroughputLimitExceeded",
|
|
3850
|
-
$fault: "client",
|
|
3851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3852
|
-
ErrorCode: undefined,
|
|
3853
|
-
Message: undefined,
|
|
3854
|
-
};
|
|
2923
|
+
const contents = {};
|
|
3855
2924
|
const data = parsedOutput.body;
|
|
3856
2925
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3857
2926
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3859,16 +2928,14 @@ const deserializeAws_restJson1ThroughputLimitExceededResponse = async (parsedOut
|
|
|
3859
2928
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3860
2929
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3861
2930
|
}
|
|
3862
|
-
|
|
2931
|
+
const exception = new models_0_1.ThroughputLimitExceeded({
|
|
2932
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2933
|
+
...contents,
|
|
2934
|
+
});
|
|
2935
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3863
2936
|
};
|
|
3864
2937
|
const deserializeAws_restJson1TooManyRequestsResponse = async (parsedOutput, context) => {
|
|
3865
|
-
const contents = {
|
|
3866
|
-
name: "TooManyRequests",
|
|
3867
|
-
$fault: "client",
|
|
3868
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3869
|
-
ErrorCode: undefined,
|
|
3870
|
-
Message: undefined,
|
|
3871
|
-
};
|
|
2938
|
+
const contents = {};
|
|
3872
2939
|
const data = parsedOutput.body;
|
|
3873
2940
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3874
2941
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3876,16 +2943,14 @@ const deserializeAws_restJson1TooManyRequestsResponse = async (parsedOutput, con
|
|
|
3876
2943
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3877
2944
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3878
2945
|
}
|
|
3879
|
-
|
|
2946
|
+
const exception = new models_0_1.TooManyRequests({
|
|
2947
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2948
|
+
...contents,
|
|
2949
|
+
});
|
|
2950
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3880
2951
|
};
|
|
3881
2952
|
const deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = async (parsedOutput, context) => {
|
|
3882
|
-
const contents = {
|
|
3883
|
-
name: "UnsupportedAvailabilityZone",
|
|
3884
|
-
$fault: "client",
|
|
3885
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3886
|
-
ErrorCode: undefined,
|
|
3887
|
-
Message: undefined,
|
|
3888
|
-
};
|
|
2953
|
+
const contents = {};
|
|
3889
2954
|
const data = parsedOutput.body;
|
|
3890
2955
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3891
2956
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3893,16 +2958,14 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = async (parse
|
|
|
3893
2958
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3894
2959
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3895
2960
|
}
|
|
3896
|
-
|
|
2961
|
+
const exception = new models_0_1.UnsupportedAvailabilityZone({
|
|
2962
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2963
|
+
...contents,
|
|
2964
|
+
});
|
|
2965
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3897
2966
|
};
|
|
3898
2967
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3899
|
-
const contents = {
|
|
3900
|
-
name: "ValidationException",
|
|
3901
|
-
$fault: "client",
|
|
3902
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3903
|
-
ErrorCode: undefined,
|
|
3904
|
-
Message: undefined,
|
|
3905
|
-
};
|
|
2968
|
+
const contents = {};
|
|
3906
2969
|
const data = parsedOutput.body;
|
|
3907
2970
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3908
2971
|
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
@@ -3910,7 +2973,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3910
2973
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3911
2974
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3912
2975
|
}
|
|
3913
|
-
|
|
2976
|
+
const exception = new models_0_1.ValidationException({
|
|
2977
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2978
|
+
...contents,
|
|
2979
|
+
});
|
|
2980
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3914
2981
|
};
|
|
3915
2982
|
const serializeAws_restJson1BackupPolicy = (input, context) => {
|
|
3916
2983
|
return {
|
|
@@ -4046,7 +3113,7 @@ const deserializeAws_restJson1AccessPointDescription = (output, context) => {
|
|
|
4046
3113
|
};
|
|
4047
3114
|
};
|
|
4048
3115
|
const deserializeAws_restJson1AccessPointDescriptions = (output, context) => {
|
|
4049
|
-
|
|
3116
|
+
const retVal = (output || [])
|
|
4050
3117
|
.filter((e) => e != null)
|
|
4051
3118
|
.map((entry) => {
|
|
4052
3119
|
if (entry === null) {
|
|
@@ -4054,6 +3121,7 @@ const deserializeAws_restJson1AccessPointDescriptions = (output, context) => {
|
|
|
4054
3121
|
}
|
|
4055
3122
|
return deserializeAws_restJson1AccessPointDescription(entry, context);
|
|
4056
3123
|
});
|
|
3124
|
+
return retVal;
|
|
4057
3125
|
};
|
|
4058
3126
|
const deserializeAws_restJson1BackupPolicy = (output, context) => {
|
|
4059
3127
|
return {
|
|
@@ -4078,7 +3146,7 @@ const deserializeAws_restJson1Destination = (output, context) => {
|
|
|
4078
3146
|
};
|
|
4079
3147
|
};
|
|
4080
3148
|
const deserializeAws_restJson1Destinations = (output, context) => {
|
|
4081
|
-
|
|
3149
|
+
const retVal = (output || [])
|
|
4082
3150
|
.filter((e) => e != null)
|
|
4083
3151
|
.map((entry) => {
|
|
4084
3152
|
if (entry === null) {
|
|
@@ -4086,6 +3154,7 @@ const deserializeAws_restJson1Destinations = (output, context) => {
|
|
|
4086
3154
|
}
|
|
4087
3155
|
return deserializeAws_restJson1Destination(entry, context);
|
|
4088
3156
|
});
|
|
3157
|
+
return retVal;
|
|
4089
3158
|
};
|
|
4090
3159
|
const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
4091
3160
|
return {
|
|
@@ -4115,7 +3184,7 @@ const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
|
4115
3184
|
};
|
|
4116
3185
|
};
|
|
4117
3186
|
const deserializeAws_restJson1FileSystemDescriptions = (output, context) => {
|
|
4118
|
-
|
|
3187
|
+
const retVal = (output || [])
|
|
4119
3188
|
.filter((e) => e != null)
|
|
4120
3189
|
.map((entry) => {
|
|
4121
3190
|
if (entry === null) {
|
|
@@ -4123,6 +3192,7 @@ const deserializeAws_restJson1FileSystemDescriptions = (output, context) => {
|
|
|
4123
3192
|
}
|
|
4124
3193
|
return deserializeAws_restJson1FileSystemDescription(entry, context);
|
|
4125
3194
|
});
|
|
3195
|
+
return retVal;
|
|
4126
3196
|
};
|
|
4127
3197
|
const deserializeAws_restJson1FileSystemSize = (output, context) => {
|
|
4128
3198
|
return {
|
|
@@ -4135,7 +3205,7 @@ const deserializeAws_restJson1FileSystemSize = (output, context) => {
|
|
|
4135
3205
|
};
|
|
4136
3206
|
};
|
|
4137
3207
|
const deserializeAws_restJson1LifecyclePolicies = (output, context) => {
|
|
4138
|
-
|
|
3208
|
+
const retVal = (output || [])
|
|
4139
3209
|
.filter((e) => e != null)
|
|
4140
3210
|
.map((entry) => {
|
|
4141
3211
|
if (entry === null) {
|
|
@@ -4143,6 +3213,7 @@ const deserializeAws_restJson1LifecyclePolicies = (output, context) => {
|
|
|
4143
3213
|
}
|
|
4144
3214
|
return deserializeAws_restJson1LifecyclePolicy(entry, context);
|
|
4145
3215
|
});
|
|
3216
|
+
return retVal;
|
|
4146
3217
|
};
|
|
4147
3218
|
const deserializeAws_restJson1LifecyclePolicy = (output, context) => {
|
|
4148
3219
|
return {
|
|
@@ -4165,7 +3236,7 @@ const deserializeAws_restJson1MountTargetDescription = (output, context) => {
|
|
|
4165
3236
|
};
|
|
4166
3237
|
};
|
|
4167
3238
|
const deserializeAws_restJson1MountTargetDescriptions = (output, context) => {
|
|
4168
|
-
|
|
3239
|
+
const retVal = (output || [])
|
|
4169
3240
|
.filter((e) => e != null)
|
|
4170
3241
|
.map((entry) => {
|
|
4171
3242
|
if (entry === null) {
|
|
@@ -4173,6 +3244,7 @@ const deserializeAws_restJson1MountTargetDescriptions = (output, context) => {
|
|
|
4173
3244
|
}
|
|
4174
3245
|
return deserializeAws_restJson1MountTargetDescription(entry, context);
|
|
4175
3246
|
});
|
|
3247
|
+
return retVal;
|
|
4176
3248
|
};
|
|
4177
3249
|
const deserializeAws_restJson1PosixUser = (output, context) => {
|
|
4178
3250
|
return {
|
|
@@ -4198,7 +3270,7 @@ const deserializeAws_restJson1ReplicationConfigurationDescription = (output, con
|
|
|
4198
3270
|
};
|
|
4199
3271
|
};
|
|
4200
3272
|
const deserializeAws_restJson1ReplicationConfigurationDescriptions = (output, context) => {
|
|
4201
|
-
|
|
3273
|
+
const retVal = (output || [])
|
|
4202
3274
|
.filter((e) => e != null)
|
|
4203
3275
|
.map((entry) => {
|
|
4204
3276
|
if (entry === null) {
|
|
@@ -4206,6 +3278,7 @@ const deserializeAws_restJson1ReplicationConfigurationDescriptions = (output, co
|
|
|
4206
3278
|
}
|
|
4207
3279
|
return deserializeAws_restJson1ReplicationConfigurationDescription(entry, context);
|
|
4208
3280
|
});
|
|
3281
|
+
return retVal;
|
|
4209
3282
|
};
|
|
4210
3283
|
const deserializeAws_restJson1ResourceIdPreference = (output, context) => {
|
|
4211
3284
|
return {
|
|
@@ -4216,7 +3289,7 @@ const deserializeAws_restJson1ResourceIdPreference = (output, context) => {
|
|
|
4216
3289
|
};
|
|
4217
3290
|
};
|
|
4218
3291
|
const deserializeAws_restJson1Resources = (output, context) => {
|
|
4219
|
-
|
|
3292
|
+
const retVal = (output || [])
|
|
4220
3293
|
.filter((e) => e != null)
|
|
4221
3294
|
.map((entry) => {
|
|
4222
3295
|
if (entry === null) {
|
|
@@ -4224,6 +3297,7 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
4224
3297
|
}
|
|
4225
3298
|
return smithy_client_1.expectString(entry);
|
|
4226
3299
|
});
|
|
3300
|
+
return retVal;
|
|
4227
3301
|
};
|
|
4228
3302
|
const deserializeAws_restJson1RootDirectory = (output, context) => {
|
|
4229
3303
|
return {
|
|
@@ -4234,7 +3308,7 @@ const deserializeAws_restJson1RootDirectory = (output, context) => {
|
|
|
4234
3308
|
};
|
|
4235
3309
|
};
|
|
4236
3310
|
const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
4237
|
-
|
|
3311
|
+
const retVal = (output || [])
|
|
4238
3312
|
.filter((e) => e != null)
|
|
4239
3313
|
.map((entry) => {
|
|
4240
3314
|
if (entry === null) {
|
|
@@ -4242,9 +3316,10 @@ const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
|
4242
3316
|
}
|
|
4243
3317
|
return smithy_client_1.expectLong(entry);
|
|
4244
3318
|
});
|
|
3319
|
+
return retVal;
|
|
4245
3320
|
};
|
|
4246
3321
|
const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
4247
|
-
|
|
3322
|
+
const retVal = (output || [])
|
|
4248
3323
|
.filter((e) => e != null)
|
|
4249
3324
|
.map((entry) => {
|
|
4250
3325
|
if (entry === null) {
|
|
@@ -4252,6 +3327,7 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
4252
3327
|
}
|
|
4253
3328
|
return smithy_client_1.expectString(entry);
|
|
4254
3329
|
});
|
|
3330
|
+
return retVal;
|
|
4255
3331
|
};
|
|
4256
3332
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
4257
3333
|
return {
|
|
@@ -4260,7 +3336,7 @@ const deserializeAws_restJson1Tag = (output, context) => {
|
|
|
4260
3336
|
};
|
|
4261
3337
|
};
|
|
4262
3338
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
4263
|
-
|
|
3339
|
+
const retVal = (output || [])
|
|
4264
3340
|
.filter((e) => e != null)
|
|
4265
3341
|
.map((entry) => {
|
|
4266
3342
|
if (entry === null) {
|
|
@@ -4268,6 +3344,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
4268
3344
|
}
|
|
4269
3345
|
return deserializeAws_restJson1Tag(entry, context);
|
|
4270
3346
|
});
|
|
3347
|
+
return retVal;
|
|
4271
3348
|
};
|
|
4272
3349
|
const deserializeMetadata = (output) => {
|
|
4273
3350
|
var _a;
|