@aws-sdk/client-service-catalog 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +151 -2184
- package/dist-es/protocols/Aws_json1_1.js +168 -2201
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1171,7 +1171,7 @@ var se_UpdateTagOptionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1171
1171
|
}, "se_UpdateTagOptionCommand");
|
|
1172
1172
|
var de_AcceptPortfolioShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
1173
|
if (output.statusCode >= 300) {
|
|
1174
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1175
1175
|
}
|
|
1176
1176
|
const data = await parseBody(output.body, context);
|
|
1177
1177
|
let contents = {};
|
|
@@ -1182,34 +1182,9 @@ var de_AcceptPortfolioShareCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1182
1182
|
};
|
|
1183
1183
|
return response;
|
|
1184
1184
|
}, "de_AcceptPortfolioShareCommand");
|
|
1185
|
-
var de_AcceptPortfolioShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context)
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "InvalidParametersException":
|
|
1193
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1194
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "LimitExceededException":
|
|
1196
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1197
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ResourceNotFoundException":
|
|
1199
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody,
|
|
1206
|
-
errorCode
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
}, "de_AcceptPortfolioShareCommandError");
|
|
1210
1185
|
var de_AssociateBudgetWithResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
1186
|
if (output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1213
1188
|
}
|
|
1214
1189
|
const data = await parseBody(output.body, context);
|
|
1215
1190
|
let contents = {};
|
|
@@ -1220,37 +1195,9 @@ var de_AssociateBudgetWithResourceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1220
1195
|
};
|
|
1221
1196
|
return response;
|
|
1222
1197
|
}, "de_AssociateBudgetWithResourceCommand");
|
|
1223
|
-
var de_AssociateBudgetWithResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
|
-
const parsedOutput = {
|
|
1225
|
-
...output,
|
|
1226
|
-
body: await parseErrorBody(output.body, context)
|
|
1227
|
-
};
|
|
1228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
-
switch (errorCode) {
|
|
1230
|
-
case "DuplicateResourceException":
|
|
1231
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1232
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "InvalidParametersException":
|
|
1234
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1235
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "LimitExceededException":
|
|
1237
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1238
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ResourceNotFoundException":
|
|
1240
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody,
|
|
1247
|
-
errorCode
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
}, "de_AssociateBudgetWithResourceCommandError");
|
|
1251
1198
|
var de_AssociatePrincipalWithPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
1199
|
if (output.statusCode >= 300) {
|
|
1253
|
-
return
|
|
1200
|
+
return de_CommandError(output, context);
|
|
1254
1201
|
}
|
|
1255
1202
|
const data = await parseBody(output.body, context);
|
|
1256
1203
|
let contents = {};
|
|
@@ -1261,34 +1208,9 @@ var de_AssociatePrincipalWithPortfolioCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1261
1208
|
};
|
|
1262
1209
|
return response;
|
|
1263
1210
|
}, "de_AssociatePrincipalWithPortfolioCommand");
|
|
1264
|
-
var de_AssociatePrincipalWithPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context)
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "InvalidParametersException":
|
|
1272
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1273
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "LimitExceededException":
|
|
1275
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1276
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
default:
|
|
1281
|
-
const parsedBody = parsedOutput.body;
|
|
1282
|
-
return throwDefaultError({
|
|
1283
|
-
output,
|
|
1284
|
-
parsedBody,
|
|
1285
|
-
errorCode
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
}, "de_AssociatePrincipalWithPortfolioCommandError");
|
|
1289
1211
|
var de_AssociateProductWithPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1290
1212
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
1213
|
+
return de_CommandError(output, context);
|
|
1292
1214
|
}
|
|
1293
1215
|
const data = await parseBody(output.body, context);
|
|
1294
1216
|
let contents = {};
|
|
@@ -1299,34 +1221,9 @@ var de_AssociateProductWithPortfolioCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1299
1221
|
};
|
|
1300
1222
|
return response;
|
|
1301
1223
|
}, "de_AssociateProductWithPortfolioCommand");
|
|
1302
|
-
var de_AssociateProductWithPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context)
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "InvalidParametersException":
|
|
1310
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1311
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "LimitExceededException":
|
|
1313
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1314
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ResourceNotFoundException":
|
|
1316
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
default:
|
|
1319
|
-
const parsedBody = parsedOutput.body;
|
|
1320
|
-
return throwDefaultError({
|
|
1321
|
-
output,
|
|
1322
|
-
parsedBody,
|
|
1323
|
-
errorCode
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
}, "de_AssociateProductWithPortfolioCommandError");
|
|
1327
1224
|
var de_AssociateServiceActionWithProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
1225
|
if (output.statusCode >= 300) {
|
|
1329
|
-
return
|
|
1226
|
+
return de_CommandError(output, context);
|
|
1330
1227
|
}
|
|
1331
1228
|
const data = await parseBody(output.body, context);
|
|
1332
1229
|
let contents = {};
|
|
@@ -1337,37 +1234,9 @@ var de_AssociateServiceActionWithProvisioningArtifactCommand = /* @__PURE__ */ _
|
|
|
1337
1234
|
};
|
|
1338
1235
|
return response;
|
|
1339
1236
|
}, "de_AssociateServiceActionWithProvisioningArtifactCommand");
|
|
1340
|
-
var de_AssociateServiceActionWithProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1341
|
-
const parsedOutput = {
|
|
1342
|
-
...output,
|
|
1343
|
-
body: await parseErrorBody(output.body, context)
|
|
1344
|
-
};
|
|
1345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
-
switch (errorCode) {
|
|
1347
|
-
case "DuplicateResourceException":
|
|
1348
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1349
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "InvalidParametersException":
|
|
1351
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1352
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "LimitExceededException":
|
|
1354
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1355
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ResourceNotFoundException":
|
|
1357
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
-
default:
|
|
1360
|
-
const parsedBody = parsedOutput.body;
|
|
1361
|
-
return throwDefaultError({
|
|
1362
|
-
output,
|
|
1363
|
-
parsedBody,
|
|
1364
|
-
errorCode
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
}, "de_AssociateServiceActionWithProvisioningArtifactCommandError");
|
|
1368
1237
|
var de_AssociateTagOptionWithResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
1238
|
if (output.statusCode >= 300) {
|
|
1370
|
-
return
|
|
1239
|
+
return de_CommandError(output, context);
|
|
1371
1240
|
}
|
|
1372
1241
|
const data = await parseBody(output.body, context);
|
|
1373
1242
|
let contents = {};
|
|
@@ -1378,43 +1247,9 @@ var de_AssociateTagOptionWithResourceCommand = /* @__PURE__ */ __name(async (out
|
|
|
1378
1247
|
};
|
|
1379
1248
|
return response;
|
|
1380
1249
|
}, "de_AssociateTagOptionWithResourceCommand");
|
|
1381
|
-
var de_AssociateTagOptionWithResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1382
|
-
const parsedOutput = {
|
|
1383
|
-
...output,
|
|
1384
|
-
body: await parseErrorBody(output.body, context)
|
|
1385
|
-
};
|
|
1386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
|
-
switch (errorCode) {
|
|
1388
|
-
case "DuplicateResourceException":
|
|
1389
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1390
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "InvalidParametersException":
|
|
1392
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1393
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "InvalidStateException":
|
|
1395
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1396
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "LimitExceededException":
|
|
1398
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1399
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "ResourceNotFoundException":
|
|
1401
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "TagOptionNotMigratedException":
|
|
1404
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1405
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1406
|
-
default:
|
|
1407
|
-
const parsedBody = parsedOutput.body;
|
|
1408
|
-
return throwDefaultError({
|
|
1409
|
-
output,
|
|
1410
|
-
parsedBody,
|
|
1411
|
-
errorCode
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
}, "de_AssociateTagOptionWithResourceCommandError");
|
|
1415
1250
|
var de_BatchAssociateServiceActionWithProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
1251
|
if (output.statusCode >= 300) {
|
|
1417
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1418
1253
|
}
|
|
1419
1254
|
const data = await parseBody(output.body, context);
|
|
1420
1255
|
let contents = {};
|
|
@@ -1425,28 +1260,9 @@ var de_BatchAssociateServiceActionWithProvisioningArtifactCommand = /* @__PURE__
|
|
|
1425
1260
|
};
|
|
1426
1261
|
return response;
|
|
1427
1262
|
}, "de_BatchAssociateServiceActionWithProvisioningArtifactCommand");
|
|
1428
|
-
var de_BatchAssociateServiceActionWithProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "InvalidParametersException":
|
|
1436
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1437
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1438
|
-
default:
|
|
1439
|
-
const parsedBody = parsedOutput.body;
|
|
1440
|
-
return throwDefaultError({
|
|
1441
|
-
output,
|
|
1442
|
-
parsedBody,
|
|
1443
|
-
errorCode
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
}, "de_BatchAssociateServiceActionWithProvisioningArtifactCommandError");
|
|
1447
1263
|
var de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1448
1264
|
if (output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
1265
|
+
return de_CommandError(output, context);
|
|
1450
1266
|
}
|
|
1451
1267
|
const data = await parseBody(output.body, context);
|
|
1452
1268
|
let contents = {};
|
|
@@ -1457,28 +1273,9 @@ var de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = /* @__PUR
|
|
|
1457
1273
|
};
|
|
1458
1274
|
return response;
|
|
1459
1275
|
}, "de_BatchDisassociateServiceActionFromProvisioningArtifactCommand");
|
|
1460
|
-
var de_BatchDisassociateServiceActionFromProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context)
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "InvalidParametersException":
|
|
1468
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1469
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
}, "de_BatchDisassociateServiceActionFromProvisioningArtifactCommandError");
|
|
1479
1276
|
var de_CopyProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
1277
|
if (output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
1482
1279
|
}
|
|
1483
1280
|
const data = await parseBody(output.body, context);
|
|
1484
1281
|
let contents = {};
|
|
@@ -1489,31 +1286,9 @@ var de_CopyProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1489
1286
|
};
|
|
1490
1287
|
return response;
|
|
1491
1288
|
}, "de_CopyProductCommand");
|
|
1492
|
-
var de_CopyProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1493
|
-
const parsedOutput = {
|
|
1494
|
-
...output,
|
|
1495
|
-
body: await parseErrorBody(output.body, context)
|
|
1496
|
-
};
|
|
1497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
|
-
switch (errorCode) {
|
|
1499
|
-
case "InvalidParametersException":
|
|
1500
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1501
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ResourceNotFoundException":
|
|
1503
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1504
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
}, "de_CopyProductCommandError");
|
|
1514
1289
|
var de_CreateConstraintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
1290
|
if (output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1291
|
+
return de_CommandError(output, context);
|
|
1517
1292
|
}
|
|
1518
1293
|
const data = await parseBody(output.body, context);
|
|
1519
1294
|
let contents = {};
|
|
@@ -1524,37 +1299,9 @@ var de_CreateConstraintCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1524
1299
|
};
|
|
1525
1300
|
return response;
|
|
1526
1301
|
}, "de_CreateConstraintCommand");
|
|
1527
|
-
var de_CreateConstraintCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context)
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "DuplicateResourceException":
|
|
1535
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1536
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "InvalidParametersException":
|
|
1538
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1539
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "LimitExceededException":
|
|
1541
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1542
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ResourceNotFoundException":
|
|
1544
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
}, "de_CreateConstraintCommandError");
|
|
1555
1302
|
var de_CreatePortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
1303
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1558
1305
|
}
|
|
1559
1306
|
const data = await parseBody(output.body, context);
|
|
1560
1307
|
let contents = {};
|
|
@@ -1565,34 +1312,9 @@ var de_CreatePortfolioCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1565
1312
|
};
|
|
1566
1313
|
return response;
|
|
1567
1314
|
}, "de_CreatePortfolioCommand");
|
|
1568
|
-
var de_CreatePortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1569
|
-
const parsedOutput = {
|
|
1570
|
-
...output,
|
|
1571
|
-
body: await parseErrorBody(output.body, context)
|
|
1572
|
-
};
|
|
1573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
-
switch (errorCode) {
|
|
1575
|
-
case "InvalidParametersException":
|
|
1576
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1577
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "LimitExceededException":
|
|
1579
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1580
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "TagOptionNotMigratedException":
|
|
1582
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1583
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
}, "de_CreatePortfolioCommandError");
|
|
1593
1315
|
var de_CreatePortfolioShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1594
1316
|
if (output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
1596
1318
|
}
|
|
1597
1319
|
const data = await parseBody(output.body, context);
|
|
1598
1320
|
let contents = {};
|
|
@@ -1603,40 +1325,9 @@ var de_CreatePortfolioShareCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1603
1325
|
};
|
|
1604
1326
|
return response;
|
|
1605
1327
|
}, "de_CreatePortfolioShareCommand");
|
|
1606
|
-
var de_CreatePortfolioShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
|
-
const parsedOutput = {
|
|
1608
|
-
...output,
|
|
1609
|
-
body: await parseErrorBody(output.body, context)
|
|
1610
|
-
};
|
|
1611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "InvalidParametersException":
|
|
1614
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1615
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "InvalidStateException":
|
|
1617
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1618
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "LimitExceededException":
|
|
1620
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1621
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "OperationNotSupportedException":
|
|
1623
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1624
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ResourceNotFoundException":
|
|
1626
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1628
|
-
default:
|
|
1629
|
-
const parsedBody = parsedOutput.body;
|
|
1630
|
-
return throwDefaultError({
|
|
1631
|
-
output,
|
|
1632
|
-
parsedBody,
|
|
1633
|
-
errorCode
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
}, "de_CreatePortfolioShareCommandError");
|
|
1637
1328
|
var de_CreateProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1638
1329
|
if (output.statusCode >= 300) {
|
|
1639
|
-
return
|
|
1330
|
+
return de_CommandError(output, context);
|
|
1640
1331
|
}
|
|
1641
1332
|
const data = await parseBody(output.body, context);
|
|
1642
1333
|
let contents = {};
|
|
@@ -1647,34 +1338,9 @@ var de_CreateProductCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1647
1338
|
};
|
|
1648
1339
|
return response;
|
|
1649
1340
|
}, "de_CreateProductCommand");
|
|
1650
|
-
var de_CreateProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1651
|
-
const parsedOutput = {
|
|
1652
|
-
...output,
|
|
1653
|
-
body: await parseErrorBody(output.body, context)
|
|
1654
|
-
};
|
|
1655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
-
switch (errorCode) {
|
|
1657
|
-
case "InvalidParametersException":
|
|
1658
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1659
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "LimitExceededException":
|
|
1661
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1662
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "TagOptionNotMigratedException":
|
|
1664
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1665
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1666
|
-
default:
|
|
1667
|
-
const parsedBody = parsedOutput.body;
|
|
1668
|
-
return throwDefaultError({
|
|
1669
|
-
output,
|
|
1670
|
-
parsedBody,
|
|
1671
|
-
errorCode
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
}, "de_CreateProductCommandError");
|
|
1675
1341
|
var de_CreateProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
1342
|
if (output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1343
|
+
return de_CommandError(output, context);
|
|
1678
1344
|
}
|
|
1679
1345
|
const data = await parseBody(output.body, context);
|
|
1680
1346
|
let contents = {};
|
|
@@ -1685,34 +1351,9 @@ var de_CreateProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1685
1351
|
};
|
|
1686
1352
|
return response;
|
|
1687
1353
|
}, "de_CreateProvisionedProductPlanCommand");
|
|
1688
|
-
var de_CreateProvisionedProductPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context)
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "InvalidParametersException":
|
|
1696
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1697
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "InvalidStateException":
|
|
1699
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1700
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ResourceNotFoundException":
|
|
1702
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1704
|
-
default:
|
|
1705
|
-
const parsedBody = parsedOutput.body;
|
|
1706
|
-
return throwDefaultError({
|
|
1707
|
-
output,
|
|
1708
|
-
parsedBody,
|
|
1709
|
-
errorCode
|
|
1710
|
-
});
|
|
1711
|
-
}
|
|
1712
|
-
}, "de_CreateProvisionedProductPlanCommandError");
|
|
1713
1354
|
var de_CreateProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1714
1355
|
if (output.statusCode >= 300) {
|
|
1715
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
1716
1357
|
}
|
|
1717
1358
|
const data = await parseBody(output.body, context);
|
|
1718
1359
|
let contents = {};
|
|
@@ -1723,34 +1364,9 @@ var de_CreateProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1723
1364
|
};
|
|
1724
1365
|
return response;
|
|
1725
1366
|
}, "de_CreateProvisioningArtifactCommand");
|
|
1726
|
-
var de_CreateProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1727
|
-
const parsedOutput = {
|
|
1728
|
-
...output,
|
|
1729
|
-
body: await parseErrorBody(output.body, context)
|
|
1730
|
-
};
|
|
1731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
|
-
switch (errorCode) {
|
|
1733
|
-
case "InvalidParametersException":
|
|
1734
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1735
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "LimitExceededException":
|
|
1737
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1738
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ResourceNotFoundException":
|
|
1740
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
-
default:
|
|
1743
|
-
const parsedBody = parsedOutput.body;
|
|
1744
|
-
return throwDefaultError({
|
|
1745
|
-
output,
|
|
1746
|
-
parsedBody,
|
|
1747
|
-
errorCode
|
|
1748
|
-
});
|
|
1749
|
-
}
|
|
1750
|
-
}, "de_CreateProvisioningArtifactCommandError");
|
|
1751
1367
|
var de_CreateServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1752
1368
|
if (output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
1369
|
+
return de_CommandError(output, context);
|
|
1754
1370
|
}
|
|
1755
1371
|
const data = await parseBody(output.body, context);
|
|
1756
1372
|
let contents = {};
|
|
@@ -1761,31 +1377,9 @@ var de_CreateServiceActionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1761
1377
|
};
|
|
1762
1378
|
return response;
|
|
1763
1379
|
}, "de_CreateServiceActionCommand");
|
|
1764
|
-
var de_CreateServiceActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1765
|
-
const parsedOutput = {
|
|
1766
|
-
...output,
|
|
1767
|
-
body: await parseErrorBody(output.body, context)
|
|
1768
|
-
};
|
|
1769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
-
switch (errorCode) {
|
|
1771
|
-
case "InvalidParametersException":
|
|
1772
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1773
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "LimitExceededException":
|
|
1775
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1776
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1777
|
-
default:
|
|
1778
|
-
const parsedBody = parsedOutput.body;
|
|
1779
|
-
return throwDefaultError({
|
|
1780
|
-
output,
|
|
1781
|
-
parsedBody,
|
|
1782
|
-
errorCode
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
}, "de_CreateServiceActionCommandError");
|
|
1786
1380
|
var de_CreateTagOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
1381
|
if (output.statusCode >= 300) {
|
|
1788
|
-
return
|
|
1382
|
+
return de_CommandError(output, context);
|
|
1789
1383
|
}
|
|
1790
1384
|
const data = await parseBody(output.body, context);
|
|
1791
1385
|
let contents = {};
|
|
@@ -1796,34 +1390,9 @@ var de_CreateTagOptionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1796
1390
|
};
|
|
1797
1391
|
return response;
|
|
1798
1392
|
}, "de_CreateTagOptionCommand");
|
|
1799
|
-
var de_CreateTagOptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
|
-
const parsedOutput = {
|
|
1801
|
-
...output,
|
|
1802
|
-
body: await parseErrorBody(output.body, context)
|
|
1803
|
-
};
|
|
1804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1805
|
-
switch (errorCode) {
|
|
1806
|
-
case "DuplicateResourceException":
|
|
1807
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1808
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "LimitExceededException":
|
|
1810
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1811
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "TagOptionNotMigratedException":
|
|
1813
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1814
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1815
|
-
default:
|
|
1816
|
-
const parsedBody = parsedOutput.body;
|
|
1817
|
-
return throwDefaultError({
|
|
1818
|
-
output,
|
|
1819
|
-
parsedBody,
|
|
1820
|
-
errorCode
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
}, "de_CreateTagOptionCommandError");
|
|
1824
1393
|
var de_DeleteConstraintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1825
1394
|
if (output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
1827
1396
|
}
|
|
1828
1397
|
const data = await parseBody(output.body, context);
|
|
1829
1398
|
let contents = {};
|
|
@@ -1834,31 +1403,9 @@ var de_DeleteConstraintCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1834
1403
|
};
|
|
1835
1404
|
return response;
|
|
1836
1405
|
}, "de_DeleteConstraintCommand");
|
|
1837
|
-
var de_DeleteConstraintCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1838
|
-
const parsedOutput = {
|
|
1839
|
-
...output,
|
|
1840
|
-
body: await parseErrorBody(output.body, context)
|
|
1841
|
-
};
|
|
1842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
-
switch (errorCode) {
|
|
1844
|
-
case "InvalidParametersException":
|
|
1845
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1846
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "ResourceNotFoundException":
|
|
1848
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1849
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1850
|
-
default:
|
|
1851
|
-
const parsedBody = parsedOutput.body;
|
|
1852
|
-
return throwDefaultError({
|
|
1853
|
-
output,
|
|
1854
|
-
parsedBody,
|
|
1855
|
-
errorCode
|
|
1856
|
-
});
|
|
1857
|
-
}
|
|
1858
|
-
}, "de_DeleteConstraintCommandError");
|
|
1859
1406
|
var de_DeletePortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
1407
|
if (output.statusCode >= 300) {
|
|
1861
|
-
return
|
|
1408
|
+
return de_CommandError(output, context);
|
|
1862
1409
|
}
|
|
1863
1410
|
const data = await parseBody(output.body, context);
|
|
1864
1411
|
let contents = {};
|
|
@@ -1869,37 +1416,9 @@ var de_DeletePortfolioCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1869
1416
|
};
|
|
1870
1417
|
return response;
|
|
1871
1418
|
}, "de_DeletePortfolioCommand");
|
|
1872
|
-
var de_DeletePortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context)
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "InvalidParametersException":
|
|
1880
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1881
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ResourceInUseException":
|
|
1883
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1884
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ResourceNotFoundException":
|
|
1886
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "TagOptionNotMigratedException":
|
|
1889
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1890
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1891
|
-
default:
|
|
1892
|
-
const parsedBody = parsedOutput.body;
|
|
1893
|
-
return throwDefaultError({
|
|
1894
|
-
output,
|
|
1895
|
-
parsedBody,
|
|
1896
|
-
errorCode
|
|
1897
|
-
});
|
|
1898
|
-
}
|
|
1899
|
-
}, "de_DeletePortfolioCommandError");
|
|
1900
1419
|
var de_DeletePortfolioShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1901
1420
|
if (output.statusCode >= 300) {
|
|
1902
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
1903
1422
|
}
|
|
1904
1423
|
const data = await parseBody(output.body, context);
|
|
1905
1424
|
let contents = {};
|
|
@@ -1910,37 +1429,9 @@ var de_DeletePortfolioShareCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1910
1429
|
};
|
|
1911
1430
|
return response;
|
|
1912
1431
|
}, "de_DeletePortfolioShareCommand");
|
|
1913
|
-
var de_DeletePortfolioShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1914
|
-
const parsedOutput = {
|
|
1915
|
-
...output,
|
|
1916
|
-
body: await parseErrorBody(output.body, context)
|
|
1917
|
-
};
|
|
1918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
-
switch (errorCode) {
|
|
1920
|
-
case "InvalidParametersException":
|
|
1921
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1922
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "InvalidStateException":
|
|
1924
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1925
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "OperationNotSupportedException":
|
|
1927
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1928
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ResourceNotFoundException":
|
|
1930
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1932
|
-
default:
|
|
1933
|
-
const parsedBody = parsedOutput.body;
|
|
1934
|
-
return throwDefaultError({
|
|
1935
|
-
output,
|
|
1936
|
-
parsedBody,
|
|
1937
|
-
errorCode
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
}, "de_DeletePortfolioShareCommandError");
|
|
1941
1432
|
var de_DeleteProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1942
1433
|
if (output.statusCode >= 300) {
|
|
1943
|
-
return
|
|
1434
|
+
return de_CommandError(output, context);
|
|
1944
1435
|
}
|
|
1945
1436
|
const data = await parseBody(output.body, context);
|
|
1946
1437
|
let contents = {};
|
|
@@ -1951,37 +1442,9 @@ var de_DeleteProductCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1951
1442
|
};
|
|
1952
1443
|
return response;
|
|
1953
1444
|
}, "de_DeleteProductCommand");
|
|
1954
|
-
var de_DeleteProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context)
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "InvalidParametersException":
|
|
1962
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1963
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ResourceInUseException":
|
|
1965
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1966
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ResourceNotFoundException":
|
|
1968
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "TagOptionNotMigratedException":
|
|
1971
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1972
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1973
|
-
default:
|
|
1974
|
-
const parsedBody = parsedOutput.body;
|
|
1975
|
-
return throwDefaultError({
|
|
1976
|
-
output,
|
|
1977
|
-
parsedBody,
|
|
1978
|
-
errorCode
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
}, "de_DeleteProductCommandError");
|
|
1982
1445
|
var de_DeleteProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1983
1446
|
if (output.statusCode >= 300) {
|
|
1984
|
-
return
|
|
1447
|
+
return de_CommandError(output, context);
|
|
1985
1448
|
}
|
|
1986
1449
|
const data = await parseBody(output.body, context);
|
|
1987
1450
|
let contents = {};
|
|
@@ -1992,31 +1455,9 @@ var de_DeleteProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1992
1455
|
};
|
|
1993
1456
|
return response;
|
|
1994
1457
|
}, "de_DeleteProvisionedProductPlanCommand");
|
|
1995
|
-
var de_DeleteProvisionedProductPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context)
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "InvalidParametersException":
|
|
2003
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2004
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ResourceNotFoundException":
|
|
2006
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2007
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
}, "de_DeleteProvisionedProductPlanCommandError");
|
|
2017
1458
|
var de_DeleteProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
1459
|
if (output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1460
|
+
return de_CommandError(output, context);
|
|
2020
1461
|
}
|
|
2021
1462
|
const data = await parseBody(output.body, context);
|
|
2022
1463
|
let contents = {};
|
|
@@ -2027,34 +1468,9 @@ var de_DeleteProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2027
1468
|
};
|
|
2028
1469
|
return response;
|
|
2029
1470
|
}, "de_DeleteProvisioningArtifactCommand");
|
|
2030
|
-
var de_DeleteProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
|
-
const parsedOutput = {
|
|
2032
|
-
...output,
|
|
2033
|
-
body: await parseErrorBody(output.body, context)
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "InvalidParametersException":
|
|
2038
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2039
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ResourceInUseException":
|
|
2041
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2042
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ResourceNotFoundException":
|
|
2044
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2045
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2046
|
-
default:
|
|
2047
|
-
const parsedBody = parsedOutput.body;
|
|
2048
|
-
return throwDefaultError({
|
|
2049
|
-
output,
|
|
2050
|
-
parsedBody,
|
|
2051
|
-
errorCode
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
}, "de_DeleteProvisioningArtifactCommandError");
|
|
2055
1471
|
var de_DeleteServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2056
1472
|
if (output.statusCode >= 300) {
|
|
2057
|
-
return
|
|
1473
|
+
return de_CommandError(output, context);
|
|
2058
1474
|
}
|
|
2059
1475
|
const data = await parseBody(output.body, context);
|
|
2060
1476
|
let contents = {};
|
|
@@ -2065,31 +1481,9 @@ var de_DeleteServiceActionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2065
1481
|
};
|
|
2066
1482
|
return response;
|
|
2067
1483
|
}, "de_DeleteServiceActionCommand");
|
|
2068
|
-
var de_DeleteServiceActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2069
|
-
const parsedOutput = {
|
|
2070
|
-
...output,
|
|
2071
|
-
body: await parseErrorBody(output.body, context)
|
|
2072
|
-
};
|
|
2073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
|
-
switch (errorCode) {
|
|
2075
|
-
case "ResourceInUseException":
|
|
2076
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2077
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceNotFoundException":
|
|
2079
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_DeleteServiceActionCommandError");
|
|
2090
1484
|
var de_DeleteTagOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1485
|
if (output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1486
|
+
return de_CommandError(output, context);
|
|
2093
1487
|
}
|
|
2094
1488
|
const data = await parseBody(output.body, context);
|
|
2095
1489
|
let contents = {};
|
|
@@ -2100,34 +1494,9 @@ var de_DeleteTagOptionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2100
1494
|
};
|
|
2101
1495
|
return response;
|
|
2102
1496
|
}, "de_DeleteTagOptionCommand");
|
|
2103
|
-
var de_DeleteTagOptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2104
|
-
const parsedOutput = {
|
|
2105
|
-
...output,
|
|
2106
|
-
body: await parseErrorBody(output.body, context)
|
|
2107
|
-
};
|
|
2108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
|
-
switch (errorCode) {
|
|
2110
|
-
case "ResourceInUseException":
|
|
2111
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2112
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ResourceNotFoundException":
|
|
2114
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "TagOptionNotMigratedException":
|
|
2117
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2118
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2119
|
-
default:
|
|
2120
|
-
const parsedBody = parsedOutput.body;
|
|
2121
|
-
return throwDefaultError({
|
|
2122
|
-
output,
|
|
2123
|
-
parsedBody,
|
|
2124
|
-
errorCode
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
}, "de_DeleteTagOptionCommandError");
|
|
2128
1497
|
var de_DescribeConstraintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
1498
|
if (output.statusCode >= 300) {
|
|
2130
|
-
return
|
|
1499
|
+
return de_CommandError(output, context);
|
|
2131
1500
|
}
|
|
2132
1501
|
const data = await parseBody(output.body, context);
|
|
2133
1502
|
let contents = {};
|
|
@@ -2138,28 +1507,9 @@ var de_DescribeConstraintCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2138
1507
|
};
|
|
2139
1508
|
return response;
|
|
2140
1509
|
}, "de_DescribeConstraintCommand");
|
|
2141
|
-
var de_DescribeConstraintCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
|
-
const parsedOutput = {
|
|
2143
|
-
...output,
|
|
2144
|
-
body: await parseErrorBody(output.body, context)
|
|
2145
|
-
};
|
|
2146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
-
switch (errorCode) {
|
|
2148
|
-
case "ResourceNotFoundException":
|
|
2149
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2150
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2151
|
-
default:
|
|
2152
|
-
const parsedBody = parsedOutput.body;
|
|
2153
|
-
return throwDefaultError({
|
|
2154
|
-
output,
|
|
2155
|
-
parsedBody,
|
|
2156
|
-
errorCode
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
}, "de_DescribeConstraintCommandError");
|
|
2160
1510
|
var de_DescribeCopyProductStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2161
1511
|
if (output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
1512
|
+
return de_CommandError(output, context);
|
|
2163
1513
|
}
|
|
2164
1514
|
const data = await parseBody(output.body, context);
|
|
2165
1515
|
let contents = {};
|
|
@@ -2170,28 +1520,9 @@ var de_DescribeCopyProductStatusCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2170
1520
|
};
|
|
2171
1521
|
return response;
|
|
2172
1522
|
}, "de_DescribeCopyProductStatusCommand");
|
|
2173
|
-
var de_DescribeCopyProductStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2174
|
-
const parsedOutput = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseErrorBody(output.body, context)
|
|
2177
|
-
};
|
|
2178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "ResourceNotFoundException":
|
|
2181
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2183
|
-
default:
|
|
2184
|
-
const parsedBody = parsedOutput.body;
|
|
2185
|
-
return throwDefaultError({
|
|
2186
|
-
output,
|
|
2187
|
-
parsedBody,
|
|
2188
|
-
errorCode
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
}, "de_DescribeCopyProductStatusCommandError");
|
|
2192
1523
|
var de_DescribePortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
1524
|
if (output.statusCode >= 300) {
|
|
2194
|
-
return
|
|
1525
|
+
return de_CommandError(output, context);
|
|
2195
1526
|
}
|
|
2196
1527
|
const data = await parseBody(output.body, context);
|
|
2197
1528
|
let contents = {};
|
|
@@ -2202,101 +1533,35 @@ var de_DescribePortfolioCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2202
1533
|
};
|
|
2203
1534
|
return response;
|
|
2204
1535
|
}, "de_DescribePortfolioCommand");
|
|
2205
|
-
var de_DescribePortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2206
|
-
const parsedOutput = {
|
|
2207
|
-
...output,
|
|
2208
|
-
body: await parseErrorBody(output.body, context)
|
|
2209
|
-
};
|
|
2210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
|
-
switch (errorCode) {
|
|
2212
|
-
case "ResourceNotFoundException":
|
|
2213
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2214
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2215
|
-
default:
|
|
2216
|
-
const parsedBody = parsedOutput.body;
|
|
2217
|
-
return throwDefaultError({
|
|
2218
|
-
output,
|
|
2219
|
-
parsedBody,
|
|
2220
|
-
errorCode
|
|
2221
|
-
});
|
|
2222
|
-
}
|
|
2223
|
-
}, "de_DescribePortfolioCommandError");
|
|
2224
1536
|
var de_DescribePortfolioSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2225
1537
|
if (output.statusCode >= 300) {
|
|
2226
|
-
return
|
|
1538
|
+
return de_CommandError(output, context);
|
|
2227
1539
|
}
|
|
2228
1540
|
const data = await parseBody(output.body, context);
|
|
2229
1541
|
let contents = {};
|
|
2230
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2231
|
-
const response = {
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
...contents
|
|
2234
|
-
};
|
|
2235
|
-
return response;
|
|
2236
|
-
}, "de_DescribePortfolioSharesCommand");
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
body: await parseErrorBody(output.body, context)
|
|
2241
|
-
};
|
|
2242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
-
switch (errorCode) {
|
|
2244
|
-
case "InvalidParametersException":
|
|
2245
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2246
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ResourceNotFoundException":
|
|
2248
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
}, "de_DescribePortfolioSharesCommandError");
|
|
2259
|
-
var de_DescribePortfolioShareStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2260
|
-
if (output.statusCode >= 300) {
|
|
2261
|
-
return de_DescribePortfolioShareStatusCommandError(output, context);
|
|
2262
|
-
}
|
|
2263
|
-
const data = await parseBody(output.body, context);
|
|
2264
|
-
let contents = {};
|
|
2265
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2266
|
-
const response = {
|
|
2267
|
-
$metadata: deserializeMetadata(output),
|
|
2268
|
-
...contents
|
|
2269
|
-
};
|
|
2270
|
-
return response;
|
|
2271
|
-
}, "de_DescribePortfolioShareStatusCommand");
|
|
2272
|
-
var de_DescribePortfolioShareStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2273
|
-
const parsedOutput = {
|
|
2274
|
-
...output,
|
|
2275
|
-
body: await parseErrorBody(output.body, context)
|
|
2276
|
-
};
|
|
2277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
-
switch (errorCode) {
|
|
2279
|
-
case "InvalidParametersException":
|
|
2280
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2281
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "OperationNotSupportedException":
|
|
2283
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2284
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ResourceNotFoundException":
|
|
2286
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2288
|
-
default:
|
|
2289
|
-
const parsedBody = parsedOutput.body;
|
|
2290
|
-
return throwDefaultError({
|
|
2291
|
-
output,
|
|
2292
|
-
parsedBody,
|
|
2293
|
-
errorCode
|
|
2294
|
-
});
|
|
1542
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1543
|
+
const response = {
|
|
1544
|
+
$metadata: deserializeMetadata(output),
|
|
1545
|
+
...contents
|
|
1546
|
+
};
|
|
1547
|
+
return response;
|
|
1548
|
+
}, "de_DescribePortfolioSharesCommand");
|
|
1549
|
+
var de_DescribePortfolioShareStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1550
|
+
if (output.statusCode >= 300) {
|
|
1551
|
+
return de_CommandError(output, context);
|
|
2295
1552
|
}
|
|
2296
|
-
|
|
1553
|
+
const data = await parseBody(output.body, context);
|
|
1554
|
+
let contents = {};
|
|
1555
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1556
|
+
const response = {
|
|
1557
|
+
$metadata: deserializeMetadata(output),
|
|
1558
|
+
...contents
|
|
1559
|
+
};
|
|
1560
|
+
return response;
|
|
1561
|
+
}, "de_DescribePortfolioShareStatusCommand");
|
|
2297
1562
|
var de_DescribeProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2298
1563
|
if (output.statusCode >= 300) {
|
|
2299
|
-
return
|
|
1564
|
+
return de_CommandError(output, context);
|
|
2300
1565
|
}
|
|
2301
1566
|
const data = await parseBody(output.body, context);
|
|
2302
1567
|
let contents = {};
|
|
@@ -2307,31 +1572,9 @@ var de_DescribeProductCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2307
1572
|
};
|
|
2308
1573
|
return response;
|
|
2309
1574
|
}, "de_DescribeProductCommand");
|
|
2310
|
-
var de_DescribeProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
|
-
const parsedOutput = {
|
|
2312
|
-
...output,
|
|
2313
|
-
body: await parseErrorBody(output.body, context)
|
|
2314
|
-
};
|
|
2315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "InvalidParametersException":
|
|
2318
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2319
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ResourceNotFoundException":
|
|
2321
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
}, "de_DescribeProductCommandError");
|
|
2332
1575
|
var de_DescribeProductAsAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2333
1576
|
if (output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
1577
|
+
return de_CommandError(output, context);
|
|
2335
1578
|
}
|
|
2336
1579
|
const data = await parseBody(output.body, context);
|
|
2337
1580
|
let contents = {};
|
|
@@ -2342,31 +1585,9 @@ var de_DescribeProductAsAdminCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2342
1585
|
};
|
|
2343
1586
|
return response;
|
|
2344
1587
|
}, "de_DescribeProductAsAdminCommand");
|
|
2345
|
-
var de_DescribeProductAsAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2346
|
-
const parsedOutput = {
|
|
2347
|
-
...output,
|
|
2348
|
-
body: await parseErrorBody(output.body, context)
|
|
2349
|
-
};
|
|
2350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
|
-
switch (errorCode) {
|
|
2352
|
-
case "InvalidParametersException":
|
|
2353
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2354
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ResourceNotFoundException":
|
|
2356
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2358
|
-
default:
|
|
2359
|
-
const parsedBody = parsedOutput.body;
|
|
2360
|
-
return throwDefaultError({
|
|
2361
|
-
output,
|
|
2362
|
-
parsedBody,
|
|
2363
|
-
errorCode
|
|
2364
|
-
});
|
|
2365
|
-
}
|
|
2366
|
-
}, "de_DescribeProductAsAdminCommandError");
|
|
2367
1588
|
var de_DescribeProductViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2368
1589
|
if (output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
2370
1591
|
}
|
|
2371
1592
|
const data = await parseBody(output.body, context);
|
|
2372
1593
|
let contents = {};
|
|
@@ -2377,31 +1598,9 @@ var de_DescribeProductViewCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2377
1598
|
};
|
|
2378
1599
|
return response;
|
|
2379
1600
|
}, "de_DescribeProductViewCommand");
|
|
2380
|
-
var de_DescribeProductViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2381
|
-
const parsedOutput = {
|
|
2382
|
-
...output,
|
|
2383
|
-
body: await parseErrorBody(output.body, context)
|
|
2384
|
-
};
|
|
2385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
-
switch (errorCode) {
|
|
2387
|
-
case "InvalidParametersException":
|
|
2388
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2389
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "ResourceNotFoundException":
|
|
2391
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2393
|
-
default:
|
|
2394
|
-
const parsedBody = parsedOutput.body;
|
|
2395
|
-
return throwDefaultError({
|
|
2396
|
-
output,
|
|
2397
|
-
parsedBody,
|
|
2398
|
-
errorCode
|
|
2399
|
-
});
|
|
2400
|
-
}
|
|
2401
|
-
}, "de_DescribeProductViewCommandError");
|
|
2402
1601
|
var de_DescribeProvisionedProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2403
1602
|
if (output.statusCode >= 300) {
|
|
2404
|
-
return
|
|
1603
|
+
return de_CommandError(output, context);
|
|
2405
1604
|
}
|
|
2406
1605
|
const data = await parseBody(output.body, context);
|
|
2407
1606
|
let contents = {};
|
|
@@ -2412,31 +1611,9 @@ var de_DescribeProvisionedProductCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2412
1611
|
};
|
|
2413
1612
|
return response;
|
|
2414
1613
|
}, "de_DescribeProvisionedProductCommand");
|
|
2415
|
-
var de_DescribeProvisionedProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2416
|
-
const parsedOutput = {
|
|
2417
|
-
...output,
|
|
2418
|
-
body: await parseErrorBody(output.body, context)
|
|
2419
|
-
};
|
|
2420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2421
|
-
switch (errorCode) {
|
|
2422
|
-
case "InvalidParametersException":
|
|
2423
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2424
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ResourceNotFoundException":
|
|
2426
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2428
|
-
default:
|
|
2429
|
-
const parsedBody = parsedOutput.body;
|
|
2430
|
-
return throwDefaultError({
|
|
2431
|
-
output,
|
|
2432
|
-
parsedBody,
|
|
2433
|
-
errorCode
|
|
2434
|
-
});
|
|
2435
|
-
}
|
|
2436
|
-
}, "de_DescribeProvisionedProductCommandError");
|
|
2437
1614
|
var de_DescribeProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2438
1615
|
if (output.statusCode >= 300) {
|
|
2439
|
-
return
|
|
1616
|
+
return de_CommandError(output, context);
|
|
2440
1617
|
}
|
|
2441
1618
|
const data = await parseBody(output.body, context);
|
|
2442
1619
|
let contents = {};
|
|
@@ -2447,31 +1624,9 @@ var de_DescribeProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (out
|
|
|
2447
1624
|
};
|
|
2448
1625
|
return response;
|
|
2449
1626
|
}, "de_DescribeProvisionedProductPlanCommand");
|
|
2450
|
-
var de_DescribeProvisionedProductPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2451
|
-
const parsedOutput = {
|
|
2452
|
-
...output,
|
|
2453
|
-
body: await parseErrorBody(output.body, context)
|
|
2454
|
-
};
|
|
2455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2456
|
-
switch (errorCode) {
|
|
2457
|
-
case "InvalidParametersException":
|
|
2458
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2459
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "ResourceNotFoundException":
|
|
2461
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2462
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2463
|
-
default:
|
|
2464
|
-
const parsedBody = parsedOutput.body;
|
|
2465
|
-
return throwDefaultError({
|
|
2466
|
-
output,
|
|
2467
|
-
parsedBody,
|
|
2468
|
-
errorCode
|
|
2469
|
-
});
|
|
2470
|
-
}
|
|
2471
|
-
}, "de_DescribeProvisionedProductPlanCommandError");
|
|
2472
1627
|
var de_DescribeProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
1628
|
if (output.statusCode >= 300) {
|
|
2474
|
-
return
|
|
1629
|
+
return de_CommandError(output, context);
|
|
2475
1630
|
}
|
|
2476
1631
|
const data = await parseBody(output.body, context);
|
|
2477
1632
|
let contents = {};
|
|
@@ -2482,31 +1637,9 @@ var de_DescribeProvisioningArtifactCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2482
1637
|
};
|
|
2483
1638
|
return response;
|
|
2484
1639
|
}, "de_DescribeProvisioningArtifactCommand");
|
|
2485
|
-
var de_DescribeProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2486
|
-
const parsedOutput = {
|
|
2487
|
-
...output,
|
|
2488
|
-
body: await parseErrorBody(output.body, context)
|
|
2489
|
-
};
|
|
2490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
|
-
switch (errorCode) {
|
|
2492
|
-
case "InvalidParametersException":
|
|
2493
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2494
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ResourceNotFoundException":
|
|
2496
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
}, "de_DescribeProvisioningArtifactCommandError");
|
|
2507
1640
|
var de_DescribeProvisioningParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2508
1641
|
if (output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
2510
1643
|
}
|
|
2511
1644
|
const data = await parseBody(output.body, context);
|
|
2512
1645
|
let contents = {};
|
|
@@ -2517,31 +1650,9 @@ var de_DescribeProvisioningParametersCommand = /* @__PURE__ */ __name(async (out
|
|
|
2517
1650
|
};
|
|
2518
1651
|
return response;
|
|
2519
1652
|
}, "de_DescribeProvisioningParametersCommand");
|
|
2520
|
-
var de_DescribeProvisioningParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context)
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "InvalidParametersException":
|
|
2528
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2529
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "ResourceNotFoundException":
|
|
2531
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2532
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2533
|
-
default:
|
|
2534
|
-
const parsedBody = parsedOutput.body;
|
|
2535
|
-
return throwDefaultError({
|
|
2536
|
-
output,
|
|
2537
|
-
parsedBody,
|
|
2538
|
-
errorCode
|
|
2539
|
-
});
|
|
2540
|
-
}
|
|
2541
|
-
}, "de_DescribeProvisioningParametersCommandError");
|
|
2542
1653
|
var de_DescribeRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2543
1654
|
if (output.statusCode >= 300) {
|
|
2544
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
2545
1656
|
}
|
|
2546
1657
|
const data = await parseBody(output.body, context);
|
|
2547
1658
|
let contents = {};
|
|
@@ -2552,28 +1663,9 @@ var de_DescribeRecordCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2552
1663
|
};
|
|
2553
1664
|
return response;
|
|
2554
1665
|
}, "de_DescribeRecordCommand");
|
|
2555
|
-
var de_DescribeRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context)
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "ResourceNotFoundException":
|
|
2563
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2564
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2565
|
-
default:
|
|
2566
|
-
const parsedBody = parsedOutput.body;
|
|
2567
|
-
return throwDefaultError({
|
|
2568
|
-
output,
|
|
2569
|
-
parsedBody,
|
|
2570
|
-
errorCode
|
|
2571
|
-
});
|
|
2572
|
-
}
|
|
2573
|
-
}, "de_DescribeRecordCommandError");
|
|
2574
1666
|
var de_DescribeServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2575
1667
|
if (output.statusCode >= 300) {
|
|
2576
|
-
return
|
|
1668
|
+
return de_CommandError(output, context);
|
|
2577
1669
|
}
|
|
2578
1670
|
const data = await parseBody(output.body, context);
|
|
2579
1671
|
let contents = {};
|
|
@@ -2584,28 +1676,9 @@ var de_DescribeServiceActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2584
1676
|
};
|
|
2585
1677
|
return response;
|
|
2586
1678
|
}, "de_DescribeServiceActionCommand");
|
|
2587
|
-
var de_DescribeServiceActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2588
|
-
const parsedOutput = {
|
|
2589
|
-
...output,
|
|
2590
|
-
body: await parseErrorBody(output.body, context)
|
|
2591
|
-
};
|
|
2592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
|
-
switch (errorCode) {
|
|
2594
|
-
case "ResourceNotFoundException":
|
|
2595
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
-
default:
|
|
2598
|
-
const parsedBody = parsedOutput.body;
|
|
2599
|
-
return throwDefaultError({
|
|
2600
|
-
output,
|
|
2601
|
-
parsedBody,
|
|
2602
|
-
errorCode
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
}, "de_DescribeServiceActionCommandError");
|
|
2606
1679
|
var de_DescribeServiceActionExecutionParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2607
1680
|
if (output.statusCode >= 300) {
|
|
2608
|
-
return
|
|
1681
|
+
return de_CommandError(output, context);
|
|
2609
1682
|
}
|
|
2610
1683
|
const data = await parseBody(output.body, context);
|
|
2611
1684
|
let contents = {};
|
|
@@ -2616,31 +1689,9 @@ var de_DescribeServiceActionExecutionParametersCommand = /* @__PURE__ */ __name(
|
|
|
2616
1689
|
};
|
|
2617
1690
|
return response;
|
|
2618
1691
|
}, "de_DescribeServiceActionExecutionParametersCommand");
|
|
2619
|
-
var de_DescribeServiceActionExecutionParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2620
|
-
const parsedOutput = {
|
|
2621
|
-
...output,
|
|
2622
|
-
body: await parseErrorBody(output.body, context)
|
|
2623
|
-
};
|
|
2624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
-
switch (errorCode) {
|
|
2626
|
-
case "InvalidParametersException":
|
|
2627
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2628
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ResourceNotFoundException":
|
|
2630
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2632
|
-
default:
|
|
2633
|
-
const parsedBody = parsedOutput.body;
|
|
2634
|
-
return throwDefaultError({
|
|
2635
|
-
output,
|
|
2636
|
-
parsedBody,
|
|
2637
|
-
errorCode
|
|
2638
|
-
});
|
|
2639
|
-
}
|
|
2640
|
-
}, "de_DescribeServiceActionExecutionParametersCommandError");
|
|
2641
1692
|
var de_DescribeTagOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2642
1693
|
if (output.statusCode >= 300) {
|
|
2643
|
-
return
|
|
1694
|
+
return de_CommandError(output, context);
|
|
2644
1695
|
}
|
|
2645
1696
|
const data = await parseBody(output.body, context);
|
|
2646
1697
|
let contents = {};
|
|
@@ -2651,31 +1702,9 @@ var de_DescribeTagOptionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2651
1702
|
};
|
|
2652
1703
|
return response;
|
|
2653
1704
|
}, "de_DescribeTagOptionCommand");
|
|
2654
|
-
var de_DescribeTagOptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2655
|
-
const parsedOutput = {
|
|
2656
|
-
...output,
|
|
2657
|
-
body: await parseErrorBody(output.body, context)
|
|
2658
|
-
};
|
|
2659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
|
-
switch (errorCode) {
|
|
2661
|
-
case "ResourceNotFoundException":
|
|
2662
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2663
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "TagOptionNotMigratedException":
|
|
2665
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2666
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2667
|
-
default:
|
|
2668
|
-
const parsedBody = parsedOutput.body;
|
|
2669
|
-
return throwDefaultError({
|
|
2670
|
-
output,
|
|
2671
|
-
parsedBody,
|
|
2672
|
-
errorCode
|
|
2673
|
-
});
|
|
2674
|
-
}
|
|
2675
|
-
}, "de_DescribeTagOptionCommandError");
|
|
2676
1705
|
var de_DisableAWSOrganizationsAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2677
1706
|
if (output.statusCode >= 300) {
|
|
2678
|
-
return
|
|
1707
|
+
return de_CommandError(output, context);
|
|
2679
1708
|
}
|
|
2680
1709
|
const data = await parseBody(output.body, context);
|
|
2681
1710
|
let contents = {};
|
|
@@ -2685,35 +1714,10 @@ var de_DisableAWSOrganizationsAccessCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2685
1714
|
...contents
|
|
2686
1715
|
};
|
|
2687
1716
|
return response;
|
|
2688
|
-
}, "de_DisableAWSOrganizationsAccessCommand");
|
|
2689
|
-
var de_DisableAWSOrganizationsAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
|
-
const parsedOutput = {
|
|
2691
|
-
...output,
|
|
2692
|
-
body: await parseErrorBody(output.body, context)
|
|
2693
|
-
};
|
|
2694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
|
-
switch (errorCode) {
|
|
2696
|
-
case "InvalidStateException":
|
|
2697
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2698
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "OperationNotSupportedException":
|
|
2700
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2701
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "ResourceNotFoundException":
|
|
2703
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2705
|
-
default:
|
|
2706
|
-
const parsedBody = parsedOutput.body;
|
|
2707
|
-
return throwDefaultError({
|
|
2708
|
-
output,
|
|
2709
|
-
parsedBody,
|
|
2710
|
-
errorCode
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
}, "de_DisableAWSOrganizationsAccessCommandError");
|
|
1717
|
+
}, "de_DisableAWSOrganizationsAccessCommand");
|
|
2714
1718
|
var de_DisassociateBudgetFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2715
1719
|
if (output.statusCode >= 300) {
|
|
2716
|
-
return
|
|
1720
|
+
return de_CommandError(output, context);
|
|
2717
1721
|
}
|
|
2718
1722
|
const data = await parseBody(output.body, context);
|
|
2719
1723
|
let contents = {};
|
|
@@ -2724,28 +1728,9 @@ var de_DisassociateBudgetFromResourceCommand = /* @__PURE__ */ __name(async (out
|
|
|
2724
1728
|
};
|
|
2725
1729
|
return response;
|
|
2726
1730
|
}, "de_DisassociateBudgetFromResourceCommand");
|
|
2727
|
-
var de_DisassociateBudgetFromResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context)
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "ResourceNotFoundException":
|
|
2735
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2737
|
-
default:
|
|
2738
|
-
const parsedBody = parsedOutput.body;
|
|
2739
|
-
return throwDefaultError({
|
|
2740
|
-
output,
|
|
2741
|
-
parsedBody,
|
|
2742
|
-
errorCode
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
}, "de_DisassociateBudgetFromResourceCommandError");
|
|
2746
1731
|
var de_DisassociatePrincipalFromPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2747
1732
|
if (output.statusCode >= 300) {
|
|
2748
|
-
return
|
|
1733
|
+
return de_CommandError(output, context);
|
|
2749
1734
|
}
|
|
2750
1735
|
const data = await parseBody(output.body, context);
|
|
2751
1736
|
let contents = {};
|
|
@@ -2756,31 +1741,9 @@ var de_DisassociatePrincipalFromPortfolioCommand = /* @__PURE__ */ __name(async
|
|
|
2756
1741
|
};
|
|
2757
1742
|
return response;
|
|
2758
1743
|
}, "de_DisassociatePrincipalFromPortfolioCommand");
|
|
2759
|
-
var de_DisassociatePrincipalFromPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2760
|
-
const parsedOutput = {
|
|
2761
|
-
...output,
|
|
2762
|
-
body: await parseErrorBody(output.body, context)
|
|
2763
|
-
};
|
|
2764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
|
-
switch (errorCode) {
|
|
2766
|
-
case "InvalidParametersException":
|
|
2767
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2768
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "ResourceNotFoundException":
|
|
2770
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2772
|
-
default:
|
|
2773
|
-
const parsedBody = parsedOutput.body;
|
|
2774
|
-
return throwDefaultError({
|
|
2775
|
-
output,
|
|
2776
|
-
parsedBody,
|
|
2777
|
-
errorCode
|
|
2778
|
-
});
|
|
2779
|
-
}
|
|
2780
|
-
}, "de_DisassociatePrincipalFromPortfolioCommandError");
|
|
2781
1744
|
var de_DisassociateProductFromPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2782
1745
|
if (output.statusCode >= 300) {
|
|
2783
|
-
return
|
|
1746
|
+
return de_CommandError(output, context);
|
|
2784
1747
|
}
|
|
2785
1748
|
const data = await parseBody(output.body, context);
|
|
2786
1749
|
let contents = {};
|
|
@@ -2791,34 +1754,9 @@ var de_DisassociateProductFromPortfolioCommand = /* @__PURE__ */ __name(async (o
|
|
|
2791
1754
|
};
|
|
2792
1755
|
return response;
|
|
2793
1756
|
}, "de_DisassociateProductFromPortfolioCommand");
|
|
2794
|
-
var de_DisassociateProductFromPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2795
|
-
const parsedOutput = {
|
|
2796
|
-
...output,
|
|
2797
|
-
body: await parseErrorBody(output.body, context)
|
|
2798
|
-
};
|
|
2799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
|
-
switch (errorCode) {
|
|
2801
|
-
case "InvalidParametersException":
|
|
2802
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2803
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ResourceInUseException":
|
|
2805
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2806
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ResourceNotFoundException":
|
|
2808
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
}, "de_DisassociateProductFromPortfolioCommandError");
|
|
2819
1757
|
var de_DisassociateServiceActionFromProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2820
1758
|
if (output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
1759
|
+
return de_CommandError(output, context);
|
|
2822
1760
|
}
|
|
2823
1761
|
const data = await parseBody(output.body, context);
|
|
2824
1762
|
let contents = {};
|
|
@@ -2829,28 +1767,9 @@ var de_DisassociateServiceActionFromProvisioningArtifactCommand = /* @__PURE__ *
|
|
|
2829
1767
|
};
|
|
2830
1768
|
return response;
|
|
2831
1769
|
}, "de_DisassociateServiceActionFromProvisioningArtifactCommand");
|
|
2832
|
-
var de_DisassociateServiceActionFromProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
|
-
const parsedOutput = {
|
|
2834
|
-
...output,
|
|
2835
|
-
body: await parseErrorBody(output.body, context)
|
|
2836
|
-
};
|
|
2837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
-
switch (errorCode) {
|
|
2839
|
-
case "ResourceNotFoundException":
|
|
2840
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2842
|
-
default:
|
|
2843
|
-
const parsedBody = parsedOutput.body;
|
|
2844
|
-
return throwDefaultError({
|
|
2845
|
-
output,
|
|
2846
|
-
parsedBody,
|
|
2847
|
-
errorCode
|
|
2848
|
-
});
|
|
2849
|
-
}
|
|
2850
|
-
}, "de_DisassociateServiceActionFromProvisioningArtifactCommandError");
|
|
2851
1770
|
var de_DisassociateTagOptionFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2852
1771
|
if (output.statusCode >= 300) {
|
|
2853
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
2854
1773
|
}
|
|
2855
1774
|
const data = await parseBody(output.body, context);
|
|
2856
1775
|
let contents = {};
|
|
@@ -2861,31 +1780,9 @@ var de_DisassociateTagOptionFromResourceCommand = /* @__PURE__ */ __name(async (
|
|
|
2861
1780
|
};
|
|
2862
1781
|
return response;
|
|
2863
1782
|
}, "de_DisassociateTagOptionFromResourceCommand");
|
|
2864
|
-
var de_DisassociateTagOptionFromResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2865
|
-
const parsedOutput = {
|
|
2866
|
-
...output,
|
|
2867
|
-
body: await parseErrorBody(output.body, context)
|
|
2868
|
-
};
|
|
2869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
|
-
switch (errorCode) {
|
|
2871
|
-
case "ResourceNotFoundException":
|
|
2872
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2873
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "TagOptionNotMigratedException":
|
|
2875
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2876
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2877
|
-
default:
|
|
2878
|
-
const parsedBody = parsedOutput.body;
|
|
2879
|
-
return throwDefaultError({
|
|
2880
|
-
output,
|
|
2881
|
-
parsedBody,
|
|
2882
|
-
errorCode
|
|
2883
|
-
});
|
|
2884
|
-
}
|
|
2885
|
-
}, "de_DisassociateTagOptionFromResourceCommandError");
|
|
2886
1783
|
var de_EnableAWSOrganizationsAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2887
1784
|
if (output.statusCode >= 300) {
|
|
2888
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
2889
1786
|
}
|
|
2890
1787
|
const data = await parseBody(output.body, context);
|
|
2891
1788
|
let contents = {};
|
|
@@ -2896,34 +1793,9 @@ var de_EnableAWSOrganizationsAccessCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2896
1793
|
};
|
|
2897
1794
|
return response;
|
|
2898
1795
|
}, "de_EnableAWSOrganizationsAccessCommand");
|
|
2899
|
-
var de_EnableAWSOrganizationsAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2900
|
-
const parsedOutput = {
|
|
2901
|
-
...output,
|
|
2902
|
-
body: await parseErrorBody(output.body, context)
|
|
2903
|
-
};
|
|
2904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
|
-
switch (errorCode) {
|
|
2906
|
-
case "InvalidStateException":
|
|
2907
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2908
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "OperationNotSupportedException":
|
|
2910
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2911
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ResourceNotFoundException":
|
|
2913
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2915
|
-
default:
|
|
2916
|
-
const parsedBody = parsedOutput.body;
|
|
2917
|
-
return throwDefaultError({
|
|
2918
|
-
output,
|
|
2919
|
-
parsedBody,
|
|
2920
|
-
errorCode
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
}, "de_EnableAWSOrganizationsAccessCommandError");
|
|
2924
1796
|
var de_ExecuteProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
1797
|
if (output.statusCode >= 300) {
|
|
2926
|
-
return
|
|
1798
|
+
return de_CommandError(output, context);
|
|
2927
1799
|
}
|
|
2928
1800
|
const data = await parseBody(output.body, context);
|
|
2929
1801
|
let contents = {};
|
|
@@ -2934,34 +1806,9 @@ var de_ExecuteProvisionedProductPlanCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2934
1806
|
};
|
|
2935
1807
|
return response;
|
|
2936
1808
|
}, "de_ExecuteProvisionedProductPlanCommand");
|
|
2937
|
-
var de_ExecuteProvisionedProductPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2938
|
-
const parsedOutput = {
|
|
2939
|
-
...output,
|
|
2940
|
-
body: await parseErrorBody(output.body, context)
|
|
2941
|
-
};
|
|
2942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
|
-
switch (errorCode) {
|
|
2944
|
-
case "InvalidParametersException":
|
|
2945
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2946
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "InvalidStateException":
|
|
2948
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2949
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "ResourceNotFoundException":
|
|
2951
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2953
|
-
default:
|
|
2954
|
-
const parsedBody = parsedOutput.body;
|
|
2955
|
-
return throwDefaultError({
|
|
2956
|
-
output,
|
|
2957
|
-
parsedBody,
|
|
2958
|
-
errorCode
|
|
2959
|
-
});
|
|
2960
|
-
}
|
|
2961
|
-
}, "de_ExecuteProvisionedProductPlanCommandError");
|
|
2962
1809
|
var de_ExecuteProvisionedProductServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2963
1810
|
if (output.statusCode >= 300) {
|
|
2964
|
-
return
|
|
1811
|
+
return de_CommandError(output, context);
|
|
2965
1812
|
}
|
|
2966
1813
|
const data = await parseBody(output.body, context);
|
|
2967
1814
|
let contents = {};
|
|
@@ -2972,34 +1819,9 @@ var de_ExecuteProvisionedProductServiceActionCommand = /* @__PURE__ */ __name(as
|
|
|
2972
1819
|
};
|
|
2973
1820
|
return response;
|
|
2974
1821
|
}, "de_ExecuteProvisionedProductServiceActionCommand");
|
|
2975
|
-
var de_ExecuteProvisionedProductServiceActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2976
|
-
const parsedOutput = {
|
|
2977
|
-
...output,
|
|
2978
|
-
body: await parseErrorBody(output.body, context)
|
|
2979
|
-
};
|
|
2980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
|
-
switch (errorCode) {
|
|
2982
|
-
case "InvalidParametersException":
|
|
2983
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2984
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "InvalidStateException":
|
|
2986
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2987
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ResourceNotFoundException":
|
|
2989
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2991
|
-
default:
|
|
2992
|
-
const parsedBody = parsedOutput.body;
|
|
2993
|
-
return throwDefaultError({
|
|
2994
|
-
output,
|
|
2995
|
-
parsedBody,
|
|
2996
|
-
errorCode
|
|
2997
|
-
});
|
|
2998
|
-
}
|
|
2999
|
-
}, "de_ExecuteProvisionedProductServiceActionCommandError");
|
|
3000
1822
|
var de_GetAWSOrganizationsAccessStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3001
1823
|
if (output.statusCode >= 300) {
|
|
3002
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
3003
1825
|
}
|
|
3004
1826
|
const data = await parseBody(output.body, context);
|
|
3005
1827
|
let contents = {};
|
|
@@ -3010,31 +1832,9 @@ var de_GetAWSOrganizationsAccessStatusCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3010
1832
|
};
|
|
3011
1833
|
return response;
|
|
3012
1834
|
}, "de_GetAWSOrganizationsAccessStatusCommand");
|
|
3013
|
-
var de_GetAWSOrganizationsAccessStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3014
|
-
const parsedOutput = {
|
|
3015
|
-
...output,
|
|
3016
|
-
body: await parseErrorBody(output.body, context)
|
|
3017
|
-
};
|
|
3018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
-
switch (errorCode) {
|
|
3020
|
-
case "OperationNotSupportedException":
|
|
3021
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
3022
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "ResourceNotFoundException":
|
|
3024
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3025
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3026
|
-
default:
|
|
3027
|
-
const parsedBody = parsedOutput.body;
|
|
3028
|
-
return throwDefaultError({
|
|
3029
|
-
output,
|
|
3030
|
-
parsedBody,
|
|
3031
|
-
errorCode
|
|
3032
|
-
});
|
|
3033
|
-
}
|
|
3034
|
-
}, "de_GetAWSOrganizationsAccessStatusCommandError");
|
|
3035
1835
|
var de_GetProvisionedProductOutputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3036
1836
|
if (output.statusCode >= 300) {
|
|
3037
|
-
return
|
|
1837
|
+
return de_CommandError(output, context);
|
|
3038
1838
|
}
|
|
3039
1839
|
const data = await parseBody(output.body, context);
|
|
3040
1840
|
let contents = {};
|
|
@@ -3045,31 +1845,9 @@ var de_GetProvisionedProductOutputsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3045
1845
|
};
|
|
3046
1846
|
return response;
|
|
3047
1847
|
}, "de_GetProvisionedProductOutputsCommand");
|
|
3048
|
-
var de_GetProvisionedProductOutputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3049
|
-
const parsedOutput = {
|
|
3050
|
-
...output,
|
|
3051
|
-
body: await parseErrorBody(output.body, context)
|
|
3052
|
-
};
|
|
3053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3054
|
-
switch (errorCode) {
|
|
3055
|
-
case "InvalidParametersException":
|
|
3056
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3057
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ResourceNotFoundException":
|
|
3059
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3061
|
-
default:
|
|
3062
|
-
const parsedBody = parsedOutput.body;
|
|
3063
|
-
return throwDefaultError({
|
|
3064
|
-
output,
|
|
3065
|
-
parsedBody,
|
|
3066
|
-
errorCode
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
}, "de_GetProvisionedProductOutputsCommandError");
|
|
3070
1848
|
var de_ImportAsProvisionedProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3071
1849
|
if (output.statusCode >= 300) {
|
|
3072
|
-
return
|
|
1850
|
+
return de_CommandError(output, context);
|
|
3073
1851
|
}
|
|
3074
1852
|
const data = await parseBody(output.body, context);
|
|
3075
1853
|
let contents = {};
|
|
@@ -3080,37 +1858,9 @@ var de_ImportAsProvisionedProductCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3080
1858
|
};
|
|
3081
1859
|
return response;
|
|
3082
1860
|
}, "de_ImportAsProvisionedProductCommand");
|
|
3083
|
-
var de_ImportAsProvisionedProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3084
|
-
const parsedOutput = {
|
|
3085
|
-
...output,
|
|
3086
|
-
body: await parseErrorBody(output.body, context)
|
|
3087
|
-
};
|
|
3088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
|
-
switch (errorCode) {
|
|
3090
|
-
case "DuplicateResourceException":
|
|
3091
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3092
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "InvalidParametersException":
|
|
3094
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3095
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "InvalidStateException":
|
|
3097
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
3098
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "ResourceNotFoundException":
|
|
3100
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3101
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3102
|
-
default:
|
|
3103
|
-
const parsedBody = parsedOutput.body;
|
|
3104
|
-
return throwDefaultError({
|
|
3105
|
-
output,
|
|
3106
|
-
parsedBody,
|
|
3107
|
-
errorCode
|
|
3108
|
-
});
|
|
3109
|
-
}
|
|
3110
|
-
}, "de_ImportAsProvisionedProductCommandError");
|
|
3111
1861
|
var de_ListAcceptedPortfolioSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3112
1862
|
if (output.statusCode >= 300) {
|
|
3113
|
-
return
|
|
1863
|
+
return de_CommandError(output, context);
|
|
3114
1864
|
}
|
|
3115
1865
|
const data = await parseBody(output.body, context);
|
|
3116
1866
|
let contents = {};
|
|
@@ -3118,34 +1868,12 @@ var de_ListAcceptedPortfolioSharesCommand = /* @__PURE__ */ __name(async (output
|
|
|
3118
1868
|
const response = {
|
|
3119
1869
|
$metadata: deserializeMetadata(output),
|
|
3120
1870
|
...contents
|
|
3121
|
-
};
|
|
3122
|
-
return response;
|
|
3123
|
-
}, "de_ListAcceptedPortfolioSharesCommand");
|
|
3124
|
-
var de_ListAcceptedPortfolioSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3125
|
-
const parsedOutput = {
|
|
3126
|
-
...output,
|
|
3127
|
-
body: await parseErrorBody(output.body, context)
|
|
3128
|
-
};
|
|
3129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
|
-
switch (errorCode) {
|
|
3131
|
-
case "InvalidParametersException":
|
|
3132
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3133
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "OperationNotSupportedException":
|
|
3135
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
3136
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3137
|
-
default:
|
|
3138
|
-
const parsedBody = parsedOutput.body;
|
|
3139
|
-
return throwDefaultError({
|
|
3140
|
-
output,
|
|
3141
|
-
parsedBody,
|
|
3142
|
-
errorCode
|
|
3143
|
-
});
|
|
3144
|
-
}
|
|
3145
|
-
}, "de_ListAcceptedPortfolioSharesCommandError");
|
|
1871
|
+
};
|
|
1872
|
+
return response;
|
|
1873
|
+
}, "de_ListAcceptedPortfolioSharesCommand");
|
|
3146
1874
|
var de_ListBudgetsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3147
1875
|
if (output.statusCode >= 300) {
|
|
3148
|
-
return
|
|
1876
|
+
return de_CommandError(output, context);
|
|
3149
1877
|
}
|
|
3150
1878
|
const data = await parseBody(output.body, context);
|
|
3151
1879
|
let contents = {};
|
|
@@ -3156,31 +1884,9 @@ var de_ListBudgetsForResourceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3156
1884
|
};
|
|
3157
1885
|
return response;
|
|
3158
1886
|
}, "de_ListBudgetsForResourceCommand");
|
|
3159
|
-
var de_ListBudgetsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3160
|
-
const parsedOutput = {
|
|
3161
|
-
...output,
|
|
3162
|
-
body: await parseErrorBody(output.body, context)
|
|
3163
|
-
};
|
|
3164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
|
-
switch (errorCode) {
|
|
3166
|
-
case "InvalidParametersException":
|
|
3167
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3168
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "ResourceNotFoundException":
|
|
3170
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3172
|
-
default:
|
|
3173
|
-
const parsedBody = parsedOutput.body;
|
|
3174
|
-
return throwDefaultError({
|
|
3175
|
-
output,
|
|
3176
|
-
parsedBody,
|
|
3177
|
-
errorCode
|
|
3178
|
-
});
|
|
3179
|
-
}
|
|
3180
|
-
}, "de_ListBudgetsForResourceCommandError");
|
|
3181
1887
|
var de_ListConstraintsForPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3182
1888
|
if (output.statusCode >= 300) {
|
|
3183
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
3184
1890
|
}
|
|
3185
1891
|
const data = await parseBody(output.body, context);
|
|
3186
1892
|
let contents = {};
|
|
@@ -3191,31 +1897,9 @@ var de_ListConstraintsForPortfolioCommand = /* @__PURE__ */ __name(async (output
|
|
|
3191
1897
|
};
|
|
3192
1898
|
return response;
|
|
3193
1899
|
}, "de_ListConstraintsForPortfolioCommand");
|
|
3194
|
-
var de_ListConstraintsForPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3195
|
-
const parsedOutput = {
|
|
3196
|
-
...output,
|
|
3197
|
-
body: await parseErrorBody(output.body, context)
|
|
3198
|
-
};
|
|
3199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
|
-
switch (errorCode) {
|
|
3201
|
-
case "InvalidParametersException":
|
|
3202
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3203
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3204
|
-
case "ResourceNotFoundException":
|
|
3205
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3207
|
-
default:
|
|
3208
|
-
const parsedBody = parsedOutput.body;
|
|
3209
|
-
return throwDefaultError({
|
|
3210
|
-
output,
|
|
3211
|
-
parsedBody,
|
|
3212
|
-
errorCode
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
}, "de_ListConstraintsForPortfolioCommandError");
|
|
3216
1900
|
var de_ListLaunchPathsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3217
1901
|
if (output.statusCode >= 300) {
|
|
3218
|
-
return
|
|
1902
|
+
return de_CommandError(output, context);
|
|
3219
1903
|
}
|
|
3220
1904
|
const data = await parseBody(output.body, context);
|
|
3221
1905
|
let contents = {};
|
|
@@ -3226,31 +1910,9 @@ var de_ListLaunchPathsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3226
1910
|
};
|
|
3227
1911
|
return response;
|
|
3228
1912
|
}, "de_ListLaunchPathsCommand");
|
|
3229
|
-
var de_ListLaunchPathsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3230
|
-
const parsedOutput = {
|
|
3231
|
-
...output,
|
|
3232
|
-
body: await parseErrorBody(output.body, context)
|
|
3233
|
-
};
|
|
3234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
|
-
switch (errorCode) {
|
|
3236
|
-
case "InvalidParametersException":
|
|
3237
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3238
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "ResourceNotFoundException":
|
|
3240
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3242
|
-
default:
|
|
3243
|
-
const parsedBody = parsedOutput.body;
|
|
3244
|
-
return throwDefaultError({
|
|
3245
|
-
output,
|
|
3246
|
-
parsedBody,
|
|
3247
|
-
errorCode
|
|
3248
|
-
});
|
|
3249
|
-
}
|
|
3250
|
-
}, "de_ListLaunchPathsCommandError");
|
|
3251
1913
|
var de_ListOrganizationPortfolioAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3252
1914
|
if (output.statusCode >= 300) {
|
|
3253
|
-
return
|
|
1915
|
+
return de_CommandError(output, context);
|
|
3254
1916
|
}
|
|
3255
1917
|
const data = await parseBody(output.body, context);
|
|
3256
1918
|
let contents = {};
|
|
@@ -3261,34 +1923,9 @@ var de_ListOrganizationPortfolioAccessCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3261
1923
|
};
|
|
3262
1924
|
return response;
|
|
3263
1925
|
}, "de_ListOrganizationPortfolioAccessCommand");
|
|
3264
|
-
var de_ListOrganizationPortfolioAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3265
|
-
const parsedOutput = {
|
|
3266
|
-
...output,
|
|
3267
|
-
body: await parseErrorBody(output.body, context)
|
|
3268
|
-
};
|
|
3269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3270
|
-
switch (errorCode) {
|
|
3271
|
-
case "InvalidParametersException":
|
|
3272
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3273
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "OperationNotSupportedException":
|
|
3275
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
3276
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "ResourceNotFoundException":
|
|
3278
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3280
|
-
default:
|
|
3281
|
-
const parsedBody = parsedOutput.body;
|
|
3282
|
-
return throwDefaultError({
|
|
3283
|
-
output,
|
|
3284
|
-
parsedBody,
|
|
3285
|
-
errorCode
|
|
3286
|
-
});
|
|
3287
|
-
}
|
|
3288
|
-
}, "de_ListOrganizationPortfolioAccessCommandError");
|
|
3289
1926
|
var de_ListPortfolioAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3290
1927
|
if (output.statusCode >= 300) {
|
|
3291
|
-
return
|
|
1928
|
+
return de_CommandError(output, context);
|
|
3292
1929
|
}
|
|
3293
1930
|
const data = await parseBody(output.body, context);
|
|
3294
1931
|
let contents = {};
|
|
@@ -3299,31 +1936,9 @@ var de_ListPortfolioAccessCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3299
1936
|
};
|
|
3300
1937
|
return response;
|
|
3301
1938
|
}, "de_ListPortfolioAccessCommand");
|
|
3302
|
-
var de_ListPortfolioAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3303
|
-
const parsedOutput = {
|
|
3304
|
-
...output,
|
|
3305
|
-
body: await parseErrorBody(output.body, context)
|
|
3306
|
-
};
|
|
3307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3308
|
-
switch (errorCode) {
|
|
3309
|
-
case "InvalidParametersException":
|
|
3310
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3311
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ResourceNotFoundException":
|
|
3313
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
}, "de_ListPortfolioAccessCommandError");
|
|
3324
1939
|
var de_ListPortfoliosCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
1940
|
if (output.statusCode >= 300) {
|
|
3326
|
-
return
|
|
1941
|
+
return de_CommandError(output, context);
|
|
3327
1942
|
}
|
|
3328
1943
|
const data = await parseBody(output.body, context);
|
|
3329
1944
|
let contents = {};
|
|
@@ -3334,28 +1949,9 @@ var de_ListPortfoliosCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3334
1949
|
};
|
|
3335
1950
|
return response;
|
|
3336
1951
|
}, "de_ListPortfoliosCommand");
|
|
3337
|
-
var de_ListPortfoliosCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3338
|
-
const parsedOutput = {
|
|
3339
|
-
...output,
|
|
3340
|
-
body: await parseErrorBody(output.body, context)
|
|
3341
|
-
};
|
|
3342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
|
-
switch (errorCode) {
|
|
3344
|
-
case "InvalidParametersException":
|
|
3345
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3346
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3347
|
-
default:
|
|
3348
|
-
const parsedBody = parsedOutput.body;
|
|
3349
|
-
return throwDefaultError({
|
|
3350
|
-
output,
|
|
3351
|
-
parsedBody,
|
|
3352
|
-
errorCode
|
|
3353
|
-
});
|
|
3354
|
-
}
|
|
3355
|
-
}, "de_ListPortfoliosCommandError");
|
|
3356
1952
|
var de_ListPortfoliosForProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3357
1953
|
if (output.statusCode >= 300) {
|
|
3358
|
-
return
|
|
1954
|
+
return de_CommandError(output, context);
|
|
3359
1955
|
}
|
|
3360
1956
|
const data = await parseBody(output.body, context);
|
|
3361
1957
|
let contents = {};
|
|
@@ -3366,31 +1962,9 @@ var de_ListPortfoliosForProductCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3366
1962
|
};
|
|
3367
1963
|
return response;
|
|
3368
1964
|
}, "de_ListPortfoliosForProductCommand");
|
|
3369
|
-
var de_ListPortfoliosForProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3370
|
-
const parsedOutput = {
|
|
3371
|
-
...output,
|
|
3372
|
-
body: await parseErrorBody(output.body, context)
|
|
3373
|
-
};
|
|
3374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3375
|
-
switch (errorCode) {
|
|
3376
|
-
case "InvalidParametersException":
|
|
3377
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3378
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "ResourceNotFoundException":
|
|
3380
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3382
|
-
default:
|
|
3383
|
-
const parsedBody = parsedOutput.body;
|
|
3384
|
-
return throwDefaultError({
|
|
3385
|
-
output,
|
|
3386
|
-
parsedBody,
|
|
3387
|
-
errorCode
|
|
3388
|
-
});
|
|
3389
|
-
}
|
|
3390
|
-
}, "de_ListPortfoliosForProductCommandError");
|
|
3391
1965
|
var de_ListPrincipalsForPortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3392
1966
|
if (output.statusCode >= 300) {
|
|
3393
|
-
return
|
|
1967
|
+
return de_CommandError(output, context);
|
|
3394
1968
|
}
|
|
3395
1969
|
const data = await parseBody(output.body, context);
|
|
3396
1970
|
let contents = {};
|
|
@@ -3401,31 +1975,9 @@ var de_ListPrincipalsForPortfolioCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3401
1975
|
};
|
|
3402
1976
|
return response;
|
|
3403
1977
|
}, "de_ListPrincipalsForPortfolioCommand");
|
|
3404
|
-
var de_ListPrincipalsForPortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3405
|
-
const parsedOutput = {
|
|
3406
|
-
...output,
|
|
3407
|
-
body: await parseErrorBody(output.body, context)
|
|
3408
|
-
};
|
|
3409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3410
|
-
switch (errorCode) {
|
|
3411
|
-
case "InvalidParametersException":
|
|
3412
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3413
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ResourceNotFoundException":
|
|
3415
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
}, "de_ListPrincipalsForPortfolioCommandError");
|
|
3426
1978
|
var de_ListProvisionedProductPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3427
1979
|
if (output.statusCode >= 300) {
|
|
3428
|
-
return
|
|
1980
|
+
return de_CommandError(output, context);
|
|
3429
1981
|
}
|
|
3430
1982
|
const data = await parseBody(output.body, context);
|
|
3431
1983
|
let contents = {};
|
|
@@ -3436,31 +1988,9 @@ var de_ListProvisionedProductPlansCommand = /* @__PURE__ */ __name(async (output
|
|
|
3436
1988
|
};
|
|
3437
1989
|
return response;
|
|
3438
1990
|
}, "de_ListProvisionedProductPlansCommand");
|
|
3439
|
-
var de_ListProvisionedProductPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3440
|
-
const parsedOutput = {
|
|
3441
|
-
...output,
|
|
3442
|
-
body: await parseErrorBody(output.body, context)
|
|
3443
|
-
};
|
|
3444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
|
-
switch (errorCode) {
|
|
3446
|
-
case "InvalidParametersException":
|
|
3447
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3448
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "ResourceNotFoundException":
|
|
3450
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3452
|
-
default:
|
|
3453
|
-
const parsedBody = parsedOutput.body;
|
|
3454
|
-
return throwDefaultError({
|
|
3455
|
-
output,
|
|
3456
|
-
parsedBody,
|
|
3457
|
-
errorCode
|
|
3458
|
-
});
|
|
3459
|
-
}
|
|
3460
|
-
}, "de_ListProvisionedProductPlansCommandError");
|
|
3461
1991
|
var de_ListProvisioningArtifactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3462
1992
|
if (output.statusCode >= 300) {
|
|
3463
|
-
return
|
|
1993
|
+
return de_CommandError(output, context);
|
|
3464
1994
|
}
|
|
3465
1995
|
const data = await parseBody(output.body, context);
|
|
3466
1996
|
let contents = {};
|
|
@@ -3471,98 +2001,35 @@ var de_ListProvisioningArtifactsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3471
2001
|
};
|
|
3472
2002
|
return response;
|
|
3473
2003
|
}, "de_ListProvisioningArtifactsCommand");
|
|
3474
|
-
var de_ListProvisioningArtifactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
|
-
const parsedOutput = {
|
|
3476
|
-
...output,
|
|
3477
|
-
body: await parseErrorBody(output.body, context)
|
|
3478
|
-
};
|
|
3479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
|
-
switch (errorCode) {
|
|
3481
|
-
case "InvalidParametersException":
|
|
3482
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3483
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "ResourceNotFoundException":
|
|
3485
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3487
|
-
default:
|
|
3488
|
-
const parsedBody = parsedOutput.body;
|
|
3489
|
-
return throwDefaultError({
|
|
3490
|
-
output,
|
|
3491
|
-
parsedBody,
|
|
3492
|
-
errorCode
|
|
3493
|
-
});
|
|
3494
|
-
}
|
|
3495
|
-
}, "de_ListProvisioningArtifactsCommandError");
|
|
3496
2004
|
var de_ListProvisioningArtifactsForServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3497
2005
|
if (output.statusCode >= 300) {
|
|
3498
|
-
return
|
|
2006
|
+
return de_CommandError(output, context);
|
|
3499
2007
|
}
|
|
3500
2008
|
const data = await parseBody(output.body, context);
|
|
3501
2009
|
let contents = {};
|
|
3502
2010
|
contents = de_ListProvisioningArtifactsForServiceActionOutput(data, context);
|
|
3503
2011
|
const response = {
|
|
3504
|
-
$metadata: deserializeMetadata(output),
|
|
3505
|
-
...contents
|
|
3506
|
-
};
|
|
3507
|
-
return response;
|
|
3508
|
-
}, "de_ListProvisioningArtifactsForServiceActionCommand");
|
|
3509
|
-
var
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
body: await parseErrorBody(output.body, context)
|
|
3513
|
-
};
|
|
3514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3515
|
-
switch (errorCode) {
|
|
3516
|
-
case "InvalidParametersException":
|
|
3517
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3518
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "ResourceNotFoundException":
|
|
3520
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3521
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3522
|
-
default:
|
|
3523
|
-
const parsedBody = parsedOutput.body;
|
|
3524
|
-
return throwDefaultError({
|
|
3525
|
-
output,
|
|
3526
|
-
parsedBody,
|
|
3527
|
-
errorCode
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
}, "de_ListProvisioningArtifactsForServiceActionCommandError");
|
|
3531
|
-
var de_ListRecordHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3532
|
-
if (output.statusCode >= 300) {
|
|
3533
|
-
return de_ListRecordHistoryCommandError(output, context);
|
|
3534
|
-
}
|
|
3535
|
-
const data = await parseBody(output.body, context);
|
|
3536
|
-
let contents = {};
|
|
3537
|
-
contents = de_ListRecordHistoryOutput(data, context);
|
|
3538
|
-
const response = {
|
|
3539
|
-
$metadata: deserializeMetadata(output),
|
|
3540
|
-
...contents
|
|
3541
|
-
};
|
|
3542
|
-
return response;
|
|
3543
|
-
}, "de_ListRecordHistoryCommand");
|
|
3544
|
-
var de_ListRecordHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3545
|
-
const parsedOutput = {
|
|
3546
|
-
...output,
|
|
3547
|
-
body: await parseErrorBody(output.body, context)
|
|
3548
|
-
};
|
|
3549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3550
|
-
switch (errorCode) {
|
|
3551
|
-
case "InvalidParametersException":
|
|
3552
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3553
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode
|
|
3560
|
-
});
|
|
2012
|
+
$metadata: deserializeMetadata(output),
|
|
2013
|
+
...contents
|
|
2014
|
+
};
|
|
2015
|
+
return response;
|
|
2016
|
+
}, "de_ListProvisioningArtifactsForServiceActionCommand");
|
|
2017
|
+
var de_ListRecordHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
|
+
if (output.statusCode >= 300) {
|
|
2019
|
+
return de_CommandError(output, context);
|
|
3561
2020
|
}
|
|
3562
|
-
|
|
2021
|
+
const data = await parseBody(output.body, context);
|
|
2022
|
+
let contents = {};
|
|
2023
|
+
contents = de_ListRecordHistoryOutput(data, context);
|
|
2024
|
+
const response = {
|
|
2025
|
+
$metadata: deserializeMetadata(output),
|
|
2026
|
+
...contents
|
|
2027
|
+
};
|
|
2028
|
+
return response;
|
|
2029
|
+
}, "de_ListRecordHistoryCommand");
|
|
3563
2030
|
var de_ListResourcesForTagOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3564
2031
|
if (output.statusCode >= 300) {
|
|
3565
|
-
return
|
|
2032
|
+
return de_CommandError(output, context);
|
|
3566
2033
|
}
|
|
3567
2034
|
const data = await parseBody(output.body, context);
|
|
3568
2035
|
let contents = {};
|
|
@@ -3573,34 +2040,9 @@ var de_ListResourcesForTagOptionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3573
2040
|
};
|
|
3574
2041
|
return response;
|
|
3575
2042
|
}, "de_ListResourcesForTagOptionCommand");
|
|
3576
|
-
var de_ListResourcesForTagOptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3577
|
-
const parsedOutput = {
|
|
3578
|
-
...output,
|
|
3579
|
-
body: await parseErrorBody(output.body, context)
|
|
3580
|
-
};
|
|
3581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3582
|
-
switch (errorCode) {
|
|
3583
|
-
case "InvalidParametersException":
|
|
3584
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3585
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "ResourceNotFoundException":
|
|
3587
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3589
|
-
case "TagOptionNotMigratedException":
|
|
3590
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3591
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3592
|
-
default:
|
|
3593
|
-
const parsedBody = parsedOutput.body;
|
|
3594
|
-
return throwDefaultError({
|
|
3595
|
-
output,
|
|
3596
|
-
parsedBody,
|
|
3597
|
-
errorCode
|
|
3598
|
-
});
|
|
3599
|
-
}
|
|
3600
|
-
}, "de_ListResourcesForTagOptionCommandError");
|
|
3601
2043
|
var de_ListServiceActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3602
2044
|
if (output.statusCode >= 300) {
|
|
3603
|
-
return
|
|
2045
|
+
return de_CommandError(output, context);
|
|
3604
2046
|
}
|
|
3605
2047
|
const data = await parseBody(output.body, context);
|
|
3606
2048
|
let contents = {};
|
|
@@ -3611,28 +2053,9 @@ var de_ListServiceActionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3611
2053
|
};
|
|
3612
2054
|
return response;
|
|
3613
2055
|
}, "de_ListServiceActionsCommand");
|
|
3614
|
-
var de_ListServiceActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3615
|
-
const parsedOutput = {
|
|
3616
|
-
...output,
|
|
3617
|
-
body: await parseErrorBody(output.body, context)
|
|
3618
|
-
};
|
|
3619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3620
|
-
switch (errorCode) {
|
|
3621
|
-
case "InvalidParametersException":
|
|
3622
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3623
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3624
|
-
default:
|
|
3625
|
-
const parsedBody = parsedOutput.body;
|
|
3626
|
-
return throwDefaultError({
|
|
3627
|
-
output,
|
|
3628
|
-
parsedBody,
|
|
3629
|
-
errorCode
|
|
3630
|
-
});
|
|
3631
|
-
}
|
|
3632
|
-
}, "de_ListServiceActionsCommandError");
|
|
3633
2056
|
var de_ListServiceActionsForProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3634
2057
|
if (output.statusCode >= 300) {
|
|
3635
|
-
return
|
|
2058
|
+
return de_CommandError(output, context);
|
|
3636
2059
|
}
|
|
3637
2060
|
const data = await parseBody(output.body, context);
|
|
3638
2061
|
let contents = {};
|
|
@@ -3643,31 +2066,9 @@ var de_ListServiceActionsForProvisioningArtifactCommand = /* @__PURE__ */ __name
|
|
|
3643
2066
|
};
|
|
3644
2067
|
return response;
|
|
3645
2068
|
}, "de_ListServiceActionsForProvisioningArtifactCommand");
|
|
3646
|
-
var de_ListServiceActionsForProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3647
|
-
const parsedOutput = {
|
|
3648
|
-
...output,
|
|
3649
|
-
body: await parseErrorBody(output.body, context)
|
|
3650
|
-
};
|
|
3651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3652
|
-
switch (errorCode) {
|
|
3653
|
-
case "InvalidParametersException":
|
|
3654
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3655
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ResourceNotFoundException":
|
|
3657
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3659
|
-
default:
|
|
3660
|
-
const parsedBody = parsedOutput.body;
|
|
3661
|
-
return throwDefaultError({
|
|
3662
|
-
output,
|
|
3663
|
-
parsedBody,
|
|
3664
|
-
errorCode
|
|
3665
|
-
});
|
|
3666
|
-
}
|
|
3667
|
-
}, "de_ListServiceActionsForProvisioningArtifactCommandError");
|
|
3668
2069
|
var de_ListStackInstancesForProvisionedProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3669
2070
|
if (output.statusCode >= 300) {
|
|
3670
|
-
return
|
|
2071
|
+
return de_CommandError(output, context);
|
|
3671
2072
|
}
|
|
3672
2073
|
const data = await parseBody(output.body, context);
|
|
3673
2074
|
let contents = {};
|
|
@@ -3678,31 +2079,9 @@ var de_ListStackInstancesForProvisionedProductCommand = /* @__PURE__ */ __name(a
|
|
|
3678
2079
|
};
|
|
3679
2080
|
return response;
|
|
3680
2081
|
}, "de_ListStackInstancesForProvisionedProductCommand");
|
|
3681
|
-
var de_ListStackInstancesForProvisionedProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3682
|
-
const parsedOutput = {
|
|
3683
|
-
...output,
|
|
3684
|
-
body: await parseErrorBody(output.body, context)
|
|
3685
|
-
};
|
|
3686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3687
|
-
switch (errorCode) {
|
|
3688
|
-
case "InvalidParametersException":
|
|
3689
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3690
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "ResourceNotFoundException":
|
|
3692
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3693
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3694
|
-
default:
|
|
3695
|
-
const parsedBody = parsedOutput.body;
|
|
3696
|
-
return throwDefaultError({
|
|
3697
|
-
output,
|
|
3698
|
-
parsedBody,
|
|
3699
|
-
errorCode
|
|
3700
|
-
});
|
|
3701
|
-
}
|
|
3702
|
-
}, "de_ListStackInstancesForProvisionedProductCommandError");
|
|
3703
2082
|
var de_ListTagOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3704
2083
|
if (output.statusCode >= 300) {
|
|
3705
|
-
return
|
|
2084
|
+
return de_CommandError(output, context);
|
|
3706
2085
|
}
|
|
3707
2086
|
const data = await parseBody(output.body, context);
|
|
3708
2087
|
let contents = {};
|
|
@@ -3713,31 +2092,9 @@ var de_ListTagOptionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3713
2092
|
};
|
|
3714
2093
|
return response;
|
|
3715
2094
|
}, "de_ListTagOptionsCommand");
|
|
3716
|
-
var de_ListTagOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3717
|
-
const parsedOutput = {
|
|
3718
|
-
...output,
|
|
3719
|
-
body: await parseErrorBody(output.body, context)
|
|
3720
|
-
};
|
|
3721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3722
|
-
switch (errorCode) {
|
|
3723
|
-
case "InvalidParametersException":
|
|
3724
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3725
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3726
|
-
case "TagOptionNotMigratedException":
|
|
3727
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3728
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3729
|
-
default:
|
|
3730
|
-
const parsedBody = parsedOutput.body;
|
|
3731
|
-
return throwDefaultError({
|
|
3732
|
-
output,
|
|
3733
|
-
parsedBody,
|
|
3734
|
-
errorCode
|
|
3735
|
-
});
|
|
3736
|
-
}
|
|
3737
|
-
}, "de_ListTagOptionsCommandError");
|
|
3738
2095
|
var de_NotifyProvisionProductEngineWorkflowResultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3739
2096
|
if (output.statusCode >= 300) {
|
|
3740
|
-
return
|
|
2097
|
+
return de_CommandError(output, context);
|
|
3741
2098
|
}
|
|
3742
2099
|
const data = await parseBody(output.body, context);
|
|
3743
2100
|
let contents = {};
|
|
@@ -3748,31 +2105,9 @@ var de_NotifyProvisionProductEngineWorkflowResultCommand = /* @__PURE__ */ __nam
|
|
|
3748
2105
|
};
|
|
3749
2106
|
return response;
|
|
3750
2107
|
}, "de_NotifyProvisionProductEngineWorkflowResultCommand");
|
|
3751
|
-
var de_NotifyProvisionProductEngineWorkflowResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3752
|
-
const parsedOutput = {
|
|
3753
|
-
...output,
|
|
3754
|
-
body: await parseErrorBody(output.body, context)
|
|
3755
|
-
};
|
|
3756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3757
|
-
switch (errorCode) {
|
|
3758
|
-
case "InvalidParametersException":
|
|
3759
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3760
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3761
|
-
case "ResourceNotFoundException":
|
|
3762
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3764
|
-
default:
|
|
3765
|
-
const parsedBody = parsedOutput.body;
|
|
3766
|
-
return throwDefaultError({
|
|
3767
|
-
output,
|
|
3768
|
-
parsedBody,
|
|
3769
|
-
errorCode
|
|
3770
|
-
});
|
|
3771
|
-
}
|
|
3772
|
-
}, "de_NotifyProvisionProductEngineWorkflowResultCommandError");
|
|
3773
2108
|
var de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3774
2109
|
if (output.statusCode >= 300) {
|
|
3775
|
-
return
|
|
2110
|
+
return de_CommandError(output, context);
|
|
3776
2111
|
}
|
|
3777
2112
|
const data = await parseBody(output.body, context);
|
|
3778
2113
|
let contents = {};
|
|
@@ -3783,31 +2118,9 @@ var de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = /* @__PURE
|
|
|
3783
2118
|
};
|
|
3784
2119
|
return response;
|
|
3785
2120
|
}, "de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand");
|
|
3786
|
-
var de_NotifyTerminateProvisionedProductEngineWorkflowResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3787
|
-
const parsedOutput = {
|
|
3788
|
-
...output,
|
|
3789
|
-
body: await parseErrorBody(output.body, context)
|
|
3790
|
-
};
|
|
3791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3792
|
-
switch (errorCode) {
|
|
3793
|
-
case "InvalidParametersException":
|
|
3794
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3795
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "ResourceNotFoundException":
|
|
3797
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3799
|
-
default:
|
|
3800
|
-
const parsedBody = parsedOutput.body;
|
|
3801
|
-
return throwDefaultError({
|
|
3802
|
-
output,
|
|
3803
|
-
parsedBody,
|
|
3804
|
-
errorCode
|
|
3805
|
-
});
|
|
3806
|
-
}
|
|
3807
|
-
}, "de_NotifyTerminateProvisionedProductEngineWorkflowResultCommandError");
|
|
3808
2121
|
var de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3809
2122
|
if (output.statusCode >= 300) {
|
|
3810
|
-
return
|
|
2123
|
+
return de_CommandError(output, context);
|
|
3811
2124
|
}
|
|
3812
2125
|
const data = await parseBody(output.body, context);
|
|
3813
2126
|
let contents = {};
|
|
@@ -3818,31 +2131,9 @@ var de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = /* @__PURE__
|
|
|
3818
2131
|
};
|
|
3819
2132
|
return response;
|
|
3820
2133
|
}, "de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand");
|
|
3821
|
-
var de_NotifyUpdateProvisionedProductEngineWorkflowResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3822
|
-
const parsedOutput = {
|
|
3823
|
-
...output,
|
|
3824
|
-
body: await parseErrorBody(output.body, context)
|
|
3825
|
-
};
|
|
3826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3827
|
-
switch (errorCode) {
|
|
3828
|
-
case "InvalidParametersException":
|
|
3829
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3830
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3831
|
-
case "ResourceNotFoundException":
|
|
3832
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3833
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3834
|
-
default:
|
|
3835
|
-
const parsedBody = parsedOutput.body;
|
|
3836
|
-
return throwDefaultError({
|
|
3837
|
-
output,
|
|
3838
|
-
parsedBody,
|
|
3839
|
-
errorCode
|
|
3840
|
-
});
|
|
3841
|
-
}
|
|
3842
|
-
}, "de_NotifyUpdateProvisionedProductEngineWorkflowResultCommandError");
|
|
3843
2134
|
var de_ProvisionProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3844
2135
|
if (output.statusCode >= 300) {
|
|
3845
|
-
return
|
|
2136
|
+
return de_CommandError(output, context);
|
|
3846
2137
|
}
|
|
3847
2138
|
const data = await parseBody(output.body, context);
|
|
3848
2139
|
let contents = {};
|
|
@@ -3853,34 +2144,9 @@ var de_ProvisionProductCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3853
2144
|
};
|
|
3854
2145
|
return response;
|
|
3855
2146
|
}, "de_ProvisionProductCommand");
|
|
3856
|
-
var de_ProvisionProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3857
|
-
const parsedOutput = {
|
|
3858
|
-
...output,
|
|
3859
|
-
body: await parseErrorBody(output.body, context)
|
|
3860
|
-
};
|
|
3861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3862
|
-
switch (errorCode) {
|
|
3863
|
-
case "DuplicateResourceException":
|
|
3864
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3865
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "InvalidParametersException":
|
|
3867
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3868
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "ResourceNotFoundException":
|
|
3870
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3872
|
-
default:
|
|
3873
|
-
const parsedBody = parsedOutput.body;
|
|
3874
|
-
return throwDefaultError({
|
|
3875
|
-
output,
|
|
3876
|
-
parsedBody,
|
|
3877
|
-
errorCode
|
|
3878
|
-
});
|
|
3879
|
-
}
|
|
3880
|
-
}, "de_ProvisionProductCommandError");
|
|
3881
2147
|
var de_RejectPortfolioShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3882
2148
|
if (output.statusCode >= 300) {
|
|
3883
|
-
return
|
|
2149
|
+
return de_CommandError(output, context);
|
|
3884
2150
|
}
|
|
3885
2151
|
const data = await parseBody(output.body, context);
|
|
3886
2152
|
let contents = {};
|
|
@@ -3891,28 +2157,9 @@ var de_RejectPortfolioShareCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3891
2157
|
};
|
|
3892
2158
|
return response;
|
|
3893
2159
|
}, "de_RejectPortfolioShareCommand");
|
|
3894
|
-
var de_RejectPortfolioShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3895
|
-
const parsedOutput = {
|
|
3896
|
-
...output,
|
|
3897
|
-
body: await parseErrorBody(output.body, context)
|
|
3898
|
-
};
|
|
3899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3900
|
-
switch (errorCode) {
|
|
3901
|
-
case "ResourceNotFoundException":
|
|
3902
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3903
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3904
|
-
default:
|
|
3905
|
-
const parsedBody = parsedOutput.body;
|
|
3906
|
-
return throwDefaultError({
|
|
3907
|
-
output,
|
|
3908
|
-
parsedBody,
|
|
3909
|
-
errorCode
|
|
3910
|
-
});
|
|
3911
|
-
}
|
|
3912
|
-
}, "de_RejectPortfolioShareCommandError");
|
|
3913
2160
|
var de_ScanProvisionedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3914
2161
|
if (output.statusCode >= 300) {
|
|
3915
|
-
return
|
|
2162
|
+
return de_CommandError(output, context);
|
|
3916
2163
|
}
|
|
3917
2164
|
const data = await parseBody(output.body, context);
|
|
3918
2165
|
let contents = {};
|
|
@@ -3923,60 +2170,22 @@ var de_ScanProvisionedProductsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3923
2170
|
};
|
|
3924
2171
|
return response;
|
|
3925
2172
|
}, "de_ScanProvisionedProductsCommand");
|
|
3926
|
-
var de_ScanProvisionedProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3927
|
-
const parsedOutput = {
|
|
3928
|
-
...output,
|
|
3929
|
-
body: await parseErrorBody(output.body, context)
|
|
3930
|
-
};
|
|
3931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3932
|
-
switch (errorCode) {
|
|
3933
|
-
case "InvalidParametersException":
|
|
3934
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3935
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3936
|
-
default:
|
|
3937
|
-
const parsedBody = parsedOutput.body;
|
|
3938
|
-
return throwDefaultError({
|
|
3939
|
-
output,
|
|
3940
|
-
parsedBody,
|
|
3941
|
-
errorCode
|
|
3942
|
-
});
|
|
3943
|
-
}
|
|
3944
|
-
}, "de_ScanProvisionedProductsCommandError");
|
|
3945
2173
|
var de_SearchProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3946
2174
|
if (output.statusCode >= 300) {
|
|
3947
|
-
return
|
|
2175
|
+
return de_CommandError(output, context);
|
|
3948
2176
|
}
|
|
3949
2177
|
const data = await parseBody(output.body, context);
|
|
3950
2178
|
let contents = {};
|
|
3951
2179
|
contents = (0, import_smithy_client._json)(data);
|
|
3952
|
-
const response = {
|
|
3953
|
-
$metadata: deserializeMetadata(output),
|
|
3954
|
-
...contents
|
|
3955
|
-
};
|
|
3956
|
-
return response;
|
|
3957
|
-
}, "de_SearchProductsCommand");
|
|
3958
|
-
var de_SearchProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3959
|
-
const parsedOutput = {
|
|
3960
|
-
...output,
|
|
3961
|
-
body: await parseErrorBody(output.body, context)
|
|
3962
|
-
};
|
|
3963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
|
-
switch (errorCode) {
|
|
3965
|
-
case "InvalidParametersException":
|
|
3966
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3967
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3968
|
-
default:
|
|
3969
|
-
const parsedBody = parsedOutput.body;
|
|
3970
|
-
return throwDefaultError({
|
|
3971
|
-
output,
|
|
3972
|
-
parsedBody,
|
|
3973
|
-
errorCode
|
|
3974
|
-
});
|
|
3975
|
-
}
|
|
3976
|
-
}, "de_SearchProductsCommandError");
|
|
2180
|
+
const response = {
|
|
2181
|
+
$metadata: deserializeMetadata(output),
|
|
2182
|
+
...contents
|
|
2183
|
+
};
|
|
2184
|
+
return response;
|
|
2185
|
+
}, "de_SearchProductsCommand");
|
|
3977
2186
|
var de_SearchProductsAsAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3978
2187
|
if (output.statusCode >= 300) {
|
|
3979
|
-
return
|
|
2188
|
+
return de_CommandError(output, context);
|
|
3980
2189
|
}
|
|
3981
2190
|
const data = await parseBody(output.body, context);
|
|
3982
2191
|
let contents = {};
|
|
@@ -3987,31 +2196,9 @@ var de_SearchProductsAsAdminCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3987
2196
|
};
|
|
3988
2197
|
return response;
|
|
3989
2198
|
}, "de_SearchProductsAsAdminCommand");
|
|
3990
|
-
var de_SearchProductsAsAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3991
|
-
const parsedOutput = {
|
|
3992
|
-
...output,
|
|
3993
|
-
body: await parseErrorBody(output.body, context)
|
|
3994
|
-
};
|
|
3995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3996
|
-
switch (errorCode) {
|
|
3997
|
-
case "InvalidParametersException":
|
|
3998
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3999
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4000
|
-
case "ResourceNotFoundException":
|
|
4001
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4002
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4003
|
-
default:
|
|
4004
|
-
const parsedBody = parsedOutput.body;
|
|
4005
|
-
return throwDefaultError({
|
|
4006
|
-
output,
|
|
4007
|
-
parsedBody,
|
|
4008
|
-
errorCode
|
|
4009
|
-
});
|
|
4010
|
-
}
|
|
4011
|
-
}, "de_SearchProductsAsAdminCommandError");
|
|
4012
2199
|
var de_SearchProvisionedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4013
2200
|
if (output.statusCode >= 300) {
|
|
4014
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
4015
2202
|
}
|
|
4016
2203
|
const data = await parseBody(output.body, context);
|
|
4017
2204
|
let contents = {};
|
|
@@ -4022,28 +2209,9 @@ var de_SearchProvisionedProductsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4022
2209
|
};
|
|
4023
2210
|
return response;
|
|
4024
2211
|
}, "de_SearchProvisionedProductsCommand");
|
|
4025
|
-
var de_SearchProvisionedProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4026
|
-
const parsedOutput = {
|
|
4027
|
-
...output,
|
|
4028
|
-
body: await parseErrorBody(output.body, context)
|
|
4029
|
-
};
|
|
4030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4031
|
-
switch (errorCode) {
|
|
4032
|
-
case "InvalidParametersException":
|
|
4033
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4034
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4035
|
-
default:
|
|
4036
|
-
const parsedBody = parsedOutput.body;
|
|
4037
|
-
return throwDefaultError({
|
|
4038
|
-
output,
|
|
4039
|
-
parsedBody,
|
|
4040
|
-
errorCode
|
|
4041
|
-
});
|
|
4042
|
-
}
|
|
4043
|
-
}, "de_SearchProvisionedProductsCommandError");
|
|
4044
2212
|
var de_TerminateProvisionedProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4045
2213
|
if (output.statusCode >= 300) {
|
|
4046
|
-
return
|
|
2214
|
+
return de_CommandError(output, context);
|
|
4047
2215
|
}
|
|
4048
2216
|
const data = await parseBody(output.body, context);
|
|
4049
2217
|
let contents = {};
|
|
@@ -4054,28 +2222,9 @@ var de_TerminateProvisionedProductCommand = /* @__PURE__ */ __name(async (output
|
|
|
4054
2222
|
};
|
|
4055
2223
|
return response;
|
|
4056
2224
|
}, "de_TerminateProvisionedProductCommand");
|
|
4057
|
-
var de_TerminateProvisionedProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4058
|
-
const parsedOutput = {
|
|
4059
|
-
...output,
|
|
4060
|
-
body: await parseErrorBody(output.body, context)
|
|
4061
|
-
};
|
|
4062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4063
|
-
switch (errorCode) {
|
|
4064
|
-
case "ResourceNotFoundException":
|
|
4065
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4067
|
-
default:
|
|
4068
|
-
const parsedBody = parsedOutput.body;
|
|
4069
|
-
return throwDefaultError({
|
|
4070
|
-
output,
|
|
4071
|
-
parsedBody,
|
|
4072
|
-
errorCode
|
|
4073
|
-
});
|
|
4074
|
-
}
|
|
4075
|
-
}, "de_TerminateProvisionedProductCommandError");
|
|
4076
2225
|
var de_UpdateConstraintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4077
2226
|
if (output.statusCode >= 300) {
|
|
4078
|
-
return
|
|
2227
|
+
return de_CommandError(output, context);
|
|
4079
2228
|
}
|
|
4080
2229
|
const data = await parseBody(output.body, context);
|
|
4081
2230
|
let contents = {};
|
|
@@ -4086,31 +2235,9 @@ var de_UpdateConstraintCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4086
2235
|
};
|
|
4087
2236
|
return response;
|
|
4088
2237
|
}, "de_UpdateConstraintCommand");
|
|
4089
|
-
var de_UpdateConstraintCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4090
|
-
const parsedOutput = {
|
|
4091
|
-
...output,
|
|
4092
|
-
body: await parseErrorBody(output.body, context)
|
|
4093
|
-
};
|
|
4094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4095
|
-
switch (errorCode) {
|
|
4096
|
-
case "InvalidParametersException":
|
|
4097
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4098
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4099
|
-
case "ResourceNotFoundException":
|
|
4100
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4101
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4102
|
-
default:
|
|
4103
|
-
const parsedBody = parsedOutput.body;
|
|
4104
|
-
return throwDefaultError({
|
|
4105
|
-
output,
|
|
4106
|
-
parsedBody,
|
|
4107
|
-
errorCode
|
|
4108
|
-
});
|
|
4109
|
-
}
|
|
4110
|
-
}, "de_UpdateConstraintCommandError");
|
|
4111
2238
|
var de_UpdatePortfolioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4112
2239
|
if (output.statusCode >= 300) {
|
|
4113
|
-
return
|
|
2240
|
+
return de_CommandError(output, context);
|
|
4114
2241
|
}
|
|
4115
2242
|
const data = await parseBody(output.body, context);
|
|
4116
2243
|
let contents = {};
|
|
@@ -4121,37 +2248,9 @@ var de_UpdatePortfolioCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4121
2248
|
};
|
|
4122
2249
|
return response;
|
|
4123
2250
|
}, "de_UpdatePortfolioCommand");
|
|
4124
|
-
var de_UpdatePortfolioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4125
|
-
const parsedOutput = {
|
|
4126
|
-
...output,
|
|
4127
|
-
body: await parseErrorBody(output.body, context)
|
|
4128
|
-
};
|
|
4129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
|
-
switch (errorCode) {
|
|
4131
|
-
case "InvalidParametersException":
|
|
4132
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4133
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4134
|
-
case "LimitExceededException":
|
|
4135
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
4136
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4137
|
-
case "ResourceNotFoundException":
|
|
4138
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4140
|
-
case "TagOptionNotMigratedException":
|
|
4141
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
4142
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
4143
|
-
default:
|
|
4144
|
-
const parsedBody = parsedOutput.body;
|
|
4145
|
-
return throwDefaultError({
|
|
4146
|
-
output,
|
|
4147
|
-
parsedBody,
|
|
4148
|
-
errorCode
|
|
4149
|
-
});
|
|
4150
|
-
}
|
|
4151
|
-
}, "de_UpdatePortfolioCommandError");
|
|
4152
2251
|
var de_UpdatePortfolioShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4153
2252
|
if (output.statusCode >= 300) {
|
|
4154
|
-
return
|
|
2253
|
+
return de_CommandError(output, context);
|
|
4155
2254
|
}
|
|
4156
2255
|
const data = await parseBody(output.body, context);
|
|
4157
2256
|
let contents = {};
|
|
@@ -4162,37 +2261,9 @@ var de_UpdatePortfolioShareCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4162
2261
|
};
|
|
4163
2262
|
return response;
|
|
4164
2263
|
}, "de_UpdatePortfolioShareCommand");
|
|
4165
|
-
var de_UpdatePortfolioShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4166
|
-
const parsedOutput = {
|
|
4167
|
-
...output,
|
|
4168
|
-
body: await parseErrorBody(output.body, context)
|
|
4169
|
-
};
|
|
4170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4171
|
-
switch (errorCode) {
|
|
4172
|
-
case "InvalidParametersException":
|
|
4173
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4174
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "InvalidStateException":
|
|
4176
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
4177
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
4178
|
-
case "OperationNotSupportedException":
|
|
4179
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
4180
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
4181
|
-
case "ResourceNotFoundException":
|
|
4182
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4184
|
-
default:
|
|
4185
|
-
const parsedBody = parsedOutput.body;
|
|
4186
|
-
return throwDefaultError({
|
|
4187
|
-
output,
|
|
4188
|
-
parsedBody,
|
|
4189
|
-
errorCode
|
|
4190
|
-
});
|
|
4191
|
-
}
|
|
4192
|
-
}, "de_UpdatePortfolioShareCommandError");
|
|
4193
2264
|
var de_UpdateProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4194
2265
|
if (output.statusCode >= 300) {
|
|
4195
|
-
return
|
|
2266
|
+
return de_CommandError(output, context);
|
|
4196
2267
|
}
|
|
4197
2268
|
const data = await parseBody(output.body, context);
|
|
4198
2269
|
let contents = {};
|
|
@@ -4203,34 +2274,9 @@ var de_UpdateProductCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4203
2274
|
};
|
|
4204
2275
|
return response;
|
|
4205
2276
|
}, "de_UpdateProductCommand");
|
|
4206
|
-
var de_UpdateProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4207
|
-
const parsedOutput = {
|
|
4208
|
-
...output,
|
|
4209
|
-
body: await parseErrorBody(output.body, context)
|
|
4210
|
-
};
|
|
4211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
|
-
switch (errorCode) {
|
|
4213
|
-
case "InvalidParametersException":
|
|
4214
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4215
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4216
|
-
case "ResourceNotFoundException":
|
|
4217
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4218
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4219
|
-
case "TagOptionNotMigratedException":
|
|
4220
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
4221
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
4222
|
-
default:
|
|
4223
|
-
const parsedBody = parsedOutput.body;
|
|
4224
|
-
return throwDefaultError({
|
|
4225
|
-
output,
|
|
4226
|
-
parsedBody,
|
|
4227
|
-
errorCode
|
|
4228
|
-
});
|
|
4229
|
-
}
|
|
4230
|
-
}, "de_UpdateProductCommandError");
|
|
4231
2277
|
var de_UpdateProvisionedProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4232
2278
|
if (output.statusCode >= 300) {
|
|
4233
|
-
return
|
|
2279
|
+
return de_CommandError(output, context);
|
|
4234
2280
|
}
|
|
4235
2281
|
const data = await parseBody(output.body, context);
|
|
4236
2282
|
let contents = {};
|
|
@@ -4241,31 +2287,9 @@ var de_UpdateProvisionedProductCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4241
2287
|
};
|
|
4242
2288
|
return response;
|
|
4243
2289
|
}, "de_UpdateProvisionedProductCommand");
|
|
4244
|
-
var de_UpdateProvisionedProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
|
-
const parsedOutput = {
|
|
4246
|
-
...output,
|
|
4247
|
-
body: await parseErrorBody(output.body, context)
|
|
4248
|
-
};
|
|
4249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4250
|
-
switch (errorCode) {
|
|
4251
|
-
case "InvalidParametersException":
|
|
4252
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4253
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4254
|
-
case "ResourceNotFoundException":
|
|
4255
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4257
|
-
default:
|
|
4258
|
-
const parsedBody = parsedOutput.body;
|
|
4259
|
-
return throwDefaultError({
|
|
4260
|
-
output,
|
|
4261
|
-
parsedBody,
|
|
4262
|
-
errorCode
|
|
4263
|
-
});
|
|
4264
|
-
}
|
|
4265
|
-
}, "de_UpdateProvisionedProductCommandError");
|
|
4266
2290
|
var de_UpdateProvisionedProductPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4267
2291
|
if (output.statusCode >= 300) {
|
|
4268
|
-
return
|
|
2292
|
+
return de_CommandError(output, context);
|
|
4269
2293
|
}
|
|
4270
2294
|
const data = await parseBody(output.body, context);
|
|
4271
2295
|
let contents = {};
|
|
@@ -4276,34 +2300,9 @@ var de_UpdateProvisionedProductPropertiesCommand = /* @__PURE__ */ __name(async
|
|
|
4276
2300
|
};
|
|
4277
2301
|
return response;
|
|
4278
2302
|
}, "de_UpdateProvisionedProductPropertiesCommand");
|
|
4279
|
-
var de_UpdateProvisionedProductPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4280
|
-
const parsedOutput = {
|
|
4281
|
-
...output,
|
|
4282
|
-
body: await parseErrorBody(output.body, context)
|
|
4283
|
-
};
|
|
4284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4285
|
-
switch (errorCode) {
|
|
4286
|
-
case "InvalidParametersException":
|
|
4287
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4288
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4289
|
-
case "InvalidStateException":
|
|
4290
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
4291
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
4292
|
-
case "ResourceNotFoundException":
|
|
4293
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4295
|
-
default:
|
|
4296
|
-
const parsedBody = parsedOutput.body;
|
|
4297
|
-
return throwDefaultError({
|
|
4298
|
-
output,
|
|
4299
|
-
parsedBody,
|
|
4300
|
-
errorCode
|
|
4301
|
-
});
|
|
4302
|
-
}
|
|
4303
|
-
}, "de_UpdateProvisionedProductPropertiesCommandError");
|
|
4304
2303
|
var de_UpdateProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4305
2304
|
if (output.statusCode >= 300) {
|
|
4306
|
-
return
|
|
2305
|
+
return de_CommandError(output, context);
|
|
4307
2306
|
}
|
|
4308
2307
|
const data = await parseBody(output.body, context);
|
|
4309
2308
|
let contents = {};
|
|
@@ -4314,31 +2313,9 @@ var de_UpdateProvisioningArtifactCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4314
2313
|
};
|
|
4315
2314
|
return response;
|
|
4316
2315
|
}, "de_UpdateProvisioningArtifactCommand");
|
|
4317
|
-
var de_UpdateProvisioningArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4318
|
-
const parsedOutput = {
|
|
4319
|
-
...output,
|
|
4320
|
-
body: await parseErrorBody(output.body, context)
|
|
4321
|
-
};
|
|
4322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4323
|
-
switch (errorCode) {
|
|
4324
|
-
case "InvalidParametersException":
|
|
4325
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4326
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4327
|
-
case "ResourceNotFoundException":
|
|
4328
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4330
|
-
default:
|
|
4331
|
-
const parsedBody = parsedOutput.body;
|
|
4332
|
-
return throwDefaultError({
|
|
4333
|
-
output,
|
|
4334
|
-
parsedBody,
|
|
4335
|
-
errorCode
|
|
4336
|
-
});
|
|
4337
|
-
}
|
|
4338
|
-
}, "de_UpdateProvisioningArtifactCommandError");
|
|
4339
2316
|
var de_UpdateServiceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4340
2317
|
if (output.statusCode >= 300) {
|
|
4341
|
-
return
|
|
2318
|
+
return de_CommandError(output, context);
|
|
4342
2319
|
}
|
|
4343
2320
|
const data = await parseBody(output.body, context);
|
|
4344
2321
|
let contents = {};
|
|
@@ -4349,31 +2326,9 @@ var de_UpdateServiceActionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4349
2326
|
};
|
|
4350
2327
|
return response;
|
|
4351
2328
|
}, "de_UpdateServiceActionCommand");
|
|
4352
|
-
var de_UpdateServiceActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4353
|
-
const parsedOutput = {
|
|
4354
|
-
...output,
|
|
4355
|
-
body: await parseErrorBody(output.body, context)
|
|
4356
|
-
};
|
|
4357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4358
|
-
switch (errorCode) {
|
|
4359
|
-
case "InvalidParametersException":
|
|
4360
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4361
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
4362
|
-
case "ResourceNotFoundException":
|
|
4363
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4365
|
-
default:
|
|
4366
|
-
const parsedBody = parsedOutput.body;
|
|
4367
|
-
return throwDefaultError({
|
|
4368
|
-
output,
|
|
4369
|
-
parsedBody,
|
|
4370
|
-
errorCode
|
|
4371
|
-
});
|
|
4372
|
-
}
|
|
4373
|
-
}, "de_UpdateServiceActionCommandError");
|
|
4374
2329
|
var de_UpdateTagOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4375
2330
|
if (output.statusCode >= 300) {
|
|
4376
|
-
return
|
|
2331
|
+
return de_CommandError(output, context);
|
|
4377
2332
|
}
|
|
4378
2333
|
const data = await parseBody(output.body, context);
|
|
4379
2334
|
let contents = {};
|
|
@@ -4384,25 +2339,37 @@ var de_UpdateTagOptionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4384
2339
|
};
|
|
4385
2340
|
return response;
|
|
4386
2341
|
}, "de_UpdateTagOptionCommand");
|
|
4387
|
-
var
|
|
2342
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4388
2343
|
const parsedOutput = {
|
|
4389
2344
|
...output,
|
|
4390
2345
|
body: await parseErrorBody(output.body, context)
|
|
4391
2346
|
};
|
|
4392
2347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4393
2348
|
switch (errorCode) {
|
|
4394
|
-
case "DuplicateResourceException":
|
|
4395
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
4396
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
4397
2349
|
case "InvalidParametersException":
|
|
4398
2350
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
4399
2351
|
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2352
|
+
case "LimitExceededException":
|
|
2353
|
+
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
2354
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4400
2355
|
case "ResourceNotFoundException":
|
|
4401
2356
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
4402
2357
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2358
|
+
case "DuplicateResourceException":
|
|
2359
|
+
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
2360
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
2361
|
+
case "InvalidStateException":
|
|
2362
|
+
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2363
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
4403
2364
|
case "TagOptionNotMigratedException":
|
|
4404
2365
|
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
4405
2366
|
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2367
|
+
case "OperationNotSupportedException":
|
|
2368
|
+
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2369
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2370
|
+
case "ResourceInUseException":
|
|
2371
|
+
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2372
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4406
2373
|
default:
|
|
4407
2374
|
const parsedBody = parsedOutput.body;
|
|
4408
2375
|
return throwDefaultError({
|
|
@@ -4411,7 +2378,7 @@ var de_UpdateTagOptionCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
4411
2378
|
errorCode
|
|
4412
2379
|
});
|
|
4413
2380
|
}
|
|
4414
|
-
}, "
|
|
2381
|
+
}, "de_CommandError");
|
|
4415
2382
|
var de_DuplicateResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4416
2383
|
const body = parsedOutput.body;
|
|
4417
2384
|
const deserialized = (0, import_smithy_client._json)(body);
|