@aws-sdk/client-opensearch 3.52.0 → 3.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/OpenSearchServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +148 -4
- package/dist-cjs/protocols/Aws_restJson1.js +454 -1547
- package/dist-es/index.js +1 -0
- package/dist-es/models/OpenSearchServiceException.js +12 -0
- package/dist-es/models/models_0.js +134 -1
- package/dist-es/protocols/Aws_restJson1.js +927 -1719
- package/dist-types/OpenSearchClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/OpenSearchServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +57 -56
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/OpenSearchClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/OpenSearchServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -45
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = exports.deseri
|
|
|
4
4
|
exports.deserializeAws_restJson1UpgradeDomainCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateDomainConfigCommand = exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.deserializeAws_restJson1ListVersionsCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeReservedInstancesCommand = exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = exports.deserializeAws_restJson1DescribeDomainsCommand = exports.deserializeAws_restJson1DescribeDomainConfigCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeletePackageCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const OpenSearchServiceException_1 = require("../models/OpenSearchServiceException");
|
|
7
9
|
const serializeAws_restJson1AcceptInboundConnectionCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {};
|
|
@@ -1210,43 +1212,22 @@ const deserializeAws_restJson1AcceptInboundConnectionCommandError = async (outpu
|
|
|
1210
1212
|
switch (errorCode) {
|
|
1211
1213
|
case "DisabledOperationException":
|
|
1212
1214
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1213
|
-
|
|
1214
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1215
|
-
name: errorCode,
|
|
1216
|
-
$metadata: deserializeMetadata(output),
|
|
1217
|
-
};
|
|
1218
|
-
break;
|
|
1215
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1219
1216
|
case "LimitExceededException":
|
|
1220
1217
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1221
|
-
|
|
1222
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1223
|
-
name: errorCode,
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
};
|
|
1226
|
-
break;
|
|
1218
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1227
1219
|
case "ResourceNotFoundException":
|
|
1228
1220
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1229
|
-
|
|
1230
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1231
|
-
name: errorCode,
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
};
|
|
1234
|
-
break;
|
|
1221
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1235
1222
|
default:
|
|
1236
1223
|
const parsedBody = parsedOutput.body;
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
...parsedBody,
|
|
1240
|
-
name: `${errorCode}`,
|
|
1241
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1224
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1225
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
1226
|
$fault: "client",
|
|
1243
1227
|
$metadata: deserializeMetadata(output),
|
|
1244
|
-
};
|
|
1228
|
+
});
|
|
1229
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1245
1230
|
}
|
|
1246
|
-
const message = response.message || response.Message || errorCode;
|
|
1247
|
-
response.message = message;
|
|
1248
|
-
delete response.Message;
|
|
1249
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1250
1231
|
};
|
|
1251
1232
|
const deserializeAws_restJson1AddTagsCommand = async (output, context) => {
|
|
1252
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1270,51 +1251,25 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
|
|
|
1270
1251
|
switch (errorCode) {
|
|
1271
1252
|
case "BaseException":
|
|
1272
1253
|
case "com.amazonaws.opensearch#BaseException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
1254
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1279
1255
|
case "InternalException":
|
|
1280
1256
|
case "com.amazonaws.opensearch#InternalException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
1257
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1287
1258
|
case "LimitExceededException":
|
|
1288
1259
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
1260
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1295
1261
|
case "ValidationException":
|
|
1296
1262
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1297
|
-
|
|
1298
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1299
|
-
name: errorCode,
|
|
1300
|
-
$metadata: deserializeMetadata(output),
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
1263
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1303
1264
|
default:
|
|
1304
1265
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
...parsedBody,
|
|
1308
|
-
name: `${errorCode}`,
|
|
1309
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1266
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1267
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1310
1268
|
$fault: "client",
|
|
1311
1269
|
$metadata: deserializeMetadata(output),
|
|
1312
|
-
};
|
|
1270
|
+
});
|
|
1271
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1313
1272
|
}
|
|
1314
|
-
const message = response.message || response.Message || errorCode;
|
|
1315
|
-
response.message = message;
|
|
1316
|
-
delete response.Message;
|
|
1317
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1318
1273
|
};
|
|
1319
1274
|
const deserializeAws_restJson1AssociatePackageCommand = async (output, context) => {
|
|
1320
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1342,67 +1297,31 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
|
|
|
1342
1297
|
switch (errorCode) {
|
|
1343
1298
|
case "AccessDeniedException":
|
|
1344
1299
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1345
|
-
|
|
1346
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1347
|
-
name: errorCode,
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
};
|
|
1350
|
-
break;
|
|
1300
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1351
1301
|
case "BaseException":
|
|
1352
1302
|
case "com.amazonaws.opensearch#BaseException":
|
|
1353
|
-
|
|
1354
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1355
|
-
name: errorCode,
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1358
|
-
break;
|
|
1303
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1359
1304
|
case "ConflictException":
|
|
1360
1305
|
case "com.amazonaws.opensearch#ConflictException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1306
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1367
1307
|
case "InternalException":
|
|
1368
1308
|
case "com.amazonaws.opensearch#InternalException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1309
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1375
1310
|
case "ResourceNotFoundException":
|
|
1376
1311
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1377
|
-
|
|
1378
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1379
|
-
name: errorCode,
|
|
1380
|
-
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1382
|
-
break;
|
|
1312
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1383
1313
|
case "ValidationException":
|
|
1384
1314
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1385
|
-
|
|
1386
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1387
|
-
name: errorCode,
|
|
1388
|
-
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1390
|
-
break;
|
|
1315
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1391
1316
|
default:
|
|
1392
1317
|
const parsedBody = parsedOutput.body;
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
...parsedBody,
|
|
1396
|
-
name: `${errorCode}`,
|
|
1397
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1318
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1398
1320
|
$fault: "client",
|
|
1399
1321
|
$metadata: deserializeMetadata(output),
|
|
1400
|
-
};
|
|
1322
|
+
});
|
|
1323
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1401
1324
|
}
|
|
1402
|
-
const message = response.message || response.Message || errorCode;
|
|
1403
|
-
response.message = message;
|
|
1404
|
-
delete response.Message;
|
|
1405
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1406
1325
|
};
|
|
1407
1326
|
const deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = async (output, context) => {
|
|
1408
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1430,51 +1349,25 @@ const deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = async (o
|
|
|
1430
1349
|
switch (errorCode) {
|
|
1431
1350
|
case "BaseException":
|
|
1432
1351
|
case "com.amazonaws.opensearch#BaseException":
|
|
1433
|
-
|
|
1434
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1435
|
-
name: errorCode,
|
|
1436
|
-
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1438
|
-
break;
|
|
1352
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1439
1353
|
case "InternalException":
|
|
1440
1354
|
case "com.amazonaws.opensearch#InternalException":
|
|
1441
|
-
|
|
1442
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1443
|
-
name: errorCode,
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1446
|
-
break;
|
|
1355
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1447
1356
|
case "ResourceNotFoundException":
|
|
1448
1357
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1449
|
-
|
|
1450
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1451
|
-
name: errorCode,
|
|
1452
|
-
$metadata: deserializeMetadata(output),
|
|
1453
|
-
};
|
|
1454
|
-
break;
|
|
1358
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1455
1359
|
case "ValidationException":
|
|
1456
1360
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1457
|
-
|
|
1458
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1459
|
-
name: errorCode,
|
|
1460
|
-
$metadata: deserializeMetadata(output),
|
|
1461
|
-
};
|
|
1462
|
-
break;
|
|
1361
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1463
1362
|
default:
|
|
1464
1363
|
const parsedBody = parsedOutput.body;
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
...parsedBody,
|
|
1468
|
-
name: `${errorCode}`,
|
|
1469
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1364
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1470
1366
|
$fault: "client",
|
|
1471
1367
|
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1368
|
+
});
|
|
1369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1473
1370
|
}
|
|
1474
|
-
const message = response.message || response.Message || errorCode;
|
|
1475
|
-
response.message = message;
|
|
1476
|
-
delete response.Message;
|
|
1477
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1478
1371
|
};
|
|
1479
1372
|
const deserializeAws_restJson1CreateDomainCommand = async (output, context) => {
|
|
1480
1373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1502,75 +1395,34 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1502
1395
|
switch (errorCode) {
|
|
1503
1396
|
case "BaseException":
|
|
1504
1397
|
case "com.amazonaws.opensearch#BaseException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1398
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1511
1399
|
case "DisabledOperationException":
|
|
1512
1400
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1401
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1519
1402
|
case "InternalException":
|
|
1520
1403
|
case "com.amazonaws.opensearch#InternalException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1404
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1527
1405
|
case "InvalidTypeException":
|
|
1528
1406
|
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
1529
|
-
|
|
1530
|
-
...(await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1531
|
-
name: errorCode,
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
};
|
|
1534
|
-
break;
|
|
1407
|
+
throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
|
|
1535
1408
|
case "LimitExceededException":
|
|
1536
1409
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1410
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1543
1411
|
case "ResourceAlreadyExistsException":
|
|
1544
1412
|
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1545
|
-
|
|
1546
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1547
|
-
name: errorCode,
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1413
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1551
1414
|
case "ValidationException":
|
|
1552
1415
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1553
|
-
|
|
1554
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1555
|
-
name: errorCode,
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
};
|
|
1558
|
-
break;
|
|
1416
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1559
1417
|
default:
|
|
1560
1418
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
...parsedBody,
|
|
1564
|
-
name: `${errorCode}`,
|
|
1565
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1419
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1566
1421
|
$fault: "client",
|
|
1567
1422
|
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1423
|
+
});
|
|
1424
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1569
1425
|
}
|
|
1570
|
-
const message = response.message || response.Message || errorCode;
|
|
1571
|
-
response.message = message;
|
|
1572
|
-
delete response.Message;
|
|
1573
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1574
1426
|
};
|
|
1575
1427
|
const deserializeAws_restJson1CreateOutboundConnectionCommand = async (output, context) => {
|
|
1576
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1614,51 +1466,25 @@ const deserializeAws_restJson1CreateOutboundConnectionCommandError = async (outp
|
|
|
1614
1466
|
switch (errorCode) {
|
|
1615
1467
|
case "DisabledOperationException":
|
|
1616
1468
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1617
|
-
|
|
1618
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1619
|
-
name: errorCode,
|
|
1620
|
-
$metadata: deserializeMetadata(output),
|
|
1621
|
-
};
|
|
1622
|
-
break;
|
|
1469
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1623
1470
|
case "InternalException":
|
|
1624
1471
|
case "com.amazonaws.opensearch#InternalException":
|
|
1625
|
-
|
|
1626
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1627
|
-
name: errorCode,
|
|
1628
|
-
$metadata: deserializeMetadata(output),
|
|
1629
|
-
};
|
|
1630
|
-
break;
|
|
1472
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1631
1473
|
case "LimitExceededException":
|
|
1632
1474
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1633
|
-
|
|
1634
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1635
|
-
name: errorCode,
|
|
1636
|
-
$metadata: deserializeMetadata(output),
|
|
1637
|
-
};
|
|
1638
|
-
break;
|
|
1475
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1639
1476
|
case "ResourceAlreadyExistsException":
|
|
1640
1477
|
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1641
|
-
|
|
1642
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1643
|
-
name: errorCode,
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
};
|
|
1646
|
-
break;
|
|
1478
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1647
1479
|
default:
|
|
1648
1480
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
...parsedBody,
|
|
1652
|
-
name: `${errorCode}`,
|
|
1653
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1481
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1482
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1654
1483
|
$fault: "client",
|
|
1655
1484
|
$metadata: deserializeMetadata(output),
|
|
1656
|
-
};
|
|
1485
|
+
});
|
|
1486
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1657
1487
|
}
|
|
1658
|
-
const message = response.message || response.Message || errorCode;
|
|
1659
|
-
response.message = message;
|
|
1660
|
-
delete response.Message;
|
|
1661
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1662
1488
|
};
|
|
1663
1489
|
const deserializeAws_restJson1CreatePackageCommand = async (output, context) => {
|
|
1664
1490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1686,75 +1512,34 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
|
|
|
1686
1512
|
switch (errorCode) {
|
|
1687
1513
|
case "AccessDeniedException":
|
|
1688
1514
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1689
|
-
|
|
1690
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1691
|
-
name: errorCode,
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
break;
|
|
1515
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1695
1516
|
case "BaseException":
|
|
1696
1517
|
case "com.amazonaws.opensearch#BaseException":
|
|
1697
|
-
|
|
1698
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1518
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1703
1519
|
case "InternalException":
|
|
1704
1520
|
case "com.amazonaws.opensearch#InternalException":
|
|
1705
|
-
|
|
1706
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1521
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1711
1522
|
case "InvalidTypeException":
|
|
1712
1523
|
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
1713
|
-
|
|
1714
|
-
...(await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1524
|
+
throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
|
|
1719
1525
|
case "LimitExceededException":
|
|
1720
1526
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1721
|
-
|
|
1722
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1723
|
-
name: errorCode,
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1726
|
-
break;
|
|
1527
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1727
1528
|
case "ResourceAlreadyExistsException":
|
|
1728
1529
|
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1729
|
-
|
|
1730
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1731
|
-
name: errorCode,
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1734
|
-
break;
|
|
1530
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1735
1531
|
case "ValidationException":
|
|
1736
1532
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1737
|
-
|
|
1738
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1739
|
-
name: errorCode,
|
|
1740
|
-
$metadata: deserializeMetadata(output),
|
|
1741
|
-
};
|
|
1742
|
-
break;
|
|
1533
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1743
1534
|
default:
|
|
1744
1535
|
const parsedBody = parsedOutput.body;
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
...parsedBody,
|
|
1748
|
-
name: `${errorCode}`,
|
|
1749
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1536
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1537
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1750
1538
|
$fault: "client",
|
|
1751
1539
|
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1540
|
+
});
|
|
1541
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1753
1542
|
}
|
|
1754
|
-
const message = response.message || response.Message || errorCode;
|
|
1755
|
-
response.message = message;
|
|
1756
|
-
delete response.Message;
|
|
1757
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1758
1543
|
};
|
|
1759
1544
|
const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
1760
1545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1782,51 +1567,25 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1782
1567
|
switch (errorCode) {
|
|
1783
1568
|
case "BaseException":
|
|
1784
1569
|
case "com.amazonaws.opensearch#BaseException":
|
|
1785
|
-
|
|
1786
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1787
|
-
name: errorCode,
|
|
1788
|
-
$metadata: deserializeMetadata(output),
|
|
1789
|
-
};
|
|
1790
|
-
break;
|
|
1570
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1791
1571
|
case "InternalException":
|
|
1792
1572
|
case "com.amazonaws.opensearch#InternalException":
|
|
1793
|
-
|
|
1794
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1795
|
-
name: errorCode,
|
|
1796
|
-
$metadata: deserializeMetadata(output),
|
|
1797
|
-
};
|
|
1798
|
-
break;
|
|
1573
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1799
1574
|
case "ResourceNotFoundException":
|
|
1800
1575
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1801
|
-
|
|
1802
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1803
|
-
name: errorCode,
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
};
|
|
1806
|
-
break;
|
|
1576
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1807
1577
|
case "ValidationException":
|
|
1808
1578
|
case "com.amazonaws.opensearch#ValidationException":
|
|
1809
|
-
|
|
1810
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1811
|
-
name: errorCode,
|
|
1812
|
-
$metadata: deserializeMetadata(output),
|
|
1813
|
-
};
|
|
1814
|
-
break;
|
|
1579
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1815
1580
|
default:
|
|
1816
1581
|
const parsedBody = parsedOutput.body;
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
...parsedBody,
|
|
1820
|
-
name: `${errorCode}`,
|
|
1821
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1582
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1822
1584
|
$fault: "client",
|
|
1823
1585
|
$metadata: deserializeMetadata(output),
|
|
1824
|
-
};
|
|
1586
|
+
});
|
|
1587
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1825
1588
|
}
|
|
1826
|
-
const message = response.message || response.Message || errorCode;
|
|
1827
|
-
response.message = message;
|
|
1828
|
-
delete response.Message;
|
|
1829
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1830
1589
|
};
|
|
1831
1590
|
const deserializeAws_restJson1DeleteInboundConnectionCommand = async (output, context) => {
|
|
1832
1591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1854,35 +1613,19 @@ const deserializeAws_restJson1DeleteInboundConnectionCommandError = async (outpu
|
|
|
1854
1613
|
switch (errorCode) {
|
|
1855
1614
|
case "DisabledOperationException":
|
|
1856
1615
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1857
|
-
|
|
1858
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1859
|
-
name: errorCode,
|
|
1860
|
-
$metadata: deserializeMetadata(output),
|
|
1861
|
-
};
|
|
1862
|
-
break;
|
|
1616
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1863
1617
|
case "ResourceNotFoundException":
|
|
1864
1618
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1865
|
-
|
|
1866
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1867
|
-
name: errorCode,
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
};
|
|
1870
|
-
break;
|
|
1619
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1871
1620
|
default:
|
|
1872
1621
|
const parsedBody = parsedOutput.body;
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
...parsedBody,
|
|
1876
|
-
name: `${errorCode}`,
|
|
1877
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1622
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1623
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1878
1624
|
$fault: "client",
|
|
1879
1625
|
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1626
|
+
});
|
|
1627
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1881
1628
|
}
|
|
1882
|
-
const message = response.message || response.Message || errorCode;
|
|
1883
|
-
response.message = message;
|
|
1884
|
-
delete response.Message;
|
|
1885
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1886
1629
|
};
|
|
1887
1630
|
const deserializeAws_restJson1DeleteOutboundConnectionCommand = async (output, context) => {
|
|
1888
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1910,35 +1653,19 @@ const deserializeAws_restJson1DeleteOutboundConnectionCommandError = async (outp
|
|
|
1910
1653
|
switch (errorCode) {
|
|
1911
1654
|
case "DisabledOperationException":
|
|
1912
1655
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1913
|
-
|
|
1914
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1915
|
-
name: errorCode,
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1918
|
-
break;
|
|
1656
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1919
1657
|
case "ResourceNotFoundException":
|
|
1920
1658
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1921
|
-
|
|
1922
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1923
|
-
name: errorCode,
|
|
1924
|
-
$metadata: deserializeMetadata(output),
|
|
1925
|
-
};
|
|
1926
|
-
break;
|
|
1659
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1927
1660
|
default:
|
|
1928
1661
|
const parsedBody = parsedOutput.body;
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
...parsedBody,
|
|
1932
|
-
name: `${errorCode}`,
|
|
1933
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1662
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1934
1664
|
$fault: "client",
|
|
1935
1665
|
$metadata: deserializeMetadata(output),
|
|
1936
|
-
};
|
|
1666
|
+
});
|
|
1667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1937
1668
|
}
|
|
1938
|
-
const message = response.message || response.Message || errorCode;
|
|
1939
|
-
response.message = message;
|
|
1940
|
-
delete response.Message;
|
|
1941
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1942
1669
|
};
|
|
1943
1670
|
const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
|
|
1944
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1966,67 +1693,31 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
|
|
|
1966
1693
|
switch (errorCode) {
|
|
1967
1694
|
case "AccessDeniedException":
|
|
1968
1695
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1969
|
-
|
|
1970
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1971
|
-
name: errorCode,
|
|
1972
|
-
$metadata: deserializeMetadata(output),
|
|
1973
|
-
};
|
|
1974
|
-
break;
|
|
1696
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1975
1697
|
case "BaseException":
|
|
1976
1698
|
case "com.amazonaws.opensearch#BaseException":
|
|
1977
|
-
|
|
1978
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1699
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1983
1700
|
case "ConflictException":
|
|
1984
1701
|
case "com.amazonaws.opensearch#ConflictException":
|
|
1985
|
-
|
|
1986
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1702
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1991
1703
|
case "InternalException":
|
|
1992
1704
|
case "com.amazonaws.opensearch#InternalException":
|
|
1993
|
-
|
|
1994
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
1995
|
-
name: errorCode,
|
|
1996
|
-
$metadata: deserializeMetadata(output),
|
|
1997
|
-
};
|
|
1998
|
-
break;
|
|
1705
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1999
1706
|
case "ResourceNotFoundException":
|
|
2000
1707
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2001
|
-
|
|
2002
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2003
|
-
name: errorCode,
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
};
|
|
2006
|
-
break;
|
|
1708
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2007
1709
|
case "ValidationException":
|
|
2008
1710
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2009
|
-
|
|
2010
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2011
|
-
name: errorCode,
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
};
|
|
2014
|
-
break;
|
|
1711
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2015
1712
|
default:
|
|
2016
1713
|
const parsedBody = parsedOutput.body;
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
...parsedBody,
|
|
2020
|
-
name: `${errorCode}`,
|
|
2021
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1714
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1715
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2022
1716
|
$fault: "client",
|
|
2023
1717
|
$metadata: deserializeMetadata(output),
|
|
2024
|
-
};
|
|
1718
|
+
});
|
|
1719
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2025
1720
|
}
|
|
2026
|
-
const message = response.message || response.Message || errorCode;
|
|
2027
|
-
response.message = message;
|
|
2028
|
-
delete response.Message;
|
|
2029
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2030
1721
|
};
|
|
2031
1722
|
const deserializeAws_restJson1DescribeDomainCommand = async (output, context) => {
|
|
2032
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2054,51 +1745,25 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
2054
1745
|
switch (errorCode) {
|
|
2055
1746
|
case "BaseException":
|
|
2056
1747
|
case "com.amazonaws.opensearch#BaseException":
|
|
2057
|
-
|
|
2058
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2059
|
-
name: errorCode,
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
};
|
|
2062
|
-
break;
|
|
1748
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2063
1749
|
case "InternalException":
|
|
2064
1750
|
case "com.amazonaws.opensearch#InternalException":
|
|
2065
|
-
|
|
2066
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2067
|
-
name: errorCode,
|
|
2068
|
-
$metadata: deserializeMetadata(output),
|
|
2069
|
-
};
|
|
2070
|
-
break;
|
|
1751
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2071
1752
|
case "ResourceNotFoundException":
|
|
2072
1753
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2073
|
-
|
|
2074
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2075
|
-
name: errorCode,
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
};
|
|
2078
|
-
break;
|
|
1754
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2079
1755
|
case "ValidationException":
|
|
2080
1756
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1757
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2087
1758
|
default:
|
|
2088
1759
|
const parsedBody = parsedOutput.body;
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
...parsedBody,
|
|
2092
|
-
name: `${errorCode}`,
|
|
2093
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1760
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1761
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2094
1762
|
$fault: "client",
|
|
2095
1763
|
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
1764
|
+
});
|
|
1765
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2097
1766
|
}
|
|
2098
|
-
const message = response.message || response.Message || errorCode;
|
|
2099
|
-
response.message = message;
|
|
2100
|
-
delete response.Message;
|
|
2101
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2102
1767
|
};
|
|
2103
1768
|
const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, context) => {
|
|
2104
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2130,51 +1795,25 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
|
|
|
2130
1795
|
switch (errorCode) {
|
|
2131
1796
|
case "BaseException":
|
|
2132
1797
|
case "com.amazonaws.opensearch#BaseException":
|
|
2133
|
-
|
|
2134
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2135
|
-
name: errorCode,
|
|
2136
|
-
$metadata: deserializeMetadata(output),
|
|
2137
|
-
};
|
|
2138
|
-
break;
|
|
1798
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2139
1799
|
case "InternalException":
|
|
2140
1800
|
case "com.amazonaws.opensearch#InternalException":
|
|
2141
|
-
|
|
2142
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2143
|
-
name: errorCode,
|
|
2144
|
-
$metadata: deserializeMetadata(output),
|
|
2145
|
-
};
|
|
2146
|
-
break;
|
|
1801
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2147
1802
|
case "ResourceNotFoundException":
|
|
2148
1803
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2149
|
-
|
|
2150
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2151
|
-
name: errorCode,
|
|
2152
|
-
$metadata: deserializeMetadata(output),
|
|
2153
|
-
};
|
|
2154
|
-
break;
|
|
1804
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2155
1805
|
case "ValidationException":
|
|
2156
1806
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2157
|
-
|
|
2158
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2159
|
-
name: errorCode,
|
|
2160
|
-
$metadata: deserializeMetadata(output),
|
|
2161
|
-
};
|
|
2162
|
-
break;
|
|
1807
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2163
1808
|
default:
|
|
2164
1809
|
const parsedBody = parsedOutput.body;
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
...parsedBody,
|
|
2168
|
-
name: `${errorCode}`,
|
|
2169
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1810
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
1812
|
$fault: "client",
|
|
2171
1813
|
$metadata: deserializeMetadata(output),
|
|
2172
|
-
};
|
|
1814
|
+
});
|
|
1815
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2173
1816
|
}
|
|
2174
|
-
const message = response.message || response.Message || errorCode;
|
|
2175
|
-
response.message = message;
|
|
2176
|
-
delete response.Message;
|
|
2177
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2178
1817
|
};
|
|
2179
1818
|
const deserializeAws_restJson1DescribeDomainChangeProgressCommand = async (output, context) => {
|
|
2180
1819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2202,51 +1841,25 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
|
|
|
2202
1841
|
switch (errorCode) {
|
|
2203
1842
|
case "BaseException":
|
|
2204
1843
|
case "com.amazonaws.opensearch#BaseException":
|
|
2205
|
-
|
|
2206
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2207
|
-
name: errorCode,
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
};
|
|
2210
|
-
break;
|
|
1844
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2211
1845
|
case "InternalException":
|
|
2212
1846
|
case "com.amazonaws.opensearch#InternalException":
|
|
2213
|
-
|
|
2214
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
1847
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2219
1848
|
case "ResourceNotFoundException":
|
|
2220
1849
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2221
|
-
|
|
2222
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
1850
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2227
1851
|
case "ValidationException":
|
|
2228
1852
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2229
|
-
|
|
2230
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2231
|
-
name: errorCode,
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2234
|
-
break;
|
|
1853
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2235
1854
|
default:
|
|
2236
1855
|
const parsedBody = parsedOutput.body;
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
...parsedBody,
|
|
2240
|
-
name: `${errorCode}`,
|
|
2241
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1856
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1857
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2242
1858
|
$fault: "client",
|
|
2243
1859
|
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
1860
|
+
});
|
|
1861
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2245
1862
|
}
|
|
2246
|
-
const message = response.message || response.Message || errorCode;
|
|
2247
|
-
response.message = message;
|
|
2248
|
-
delete response.Message;
|
|
2249
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2250
1863
|
};
|
|
2251
1864
|
const deserializeAws_restJson1DescribeDomainConfigCommand = async (output, context) => {
|
|
2252
1865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2274,51 +1887,25 @@ const deserializeAws_restJson1DescribeDomainConfigCommandError = async (output,
|
|
|
2274
1887
|
switch (errorCode) {
|
|
2275
1888
|
case "BaseException":
|
|
2276
1889
|
case "com.amazonaws.opensearch#BaseException":
|
|
2277
|
-
|
|
2278
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2279
|
-
name: errorCode,
|
|
2280
|
-
$metadata: deserializeMetadata(output),
|
|
2281
|
-
};
|
|
2282
|
-
break;
|
|
1890
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2283
1891
|
case "InternalException":
|
|
2284
1892
|
case "com.amazonaws.opensearch#InternalException":
|
|
2285
|
-
|
|
2286
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2287
|
-
name: errorCode,
|
|
2288
|
-
$metadata: deserializeMetadata(output),
|
|
2289
|
-
};
|
|
2290
|
-
break;
|
|
1893
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2291
1894
|
case "ResourceNotFoundException":
|
|
2292
1895
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2293
|
-
|
|
2294
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2295
|
-
name: errorCode,
|
|
2296
|
-
$metadata: deserializeMetadata(output),
|
|
2297
|
-
};
|
|
2298
|
-
break;
|
|
1896
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2299
1897
|
case "ValidationException":
|
|
2300
1898
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2301
|
-
|
|
2302
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2303
|
-
name: errorCode,
|
|
2304
|
-
$metadata: deserializeMetadata(output),
|
|
2305
|
-
};
|
|
2306
|
-
break;
|
|
1899
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2307
1900
|
default:
|
|
2308
1901
|
const parsedBody = parsedOutput.body;
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
...parsedBody,
|
|
2312
|
-
name: `${errorCode}`,
|
|
2313
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1902
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1903
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2314
1904
|
$fault: "client",
|
|
2315
1905
|
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
1906
|
+
});
|
|
1907
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2317
1908
|
}
|
|
2318
|
-
const message = response.message || response.Message || errorCode;
|
|
2319
|
-
response.message = message;
|
|
2320
|
-
delete response.Message;
|
|
2321
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2322
1909
|
};
|
|
2323
1910
|
const deserializeAws_restJson1DescribeDomainsCommand = async (output, context) => {
|
|
2324
1911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2346,43 +1933,22 @@ const deserializeAws_restJson1DescribeDomainsCommandError = async (output, conte
|
|
|
2346
1933
|
switch (errorCode) {
|
|
2347
1934
|
case "BaseException":
|
|
2348
1935
|
case "com.amazonaws.opensearch#BaseException":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1936
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2355
1937
|
case "InternalException":
|
|
2356
1938
|
case "com.amazonaws.opensearch#InternalException":
|
|
2357
|
-
|
|
2358
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2359
|
-
name: errorCode,
|
|
2360
|
-
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
2362
|
-
break;
|
|
1939
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2363
1940
|
case "ValidationException":
|
|
2364
1941
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2365
|
-
|
|
2366
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2367
|
-
name: errorCode,
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
};
|
|
2370
|
-
break;
|
|
1942
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2371
1943
|
default:
|
|
2372
1944
|
const parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
...parsedBody,
|
|
2376
|
-
name: `${errorCode}`,
|
|
2377
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1945
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1946
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
1947
|
$fault: "client",
|
|
2379
1948
|
$metadata: deserializeMetadata(output),
|
|
2380
|
-
};
|
|
1949
|
+
});
|
|
1950
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2381
1951
|
}
|
|
2382
|
-
const message = response.message || response.Message || errorCode;
|
|
2383
|
-
response.message = message;
|
|
2384
|
-
delete response.Message;
|
|
2385
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2386
1952
|
};
|
|
2387
1953
|
const deserializeAws_restJson1DescribeInboundConnectionsCommand = async (output, context) => {
|
|
2388
1954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2414,35 +1980,19 @@ const deserializeAws_restJson1DescribeInboundConnectionsCommandError = async (ou
|
|
|
2414
1980
|
switch (errorCode) {
|
|
2415
1981
|
case "DisabledOperationException":
|
|
2416
1982
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2417
|
-
|
|
2418
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2419
|
-
name: errorCode,
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
};
|
|
2422
|
-
break;
|
|
1983
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2423
1984
|
case "InvalidPaginationTokenException":
|
|
2424
1985
|
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2425
|
-
|
|
2426
|
-
...(await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
2427
|
-
name: errorCode,
|
|
2428
|
-
$metadata: deserializeMetadata(output),
|
|
2429
|
-
};
|
|
2430
|
-
break;
|
|
1986
|
+
throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
2431
1987
|
default:
|
|
2432
1988
|
const parsedBody = parsedOutput.body;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
...parsedBody,
|
|
2436
|
-
name: `${errorCode}`,
|
|
2437
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1989
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2438
1991
|
$fault: "client",
|
|
2439
1992
|
$metadata: deserializeMetadata(output),
|
|
2440
|
-
};
|
|
1993
|
+
});
|
|
1994
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2441
1995
|
}
|
|
2442
|
-
const message = response.message || response.Message || errorCode;
|
|
2443
|
-
response.message = message;
|
|
2444
|
-
delete response.Message;
|
|
2445
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2446
1996
|
};
|
|
2447
1997
|
const deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = async (output, context) => {
|
|
2448
1998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2470,67 +2020,31 @@ const deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = async (ou
|
|
|
2470
2020
|
switch (errorCode) {
|
|
2471
2021
|
case "BaseException":
|
|
2472
2022
|
case "com.amazonaws.opensearch#BaseException":
|
|
2473
|
-
|
|
2474
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2475
|
-
name: errorCode,
|
|
2476
|
-
$metadata: deserializeMetadata(output),
|
|
2477
|
-
};
|
|
2478
|
-
break;
|
|
2023
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2479
2024
|
case "InternalException":
|
|
2480
2025
|
case "com.amazonaws.opensearch#InternalException":
|
|
2481
|
-
|
|
2482
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2483
|
-
name: errorCode,
|
|
2484
|
-
$metadata: deserializeMetadata(output),
|
|
2485
|
-
};
|
|
2486
|
-
break;
|
|
2026
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2487
2027
|
case "InvalidTypeException":
|
|
2488
2028
|
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2489
|
-
|
|
2490
|
-
...(await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context)),
|
|
2491
|
-
name: errorCode,
|
|
2492
|
-
$metadata: deserializeMetadata(output),
|
|
2493
|
-
};
|
|
2494
|
-
break;
|
|
2029
|
+
throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
|
|
2495
2030
|
case "LimitExceededException":
|
|
2496
2031
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2497
|
-
|
|
2498
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2499
|
-
name: errorCode,
|
|
2500
|
-
$metadata: deserializeMetadata(output),
|
|
2501
|
-
};
|
|
2502
|
-
break;
|
|
2032
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2503
2033
|
case "ResourceNotFoundException":
|
|
2504
2034
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2505
|
-
|
|
2506
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2507
|
-
name: errorCode,
|
|
2508
|
-
$metadata: deserializeMetadata(output),
|
|
2509
|
-
};
|
|
2510
|
-
break;
|
|
2035
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2511
2036
|
case "ValidationException":
|
|
2512
2037
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2513
|
-
|
|
2514
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2515
|
-
name: errorCode,
|
|
2516
|
-
$metadata: deserializeMetadata(output),
|
|
2517
|
-
};
|
|
2518
|
-
break;
|
|
2038
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2519
2039
|
default:
|
|
2520
2040
|
const parsedBody = parsedOutput.body;
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
...parsedBody,
|
|
2524
|
-
name: `${errorCode}`,
|
|
2525
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2041
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2042
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2526
2043
|
$fault: "client",
|
|
2527
2044
|
$metadata: deserializeMetadata(output),
|
|
2528
|
-
};
|
|
2045
|
+
});
|
|
2046
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2529
2047
|
}
|
|
2530
|
-
const message = response.message || response.Message || errorCode;
|
|
2531
|
-
response.message = message;
|
|
2532
|
-
delete response.Message;
|
|
2533
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2534
2048
|
};
|
|
2535
2049
|
const deserializeAws_restJson1DescribeOutboundConnectionsCommand = async (output, context) => {
|
|
2536
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2562,35 +2076,19 @@ const deserializeAws_restJson1DescribeOutboundConnectionsCommandError = async (o
|
|
|
2562
2076
|
switch (errorCode) {
|
|
2563
2077
|
case "DisabledOperationException":
|
|
2564
2078
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2565
|
-
|
|
2566
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2567
|
-
name: errorCode,
|
|
2568
|
-
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
2570
|
-
break;
|
|
2079
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2571
2080
|
case "InvalidPaginationTokenException":
|
|
2572
2081
|
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2573
|
-
|
|
2574
|
-
...(await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
2575
|
-
name: errorCode,
|
|
2576
|
-
$metadata: deserializeMetadata(output),
|
|
2577
|
-
};
|
|
2578
|
-
break;
|
|
2082
|
+
throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
2579
2083
|
default:
|
|
2580
2084
|
const parsedBody = parsedOutput.body;
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
...parsedBody,
|
|
2584
|
-
name: `${errorCode}`,
|
|
2585
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2085
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2086
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2586
2087
|
$fault: "client",
|
|
2587
2088
|
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2089
|
+
});
|
|
2090
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2589
2091
|
}
|
|
2590
|
-
const message = response.message || response.Message || errorCode;
|
|
2591
|
-
response.message = message;
|
|
2592
|
-
delete response.Message;
|
|
2593
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2594
2092
|
};
|
|
2595
2093
|
const deserializeAws_restJson1DescribePackagesCommand = async (output, context) => {
|
|
2596
2094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2622,59 +2120,28 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
|
|
|
2622
2120
|
switch (errorCode) {
|
|
2623
2121
|
case "AccessDeniedException":
|
|
2624
2122
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2625
|
-
|
|
2626
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2627
|
-
name: errorCode,
|
|
2628
|
-
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
2630
|
-
break;
|
|
2123
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2631
2124
|
case "BaseException":
|
|
2632
2125
|
case "com.amazonaws.opensearch#BaseException":
|
|
2633
|
-
|
|
2634
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2635
|
-
name: errorCode,
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
};
|
|
2638
|
-
break;
|
|
2126
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2639
2127
|
case "InternalException":
|
|
2640
2128
|
case "com.amazonaws.opensearch#InternalException":
|
|
2641
|
-
|
|
2642
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2643
|
-
name: errorCode,
|
|
2644
|
-
$metadata: deserializeMetadata(output),
|
|
2645
|
-
};
|
|
2646
|
-
break;
|
|
2129
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2647
2130
|
case "ResourceNotFoundException":
|
|
2648
2131
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2649
|
-
|
|
2650
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2651
|
-
name: errorCode,
|
|
2652
|
-
$metadata: deserializeMetadata(output),
|
|
2653
|
-
};
|
|
2654
|
-
break;
|
|
2132
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2655
2133
|
case "ValidationException":
|
|
2656
2134
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2657
|
-
|
|
2658
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2659
|
-
name: errorCode,
|
|
2660
|
-
$metadata: deserializeMetadata(output),
|
|
2661
|
-
};
|
|
2662
|
-
break;
|
|
2135
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2663
2136
|
default:
|
|
2664
2137
|
const parsedBody = parsedOutput.body;
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
...parsedBody,
|
|
2668
|
-
name: `${errorCode}`,
|
|
2669
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2138
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2670
2140
|
$fault: "client",
|
|
2671
2141
|
$metadata: deserializeMetadata(output),
|
|
2672
|
-
};
|
|
2142
|
+
});
|
|
2143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2673
2144
|
}
|
|
2674
|
-
const message = response.message || response.Message || errorCode;
|
|
2675
|
-
response.message = message;
|
|
2676
|
-
delete response.Message;
|
|
2677
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2678
2145
|
};
|
|
2679
2146
|
const deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = async (output, context) => {
|
|
2680
2147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2706,51 +2173,25 @@ const deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = as
|
|
|
2706
2173
|
switch (errorCode) {
|
|
2707
2174
|
case "DisabledOperationException":
|
|
2708
2175
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2709
|
-
|
|
2710
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2711
|
-
name: errorCode,
|
|
2712
|
-
$metadata: deserializeMetadata(output),
|
|
2713
|
-
};
|
|
2714
|
-
break;
|
|
2176
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2715
2177
|
case "InternalException":
|
|
2716
2178
|
case "com.amazonaws.opensearch#InternalException":
|
|
2717
|
-
|
|
2718
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2719
|
-
name: errorCode,
|
|
2720
|
-
$metadata: deserializeMetadata(output),
|
|
2721
|
-
};
|
|
2722
|
-
break;
|
|
2179
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2723
2180
|
case "ResourceNotFoundException":
|
|
2724
2181
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2725
|
-
|
|
2726
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2727
|
-
name: errorCode,
|
|
2728
|
-
$metadata: deserializeMetadata(output),
|
|
2729
|
-
};
|
|
2730
|
-
break;
|
|
2182
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2731
2183
|
case "ValidationException":
|
|
2732
2184
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2733
|
-
|
|
2734
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2735
|
-
name: errorCode,
|
|
2736
|
-
$metadata: deserializeMetadata(output),
|
|
2737
|
-
};
|
|
2738
|
-
break;
|
|
2185
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2739
2186
|
default:
|
|
2740
2187
|
const parsedBody = parsedOutput.body;
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
...parsedBody,
|
|
2744
|
-
name: `${errorCode}`,
|
|
2745
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2188
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2189
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2746
2190
|
$fault: "client",
|
|
2747
2191
|
$metadata: deserializeMetadata(output),
|
|
2748
|
-
};
|
|
2192
|
+
});
|
|
2193
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2749
2194
|
}
|
|
2750
|
-
const message = response.message || response.Message || errorCode;
|
|
2751
|
-
response.message = message;
|
|
2752
|
-
delete response.Message;
|
|
2753
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2754
2195
|
};
|
|
2755
2196
|
const deserializeAws_restJson1DescribeReservedInstancesCommand = async (output, context) => {
|
|
2756
2197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2782,51 +2223,25 @@ const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (out
|
|
|
2782
2223
|
switch (errorCode) {
|
|
2783
2224
|
case "DisabledOperationException":
|
|
2784
2225
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2785
|
-
|
|
2786
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2787
|
-
name: errorCode,
|
|
2788
|
-
$metadata: deserializeMetadata(output),
|
|
2789
|
-
};
|
|
2790
|
-
break;
|
|
2226
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2791
2227
|
case "InternalException":
|
|
2792
2228
|
case "com.amazonaws.opensearch#InternalException":
|
|
2793
|
-
|
|
2794
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2795
|
-
name: errorCode,
|
|
2796
|
-
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
2798
|
-
break;
|
|
2229
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2799
2230
|
case "ResourceNotFoundException":
|
|
2800
2231
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2801
|
-
|
|
2802
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2803
|
-
name: errorCode,
|
|
2804
|
-
$metadata: deserializeMetadata(output),
|
|
2805
|
-
};
|
|
2806
|
-
break;
|
|
2232
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2807
2233
|
case "ValidationException":
|
|
2808
2234
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2809
|
-
|
|
2810
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2811
|
-
name: errorCode,
|
|
2812
|
-
$metadata: deserializeMetadata(output),
|
|
2813
|
-
};
|
|
2814
|
-
break;
|
|
2235
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2815
2236
|
default:
|
|
2816
2237
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
...parsedBody,
|
|
2820
|
-
name: `${errorCode}`,
|
|
2821
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2238
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2239
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2822
2240
|
$fault: "client",
|
|
2823
2241
|
$metadata: deserializeMetadata(output),
|
|
2824
|
-
};
|
|
2242
|
+
});
|
|
2243
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2825
2244
|
}
|
|
2826
|
-
const message = response.message || response.Message || errorCode;
|
|
2827
|
-
response.message = message;
|
|
2828
|
-
delete response.Message;
|
|
2829
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2830
2245
|
};
|
|
2831
2246
|
const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
|
|
2832
2247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2854,67 +2269,31 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
|
|
|
2854
2269
|
switch (errorCode) {
|
|
2855
2270
|
case "AccessDeniedException":
|
|
2856
2271
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2857
|
-
|
|
2858
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2859
|
-
name: errorCode,
|
|
2860
|
-
$metadata: deserializeMetadata(output),
|
|
2861
|
-
};
|
|
2862
|
-
break;
|
|
2272
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2863
2273
|
case "BaseException":
|
|
2864
2274
|
case "com.amazonaws.opensearch#BaseException":
|
|
2865
|
-
|
|
2866
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2867
|
-
name: errorCode,
|
|
2868
|
-
$metadata: deserializeMetadata(output),
|
|
2869
|
-
};
|
|
2870
|
-
break;
|
|
2275
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2871
2276
|
case "ConflictException":
|
|
2872
2277
|
case "com.amazonaws.opensearch#ConflictException":
|
|
2873
|
-
|
|
2874
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2875
|
-
name: errorCode,
|
|
2876
|
-
$metadata: deserializeMetadata(output),
|
|
2877
|
-
};
|
|
2878
|
-
break;
|
|
2278
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2879
2279
|
case "InternalException":
|
|
2880
2280
|
case "com.amazonaws.opensearch#InternalException":
|
|
2881
|
-
|
|
2882
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2883
|
-
name: errorCode,
|
|
2884
|
-
$metadata: deserializeMetadata(output),
|
|
2885
|
-
};
|
|
2886
|
-
break;
|
|
2281
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2887
2282
|
case "ResourceNotFoundException":
|
|
2888
2283
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2889
|
-
|
|
2890
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2891
|
-
name: errorCode,
|
|
2892
|
-
$metadata: deserializeMetadata(output),
|
|
2893
|
-
};
|
|
2894
|
-
break;
|
|
2284
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2895
2285
|
case "ValidationException":
|
|
2896
2286
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2897
|
-
|
|
2898
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2899
|
-
name: errorCode,
|
|
2900
|
-
$metadata: deserializeMetadata(output),
|
|
2901
|
-
};
|
|
2902
|
-
break;
|
|
2287
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2903
2288
|
default:
|
|
2904
2289
|
const parsedBody = parsedOutput.body;
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
...parsedBody,
|
|
2908
|
-
name: `${errorCode}`,
|
|
2909
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2290
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2291
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2910
2292
|
$fault: "client",
|
|
2911
2293
|
$metadata: deserializeMetadata(output),
|
|
2912
|
-
};
|
|
2294
|
+
});
|
|
2295
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2913
2296
|
}
|
|
2914
|
-
const message = response.message || response.Message || errorCode;
|
|
2915
|
-
response.message = message;
|
|
2916
|
-
delete response.Message;
|
|
2917
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2918
2297
|
};
|
|
2919
2298
|
const deserializeAws_restJson1GetCompatibleVersionsCommand = async (output, context) => {
|
|
2920
2299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2942,59 +2321,28 @@ const deserializeAws_restJson1GetCompatibleVersionsCommandError = async (output,
|
|
|
2942
2321
|
switch (errorCode) {
|
|
2943
2322
|
case "BaseException":
|
|
2944
2323
|
case "com.amazonaws.opensearch#BaseException":
|
|
2945
|
-
|
|
2946
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
2947
|
-
name: errorCode,
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
};
|
|
2950
|
-
break;
|
|
2324
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2951
2325
|
case "DisabledOperationException":
|
|
2952
2326
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2953
|
-
|
|
2954
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2955
|
-
name: errorCode,
|
|
2956
|
-
$metadata: deserializeMetadata(output),
|
|
2957
|
-
};
|
|
2958
|
-
break;
|
|
2327
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2959
2328
|
case "InternalException":
|
|
2960
2329
|
case "com.amazonaws.opensearch#InternalException":
|
|
2961
|
-
|
|
2962
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
2963
|
-
name: errorCode,
|
|
2964
|
-
$metadata: deserializeMetadata(output),
|
|
2965
|
-
};
|
|
2966
|
-
break;
|
|
2330
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2967
2331
|
case "ResourceNotFoundException":
|
|
2968
2332
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2969
|
-
|
|
2970
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2971
|
-
name: errorCode,
|
|
2972
|
-
$metadata: deserializeMetadata(output),
|
|
2973
|
-
};
|
|
2974
|
-
break;
|
|
2333
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2975
2334
|
case "ValidationException":
|
|
2976
2335
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2977
|
-
|
|
2978
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2979
|
-
name: errorCode,
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
};
|
|
2982
|
-
break;
|
|
2336
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2983
2337
|
default:
|
|
2984
2338
|
const parsedBody = parsedOutput.body;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
...parsedBody,
|
|
2988
|
-
name: `${errorCode}`,
|
|
2989
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2339
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2340
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2990
2341
|
$fault: "client",
|
|
2991
2342
|
$metadata: deserializeMetadata(output),
|
|
2992
|
-
};
|
|
2343
|
+
});
|
|
2344
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2993
2345
|
}
|
|
2994
|
-
const message = response.message || response.Message || errorCode;
|
|
2995
|
-
response.message = message;
|
|
2996
|
-
delete response.Message;
|
|
2997
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2998
2346
|
};
|
|
2999
2347
|
const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, context) => {
|
|
3000
2348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3030,59 +2378,28 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
|
|
|
3030
2378
|
switch (errorCode) {
|
|
3031
2379
|
case "AccessDeniedException":
|
|
3032
2380
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3033
|
-
|
|
3034
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3035
|
-
name: errorCode,
|
|
3036
|
-
$metadata: deserializeMetadata(output),
|
|
3037
|
-
};
|
|
3038
|
-
break;
|
|
2381
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3039
2382
|
case "BaseException":
|
|
3040
2383
|
case "com.amazonaws.opensearch#BaseException":
|
|
3041
|
-
|
|
3042
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3043
|
-
name: errorCode,
|
|
3044
|
-
$metadata: deserializeMetadata(output),
|
|
3045
|
-
};
|
|
3046
|
-
break;
|
|
2384
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3047
2385
|
case "InternalException":
|
|
3048
2386
|
case "com.amazonaws.opensearch#InternalException":
|
|
3049
|
-
|
|
3050
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3051
|
-
name: errorCode,
|
|
3052
|
-
$metadata: deserializeMetadata(output),
|
|
3053
|
-
};
|
|
3054
|
-
break;
|
|
2387
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3055
2388
|
case "ResourceNotFoundException":
|
|
3056
2389
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3057
|
-
|
|
3058
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3059
|
-
name: errorCode,
|
|
3060
|
-
$metadata: deserializeMetadata(output),
|
|
3061
|
-
};
|
|
3062
|
-
break;
|
|
2390
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3063
2391
|
case "ValidationException":
|
|
3064
2392
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3065
|
-
|
|
3066
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3067
|
-
name: errorCode,
|
|
3068
|
-
$metadata: deserializeMetadata(output),
|
|
3069
|
-
};
|
|
3070
|
-
break;
|
|
2393
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3071
2394
|
default:
|
|
3072
2395
|
const parsedBody = parsedOutput.body;
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
...parsedBody,
|
|
3076
|
-
name: `${errorCode}`,
|
|
3077
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2396
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2397
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3078
2398
|
$fault: "client",
|
|
3079
2399
|
$metadata: deserializeMetadata(output),
|
|
3080
|
-
};
|
|
2400
|
+
});
|
|
2401
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3081
2402
|
}
|
|
3082
|
-
const message = response.message || response.Message || errorCode;
|
|
3083
|
-
response.message = message;
|
|
3084
|
-
delete response.Message;
|
|
3085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3086
2403
|
};
|
|
3087
2404
|
const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context) => {
|
|
3088
2405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3114,59 +2431,28 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
|
|
|
3114
2431
|
switch (errorCode) {
|
|
3115
2432
|
case "BaseException":
|
|
3116
2433
|
case "com.amazonaws.opensearch#BaseException":
|
|
3117
|
-
|
|
3118
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3119
|
-
name: errorCode,
|
|
3120
|
-
$metadata: deserializeMetadata(output),
|
|
3121
|
-
};
|
|
3122
|
-
break;
|
|
2434
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3123
2435
|
case "DisabledOperationException":
|
|
3124
2436
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3125
|
-
|
|
3126
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
3127
|
-
name: errorCode,
|
|
3128
|
-
$metadata: deserializeMetadata(output),
|
|
3129
|
-
};
|
|
3130
|
-
break;
|
|
2437
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3131
2438
|
case "InternalException":
|
|
3132
2439
|
case "com.amazonaws.opensearch#InternalException":
|
|
3133
|
-
|
|
3134
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3135
|
-
name: errorCode,
|
|
3136
|
-
$metadata: deserializeMetadata(output),
|
|
3137
|
-
};
|
|
3138
|
-
break;
|
|
2440
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3139
2441
|
case "ResourceNotFoundException":
|
|
3140
2442
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3141
|
-
|
|
3142
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3143
|
-
name: errorCode,
|
|
3144
|
-
$metadata: deserializeMetadata(output),
|
|
3145
|
-
};
|
|
3146
|
-
break;
|
|
2443
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3147
2444
|
case "ValidationException":
|
|
3148
2445
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3149
|
-
|
|
3150
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3151
|
-
name: errorCode,
|
|
3152
|
-
$metadata: deserializeMetadata(output),
|
|
3153
|
-
};
|
|
3154
|
-
break;
|
|
2446
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3155
2447
|
default:
|
|
3156
2448
|
const parsedBody = parsedOutput.body;
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
...parsedBody,
|
|
3160
|
-
name: `${errorCode}`,
|
|
3161
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2449
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2450
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3162
2451
|
$fault: "client",
|
|
3163
2452
|
$metadata: deserializeMetadata(output),
|
|
3164
|
-
};
|
|
2453
|
+
});
|
|
2454
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3165
2455
|
}
|
|
3166
|
-
const message = response.message || response.Message || errorCode;
|
|
3167
|
-
response.message = message;
|
|
3168
|
-
delete response.Message;
|
|
3169
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3170
2456
|
};
|
|
3171
2457
|
const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
|
|
3172
2458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3202,59 +2488,28 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
|
|
|
3202
2488
|
switch (errorCode) {
|
|
3203
2489
|
case "BaseException":
|
|
3204
2490
|
case "com.amazonaws.opensearch#BaseException":
|
|
3205
|
-
|
|
3206
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3207
|
-
name: errorCode,
|
|
3208
|
-
$metadata: deserializeMetadata(output),
|
|
3209
|
-
};
|
|
3210
|
-
break;
|
|
2491
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3211
2492
|
case "DisabledOperationException":
|
|
3212
2493
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3213
|
-
|
|
3214
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
3215
|
-
name: errorCode,
|
|
3216
|
-
$metadata: deserializeMetadata(output),
|
|
3217
|
-
};
|
|
3218
|
-
break;
|
|
2494
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3219
2495
|
case "InternalException":
|
|
3220
2496
|
case "com.amazonaws.opensearch#InternalException":
|
|
3221
|
-
|
|
3222
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3223
|
-
name: errorCode,
|
|
3224
|
-
$metadata: deserializeMetadata(output),
|
|
3225
|
-
};
|
|
3226
|
-
break;
|
|
2497
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3227
2498
|
case "ResourceNotFoundException":
|
|
3228
2499
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3229
|
-
|
|
3230
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3231
|
-
name: errorCode,
|
|
3232
|
-
$metadata: deserializeMetadata(output),
|
|
3233
|
-
};
|
|
3234
|
-
break;
|
|
2500
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3235
2501
|
case "ValidationException":
|
|
3236
2502
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3237
|
-
|
|
3238
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3239
|
-
name: errorCode,
|
|
3240
|
-
$metadata: deserializeMetadata(output),
|
|
3241
|
-
};
|
|
3242
|
-
break;
|
|
2503
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3243
2504
|
default:
|
|
3244
2505
|
const parsedBody = parsedOutput.body;
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
...parsedBody,
|
|
3248
|
-
name: `${errorCode}`,
|
|
3249
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2506
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2507
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3250
2508
|
$fault: "client",
|
|
3251
2509
|
$metadata: deserializeMetadata(output),
|
|
3252
|
-
};
|
|
2510
|
+
});
|
|
2511
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3253
2512
|
}
|
|
3254
|
-
const message = response.message || response.Message || errorCode;
|
|
3255
|
-
response.message = message;
|
|
3256
|
-
delete response.Message;
|
|
3257
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3258
2513
|
};
|
|
3259
2514
|
const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
|
|
3260
2515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3282,35 +2537,19 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
3282
2537
|
switch (errorCode) {
|
|
3283
2538
|
case "BaseException":
|
|
3284
2539
|
case "com.amazonaws.opensearch#BaseException":
|
|
3285
|
-
|
|
3286
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3287
|
-
name: errorCode,
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
};
|
|
3290
|
-
break;
|
|
2540
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3291
2541
|
case "ValidationException":
|
|
3292
2542
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3293
|
-
|
|
3294
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3295
|
-
name: errorCode,
|
|
3296
|
-
$metadata: deserializeMetadata(output),
|
|
3297
|
-
};
|
|
3298
|
-
break;
|
|
2543
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3299
2544
|
default:
|
|
3300
2545
|
const parsedBody = parsedOutput.body;
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
...parsedBody,
|
|
3304
|
-
name: `${errorCode}`,
|
|
3305
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2546
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2547
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3306
2548
|
$fault: "client",
|
|
3307
2549
|
$metadata: deserializeMetadata(output),
|
|
3308
|
-
};
|
|
2550
|
+
});
|
|
2551
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3309
2552
|
}
|
|
3310
|
-
const message = response.message || response.Message || errorCode;
|
|
3311
|
-
response.message = message;
|
|
3312
|
-
delete response.Message;
|
|
3313
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3314
2553
|
};
|
|
3315
2554
|
const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
|
|
3316
2555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3342,59 +2581,28 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
|
|
|
3342
2581
|
switch (errorCode) {
|
|
3343
2582
|
case "AccessDeniedException":
|
|
3344
2583
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3345
|
-
|
|
3346
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3347
|
-
name: errorCode,
|
|
3348
|
-
$metadata: deserializeMetadata(output),
|
|
3349
|
-
};
|
|
3350
|
-
break;
|
|
2584
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3351
2585
|
case "BaseException":
|
|
3352
2586
|
case "com.amazonaws.opensearch#BaseException":
|
|
3353
|
-
|
|
3354
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3355
|
-
name: errorCode,
|
|
3356
|
-
$metadata: deserializeMetadata(output),
|
|
3357
|
-
};
|
|
3358
|
-
break;
|
|
2587
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3359
2588
|
case "InternalException":
|
|
3360
2589
|
case "com.amazonaws.opensearch#InternalException":
|
|
3361
|
-
|
|
3362
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3363
|
-
name: errorCode,
|
|
3364
|
-
$metadata: deserializeMetadata(output),
|
|
3365
|
-
};
|
|
3366
|
-
break;
|
|
2590
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3367
2591
|
case "ResourceNotFoundException":
|
|
3368
2592
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3369
|
-
|
|
3370
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3371
|
-
name: errorCode,
|
|
3372
|
-
$metadata: deserializeMetadata(output),
|
|
3373
|
-
};
|
|
3374
|
-
break;
|
|
2593
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3375
2594
|
case "ValidationException":
|
|
3376
2595
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3377
|
-
|
|
3378
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3379
|
-
name: errorCode,
|
|
3380
|
-
$metadata: deserializeMetadata(output),
|
|
3381
|
-
};
|
|
3382
|
-
break;
|
|
2596
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3383
2597
|
default:
|
|
3384
2598
|
const parsedBody = parsedOutput.body;
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
...parsedBody,
|
|
3388
|
-
name: `${errorCode}`,
|
|
3389
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2599
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2600
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3390
2601
|
$fault: "client",
|
|
3391
2602
|
$metadata: deserializeMetadata(output),
|
|
3392
|
-
};
|
|
2603
|
+
});
|
|
2604
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3393
2605
|
}
|
|
3394
|
-
const message = response.message || response.Message || errorCode;
|
|
3395
|
-
response.message = message;
|
|
3396
|
-
delete response.Message;
|
|
3397
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3398
2606
|
};
|
|
3399
2607
|
const deserializeAws_restJson1ListInstanceTypeDetailsCommand = async (output, context) => {
|
|
3400
2608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3426,51 +2634,25 @@ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (outpu
|
|
|
3426
2634
|
switch (errorCode) {
|
|
3427
2635
|
case "BaseException":
|
|
3428
2636
|
case "com.amazonaws.opensearch#BaseException":
|
|
3429
|
-
|
|
3430
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3431
|
-
name: errorCode,
|
|
3432
|
-
$metadata: deserializeMetadata(output),
|
|
3433
|
-
};
|
|
3434
|
-
break;
|
|
2637
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3435
2638
|
case "InternalException":
|
|
3436
2639
|
case "com.amazonaws.opensearch#InternalException":
|
|
3437
|
-
|
|
3438
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3439
|
-
name: errorCode,
|
|
3440
|
-
$metadata: deserializeMetadata(output),
|
|
3441
|
-
};
|
|
3442
|
-
break;
|
|
2640
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3443
2641
|
case "ResourceNotFoundException":
|
|
3444
2642
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3445
|
-
|
|
3446
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3447
|
-
name: errorCode,
|
|
3448
|
-
$metadata: deserializeMetadata(output),
|
|
3449
|
-
};
|
|
3450
|
-
break;
|
|
2643
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3451
2644
|
case "ValidationException":
|
|
3452
2645
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3453
|
-
|
|
3454
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3455
|
-
name: errorCode,
|
|
3456
|
-
$metadata: deserializeMetadata(output),
|
|
3457
|
-
};
|
|
3458
|
-
break;
|
|
2646
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3459
2647
|
default:
|
|
3460
2648
|
const parsedBody = parsedOutput.body;
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
...parsedBody,
|
|
3464
|
-
name: `${errorCode}`,
|
|
3465
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2649
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2650
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3466
2651
|
$fault: "client",
|
|
3467
2652
|
$metadata: deserializeMetadata(output),
|
|
3468
|
-
};
|
|
2653
|
+
});
|
|
2654
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3469
2655
|
}
|
|
3470
|
-
const message = response.message || response.Message || errorCode;
|
|
3471
|
-
response.message = message;
|
|
3472
|
-
delete response.Message;
|
|
3473
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3474
2656
|
};
|
|
3475
2657
|
const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
|
|
3476
2658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3502,59 +2684,28 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
|
|
|
3502
2684
|
switch (errorCode) {
|
|
3503
2685
|
case "AccessDeniedException":
|
|
3504
2686
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3505
|
-
|
|
3506
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3507
|
-
name: errorCode,
|
|
3508
|
-
$metadata: deserializeMetadata(output),
|
|
3509
|
-
};
|
|
3510
|
-
break;
|
|
2687
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3511
2688
|
case "BaseException":
|
|
3512
2689
|
case "com.amazonaws.opensearch#BaseException":
|
|
3513
|
-
|
|
3514
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3515
|
-
name: errorCode,
|
|
3516
|
-
$metadata: deserializeMetadata(output),
|
|
3517
|
-
};
|
|
3518
|
-
break;
|
|
2690
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3519
2691
|
case "InternalException":
|
|
3520
2692
|
case "com.amazonaws.opensearch#InternalException":
|
|
3521
|
-
|
|
3522
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3523
|
-
name: errorCode,
|
|
3524
|
-
$metadata: deserializeMetadata(output),
|
|
3525
|
-
};
|
|
3526
|
-
break;
|
|
2693
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3527
2694
|
case "ResourceNotFoundException":
|
|
3528
2695
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3529
|
-
|
|
3530
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3531
|
-
name: errorCode,
|
|
3532
|
-
$metadata: deserializeMetadata(output),
|
|
3533
|
-
};
|
|
3534
|
-
break;
|
|
2696
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3535
2697
|
case "ValidationException":
|
|
3536
2698
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3537
|
-
|
|
3538
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3539
|
-
name: errorCode,
|
|
3540
|
-
$metadata: deserializeMetadata(output),
|
|
3541
|
-
};
|
|
3542
|
-
break;
|
|
2699
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3543
2700
|
default:
|
|
3544
2701
|
const parsedBody = parsedOutput.body;
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
...parsedBody,
|
|
3548
|
-
name: `${errorCode}`,
|
|
3549
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2702
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2703
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3550
2704
|
$fault: "client",
|
|
3551
2705
|
$metadata: deserializeMetadata(output),
|
|
3552
|
-
};
|
|
2706
|
+
});
|
|
2707
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3553
2708
|
}
|
|
3554
|
-
const message = response.message || response.Message || errorCode;
|
|
3555
|
-
response.message = message;
|
|
3556
|
-
delete response.Message;
|
|
3557
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3558
2709
|
};
|
|
3559
2710
|
const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
3560
2711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3582,51 +2733,25 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
3582
2733
|
switch (errorCode) {
|
|
3583
2734
|
case "BaseException":
|
|
3584
2735
|
case "com.amazonaws.opensearch#BaseException":
|
|
3585
|
-
|
|
3586
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3587
|
-
name: errorCode,
|
|
3588
|
-
$metadata: deserializeMetadata(output),
|
|
3589
|
-
};
|
|
3590
|
-
break;
|
|
2736
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3591
2737
|
case "InternalException":
|
|
3592
2738
|
case "com.amazonaws.opensearch#InternalException":
|
|
3593
|
-
|
|
3594
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3595
|
-
name: errorCode,
|
|
3596
|
-
$metadata: deserializeMetadata(output),
|
|
3597
|
-
};
|
|
3598
|
-
break;
|
|
2739
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3599
2740
|
case "ResourceNotFoundException":
|
|
3600
2741
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3601
|
-
|
|
3602
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3603
|
-
name: errorCode,
|
|
3604
|
-
$metadata: deserializeMetadata(output),
|
|
3605
|
-
};
|
|
3606
|
-
break;
|
|
2742
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3607
2743
|
case "ValidationException":
|
|
3608
2744
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3609
|
-
|
|
3610
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3611
|
-
name: errorCode,
|
|
3612
|
-
$metadata: deserializeMetadata(output),
|
|
3613
|
-
};
|
|
3614
|
-
break;
|
|
2745
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3615
2746
|
default:
|
|
3616
2747
|
const parsedBody = parsedOutput.body;
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
...parsedBody,
|
|
3620
|
-
name: `${errorCode}`,
|
|
3621
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2748
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2749
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3622
2750
|
$fault: "client",
|
|
3623
2751
|
$metadata: deserializeMetadata(output),
|
|
3624
|
-
};
|
|
2752
|
+
});
|
|
2753
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3625
2754
|
}
|
|
3626
|
-
const message = response.message || response.Message || errorCode;
|
|
3627
|
-
response.message = message;
|
|
3628
|
-
delete response.Message;
|
|
3629
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3630
2755
|
};
|
|
3631
2756
|
const deserializeAws_restJson1ListVersionsCommand = async (output, context) => {
|
|
3632
2757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3658,51 +2783,25 @@ const deserializeAws_restJson1ListVersionsCommandError = async (output, context)
|
|
|
3658
2783
|
switch (errorCode) {
|
|
3659
2784
|
case "BaseException":
|
|
3660
2785
|
case "com.amazonaws.opensearch#BaseException":
|
|
3661
|
-
|
|
3662
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3663
|
-
name: errorCode,
|
|
3664
|
-
$metadata: deserializeMetadata(output),
|
|
3665
|
-
};
|
|
3666
|
-
break;
|
|
2786
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3667
2787
|
case "InternalException":
|
|
3668
2788
|
case "com.amazonaws.opensearch#InternalException":
|
|
3669
|
-
|
|
3670
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3671
|
-
name: errorCode,
|
|
3672
|
-
$metadata: deserializeMetadata(output),
|
|
3673
|
-
};
|
|
3674
|
-
break;
|
|
2789
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3675
2790
|
case "ResourceNotFoundException":
|
|
3676
2791
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3677
|
-
|
|
3678
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3679
|
-
name: errorCode,
|
|
3680
|
-
$metadata: deserializeMetadata(output),
|
|
3681
|
-
};
|
|
3682
|
-
break;
|
|
2792
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3683
2793
|
case "ValidationException":
|
|
3684
2794
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3685
|
-
|
|
3686
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3687
|
-
name: errorCode,
|
|
3688
|
-
$metadata: deserializeMetadata(output),
|
|
3689
|
-
};
|
|
3690
|
-
break;
|
|
2795
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3691
2796
|
default:
|
|
3692
2797
|
const parsedBody = parsedOutput.body;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
...parsedBody,
|
|
3696
|
-
name: `${errorCode}`,
|
|
3697
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2798
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2799
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3698
2800
|
$fault: "client",
|
|
3699
2801
|
$metadata: deserializeMetadata(output),
|
|
3700
|
-
};
|
|
2802
|
+
});
|
|
2803
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3701
2804
|
}
|
|
3702
|
-
const message = response.message || response.Message || errorCode;
|
|
3703
|
-
response.message = message;
|
|
3704
|
-
delete response.Message;
|
|
3705
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3706
2805
|
};
|
|
3707
2806
|
const deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = async (output, context) => {
|
|
3708
2807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3734,67 +2833,31 @@ const deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = asy
|
|
|
3734
2833
|
switch (errorCode) {
|
|
3735
2834
|
case "DisabledOperationException":
|
|
3736
2835
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3737
|
-
|
|
3738
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
3739
|
-
name: errorCode,
|
|
3740
|
-
$metadata: deserializeMetadata(output),
|
|
3741
|
-
};
|
|
3742
|
-
break;
|
|
2836
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3743
2837
|
case "InternalException":
|
|
3744
2838
|
case "com.amazonaws.opensearch#InternalException":
|
|
3745
|
-
|
|
3746
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3747
|
-
name: errorCode,
|
|
3748
|
-
$metadata: deserializeMetadata(output),
|
|
3749
|
-
};
|
|
3750
|
-
break;
|
|
2839
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3751
2840
|
case "LimitExceededException":
|
|
3752
2841
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
3753
|
-
|
|
3754
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3755
|
-
name: errorCode,
|
|
3756
|
-
$metadata: deserializeMetadata(output),
|
|
3757
|
-
};
|
|
3758
|
-
break;
|
|
2842
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3759
2843
|
case "ResourceAlreadyExistsException":
|
|
3760
2844
|
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
3761
|
-
|
|
3762
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3763
|
-
name: errorCode,
|
|
3764
|
-
$metadata: deserializeMetadata(output),
|
|
3765
|
-
};
|
|
3766
|
-
break;
|
|
2845
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3767
2846
|
case "ResourceNotFoundException":
|
|
3768
2847
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3769
|
-
|
|
3770
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3771
|
-
name: errorCode,
|
|
3772
|
-
$metadata: deserializeMetadata(output),
|
|
3773
|
-
};
|
|
3774
|
-
break;
|
|
2848
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3775
2849
|
case "ValidationException":
|
|
3776
2850
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3777
|
-
|
|
3778
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3779
|
-
name: errorCode,
|
|
3780
|
-
$metadata: deserializeMetadata(output),
|
|
3781
|
-
};
|
|
3782
|
-
break;
|
|
2851
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3783
2852
|
default:
|
|
3784
2853
|
const parsedBody = parsedOutput.body;
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
...parsedBody,
|
|
3788
|
-
name: `${errorCode}`,
|
|
3789
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2854
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2855
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3790
2856
|
$fault: "client",
|
|
3791
2857
|
$metadata: deserializeMetadata(output),
|
|
3792
|
-
};
|
|
2858
|
+
});
|
|
2859
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3793
2860
|
}
|
|
3794
|
-
const message = response.message || response.Message || errorCode;
|
|
3795
|
-
response.message = message;
|
|
3796
|
-
delete response.Message;
|
|
3797
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3798
2861
|
};
|
|
3799
2862
|
const deserializeAws_restJson1RejectInboundConnectionCommand = async (output, context) => {
|
|
3800
2863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3822,35 +2885,19 @@ const deserializeAws_restJson1RejectInboundConnectionCommandError = async (outpu
|
|
|
3822
2885
|
switch (errorCode) {
|
|
3823
2886
|
case "DisabledOperationException":
|
|
3824
2887
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3825
|
-
|
|
3826
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
3827
|
-
name: errorCode,
|
|
3828
|
-
$metadata: deserializeMetadata(output),
|
|
3829
|
-
};
|
|
3830
|
-
break;
|
|
2888
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3831
2889
|
case "ResourceNotFoundException":
|
|
3832
2890
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3833
|
-
|
|
3834
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3835
|
-
name: errorCode,
|
|
3836
|
-
$metadata: deserializeMetadata(output),
|
|
3837
|
-
};
|
|
3838
|
-
break;
|
|
2891
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3839
2892
|
default:
|
|
3840
2893
|
const parsedBody = parsedOutput.body;
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
...parsedBody,
|
|
3844
|
-
name: `${errorCode}`,
|
|
3845
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2894
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3846
2896
|
$fault: "client",
|
|
3847
2897
|
$metadata: deserializeMetadata(output),
|
|
3848
|
-
};
|
|
2898
|
+
});
|
|
2899
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3849
2900
|
}
|
|
3850
|
-
const message = response.message || response.Message || errorCode;
|
|
3851
|
-
response.message = message;
|
|
3852
|
-
delete response.Message;
|
|
3853
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3854
2901
|
};
|
|
3855
2902
|
const deserializeAws_restJson1RemoveTagsCommand = async (output, context) => {
|
|
3856
2903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3874,43 +2921,22 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
|
|
|
3874
2921
|
switch (errorCode) {
|
|
3875
2922
|
case "BaseException":
|
|
3876
2923
|
case "com.amazonaws.opensearch#BaseException":
|
|
3877
|
-
|
|
3878
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3879
|
-
name: errorCode,
|
|
3880
|
-
$metadata: deserializeMetadata(output),
|
|
3881
|
-
};
|
|
3882
|
-
break;
|
|
2924
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3883
2925
|
case "InternalException":
|
|
3884
2926
|
case "com.amazonaws.opensearch#InternalException":
|
|
3885
|
-
|
|
3886
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3887
|
-
name: errorCode,
|
|
3888
|
-
$metadata: deserializeMetadata(output),
|
|
3889
|
-
};
|
|
3890
|
-
break;
|
|
2927
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3891
2928
|
case "ValidationException":
|
|
3892
2929
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3893
|
-
|
|
3894
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3895
|
-
name: errorCode,
|
|
3896
|
-
$metadata: deserializeMetadata(output),
|
|
3897
|
-
};
|
|
3898
|
-
break;
|
|
2930
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3899
2931
|
default:
|
|
3900
2932
|
const parsedBody = parsedOutput.body;
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
...parsedBody,
|
|
3904
|
-
name: `${errorCode}`,
|
|
3905
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2933
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3906
2935
|
$fault: "client",
|
|
3907
2936
|
$metadata: deserializeMetadata(output),
|
|
3908
|
-
};
|
|
2937
|
+
});
|
|
2938
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3909
2939
|
}
|
|
3910
|
-
const message = response.message || response.Message || errorCode;
|
|
3911
|
-
response.message = message;
|
|
3912
|
-
delete response.Message;
|
|
3913
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3914
2940
|
};
|
|
3915
2941
|
const deserializeAws_restJson1StartServiceSoftwareUpdateCommand = async (output, context) => {
|
|
3916
2942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3938,51 +2964,25 @@ const deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = async (ou
|
|
|
3938
2964
|
switch (errorCode) {
|
|
3939
2965
|
case "BaseException":
|
|
3940
2966
|
case "com.amazonaws.opensearch#BaseException":
|
|
3941
|
-
|
|
3942
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
3943
|
-
name: errorCode,
|
|
3944
|
-
$metadata: deserializeMetadata(output),
|
|
3945
|
-
};
|
|
3946
|
-
break;
|
|
2967
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3947
2968
|
case "InternalException":
|
|
3948
2969
|
case "com.amazonaws.opensearch#InternalException":
|
|
3949
|
-
|
|
3950
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
3951
|
-
name: errorCode,
|
|
3952
|
-
$metadata: deserializeMetadata(output),
|
|
3953
|
-
};
|
|
3954
|
-
break;
|
|
2970
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3955
2971
|
case "ResourceNotFoundException":
|
|
3956
2972
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3957
|
-
|
|
3958
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3959
|
-
name: errorCode,
|
|
3960
|
-
$metadata: deserializeMetadata(output),
|
|
3961
|
-
};
|
|
3962
|
-
break;
|
|
2973
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3963
2974
|
case "ValidationException":
|
|
3964
2975
|
case "com.amazonaws.opensearch#ValidationException":
|
|
3965
|
-
|
|
3966
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3967
|
-
name: errorCode,
|
|
3968
|
-
$metadata: deserializeMetadata(output),
|
|
3969
|
-
};
|
|
3970
|
-
break;
|
|
2976
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3971
2977
|
default:
|
|
3972
2978
|
const parsedBody = parsedOutput.body;
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
...parsedBody,
|
|
3976
|
-
name: `${errorCode}`,
|
|
3977
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2979
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2980
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3978
2981
|
$fault: "client",
|
|
3979
2982
|
$metadata: deserializeMetadata(output),
|
|
3980
|
-
};
|
|
2983
|
+
});
|
|
2984
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3981
2985
|
}
|
|
3982
|
-
const message = response.message || response.Message || errorCode;
|
|
3983
|
-
response.message = message;
|
|
3984
|
-
delete response.Message;
|
|
3985
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3986
2986
|
};
|
|
3987
2987
|
const deserializeAws_restJson1UpdateDomainConfigCommand = async (output, context) => {
|
|
3988
2988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4014,67 +3014,31 @@ const deserializeAws_restJson1UpdateDomainConfigCommandError = async (output, co
|
|
|
4014
3014
|
switch (errorCode) {
|
|
4015
3015
|
case "BaseException":
|
|
4016
3016
|
case "com.amazonaws.opensearch#BaseException":
|
|
4017
|
-
|
|
4018
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
4019
|
-
name: errorCode,
|
|
4020
|
-
$metadata: deserializeMetadata(output),
|
|
4021
|
-
};
|
|
4022
|
-
break;
|
|
3017
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
4023
3018
|
case "InternalException":
|
|
4024
3019
|
case "com.amazonaws.opensearch#InternalException":
|
|
4025
|
-
|
|
4026
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
4027
|
-
name: errorCode,
|
|
4028
|
-
$metadata: deserializeMetadata(output),
|
|
4029
|
-
};
|
|
4030
|
-
break;
|
|
3020
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
4031
3021
|
case "InvalidTypeException":
|
|
4032
3022
|
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
4033
|
-
|
|
4034
|
-
...(await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context)),
|
|
4035
|
-
name: errorCode,
|
|
4036
|
-
$metadata: deserializeMetadata(output),
|
|
4037
|
-
};
|
|
4038
|
-
break;
|
|
3023
|
+
throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
|
|
4039
3024
|
case "LimitExceededException":
|
|
4040
3025
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4041
|
-
|
|
4042
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4043
|
-
name: errorCode,
|
|
4044
|
-
$metadata: deserializeMetadata(output),
|
|
4045
|
-
};
|
|
4046
|
-
break;
|
|
3026
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
4047
3027
|
case "ResourceNotFoundException":
|
|
4048
3028
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4049
|
-
|
|
4050
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4051
|
-
name: errorCode,
|
|
4052
|
-
$metadata: deserializeMetadata(output),
|
|
4053
|
-
};
|
|
4054
|
-
break;
|
|
3029
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4055
3030
|
case "ValidationException":
|
|
4056
3031
|
case "com.amazonaws.opensearch#ValidationException":
|
|
4057
|
-
|
|
4058
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4059
|
-
name: errorCode,
|
|
4060
|
-
$metadata: deserializeMetadata(output),
|
|
4061
|
-
};
|
|
4062
|
-
break;
|
|
3032
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4063
3033
|
default:
|
|
4064
3034
|
const parsedBody = parsedOutput.body;
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
...parsedBody,
|
|
4068
|
-
name: `${errorCode}`,
|
|
4069
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3035
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3036
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4070
3037
|
$fault: "client",
|
|
4071
3038
|
$metadata: deserializeMetadata(output),
|
|
4072
|
-
};
|
|
3039
|
+
});
|
|
3040
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4073
3041
|
}
|
|
4074
|
-
const message = response.message || response.Message || errorCode;
|
|
4075
|
-
response.message = message;
|
|
4076
|
-
delete response.Message;
|
|
4077
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4078
3042
|
};
|
|
4079
3043
|
const deserializeAws_restJson1UpdatePackageCommand = async (output, context) => {
|
|
4080
3044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4102,67 +3066,31 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
|
|
|
4102
3066
|
switch (errorCode) {
|
|
4103
3067
|
case "AccessDeniedException":
|
|
4104
3068
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
4105
|
-
|
|
4106
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4107
|
-
name: errorCode,
|
|
4108
|
-
$metadata: deserializeMetadata(output),
|
|
4109
|
-
};
|
|
4110
|
-
break;
|
|
3069
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4111
3070
|
case "BaseException":
|
|
4112
3071
|
case "com.amazonaws.opensearch#BaseException":
|
|
4113
|
-
|
|
4114
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
4115
|
-
name: errorCode,
|
|
4116
|
-
$metadata: deserializeMetadata(output),
|
|
4117
|
-
};
|
|
4118
|
-
break;
|
|
3072
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
4119
3073
|
case "InternalException":
|
|
4120
3074
|
case "com.amazonaws.opensearch#InternalException":
|
|
4121
|
-
|
|
4122
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
4123
|
-
name: errorCode,
|
|
4124
|
-
$metadata: deserializeMetadata(output),
|
|
4125
|
-
};
|
|
4126
|
-
break;
|
|
3075
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
4127
3076
|
case "LimitExceededException":
|
|
4128
3077
|
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4129
|
-
|
|
4130
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4131
|
-
name: errorCode,
|
|
4132
|
-
$metadata: deserializeMetadata(output),
|
|
4133
|
-
};
|
|
4134
|
-
break;
|
|
3078
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
4135
3079
|
case "ResourceNotFoundException":
|
|
4136
3080
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4137
|
-
|
|
4138
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4139
|
-
name: errorCode,
|
|
4140
|
-
$metadata: deserializeMetadata(output),
|
|
4141
|
-
};
|
|
4142
|
-
break;
|
|
3081
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4143
3082
|
case "ValidationException":
|
|
4144
3083
|
case "com.amazonaws.opensearch#ValidationException":
|
|
4145
|
-
|
|
4146
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4147
|
-
name: errorCode,
|
|
4148
|
-
$metadata: deserializeMetadata(output),
|
|
4149
|
-
};
|
|
4150
|
-
break;
|
|
3084
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4151
3085
|
default:
|
|
4152
3086
|
const parsedBody = parsedOutput.body;
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
...parsedBody,
|
|
4156
|
-
name: `${errorCode}`,
|
|
4157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3087
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3088
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4158
3089
|
$fault: "client",
|
|
4159
3090
|
$metadata: deserializeMetadata(output),
|
|
4160
|
-
};
|
|
3091
|
+
});
|
|
3092
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4161
3093
|
}
|
|
4162
|
-
const message = response.message || response.Message || errorCode;
|
|
4163
|
-
response.message = message;
|
|
4164
|
-
delete response.Message;
|
|
4165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4166
3094
|
};
|
|
4167
3095
|
const deserializeAws_restJson1UpgradeDomainCommand = async (output, context) => {
|
|
4168
3096
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4210,210 +3138,163 @@ const deserializeAws_restJson1UpgradeDomainCommandError = async (output, context
|
|
|
4210
3138
|
switch (errorCode) {
|
|
4211
3139
|
case "BaseException":
|
|
4212
3140
|
case "com.amazonaws.opensearch#BaseException":
|
|
4213
|
-
|
|
4214
|
-
...(await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context)),
|
|
4215
|
-
name: errorCode,
|
|
4216
|
-
$metadata: deserializeMetadata(output),
|
|
4217
|
-
};
|
|
4218
|
-
break;
|
|
3141
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
4219
3142
|
case "DisabledOperationException":
|
|
4220
3143
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4221
|
-
|
|
4222
|
-
...(await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context)),
|
|
4223
|
-
name: errorCode,
|
|
4224
|
-
$metadata: deserializeMetadata(output),
|
|
4225
|
-
};
|
|
4226
|
-
break;
|
|
3144
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
4227
3145
|
case "InternalException":
|
|
4228
3146
|
case "com.amazonaws.opensearch#InternalException":
|
|
4229
|
-
|
|
4230
|
-
...(await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context)),
|
|
4231
|
-
name: errorCode,
|
|
4232
|
-
$metadata: deserializeMetadata(output),
|
|
4233
|
-
};
|
|
4234
|
-
break;
|
|
3147
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
4235
3148
|
case "ResourceAlreadyExistsException":
|
|
4236
3149
|
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
4237
|
-
|
|
4238
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
4239
|
-
name: errorCode,
|
|
4240
|
-
$metadata: deserializeMetadata(output),
|
|
4241
|
-
};
|
|
4242
|
-
break;
|
|
3150
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
4243
3151
|
case "ResourceNotFoundException":
|
|
4244
3152
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4245
|
-
|
|
4246
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4247
|
-
name: errorCode,
|
|
4248
|
-
$metadata: deserializeMetadata(output),
|
|
4249
|
-
};
|
|
4250
|
-
break;
|
|
3153
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4251
3154
|
case "ValidationException":
|
|
4252
3155
|
case "com.amazonaws.opensearch#ValidationException":
|
|
4253
|
-
|
|
4254
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4255
|
-
name: errorCode,
|
|
4256
|
-
$metadata: deserializeMetadata(output),
|
|
4257
|
-
};
|
|
4258
|
-
break;
|
|
3156
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4259
3157
|
default:
|
|
4260
3158
|
const parsedBody = parsedOutput.body;
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
...parsedBody,
|
|
4264
|
-
name: `${errorCode}`,
|
|
4265
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3159
|
+
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3160
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4266
3161
|
$fault: "client",
|
|
4267
3162
|
$metadata: deserializeMetadata(output),
|
|
4268
|
-
};
|
|
3163
|
+
});
|
|
3164
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4269
3165
|
}
|
|
4270
|
-
const message = response.message || response.Message || errorCode;
|
|
4271
|
-
response.message = message;
|
|
4272
|
-
delete response.Message;
|
|
4273
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4274
3166
|
};
|
|
4275
3167
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4276
|
-
const contents = {
|
|
4277
|
-
name: "AccessDeniedException",
|
|
4278
|
-
$fault: "client",
|
|
4279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4280
|
-
message: undefined,
|
|
4281
|
-
};
|
|
3168
|
+
const contents = {};
|
|
4282
3169
|
const data = parsedOutput.body;
|
|
4283
3170
|
if (data.message !== undefined && data.message !== null) {
|
|
4284
3171
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4285
3172
|
}
|
|
4286
|
-
|
|
3173
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3174
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3175
|
+
...contents,
|
|
3176
|
+
});
|
|
3177
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4287
3178
|
};
|
|
4288
3179
|
const deserializeAws_restJson1BaseExceptionResponse = async (parsedOutput, context) => {
|
|
4289
|
-
const contents = {
|
|
4290
|
-
name: "BaseException",
|
|
4291
|
-
$fault: "client",
|
|
4292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4293
|
-
message: undefined,
|
|
4294
|
-
};
|
|
3180
|
+
const contents = {};
|
|
4295
3181
|
const data = parsedOutput.body;
|
|
4296
3182
|
if (data.message !== undefined && data.message !== null) {
|
|
4297
3183
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4298
3184
|
}
|
|
4299
|
-
|
|
3185
|
+
const exception = new models_0_1.BaseException({
|
|
3186
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3187
|
+
...contents,
|
|
3188
|
+
});
|
|
3189
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4300
3190
|
};
|
|
4301
3191
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4302
|
-
const contents = {
|
|
4303
|
-
name: "ConflictException",
|
|
4304
|
-
$fault: "client",
|
|
4305
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4306
|
-
message: undefined,
|
|
4307
|
-
};
|
|
3192
|
+
const contents = {};
|
|
4308
3193
|
const data = parsedOutput.body;
|
|
4309
3194
|
if (data.message !== undefined && data.message !== null) {
|
|
4310
3195
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4311
3196
|
}
|
|
4312
|
-
|
|
3197
|
+
const exception = new models_0_1.ConflictException({
|
|
3198
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3199
|
+
...contents,
|
|
3200
|
+
});
|
|
3201
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4313
3202
|
};
|
|
4314
3203
|
const deserializeAws_restJson1DisabledOperationExceptionResponse = async (parsedOutput, context) => {
|
|
4315
|
-
const contents = {
|
|
4316
|
-
name: "DisabledOperationException",
|
|
4317
|
-
$fault: "client",
|
|
4318
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4319
|
-
message: undefined,
|
|
4320
|
-
};
|
|
3204
|
+
const contents = {};
|
|
4321
3205
|
const data = parsedOutput.body;
|
|
4322
3206
|
if (data.message !== undefined && data.message !== null) {
|
|
4323
3207
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4324
3208
|
}
|
|
4325
|
-
|
|
3209
|
+
const exception = new models_0_1.DisabledOperationException({
|
|
3210
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3211
|
+
...contents,
|
|
3212
|
+
});
|
|
3213
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4326
3214
|
};
|
|
4327
3215
|
const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, context) => {
|
|
4328
|
-
const contents = {
|
|
4329
|
-
name: "InternalException",
|
|
4330
|
-
$fault: "server",
|
|
4331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4332
|
-
message: undefined,
|
|
4333
|
-
};
|
|
3216
|
+
const contents = {};
|
|
4334
3217
|
const data = parsedOutput.body;
|
|
4335
3218
|
if (data.message !== undefined && data.message !== null) {
|
|
4336
3219
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4337
3220
|
}
|
|
4338
|
-
|
|
3221
|
+
const exception = new models_0_1.InternalException({
|
|
3222
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3223
|
+
...contents,
|
|
3224
|
+
});
|
|
3225
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4339
3226
|
};
|
|
4340
3227
|
const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
|
|
4341
|
-
const contents = {
|
|
4342
|
-
name: "InvalidPaginationTokenException",
|
|
4343
|
-
$fault: "client",
|
|
4344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4345
|
-
message: undefined,
|
|
4346
|
-
};
|
|
3228
|
+
const contents = {};
|
|
4347
3229
|
const data = parsedOutput.body;
|
|
4348
3230
|
if (data.message !== undefined && data.message !== null) {
|
|
4349
3231
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4350
3232
|
}
|
|
4351
|
-
|
|
3233
|
+
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
3234
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3235
|
+
...contents,
|
|
3236
|
+
});
|
|
3237
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4352
3238
|
};
|
|
4353
3239
|
const deserializeAws_restJson1InvalidTypeExceptionResponse = async (parsedOutput, context) => {
|
|
4354
|
-
const contents = {
|
|
4355
|
-
name: "InvalidTypeException",
|
|
4356
|
-
$fault: "client",
|
|
4357
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4358
|
-
message: undefined,
|
|
4359
|
-
};
|
|
3240
|
+
const contents = {};
|
|
4360
3241
|
const data = parsedOutput.body;
|
|
4361
3242
|
if (data.message !== undefined && data.message !== null) {
|
|
4362
3243
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4363
3244
|
}
|
|
4364
|
-
|
|
3245
|
+
const exception = new models_0_1.InvalidTypeException({
|
|
3246
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3247
|
+
...contents,
|
|
3248
|
+
});
|
|
3249
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4365
3250
|
};
|
|
4366
3251
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4367
|
-
const contents = {
|
|
4368
|
-
name: "LimitExceededException",
|
|
4369
|
-
$fault: "client",
|
|
4370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4371
|
-
message: undefined,
|
|
4372
|
-
};
|
|
3252
|
+
const contents = {};
|
|
4373
3253
|
const data = parsedOutput.body;
|
|
4374
3254
|
if (data.message !== undefined && data.message !== null) {
|
|
4375
3255
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4376
3256
|
}
|
|
4377
|
-
|
|
3257
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3258
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3259
|
+
...contents,
|
|
3260
|
+
});
|
|
3261
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4378
3262
|
};
|
|
4379
3263
|
const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4380
|
-
const contents = {
|
|
4381
|
-
name: "ResourceAlreadyExistsException",
|
|
4382
|
-
$fault: "client",
|
|
4383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4384
|
-
message: undefined,
|
|
4385
|
-
};
|
|
3264
|
+
const contents = {};
|
|
4386
3265
|
const data = parsedOutput.body;
|
|
4387
3266
|
if (data.message !== undefined && data.message !== null) {
|
|
4388
3267
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4389
3268
|
}
|
|
4390
|
-
|
|
3269
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3270
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3271
|
+
...contents,
|
|
3272
|
+
});
|
|
3273
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4391
3274
|
};
|
|
4392
3275
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4393
|
-
const contents = {
|
|
4394
|
-
name: "ResourceNotFoundException",
|
|
4395
|
-
$fault: "client",
|
|
4396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4397
|
-
message: undefined,
|
|
4398
|
-
};
|
|
3276
|
+
const contents = {};
|
|
4399
3277
|
const data = parsedOutput.body;
|
|
4400
3278
|
if (data.message !== undefined && data.message !== null) {
|
|
4401
3279
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4402
3280
|
}
|
|
4403
|
-
|
|
3281
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3282
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3283
|
+
...contents,
|
|
3284
|
+
});
|
|
3285
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4404
3286
|
};
|
|
4405
3287
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4406
|
-
const contents = {
|
|
4407
|
-
name: "ValidationException",
|
|
4408
|
-
$fault: "client",
|
|
4409
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4410
|
-
message: undefined,
|
|
4411
|
-
};
|
|
3288
|
+
const contents = {};
|
|
4412
3289
|
const data = parsedOutput.body;
|
|
4413
3290
|
if (data.message !== undefined && data.message !== null) {
|
|
4414
3291
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4415
3292
|
}
|
|
4416
|
-
|
|
3293
|
+
const exception = new models_0_1.ValidationException({
|
|
3294
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3295
|
+
...contents,
|
|
3296
|
+
});
|
|
3297
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4417
3298
|
};
|
|
4418
3299
|
const serializeAws_restJson1AdvancedOptions = (input, context) => {
|
|
4419
3300
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -4760,7 +3641,7 @@ const deserializeAws_restJson1AdditionalLimit = (output, context) => {
|
|
|
4760
3641
|
};
|
|
4761
3642
|
};
|
|
4762
3643
|
const deserializeAws_restJson1AdditionalLimitList = (output, context) => {
|
|
4763
|
-
|
|
3644
|
+
const retVal = (output || [])
|
|
4764
3645
|
.filter((e) => e != null)
|
|
4765
3646
|
.map((entry) => {
|
|
4766
3647
|
if (entry === null) {
|
|
@@ -4768,6 +3649,7 @@ const deserializeAws_restJson1AdditionalLimitList = (output, context) => {
|
|
|
4768
3649
|
}
|
|
4769
3650
|
return deserializeAws_restJson1AdditionalLimit(entry, context);
|
|
4770
3651
|
});
|
|
3652
|
+
return retVal;
|
|
4771
3653
|
};
|
|
4772
3654
|
const deserializeAws_restJson1AdvancedOptions = (output, context) => {
|
|
4773
3655
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4829,7 +3711,7 @@ const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
|
|
|
4829
3711
|
};
|
|
4830
3712
|
};
|
|
4831
3713
|
const deserializeAws_restJson1AutoTuneList = (output, context) => {
|
|
4832
|
-
|
|
3714
|
+
const retVal = (output || [])
|
|
4833
3715
|
.filter((e) => e != null)
|
|
4834
3716
|
.map((entry) => {
|
|
4835
3717
|
if (entry === null) {
|
|
@@ -4837,6 +3719,7 @@ const deserializeAws_restJson1AutoTuneList = (output, context) => {
|
|
|
4837
3719
|
}
|
|
4838
3720
|
return deserializeAws_restJson1AutoTune(entry, context);
|
|
4839
3721
|
});
|
|
3722
|
+
return retVal;
|
|
4840
3723
|
};
|
|
4841
3724
|
const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
|
|
4842
3725
|
return {
|
|
@@ -4850,7 +3733,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) =>
|
|
|
4850
3733
|
};
|
|
4851
3734
|
};
|
|
4852
3735
|
const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context) => {
|
|
4853
|
-
|
|
3736
|
+
const retVal = (output || [])
|
|
4854
3737
|
.filter((e) => e != null)
|
|
4855
3738
|
.map((entry) => {
|
|
4856
3739
|
if (entry === null) {
|
|
@@ -4858,6 +3741,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context
|
|
|
4858
3741
|
}
|
|
4859
3742
|
return deserializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context);
|
|
4860
3743
|
});
|
|
3744
|
+
return retVal;
|
|
4861
3745
|
};
|
|
4862
3746
|
const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
|
|
4863
3747
|
return {
|
|
@@ -4922,7 +3806,7 @@ const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
|
|
|
4922
3806
|
};
|
|
4923
3807
|
};
|
|
4924
3808
|
const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
|
|
4925
|
-
|
|
3809
|
+
const retVal = (output || [])
|
|
4926
3810
|
.filter((e) => e != null)
|
|
4927
3811
|
.map((entry) => {
|
|
4928
3812
|
if (entry === null) {
|
|
@@ -4930,6 +3814,7 @@ const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
|
|
|
4930
3814
|
}
|
|
4931
3815
|
return deserializeAws_restJson1ChangeProgressStage(entry, context);
|
|
4932
3816
|
});
|
|
3817
|
+
return retVal;
|
|
4933
3818
|
};
|
|
4934
3819
|
const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) => {
|
|
4935
3820
|
return {
|
|
@@ -5003,7 +3888,7 @@ const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
|
|
|
5003
3888
|
};
|
|
5004
3889
|
};
|
|
5005
3890
|
const deserializeAws_restJson1CompatibleVersionsList = (output, context) => {
|
|
5006
|
-
|
|
3891
|
+
const retVal = (output || [])
|
|
5007
3892
|
.filter((e) => e != null)
|
|
5008
3893
|
.map((entry) => {
|
|
5009
3894
|
if (entry === null) {
|
|
@@ -5011,6 +3896,7 @@ const deserializeAws_restJson1CompatibleVersionsList = (output, context) => {
|
|
|
5011
3896
|
}
|
|
5012
3897
|
return deserializeAws_restJson1CompatibleVersionsMap(entry, context);
|
|
5013
3898
|
});
|
|
3899
|
+
return retVal;
|
|
5014
3900
|
};
|
|
5015
3901
|
const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
|
|
5016
3902
|
return {
|
|
@@ -5095,7 +3981,7 @@ const deserializeAws_restJson1DomainInfo = (output, context) => {
|
|
|
5095
3981
|
};
|
|
5096
3982
|
};
|
|
5097
3983
|
const deserializeAws_restJson1DomainInfoList = (output, context) => {
|
|
5098
|
-
|
|
3984
|
+
const retVal = (output || [])
|
|
5099
3985
|
.filter((e) => e != null)
|
|
5100
3986
|
.map((entry) => {
|
|
5101
3987
|
if (entry === null) {
|
|
@@ -5103,6 +3989,7 @@ const deserializeAws_restJson1DomainInfoList = (output, context) => {
|
|
|
5103
3989
|
}
|
|
5104
3990
|
return deserializeAws_restJson1DomainInfo(entry, context);
|
|
5105
3991
|
});
|
|
3992
|
+
return retVal;
|
|
5106
3993
|
};
|
|
5107
3994
|
const deserializeAws_restJson1DomainInformationContainer = (output, context) => {
|
|
5108
3995
|
return {
|
|
@@ -5129,7 +4016,7 @@ const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
|
|
|
5129
4016
|
};
|
|
5130
4017
|
};
|
|
5131
4018
|
const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
|
|
5132
|
-
|
|
4019
|
+
const retVal = (output || [])
|
|
5133
4020
|
.filter((e) => e != null)
|
|
5134
4021
|
.map((entry) => {
|
|
5135
4022
|
if (entry === null) {
|
|
@@ -5137,6 +4024,7 @@ const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
|
|
|
5137
4024
|
}
|
|
5138
4025
|
return deserializeAws_restJson1DomainPackageDetails(entry, context);
|
|
5139
4026
|
});
|
|
4027
|
+
return retVal;
|
|
5140
4028
|
};
|
|
5141
4029
|
const deserializeAws_restJson1DomainStatus = (output, context) => {
|
|
5142
4030
|
return {
|
|
@@ -5198,7 +4086,7 @@ const deserializeAws_restJson1DomainStatus = (output, context) => {
|
|
|
5198
4086
|
};
|
|
5199
4087
|
};
|
|
5200
4088
|
const deserializeAws_restJson1DomainStatusList = (output, context) => {
|
|
5201
|
-
|
|
4089
|
+
const retVal = (output || [])
|
|
5202
4090
|
.filter((e) => e != null)
|
|
5203
4091
|
.map((entry) => {
|
|
5204
4092
|
if (entry === null) {
|
|
@@ -5206,6 +4094,7 @@ const deserializeAws_restJson1DomainStatusList = (output, context) => {
|
|
|
5206
4094
|
}
|
|
5207
4095
|
return deserializeAws_restJson1DomainStatus(entry, context);
|
|
5208
4096
|
});
|
|
4097
|
+
return retVal;
|
|
5209
4098
|
};
|
|
5210
4099
|
const deserializeAws_restJson1DryRunResults = (output, context) => {
|
|
5211
4100
|
return {
|
|
@@ -5285,7 +4174,7 @@ const deserializeAws_restJson1InboundConnection = (output, context) => {
|
|
|
5285
4174
|
};
|
|
5286
4175
|
};
|
|
5287
4176
|
const deserializeAws_restJson1InboundConnections = (output, context) => {
|
|
5288
|
-
|
|
4177
|
+
const retVal = (output || [])
|
|
5289
4178
|
.filter((e) => e != null)
|
|
5290
4179
|
.map((entry) => {
|
|
5291
4180
|
if (entry === null) {
|
|
@@ -5293,6 +4182,7 @@ const deserializeAws_restJson1InboundConnections = (output, context) => {
|
|
|
5293
4182
|
}
|
|
5294
4183
|
return deserializeAws_restJson1InboundConnection(entry, context);
|
|
5295
4184
|
});
|
|
4185
|
+
return retVal;
|
|
5296
4186
|
};
|
|
5297
4187
|
const deserializeAws_restJson1InboundConnectionStatus = (output, context) => {
|
|
5298
4188
|
return {
|
|
@@ -5314,7 +4204,7 @@ const deserializeAws_restJson1InstanceLimits = (output, context) => {
|
|
|
5314
4204
|
};
|
|
5315
4205
|
};
|
|
5316
4206
|
const deserializeAws_restJson1InstanceRoleList = (output, context) => {
|
|
5317
|
-
|
|
4207
|
+
const retVal = (output || [])
|
|
5318
4208
|
.filter((e) => e != null)
|
|
5319
4209
|
.map((entry) => {
|
|
5320
4210
|
if (entry === null) {
|
|
@@ -5322,6 +4212,7 @@ const deserializeAws_restJson1InstanceRoleList = (output, context) => {
|
|
|
5322
4212
|
}
|
|
5323
4213
|
return smithy_client_1.expectString(entry);
|
|
5324
4214
|
});
|
|
4215
|
+
return retVal;
|
|
5325
4216
|
};
|
|
5326
4217
|
const deserializeAws_restJson1InstanceTypeDetails = (output, context) => {
|
|
5327
4218
|
return {
|
|
@@ -5337,7 +4228,7 @@ const deserializeAws_restJson1InstanceTypeDetails = (output, context) => {
|
|
|
5337
4228
|
};
|
|
5338
4229
|
};
|
|
5339
4230
|
const deserializeAws_restJson1InstanceTypeDetailsList = (output, context) => {
|
|
5340
|
-
|
|
4231
|
+
const retVal = (output || [])
|
|
5341
4232
|
.filter((e) => e != null)
|
|
5342
4233
|
.map((entry) => {
|
|
5343
4234
|
if (entry === null) {
|
|
@@ -5345,9 +4236,10 @@ const deserializeAws_restJson1InstanceTypeDetailsList = (output, context) => {
|
|
|
5345
4236
|
}
|
|
5346
4237
|
return deserializeAws_restJson1InstanceTypeDetails(entry, context);
|
|
5347
4238
|
});
|
|
4239
|
+
return retVal;
|
|
5348
4240
|
};
|
|
5349
4241
|
const deserializeAws_restJson1Issues = (output, context) => {
|
|
5350
|
-
|
|
4242
|
+
const retVal = (output || [])
|
|
5351
4243
|
.filter((e) => e != null)
|
|
5352
4244
|
.map((entry) => {
|
|
5353
4245
|
if (entry === null) {
|
|
@@ -5355,6 +4247,7 @@ const deserializeAws_restJson1Issues = (output, context) => {
|
|
|
5355
4247
|
}
|
|
5356
4248
|
return smithy_client_1.expectString(entry);
|
|
5357
4249
|
});
|
|
4250
|
+
return retVal;
|
|
5358
4251
|
};
|
|
5359
4252
|
const deserializeAws_restJson1Limits = (output, context) => {
|
|
5360
4253
|
return {
|
|
@@ -5381,7 +4274,7 @@ const deserializeAws_restJson1LimitsByRole = (output, context) => {
|
|
|
5381
4274
|
}, {});
|
|
5382
4275
|
};
|
|
5383
4276
|
const deserializeAws_restJson1LimitValueList = (output, context) => {
|
|
5384
|
-
|
|
4277
|
+
const retVal = (output || [])
|
|
5385
4278
|
.filter((e) => e != null)
|
|
5386
4279
|
.map((entry) => {
|
|
5387
4280
|
if (entry === null) {
|
|
@@ -5389,6 +4282,7 @@ const deserializeAws_restJson1LimitValueList = (output, context) => {
|
|
|
5389
4282
|
}
|
|
5390
4283
|
return smithy_client_1.expectString(entry);
|
|
5391
4284
|
});
|
|
4285
|
+
return retVal;
|
|
5392
4286
|
};
|
|
5393
4287
|
const deserializeAws_restJson1LogPublishingOption = (output, context) => {
|
|
5394
4288
|
return {
|
|
@@ -5461,7 +4355,7 @@ const deserializeAws_restJson1OutboundConnection = (output, context) => {
|
|
|
5461
4355
|
};
|
|
5462
4356
|
};
|
|
5463
4357
|
const deserializeAws_restJson1OutboundConnections = (output, context) => {
|
|
5464
|
-
|
|
4358
|
+
const retVal = (output || [])
|
|
5465
4359
|
.filter((e) => e != null)
|
|
5466
4360
|
.map((entry) => {
|
|
5467
4361
|
if (entry === null) {
|
|
@@ -5469,6 +4363,7 @@ const deserializeAws_restJson1OutboundConnections = (output, context) => {
|
|
|
5469
4363
|
}
|
|
5470
4364
|
return deserializeAws_restJson1OutboundConnection(entry, context);
|
|
5471
4365
|
});
|
|
4366
|
+
return retVal;
|
|
5472
4367
|
};
|
|
5473
4368
|
const deserializeAws_restJson1OutboundConnectionStatus = (output, context) => {
|
|
5474
4369
|
return {
|
|
@@ -5496,7 +4391,7 @@ const deserializeAws_restJson1PackageDetails = (output, context) => {
|
|
|
5496
4391
|
};
|
|
5497
4392
|
};
|
|
5498
4393
|
const deserializeAws_restJson1PackageDetailsList = (output, context) => {
|
|
5499
|
-
|
|
4394
|
+
const retVal = (output || [])
|
|
5500
4395
|
.filter((e) => e != null)
|
|
5501
4396
|
.map((entry) => {
|
|
5502
4397
|
if (entry === null) {
|
|
@@ -5504,6 +4399,7 @@ const deserializeAws_restJson1PackageDetailsList = (output, context) => {
|
|
|
5504
4399
|
}
|
|
5505
4400
|
return deserializeAws_restJson1PackageDetails(entry, context);
|
|
5506
4401
|
});
|
|
4402
|
+
return retVal;
|
|
5507
4403
|
};
|
|
5508
4404
|
const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
|
|
5509
4405
|
return {
|
|
@@ -5515,7 +4411,7 @@ const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
|
|
|
5515
4411
|
};
|
|
5516
4412
|
};
|
|
5517
4413
|
const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
|
|
5518
|
-
|
|
4414
|
+
const retVal = (output || [])
|
|
5519
4415
|
.filter((e) => e != null)
|
|
5520
4416
|
.map((entry) => {
|
|
5521
4417
|
if (entry === null) {
|
|
@@ -5523,6 +4419,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
|
|
|
5523
4419
|
}
|
|
5524
4420
|
return deserializeAws_restJson1PackageVersionHistory(entry, context);
|
|
5525
4421
|
});
|
|
4422
|
+
return retVal;
|
|
5526
4423
|
};
|
|
5527
4424
|
const deserializeAws_restJson1RecurringCharge = (output, context) => {
|
|
5528
4425
|
return {
|
|
@@ -5531,7 +4428,7 @@ const deserializeAws_restJson1RecurringCharge = (output, context) => {
|
|
|
5531
4428
|
};
|
|
5532
4429
|
};
|
|
5533
4430
|
const deserializeAws_restJson1RecurringChargeList = (output, context) => {
|
|
5534
|
-
|
|
4431
|
+
const retVal = (output || [])
|
|
5535
4432
|
.filter((e) => e != null)
|
|
5536
4433
|
.map((entry) => {
|
|
5537
4434
|
if (entry === null) {
|
|
@@ -5539,6 +4436,7 @@ const deserializeAws_restJson1RecurringChargeList = (output, context) => {
|
|
|
5539
4436
|
}
|
|
5540
4437
|
return deserializeAws_restJson1RecurringCharge(entry, context);
|
|
5541
4438
|
});
|
|
4439
|
+
return retVal;
|
|
5542
4440
|
};
|
|
5543
4441
|
const deserializeAws_restJson1ReservedInstance = (output, context) => {
|
|
5544
4442
|
return {
|
|
@@ -5563,7 +4461,7 @@ const deserializeAws_restJson1ReservedInstance = (output, context) => {
|
|
|
5563
4461
|
};
|
|
5564
4462
|
};
|
|
5565
4463
|
const deserializeAws_restJson1ReservedInstanceList = (output, context) => {
|
|
5566
|
-
|
|
4464
|
+
const retVal = (output || [])
|
|
5567
4465
|
.filter((e) => e != null)
|
|
5568
4466
|
.map((entry) => {
|
|
5569
4467
|
if (entry === null) {
|
|
@@ -5571,6 +4469,7 @@ const deserializeAws_restJson1ReservedInstanceList = (output, context) => {
|
|
|
5571
4469
|
}
|
|
5572
4470
|
return deserializeAws_restJson1ReservedInstance(entry, context);
|
|
5573
4471
|
});
|
|
4472
|
+
return retVal;
|
|
5574
4473
|
};
|
|
5575
4474
|
const deserializeAws_restJson1ReservedInstanceOffering = (output, context) => {
|
|
5576
4475
|
return {
|
|
@@ -5587,7 +4486,7 @@ const deserializeAws_restJson1ReservedInstanceOffering = (output, context) => {
|
|
|
5587
4486
|
};
|
|
5588
4487
|
};
|
|
5589
4488
|
const deserializeAws_restJson1ReservedInstanceOfferingList = (output, context) => {
|
|
5590
|
-
|
|
4489
|
+
const retVal = (output || [])
|
|
5591
4490
|
.filter((e) => e != null)
|
|
5592
4491
|
.map((entry) => {
|
|
5593
4492
|
if (entry === null) {
|
|
@@ -5595,6 +4494,7 @@ const deserializeAws_restJson1ReservedInstanceOfferingList = (output, context) =
|
|
|
5595
4494
|
}
|
|
5596
4495
|
return deserializeAws_restJson1ReservedInstanceOffering(entry, context);
|
|
5597
4496
|
});
|
|
4497
|
+
return retVal;
|
|
5598
4498
|
};
|
|
5599
4499
|
const deserializeAws_restJson1SAMLIdp = (output, context) => {
|
|
5600
4500
|
return {
|
|
@@ -5670,7 +4570,7 @@ const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
|
|
|
5670
4570
|
};
|
|
5671
4571
|
};
|
|
5672
4572
|
const deserializeAws_restJson1StorageTypeLimitList = (output, context) => {
|
|
5673
|
-
|
|
4573
|
+
const retVal = (output || [])
|
|
5674
4574
|
.filter((e) => e != null)
|
|
5675
4575
|
.map((entry) => {
|
|
5676
4576
|
if (entry === null) {
|
|
@@ -5678,9 +4578,10 @@ const deserializeAws_restJson1StorageTypeLimitList = (output, context) => {
|
|
|
5678
4578
|
}
|
|
5679
4579
|
return deserializeAws_restJson1StorageTypeLimit(entry, context);
|
|
5680
4580
|
});
|
|
4581
|
+
return retVal;
|
|
5681
4582
|
};
|
|
5682
4583
|
const deserializeAws_restJson1StorageTypeList = (output, context) => {
|
|
5683
|
-
|
|
4584
|
+
const retVal = (output || [])
|
|
5684
4585
|
.filter((e) => e != null)
|
|
5685
4586
|
.map((entry) => {
|
|
5686
4587
|
if (entry === null) {
|
|
@@ -5688,9 +4589,10 @@ const deserializeAws_restJson1StorageTypeList = (output, context) => {
|
|
|
5688
4589
|
}
|
|
5689
4590
|
return deserializeAws_restJson1StorageType(entry, context);
|
|
5690
4591
|
});
|
|
4592
|
+
return retVal;
|
|
5691
4593
|
};
|
|
5692
4594
|
const deserializeAws_restJson1StringList = (output, context) => {
|
|
5693
|
-
|
|
4595
|
+
const retVal = (output || [])
|
|
5694
4596
|
.filter((e) => e != null)
|
|
5695
4597
|
.map((entry) => {
|
|
5696
4598
|
if (entry === null) {
|
|
@@ -5698,6 +4600,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
5698
4600
|
}
|
|
5699
4601
|
return smithy_client_1.expectString(entry);
|
|
5700
4602
|
});
|
|
4603
|
+
return retVal;
|
|
5701
4604
|
};
|
|
5702
4605
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
5703
4606
|
return {
|
|
@@ -5706,7 +4609,7 @@ const deserializeAws_restJson1Tag = (output, context) => {
|
|
|
5706
4609
|
};
|
|
5707
4610
|
};
|
|
5708
4611
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
5709
|
-
|
|
4612
|
+
const retVal = (output || [])
|
|
5710
4613
|
.filter((e) => e != null)
|
|
5711
4614
|
.map((entry) => {
|
|
5712
4615
|
if (entry === null) {
|
|
@@ -5714,6 +4617,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
5714
4617
|
}
|
|
5715
4618
|
return deserializeAws_restJson1Tag(entry, context);
|
|
5716
4619
|
});
|
|
4620
|
+
return retVal;
|
|
5717
4621
|
};
|
|
5718
4622
|
const deserializeAws_restJson1UpgradeHistory = (output, context) => {
|
|
5719
4623
|
return {
|
|
@@ -5728,7 +4632,7 @@ const deserializeAws_restJson1UpgradeHistory = (output, context) => {
|
|
|
5728
4632
|
};
|
|
5729
4633
|
};
|
|
5730
4634
|
const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
|
|
5731
|
-
|
|
4635
|
+
const retVal = (output || [])
|
|
5732
4636
|
.filter((e) => e != null)
|
|
5733
4637
|
.map((entry) => {
|
|
5734
4638
|
if (entry === null) {
|
|
@@ -5736,6 +4640,7 @@ const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
|
|
|
5736
4640
|
}
|
|
5737
4641
|
return deserializeAws_restJson1UpgradeHistory(entry, context);
|
|
5738
4642
|
});
|
|
4643
|
+
return retVal;
|
|
5739
4644
|
};
|
|
5740
4645
|
const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
|
|
5741
4646
|
return {
|
|
@@ -5748,7 +4653,7 @@ const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
|
|
|
5748
4653
|
};
|
|
5749
4654
|
};
|
|
5750
4655
|
const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
|
|
5751
|
-
|
|
4656
|
+
const retVal = (output || [])
|
|
5752
4657
|
.filter((e) => e != null)
|
|
5753
4658
|
.map((entry) => {
|
|
5754
4659
|
if (entry === null) {
|
|
@@ -5756,9 +4661,10 @@ const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
|
|
|
5756
4661
|
}
|
|
5757
4662
|
return deserializeAws_restJson1UpgradeStepItem(entry, context);
|
|
5758
4663
|
});
|
|
4664
|
+
return retVal;
|
|
5759
4665
|
};
|
|
5760
4666
|
const deserializeAws_restJson1VersionList = (output, context) => {
|
|
5761
|
-
|
|
4667
|
+
const retVal = (output || [])
|
|
5762
4668
|
.filter((e) => e != null)
|
|
5763
4669
|
.map((entry) => {
|
|
5764
4670
|
if (entry === null) {
|
|
@@ -5766,6 +4672,7 @@ const deserializeAws_restJson1VersionList = (output, context) => {
|
|
|
5766
4672
|
}
|
|
5767
4673
|
return smithy_client_1.expectString(entry);
|
|
5768
4674
|
});
|
|
4675
|
+
return retVal;
|
|
5769
4676
|
};
|
|
5770
4677
|
const deserializeAws_restJson1VersionStatus = (output, context) => {
|
|
5771
4678
|
return {
|