@aws-sdk/client-sns 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 CHANGED
@@ -1264,7 +1264,7 @@ var se_VerifySMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (input,
1264
1264
  }, "se_VerifySMSSandboxPhoneNumberCommand");
1265
1265
  var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
1266
  if (output.statusCode >= 300) {
1267
- return de_AddPermissionCommandError(output, context);
1267
+ return de_CommandError(output, context);
1268
1268
  }
1269
1269
  await (0, import_smithy_client.collectBody)(output.body, context);
1270
1270
  const response = {
@@ -1272,37 +1272,9 @@ var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
1272
1272
  };
1273
1273
  return response;
1274
1274
  }, "de_AddPermissionCommand");
1275
- var de_AddPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1276
- const parsedOutput = {
1277
- ...output,
1278
- body: await parseErrorBody(output.body, context)
1279
- };
1280
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1281
- switch (errorCode) {
1282
- case "AuthorizationError":
1283
- case "com.amazonaws.sns#AuthorizationErrorException":
1284
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1285
- case "InternalError":
1286
- case "com.amazonaws.sns#InternalErrorException":
1287
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1288
- case "InvalidParameter":
1289
- case "com.amazonaws.sns#InvalidParameterException":
1290
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1291
- case "NotFound":
1292
- case "com.amazonaws.sns#NotFoundException":
1293
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1294
- default:
1295
- const parsedBody = parsedOutput.body;
1296
- return throwDefaultError({
1297
- output,
1298
- parsedBody: parsedBody.Error,
1299
- errorCode
1300
- });
1301
- }
1302
- }, "de_AddPermissionCommandError");
1303
1275
  var de_CheckIfPhoneNumberIsOptedOutCommand = /* @__PURE__ */ __name(async (output, context) => {
1304
1276
  if (output.statusCode >= 300) {
1305
- return de_CheckIfPhoneNumberIsOptedOutCommandError(output, context);
1277
+ return de_CommandError(output, context);
1306
1278
  }
1307
1279
  const data = await parseBody(output.body, context);
1308
1280
  let contents = {};
@@ -1313,37 +1285,9 @@ var de_CheckIfPhoneNumberIsOptedOutCommand = /* @__PURE__ */ __name(async (outpu
1313
1285
  };
1314
1286
  return response;
1315
1287
  }, "de_CheckIfPhoneNumberIsOptedOutCommand");
1316
- var de_CheckIfPhoneNumberIsOptedOutCommandError = /* @__PURE__ */ __name(async (output, context) => {
1317
- const parsedOutput = {
1318
- ...output,
1319
- body: await parseErrorBody(output.body, context)
1320
- };
1321
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1322
- switch (errorCode) {
1323
- case "AuthorizationError":
1324
- case "com.amazonaws.sns#AuthorizationErrorException":
1325
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1326
- case "InternalError":
1327
- case "com.amazonaws.sns#InternalErrorException":
1328
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1329
- case "InvalidParameter":
1330
- case "com.amazonaws.sns#InvalidParameterException":
1331
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1332
- case "Throttled":
1333
- case "com.amazonaws.sns#ThrottledException":
1334
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1335
- default:
1336
- const parsedBody = parsedOutput.body;
1337
- return throwDefaultError({
1338
- output,
1339
- parsedBody: parsedBody.Error,
1340
- errorCode
1341
- });
1342
- }
1343
- }, "de_CheckIfPhoneNumberIsOptedOutCommandError");
1344
1288
  var de_ConfirmSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1345
1289
  if (output.statusCode >= 300) {
1346
- return de_ConfirmSubscriptionCommandError(output, context);
1290
+ return de_CommandError(output, context);
1347
1291
  }
1348
1292
  const data = await parseBody(output.body, context);
1349
1293
  let contents = {};
@@ -1354,46 +1298,9 @@ var de_ConfirmSubscriptionCommand = /* @__PURE__ */ __name(async (output, contex
1354
1298
  };
1355
1299
  return response;
1356
1300
  }, "de_ConfirmSubscriptionCommand");
1357
- var de_ConfirmSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1358
- const parsedOutput = {
1359
- ...output,
1360
- body: await parseErrorBody(output.body, context)
1361
- };
1362
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1363
- switch (errorCode) {
1364
- case "AuthorizationError":
1365
- case "com.amazonaws.sns#AuthorizationErrorException":
1366
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1367
- case "FilterPolicyLimitExceeded":
1368
- case "com.amazonaws.sns#FilterPolicyLimitExceededException":
1369
- throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
1370
- case "InternalError":
1371
- case "com.amazonaws.sns#InternalErrorException":
1372
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1373
- case "InvalidParameter":
1374
- case "com.amazonaws.sns#InvalidParameterException":
1375
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1376
- case "NotFound":
1377
- case "com.amazonaws.sns#NotFoundException":
1378
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1379
- case "ReplayLimitExceeded":
1380
- case "com.amazonaws.sns#ReplayLimitExceededException":
1381
- throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
1382
- case "SubscriptionLimitExceeded":
1383
- case "com.amazonaws.sns#SubscriptionLimitExceededException":
1384
- throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
1385
- default:
1386
- const parsedBody = parsedOutput.body;
1387
- return throwDefaultError({
1388
- output,
1389
- parsedBody: parsedBody.Error,
1390
- errorCode
1391
- });
1392
- }
1393
- }, "de_ConfirmSubscriptionCommandError");
1394
1301
  var de_CreatePlatformApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1395
1302
  if (output.statusCode >= 300) {
1396
- return de_CreatePlatformApplicationCommandError(output, context);
1303
+ return de_CommandError(output, context);
1397
1304
  }
1398
1305
  const data = await parseBody(output.body, context);
1399
1306
  let contents = {};
@@ -1404,34 +1311,9 @@ var de_CreatePlatformApplicationCommand = /* @__PURE__ */ __name(async (output,
1404
1311
  };
1405
1312
  return response;
1406
1313
  }, "de_CreatePlatformApplicationCommand");
1407
- var de_CreatePlatformApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1408
- const parsedOutput = {
1409
- ...output,
1410
- body: await parseErrorBody(output.body, context)
1411
- };
1412
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1413
- switch (errorCode) {
1414
- case "AuthorizationError":
1415
- case "com.amazonaws.sns#AuthorizationErrorException":
1416
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1417
- case "InternalError":
1418
- case "com.amazonaws.sns#InternalErrorException":
1419
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1420
- case "InvalidParameter":
1421
- case "com.amazonaws.sns#InvalidParameterException":
1422
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1423
- default:
1424
- const parsedBody = parsedOutput.body;
1425
- return throwDefaultError({
1426
- output,
1427
- parsedBody: parsedBody.Error,
1428
- errorCode
1429
- });
1430
- }
1431
- }, "de_CreatePlatformApplicationCommandError");
1432
1314
  var de_CreatePlatformEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1433
1315
  if (output.statusCode >= 300) {
1434
- return de_CreatePlatformEndpointCommandError(output, context);
1316
+ return de_CommandError(output, context);
1435
1317
  }
1436
1318
  const data = await parseBody(output.body, context);
1437
1319
  let contents = {};
@@ -1442,37 +1324,9 @@ var de_CreatePlatformEndpointCommand = /* @__PURE__ */ __name(async (output, con
1442
1324
  };
1443
1325
  return response;
1444
1326
  }, "de_CreatePlatformEndpointCommand");
1445
- var de_CreatePlatformEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1446
- const parsedOutput = {
1447
- ...output,
1448
- body: await parseErrorBody(output.body, context)
1449
- };
1450
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1451
- switch (errorCode) {
1452
- case "AuthorizationError":
1453
- case "com.amazonaws.sns#AuthorizationErrorException":
1454
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1455
- case "InternalError":
1456
- case "com.amazonaws.sns#InternalErrorException":
1457
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1458
- case "InvalidParameter":
1459
- case "com.amazonaws.sns#InvalidParameterException":
1460
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1461
- case "NotFound":
1462
- case "com.amazonaws.sns#NotFoundException":
1463
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1464
- default:
1465
- const parsedBody = parsedOutput.body;
1466
- return throwDefaultError({
1467
- output,
1468
- parsedBody: parsedBody.Error,
1469
- errorCode
1470
- });
1471
- }
1472
- }, "de_CreatePlatformEndpointCommandError");
1473
1327
  var de_CreateSMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
1474
1328
  if (output.statusCode >= 300) {
1475
- return de_CreateSMSSandboxPhoneNumberCommandError(output, context);
1329
+ return de_CommandError(output, context);
1476
1330
  }
1477
1331
  const data = await parseBody(output.body, context);
1478
1332
  let contents = {};
@@ -1483,43 +1337,9 @@ var de_CreateSMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output
1483
1337
  };
1484
1338
  return response;
1485
1339
  }, "de_CreateSMSSandboxPhoneNumberCommand");
1486
- var de_CreateSMSSandboxPhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1487
- const parsedOutput = {
1488
- ...output,
1489
- body: await parseErrorBody(output.body, context)
1490
- };
1491
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1492
- switch (errorCode) {
1493
- case "AuthorizationError":
1494
- case "com.amazonaws.sns#AuthorizationErrorException":
1495
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1496
- case "InternalError":
1497
- case "com.amazonaws.sns#InternalErrorException":
1498
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1499
- case "InvalidParameter":
1500
- case "com.amazonaws.sns#InvalidParameterException":
1501
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1502
- case "OptedOut":
1503
- case "com.amazonaws.sns#OptedOutException":
1504
- throw await de_OptedOutExceptionRes(parsedOutput, context);
1505
- case "Throttled":
1506
- case "com.amazonaws.sns#ThrottledException":
1507
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1508
- case "UserError":
1509
- case "com.amazonaws.sns#UserErrorException":
1510
- throw await de_UserErrorExceptionRes(parsedOutput, context);
1511
- default:
1512
- const parsedBody = parsedOutput.body;
1513
- return throwDefaultError({
1514
- output,
1515
- parsedBody: parsedBody.Error,
1516
- errorCode
1517
- });
1518
- }
1519
- }, "de_CreateSMSSandboxPhoneNumberCommandError");
1520
1340
  var de_CreateTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
1521
1341
  if (output.statusCode >= 300) {
1522
- return de_CreateTopicCommandError(output, context);
1342
+ return de_CommandError(output, context);
1523
1343
  }
1524
1344
  const data = await parseBody(output.body, context);
1525
1345
  let contents = {};
@@ -1530,52 +1350,9 @@ var de_CreateTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
1350
  };
1531
1351
  return response;
1532
1352
  }, "de_CreateTopicCommand");
1533
- var de_CreateTopicCommandError = /* @__PURE__ */ __name(async (output, context) => {
1534
- const parsedOutput = {
1535
- ...output,
1536
- body: await parseErrorBody(output.body, context)
1537
- };
1538
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1539
- switch (errorCode) {
1540
- case "AuthorizationError":
1541
- case "com.amazonaws.sns#AuthorizationErrorException":
1542
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1543
- case "ConcurrentAccess":
1544
- case "com.amazonaws.sns#ConcurrentAccessException":
1545
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
1546
- case "InternalError":
1547
- case "com.amazonaws.sns#InternalErrorException":
1548
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1549
- case "InvalidParameter":
1550
- case "com.amazonaws.sns#InvalidParameterException":
1551
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1552
- case "InvalidSecurity":
1553
- case "com.amazonaws.sns#InvalidSecurityException":
1554
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
1555
- case "StaleTag":
1556
- case "com.amazonaws.sns#StaleTagException":
1557
- throw await de_StaleTagExceptionRes(parsedOutput, context);
1558
- case "TagLimitExceeded":
1559
- case "com.amazonaws.sns#TagLimitExceededException":
1560
- throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1561
- case "TagPolicy":
1562
- case "com.amazonaws.sns#TagPolicyException":
1563
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
1564
- case "TopicLimitExceeded":
1565
- case "com.amazonaws.sns#TopicLimitExceededException":
1566
- throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
1567
- default:
1568
- const parsedBody = parsedOutput.body;
1569
- return throwDefaultError({
1570
- output,
1571
- parsedBody: parsedBody.Error,
1572
- errorCode
1573
- });
1574
- }
1575
- }, "de_CreateTopicCommandError");
1576
1353
  var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1577
1354
  if (output.statusCode >= 300) {
1578
- return de_DeleteEndpointCommandError(output, context);
1355
+ return de_CommandError(output, context);
1579
1356
  }
1580
1357
  await (0, import_smithy_client.collectBody)(output.body, context);
1581
1358
  const response = {
@@ -1583,34 +1360,9 @@ var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
1583
1360
  };
1584
1361
  return response;
1585
1362
  }, "de_DeleteEndpointCommand");
1586
- var de_DeleteEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1587
- const parsedOutput = {
1588
- ...output,
1589
- body: await parseErrorBody(output.body, context)
1590
- };
1591
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1592
- switch (errorCode) {
1593
- case "AuthorizationError":
1594
- case "com.amazonaws.sns#AuthorizationErrorException":
1595
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1596
- case "InternalError":
1597
- case "com.amazonaws.sns#InternalErrorException":
1598
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1599
- case "InvalidParameter":
1600
- case "com.amazonaws.sns#InvalidParameterException":
1601
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1602
- default:
1603
- const parsedBody = parsedOutput.body;
1604
- return throwDefaultError({
1605
- output,
1606
- parsedBody: parsedBody.Error,
1607
- errorCode
1608
- });
1609
- }
1610
- }, "de_DeleteEndpointCommandError");
1611
1363
  var de_DeletePlatformApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1612
1364
  if (output.statusCode >= 300) {
1613
- return de_DeletePlatformApplicationCommandError(output, context);
1365
+ return de_CommandError(output, context);
1614
1366
  }
1615
1367
  await (0, import_smithy_client.collectBody)(output.body, context);
1616
1368
  const response = {
@@ -1618,34 +1370,9 @@ var de_DeletePlatformApplicationCommand = /* @__PURE__ */ __name(async (output,
1618
1370
  };
1619
1371
  return response;
1620
1372
  }, "de_DeletePlatformApplicationCommand");
1621
- var de_DeletePlatformApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1622
- const parsedOutput = {
1623
- ...output,
1624
- body: await parseErrorBody(output.body, context)
1625
- };
1626
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1627
- switch (errorCode) {
1628
- case "AuthorizationError":
1629
- case "com.amazonaws.sns#AuthorizationErrorException":
1630
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1631
- case "InternalError":
1632
- case "com.amazonaws.sns#InternalErrorException":
1633
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1634
- case "InvalidParameter":
1635
- case "com.amazonaws.sns#InvalidParameterException":
1636
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1637
- default:
1638
- const parsedBody = parsedOutput.body;
1639
- return throwDefaultError({
1640
- output,
1641
- parsedBody: parsedBody.Error,
1642
- errorCode
1643
- });
1644
- }
1645
- }, "de_DeletePlatformApplicationCommandError");
1646
1373
  var de_DeleteSMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
1374
  if (output.statusCode >= 300) {
1648
- return de_DeleteSMSSandboxPhoneNumberCommandError(output, context);
1375
+ return de_CommandError(output, context);
1649
1376
  }
1650
1377
  const data = await parseBody(output.body, context);
1651
1378
  let contents = {};
@@ -1656,43 +1383,9 @@ var de_DeleteSMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output
1656
1383
  };
1657
1384
  return response;
1658
1385
  }, "de_DeleteSMSSandboxPhoneNumberCommand");
1659
- var de_DeleteSMSSandboxPhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1660
- const parsedOutput = {
1661
- ...output,
1662
- body: await parseErrorBody(output.body, context)
1663
- };
1664
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1665
- switch (errorCode) {
1666
- case "AuthorizationError":
1667
- case "com.amazonaws.sns#AuthorizationErrorException":
1668
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1669
- case "InternalError":
1670
- case "com.amazonaws.sns#InternalErrorException":
1671
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1672
- case "InvalidParameter":
1673
- case "com.amazonaws.sns#InvalidParameterException":
1674
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1675
- case "ResourceNotFound":
1676
- case "com.amazonaws.sns#ResourceNotFoundException":
1677
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1678
- case "Throttled":
1679
- case "com.amazonaws.sns#ThrottledException":
1680
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1681
- case "UserError":
1682
- case "com.amazonaws.sns#UserErrorException":
1683
- throw await de_UserErrorExceptionRes(parsedOutput, context);
1684
- default:
1685
- const parsedBody = parsedOutput.body;
1686
- return throwDefaultError({
1687
- output,
1688
- parsedBody: parsedBody.Error,
1689
- errorCode
1690
- });
1691
- }
1692
- }, "de_DeleteSMSSandboxPhoneNumberCommandError");
1693
1386
  var de_DeleteTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
1694
1387
  if (output.statusCode >= 300) {
1695
- return de_DeleteTopicCommandError(output, context);
1388
+ return de_CommandError(output, context);
1696
1389
  }
1697
1390
  await (0, import_smithy_client.collectBody)(output.body, context);
1698
1391
  const response = {
@@ -1700,49 +1393,9 @@ var de_DeleteTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
1700
1393
  };
1701
1394
  return response;
1702
1395
  }, "de_DeleteTopicCommand");
1703
- var de_DeleteTopicCommandError = /* @__PURE__ */ __name(async (output, context) => {
1704
- const parsedOutput = {
1705
- ...output,
1706
- body: await parseErrorBody(output.body, context)
1707
- };
1708
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1709
- switch (errorCode) {
1710
- case "AuthorizationError":
1711
- case "com.amazonaws.sns#AuthorizationErrorException":
1712
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1713
- case "ConcurrentAccess":
1714
- case "com.amazonaws.sns#ConcurrentAccessException":
1715
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
1716
- case "InternalError":
1717
- case "com.amazonaws.sns#InternalErrorException":
1718
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1719
- case "InvalidParameter":
1720
- case "com.amazonaws.sns#InvalidParameterException":
1721
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1722
- case "InvalidState":
1723
- case "com.amazonaws.sns#InvalidStateException":
1724
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1725
- case "NotFound":
1726
- case "com.amazonaws.sns#NotFoundException":
1727
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1728
- case "StaleTag":
1729
- case "com.amazonaws.sns#StaleTagException":
1730
- throw await de_StaleTagExceptionRes(parsedOutput, context);
1731
- case "TagPolicy":
1732
- case "com.amazonaws.sns#TagPolicyException":
1733
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
1734
- default:
1735
- const parsedBody = parsedOutput.body;
1736
- return throwDefaultError({
1737
- output,
1738
- parsedBody: parsedBody.Error,
1739
- errorCode
1740
- });
1741
- }
1742
- }, "de_DeleteTopicCommandError");
1743
1396
  var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1744
1397
  if (output.statusCode >= 300) {
1745
- return de_GetDataProtectionPolicyCommandError(output, context);
1398
+ return de_CommandError(output, context);
1746
1399
  }
1747
1400
  const data = await parseBody(output.body, context);
1748
1401
  let contents = {};
@@ -1753,40 +1406,9 @@ var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
1753
1406
  };
1754
1407
  return response;
1755
1408
  }, "de_GetDataProtectionPolicyCommand");
1756
- var de_GetDataProtectionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1757
- const parsedOutput = {
1758
- ...output,
1759
- body: await parseErrorBody(output.body, context)
1760
- };
1761
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1762
- switch (errorCode) {
1763
- case "AuthorizationError":
1764
- case "com.amazonaws.sns#AuthorizationErrorException":
1765
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1766
- case "InternalError":
1767
- case "com.amazonaws.sns#InternalErrorException":
1768
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1769
- case "InvalidParameter":
1770
- case "com.amazonaws.sns#InvalidParameterException":
1771
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1772
- case "InvalidSecurity":
1773
- case "com.amazonaws.sns#InvalidSecurityException":
1774
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
1775
- case "NotFound":
1776
- case "com.amazonaws.sns#NotFoundException":
1777
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1778
- default:
1779
- const parsedBody = parsedOutput.body;
1780
- return throwDefaultError({
1781
- output,
1782
- parsedBody: parsedBody.Error,
1783
- errorCode
1784
- });
1785
- }
1786
- }, "de_GetDataProtectionPolicyCommandError");
1787
1409
  var de_GetEndpointAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1788
1410
  if (output.statusCode >= 300) {
1789
- return de_GetEndpointAttributesCommandError(output, context);
1411
+ return de_CommandError(output, context);
1790
1412
  }
1791
1413
  const data = await parseBody(output.body, context);
1792
1414
  let contents = {};
@@ -1797,37 +1419,9 @@ var de_GetEndpointAttributesCommand = /* @__PURE__ */ __name(async (output, cont
1797
1419
  };
1798
1420
  return response;
1799
1421
  }, "de_GetEndpointAttributesCommand");
1800
- var de_GetEndpointAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1801
- const parsedOutput = {
1802
- ...output,
1803
- body: await parseErrorBody(output.body, context)
1804
- };
1805
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1806
- switch (errorCode) {
1807
- case "AuthorizationError":
1808
- case "com.amazonaws.sns#AuthorizationErrorException":
1809
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1810
- case "InternalError":
1811
- case "com.amazonaws.sns#InternalErrorException":
1812
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1813
- case "InvalidParameter":
1814
- case "com.amazonaws.sns#InvalidParameterException":
1815
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1816
- case "NotFound":
1817
- case "com.amazonaws.sns#NotFoundException":
1818
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1819
- default:
1820
- const parsedBody = parsedOutput.body;
1821
- return throwDefaultError({
1822
- output,
1823
- parsedBody: parsedBody.Error,
1824
- errorCode
1825
- });
1826
- }
1827
- }, "de_GetEndpointAttributesCommandError");
1828
1422
  var de_GetPlatformApplicationAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1829
1423
  if (output.statusCode >= 300) {
1830
- return de_GetPlatformApplicationAttributesCommandError(output, context);
1424
+ return de_CommandError(output, context);
1831
1425
  }
1832
1426
  const data = await parseBody(output.body, context);
1833
1427
  let contents = {};
@@ -1838,37 +1432,9 @@ var de_GetPlatformApplicationAttributesCommand = /* @__PURE__ */ __name(async (o
1838
1432
  };
1839
1433
  return response;
1840
1434
  }, "de_GetPlatformApplicationAttributesCommand");
1841
- var de_GetPlatformApplicationAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1842
- const parsedOutput = {
1843
- ...output,
1844
- body: await parseErrorBody(output.body, context)
1845
- };
1846
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1847
- switch (errorCode) {
1848
- case "AuthorizationError":
1849
- case "com.amazonaws.sns#AuthorizationErrorException":
1850
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1851
- case "InternalError":
1852
- case "com.amazonaws.sns#InternalErrorException":
1853
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1854
- case "InvalidParameter":
1855
- case "com.amazonaws.sns#InvalidParameterException":
1856
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1857
- case "NotFound":
1858
- case "com.amazonaws.sns#NotFoundException":
1859
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1860
- default:
1861
- const parsedBody = parsedOutput.body;
1862
- return throwDefaultError({
1863
- output,
1864
- parsedBody: parsedBody.Error,
1865
- errorCode
1866
- });
1867
- }
1868
- }, "de_GetPlatformApplicationAttributesCommandError");
1869
1435
  var de_GetSMSAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1870
1436
  if (output.statusCode >= 300) {
1871
- return de_GetSMSAttributesCommandError(output, context);
1437
+ return de_CommandError(output, context);
1872
1438
  }
1873
1439
  const data = await parseBody(output.body, context);
1874
1440
  let contents = {};
@@ -1879,37 +1445,9 @@ var de_GetSMSAttributesCommand = /* @__PURE__ */ __name(async (output, context)
1879
1445
  };
1880
1446
  return response;
1881
1447
  }, "de_GetSMSAttributesCommand");
1882
- var de_GetSMSAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1883
- const parsedOutput = {
1884
- ...output,
1885
- body: await parseErrorBody(output.body, context)
1886
- };
1887
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1888
- switch (errorCode) {
1889
- case "AuthorizationError":
1890
- case "com.amazonaws.sns#AuthorizationErrorException":
1891
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1892
- case "InternalError":
1893
- case "com.amazonaws.sns#InternalErrorException":
1894
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1895
- case "InvalidParameter":
1896
- case "com.amazonaws.sns#InvalidParameterException":
1897
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1898
- case "Throttled":
1899
- case "com.amazonaws.sns#ThrottledException":
1900
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1901
- default:
1902
- const parsedBody = parsedOutput.body;
1903
- return throwDefaultError({
1904
- output,
1905
- parsedBody: parsedBody.Error,
1906
- errorCode
1907
- });
1908
- }
1909
- }, "de_GetSMSAttributesCommandError");
1910
1448
  var de_GetSMSSandboxAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1911
1449
  if (output.statusCode >= 300) {
1912
- return de_GetSMSSandboxAccountStatusCommandError(output, context);
1450
+ return de_CommandError(output, context);
1913
1451
  }
1914
1452
  const data = await parseBody(output.body, context);
1915
1453
  let contents = {};
@@ -1920,34 +1458,9 @@ var de_GetSMSSandboxAccountStatusCommand = /* @__PURE__ */ __name(async (output,
1920
1458
  };
1921
1459
  return response;
1922
1460
  }, "de_GetSMSSandboxAccountStatusCommand");
1923
- var de_GetSMSSandboxAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1924
- const parsedOutput = {
1925
- ...output,
1926
- body: await parseErrorBody(output.body, context)
1927
- };
1928
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1929
- switch (errorCode) {
1930
- case "AuthorizationError":
1931
- case "com.amazonaws.sns#AuthorizationErrorException":
1932
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1933
- case "InternalError":
1934
- case "com.amazonaws.sns#InternalErrorException":
1935
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1936
- case "Throttled":
1937
- case "com.amazonaws.sns#ThrottledException":
1938
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1939
- default:
1940
- const parsedBody = parsedOutput.body;
1941
- return throwDefaultError({
1942
- output,
1943
- parsedBody: parsedBody.Error,
1944
- errorCode
1945
- });
1946
- }
1947
- }, "de_GetSMSSandboxAccountStatusCommandError");
1948
1461
  var de_GetSubscriptionAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1949
1462
  if (output.statusCode >= 300) {
1950
- return de_GetSubscriptionAttributesCommandError(output, context);
1463
+ return de_CommandError(output, context);
1951
1464
  }
1952
1465
  const data = await parseBody(output.body, context);
1953
1466
  let contents = {};
@@ -1958,37 +1471,9 @@ var de_GetSubscriptionAttributesCommand = /* @__PURE__ */ __name(async (output,
1958
1471
  };
1959
1472
  return response;
1960
1473
  }, "de_GetSubscriptionAttributesCommand");
1961
- var de_GetSubscriptionAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1962
- const parsedOutput = {
1963
- ...output,
1964
- body: await parseErrorBody(output.body, context)
1965
- };
1966
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1967
- switch (errorCode) {
1968
- case "AuthorizationError":
1969
- case "com.amazonaws.sns#AuthorizationErrorException":
1970
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1971
- case "InternalError":
1972
- case "com.amazonaws.sns#InternalErrorException":
1973
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1974
- case "InvalidParameter":
1975
- case "com.amazonaws.sns#InvalidParameterException":
1976
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1977
- case "NotFound":
1978
- case "com.amazonaws.sns#NotFoundException":
1979
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1980
- default:
1981
- const parsedBody = parsedOutput.body;
1982
- return throwDefaultError({
1983
- output,
1984
- parsedBody: parsedBody.Error,
1985
- errorCode
1986
- });
1987
- }
1988
- }, "de_GetSubscriptionAttributesCommandError");
1989
1474
  var de_GetTopicAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1990
1475
  if (output.statusCode >= 300) {
1991
- return de_GetTopicAttributesCommandError(output, context);
1476
+ return de_CommandError(output, context);
1992
1477
  }
1993
1478
  const data = await parseBody(output.body, context);
1994
1479
  let contents = {};
@@ -1999,40 +1484,9 @@ var de_GetTopicAttributesCommand = /* @__PURE__ */ __name(async (output, context
1999
1484
  };
2000
1485
  return response;
2001
1486
  }, "de_GetTopicAttributesCommand");
2002
- var de_GetTopicAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2003
- const parsedOutput = {
2004
- ...output,
2005
- body: await parseErrorBody(output.body, context)
2006
- };
2007
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2008
- switch (errorCode) {
2009
- case "AuthorizationError":
2010
- case "com.amazonaws.sns#AuthorizationErrorException":
2011
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2012
- case "InternalError":
2013
- case "com.amazonaws.sns#InternalErrorException":
2014
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2015
- case "InvalidParameter":
2016
- case "com.amazonaws.sns#InvalidParameterException":
2017
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2018
- case "InvalidSecurity":
2019
- case "com.amazonaws.sns#InvalidSecurityException":
2020
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2021
- case "NotFound":
2022
- case "com.amazonaws.sns#NotFoundException":
2023
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2024
- default:
2025
- const parsedBody = parsedOutput.body;
2026
- return throwDefaultError({
2027
- output,
2028
- parsedBody: parsedBody.Error,
2029
- errorCode
2030
- });
2031
- }
2032
- }, "de_GetTopicAttributesCommandError");
2033
1487
  var de_ListEndpointsByPlatformApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
2034
1488
  if (output.statusCode >= 300) {
2035
- return de_ListEndpointsByPlatformApplicationCommandError(output, context);
1489
+ return de_CommandError(output, context);
2036
1490
  }
2037
1491
  const data = await parseBody(output.body, context);
2038
1492
  let contents = {};
@@ -2043,37 +1497,9 @@ var de_ListEndpointsByPlatformApplicationCommand = /* @__PURE__ */ __name(async
2043
1497
  };
2044
1498
  return response;
2045
1499
  }, "de_ListEndpointsByPlatformApplicationCommand");
2046
- var de_ListEndpointsByPlatformApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
- const parsedOutput = {
2048
- ...output,
2049
- body: await parseErrorBody(output.body, context)
2050
- };
2051
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- case "AuthorizationError":
2054
- case "com.amazonaws.sns#AuthorizationErrorException":
2055
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2056
- case "InternalError":
2057
- case "com.amazonaws.sns#InternalErrorException":
2058
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2059
- case "InvalidParameter":
2060
- case "com.amazonaws.sns#InvalidParameterException":
2061
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2062
- case "NotFound":
2063
- case "com.amazonaws.sns#NotFoundException":
2064
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2065
- default:
2066
- const parsedBody = parsedOutput.body;
2067
- return throwDefaultError({
2068
- output,
2069
- parsedBody: parsedBody.Error,
2070
- errorCode
2071
- });
2072
- }
2073
- }, "de_ListEndpointsByPlatformApplicationCommandError");
2074
1500
  var de_ListOriginationNumbersCommand = /* @__PURE__ */ __name(async (output, context) => {
2075
1501
  if (output.statusCode >= 300) {
2076
- return de_ListOriginationNumbersCommandError(output, context);
1502
+ return de_CommandError(output, context);
2077
1503
  }
2078
1504
  const data = await parseBody(output.body, context);
2079
1505
  let contents = {};
@@ -2084,40 +1510,9 @@ var de_ListOriginationNumbersCommand = /* @__PURE__ */ __name(async (output, con
2084
1510
  };
2085
1511
  return response;
2086
1512
  }, "de_ListOriginationNumbersCommand");
2087
- var de_ListOriginationNumbersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2088
- const parsedOutput = {
2089
- ...output,
2090
- body: await parseErrorBody(output.body, context)
2091
- };
2092
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2093
- switch (errorCode) {
2094
- case "AuthorizationError":
2095
- case "com.amazonaws.sns#AuthorizationErrorException":
2096
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2097
- case "InternalError":
2098
- case "com.amazonaws.sns#InternalErrorException":
2099
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2100
- case "InvalidParameter":
2101
- case "com.amazonaws.sns#InvalidParameterException":
2102
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2103
- case "Throttled":
2104
- case "com.amazonaws.sns#ThrottledException":
2105
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2106
- case "ValidationException":
2107
- case "com.amazonaws.sns#ValidationException":
2108
- throw await de_ValidationExceptionRes(parsedOutput, context);
2109
- default:
2110
- const parsedBody = parsedOutput.body;
2111
- return throwDefaultError({
2112
- output,
2113
- parsedBody: parsedBody.Error,
2114
- errorCode
2115
- });
2116
- }
2117
- }, "de_ListOriginationNumbersCommandError");
2118
1513
  var de_ListPhoneNumbersOptedOutCommand = /* @__PURE__ */ __name(async (output, context) => {
2119
1514
  if (output.statusCode >= 300) {
2120
- return de_ListPhoneNumbersOptedOutCommandError(output, context);
1515
+ return de_CommandError(output, context);
2121
1516
  }
2122
1517
  const data = await parseBody(output.body, context);
2123
1518
  let contents = {};
@@ -2128,37 +1523,9 @@ var de_ListPhoneNumbersOptedOutCommand = /* @__PURE__ */ __name(async (output, c
2128
1523
  };
2129
1524
  return response;
2130
1525
  }, "de_ListPhoneNumbersOptedOutCommand");
2131
- var de_ListPhoneNumbersOptedOutCommandError = /* @__PURE__ */ __name(async (output, context) => {
2132
- const parsedOutput = {
2133
- ...output,
2134
- body: await parseErrorBody(output.body, context)
2135
- };
2136
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2137
- switch (errorCode) {
2138
- case "AuthorizationError":
2139
- case "com.amazonaws.sns#AuthorizationErrorException":
2140
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2141
- case "InternalError":
2142
- case "com.amazonaws.sns#InternalErrorException":
2143
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2144
- case "InvalidParameter":
2145
- case "com.amazonaws.sns#InvalidParameterException":
2146
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2147
- case "Throttled":
2148
- case "com.amazonaws.sns#ThrottledException":
2149
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2150
- default:
2151
- const parsedBody = parsedOutput.body;
2152
- return throwDefaultError({
2153
- output,
2154
- parsedBody: parsedBody.Error,
2155
- errorCode
2156
- });
2157
- }
2158
- }, "de_ListPhoneNumbersOptedOutCommandError");
2159
1526
  var de_ListPlatformApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2160
1527
  if (output.statusCode >= 300) {
2161
- return de_ListPlatformApplicationsCommandError(output, context);
1528
+ return de_CommandError(output, context);
2162
1529
  }
2163
1530
  const data = await parseBody(output.body, context);
2164
1531
  let contents = {};
@@ -2169,34 +1536,9 @@ var de_ListPlatformApplicationsCommand = /* @__PURE__ */ __name(async (output, c
2169
1536
  };
2170
1537
  return response;
2171
1538
  }, "de_ListPlatformApplicationsCommand");
2172
- var de_ListPlatformApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2173
- const parsedOutput = {
2174
- ...output,
2175
- body: await parseErrorBody(output.body, context)
2176
- };
2177
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2178
- switch (errorCode) {
2179
- case "AuthorizationError":
2180
- case "com.amazonaws.sns#AuthorizationErrorException":
2181
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2182
- case "InternalError":
2183
- case "com.amazonaws.sns#InternalErrorException":
2184
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2185
- case "InvalidParameter":
2186
- case "com.amazonaws.sns#InvalidParameterException":
2187
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2188
- default:
2189
- const parsedBody = parsedOutput.body;
2190
- return throwDefaultError({
2191
- output,
2192
- parsedBody: parsedBody.Error,
2193
- errorCode
2194
- });
2195
- }
2196
- }, "de_ListPlatformApplicationsCommandError");
2197
1539
  var de_ListSMSSandboxPhoneNumbersCommand = /* @__PURE__ */ __name(async (output, context) => {
2198
1540
  if (output.statusCode >= 300) {
2199
- return de_ListSMSSandboxPhoneNumbersCommandError(output, context);
1541
+ return de_CommandError(output, context);
2200
1542
  }
2201
1543
  const data = await parseBody(output.body, context);
2202
1544
  let contents = {};
@@ -2207,40 +1549,9 @@ var de_ListSMSSandboxPhoneNumbersCommand = /* @__PURE__ */ __name(async (output,
2207
1549
  };
2208
1550
  return response;
2209
1551
  }, "de_ListSMSSandboxPhoneNumbersCommand");
2210
- var de_ListSMSSandboxPhoneNumbersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2211
- const parsedOutput = {
2212
- ...output,
2213
- body: await parseErrorBody(output.body, context)
2214
- };
2215
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2216
- switch (errorCode) {
2217
- case "AuthorizationError":
2218
- case "com.amazonaws.sns#AuthorizationErrorException":
2219
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2220
- case "InternalError":
2221
- case "com.amazonaws.sns#InternalErrorException":
2222
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2223
- case "InvalidParameter":
2224
- case "com.amazonaws.sns#InvalidParameterException":
2225
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2226
- case "ResourceNotFound":
2227
- case "com.amazonaws.sns#ResourceNotFoundException":
2228
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2229
- case "Throttled":
2230
- case "com.amazonaws.sns#ThrottledException":
2231
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2232
- default:
2233
- const parsedBody = parsedOutput.body;
2234
- return throwDefaultError({
2235
- output,
2236
- parsedBody: parsedBody.Error,
2237
- errorCode
2238
- });
2239
- }
2240
- }, "de_ListSMSSandboxPhoneNumbersCommandError");
2241
1552
  var de_ListSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2242
1553
  if (output.statusCode >= 300) {
2243
- return de_ListSubscriptionsCommandError(output, context);
1554
+ return de_CommandError(output, context);
2244
1555
  }
2245
1556
  const data = await parseBody(output.body, context);
2246
1557
  let contents = {};
@@ -2251,34 +1562,9 @@ var de_ListSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context)
2251
1562
  };
2252
1563
  return response;
2253
1564
  }, "de_ListSubscriptionsCommand");
2254
- var de_ListSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2255
- const parsedOutput = {
2256
- ...output,
2257
- body: await parseErrorBody(output.body, context)
2258
- };
2259
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2260
- switch (errorCode) {
2261
- case "AuthorizationError":
2262
- case "com.amazonaws.sns#AuthorizationErrorException":
2263
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2264
- case "InternalError":
2265
- case "com.amazonaws.sns#InternalErrorException":
2266
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2267
- case "InvalidParameter":
2268
- case "com.amazonaws.sns#InvalidParameterException":
2269
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2270
- default:
2271
- const parsedBody = parsedOutput.body;
2272
- return throwDefaultError({
2273
- output,
2274
- parsedBody: parsedBody.Error,
2275
- errorCode
2276
- });
2277
- }
2278
- }, "de_ListSubscriptionsCommandError");
2279
1565
  var de_ListSubscriptionsByTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
2280
1566
  if (output.statusCode >= 300) {
2281
- return de_ListSubscriptionsByTopicCommandError(output, context);
1567
+ return de_CommandError(output, context);
2282
1568
  }
2283
1569
  const data = await parseBody(output.body, context);
2284
1570
  let contents = {};
@@ -2289,37 +1575,9 @@ var de_ListSubscriptionsByTopicCommand = /* @__PURE__ */ __name(async (output, c
2289
1575
  };
2290
1576
  return response;
2291
1577
  }, "de_ListSubscriptionsByTopicCommand");
2292
- var de_ListSubscriptionsByTopicCommandError = /* @__PURE__ */ __name(async (output, context) => {
2293
- const parsedOutput = {
2294
- ...output,
2295
- body: await parseErrorBody(output.body, context)
2296
- };
2297
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2298
- switch (errorCode) {
2299
- case "AuthorizationError":
2300
- case "com.amazonaws.sns#AuthorizationErrorException":
2301
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2302
- case "InternalError":
2303
- case "com.amazonaws.sns#InternalErrorException":
2304
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2305
- case "InvalidParameter":
2306
- case "com.amazonaws.sns#InvalidParameterException":
2307
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2308
- case "NotFound":
2309
- case "com.amazonaws.sns#NotFoundException":
2310
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2311
- default:
2312
- const parsedBody = parsedOutput.body;
2313
- return throwDefaultError({
2314
- output,
2315
- parsedBody: parsedBody.Error,
2316
- errorCode
2317
- });
2318
- }
2319
- }, "de_ListSubscriptionsByTopicCommandError");
2320
1578
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2321
1579
  if (output.statusCode >= 300) {
2322
- return de_ListTagsForResourceCommandError(output, context);
1580
+ return de_CommandError(output, context);
2323
1581
  }
2324
1582
  const data = await parseBody(output.body, context);
2325
1583
  let contents = {};
@@ -2330,40 +1588,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2330
1588
  };
2331
1589
  return response;
2332
1590
  }, "de_ListTagsForResourceCommand");
2333
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2334
- const parsedOutput = {
2335
- ...output,
2336
- body: await parseErrorBody(output.body, context)
2337
- };
2338
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2339
- switch (errorCode) {
2340
- case "AuthorizationError":
2341
- case "com.amazonaws.sns#AuthorizationErrorException":
2342
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2343
- case "ConcurrentAccess":
2344
- case "com.amazonaws.sns#ConcurrentAccessException":
2345
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
2346
- case "InvalidParameter":
2347
- case "com.amazonaws.sns#InvalidParameterException":
2348
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2349
- case "ResourceNotFound":
2350
- case "com.amazonaws.sns#ResourceNotFoundException":
2351
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2352
- case "TagPolicy":
2353
- case "com.amazonaws.sns#TagPolicyException":
2354
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
2355
- default:
2356
- const parsedBody = parsedOutput.body;
2357
- return throwDefaultError({
2358
- output,
2359
- parsedBody: parsedBody.Error,
2360
- errorCode
2361
- });
2362
- }
2363
- }, "de_ListTagsForResourceCommandError");
2364
1591
  var de_ListTopicsCommand = /* @__PURE__ */ __name(async (output, context) => {
2365
1592
  if (output.statusCode >= 300) {
2366
- return de_ListTopicsCommandError(output, context);
1593
+ return de_CommandError(output, context);
2367
1594
  }
2368
1595
  const data = await parseBody(output.body, context);
2369
1596
  let contents = {};
@@ -2374,34 +1601,9 @@ var de_ListTopicsCommand = /* @__PURE__ */ __name(async (output, context) => {
2374
1601
  };
2375
1602
  return response;
2376
1603
  }, "de_ListTopicsCommand");
2377
- var de_ListTopicsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2378
- const parsedOutput = {
2379
- ...output,
2380
- body: await parseErrorBody(output.body, context)
2381
- };
2382
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2383
- switch (errorCode) {
2384
- case "AuthorizationError":
2385
- case "com.amazonaws.sns#AuthorizationErrorException":
2386
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2387
- case "InternalError":
2388
- case "com.amazonaws.sns#InternalErrorException":
2389
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2390
- case "InvalidParameter":
2391
- case "com.amazonaws.sns#InvalidParameterException":
2392
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2393
- default:
2394
- const parsedBody = parsedOutput.body;
2395
- return throwDefaultError({
2396
- output,
2397
- parsedBody: parsedBody.Error,
2398
- errorCode
2399
- });
2400
- }
2401
- }, "de_ListTopicsCommandError");
2402
1604
  var de_OptInPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
2403
1605
  if (output.statusCode >= 300) {
2404
- return de_OptInPhoneNumberCommandError(output, context);
1606
+ return de_CommandError(output, context);
2405
1607
  }
2406
1608
  const data = await parseBody(output.body, context);
2407
1609
  let contents = {};
@@ -2412,111 +1614,22 @@ var de_OptInPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context)
2412
1614
  };
2413
1615
  return response;
2414
1616
  }, "de_OptInPhoneNumberCommand");
2415
- var de_OptInPhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
2416
- const parsedOutput = {
2417
- ...output,
2418
- body: await parseErrorBody(output.body, context)
2419
- };
2420
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2421
- switch (errorCode) {
2422
- case "AuthorizationError":
2423
- case "com.amazonaws.sns#AuthorizationErrorException":
2424
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2425
- case "InternalError":
2426
- case "com.amazonaws.sns#InternalErrorException":
2427
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2428
- case "InvalidParameter":
2429
- case "com.amazonaws.sns#InvalidParameterException":
2430
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2431
- case "Throttled":
2432
- case "com.amazonaws.sns#ThrottledException":
2433
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2434
- default:
2435
- const parsedBody = parsedOutput.body;
2436
- return throwDefaultError({
2437
- output,
2438
- parsedBody: parsedBody.Error,
2439
- errorCode
2440
- });
2441
- }
2442
- }, "de_OptInPhoneNumberCommandError");
2443
- var de_PublishCommand = /* @__PURE__ */ __name(async (output, context) => {
2444
- if (output.statusCode >= 300) {
2445
- return de_PublishCommandError(output, context);
2446
- }
2447
- const data = await parseBody(output.body, context);
2448
- let contents = {};
2449
- contents = de_PublishResponse(data.PublishResult, context);
2450
- const response = {
2451
- $metadata: deserializeMetadata(output),
2452
- ...contents
1617
+ var de_PublishCommand = /* @__PURE__ */ __name(async (output, context) => {
1618
+ if (output.statusCode >= 300) {
1619
+ return de_CommandError(output, context);
1620
+ }
1621
+ const data = await parseBody(output.body, context);
1622
+ let contents = {};
1623
+ contents = de_PublishResponse(data.PublishResult, context);
1624
+ const response = {
1625
+ $metadata: deserializeMetadata(output),
1626
+ ...contents
2453
1627
  };
2454
1628
  return response;
2455
1629
  }, "de_PublishCommand");
2456
- var de_PublishCommandError = /* @__PURE__ */ __name(async (output, context) => {
2457
- const parsedOutput = {
2458
- ...output,
2459
- body: await parseErrorBody(output.body, context)
2460
- };
2461
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2462
- switch (errorCode) {
2463
- case "AuthorizationError":
2464
- case "com.amazonaws.sns#AuthorizationErrorException":
2465
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2466
- case "EndpointDisabled":
2467
- case "com.amazonaws.sns#EndpointDisabledException":
2468
- throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
2469
- case "InternalError":
2470
- case "com.amazonaws.sns#InternalErrorException":
2471
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2472
- case "InvalidParameter":
2473
- case "com.amazonaws.sns#InvalidParameterException":
2474
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2475
- case "InvalidSecurity":
2476
- case "com.amazonaws.sns#InvalidSecurityException":
2477
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2478
- case "KMSAccessDenied":
2479
- case "com.amazonaws.sns#KMSAccessDeniedException":
2480
- throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
2481
- case "KMSDisabled":
2482
- case "com.amazonaws.sns#KMSDisabledException":
2483
- throw await de_KMSDisabledExceptionRes(parsedOutput, context);
2484
- case "KMSInvalidState":
2485
- case "com.amazonaws.sns#KMSInvalidStateException":
2486
- throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
2487
- case "KMSNotFound":
2488
- case "com.amazonaws.sns#KMSNotFoundException":
2489
- throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
2490
- case "KMSOptInRequired":
2491
- case "com.amazonaws.sns#KMSOptInRequired":
2492
- throw await de_KMSOptInRequiredRes(parsedOutput, context);
2493
- case "KMSThrottling":
2494
- case "com.amazonaws.sns#KMSThrottlingException":
2495
- throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
2496
- case "NotFound":
2497
- case "com.amazonaws.sns#NotFoundException":
2498
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2499
- case "ParameterValueInvalid":
2500
- case "com.amazonaws.sns#InvalidParameterValueException":
2501
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2502
- case "PlatformApplicationDisabled":
2503
- case "com.amazonaws.sns#PlatformApplicationDisabledException":
2504
- throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
2505
- case "ValidationException":
2506
- case "com.amazonaws.sns#ValidationException":
2507
- throw await de_ValidationExceptionRes(parsedOutput, context);
2508
- default:
2509
- const parsedBody = parsedOutput.body;
2510
- return throwDefaultError({
2511
- output,
2512
- parsedBody: parsedBody.Error,
2513
- errorCode
2514
- });
2515
- }
2516
- }, "de_PublishCommandError");
2517
1630
  var de_PublishBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
2518
1631
  if (output.statusCode >= 300) {
2519
- return de_PublishBatchCommandError(output, context);
1632
+ return de_CommandError(output, context);
2520
1633
  }
2521
1634
  const data = await parseBody(output.body, context);
2522
1635
  let contents = {};
@@ -2527,85 +1640,9 @@ var de_PublishBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
2527
1640
  };
2528
1641
  return response;
2529
1642
  }, "de_PublishBatchCommand");
2530
- var de_PublishBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
2531
- const parsedOutput = {
2532
- ...output,
2533
- body: await parseErrorBody(output.body, context)
2534
- };
2535
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2536
- switch (errorCode) {
2537
- case "AuthorizationError":
2538
- case "com.amazonaws.sns#AuthorizationErrorException":
2539
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2540
- case "BatchEntryIdsNotDistinct":
2541
- case "com.amazonaws.sns#BatchEntryIdsNotDistinctException":
2542
- throw await de_BatchEntryIdsNotDistinctExceptionRes(parsedOutput, context);
2543
- case "BatchRequestTooLong":
2544
- case "com.amazonaws.sns#BatchRequestTooLongException":
2545
- throw await de_BatchRequestTooLongExceptionRes(parsedOutput, context);
2546
- case "EmptyBatchRequest":
2547
- case "com.amazonaws.sns#EmptyBatchRequestException":
2548
- throw await de_EmptyBatchRequestExceptionRes(parsedOutput, context);
2549
- case "EndpointDisabled":
2550
- case "com.amazonaws.sns#EndpointDisabledException":
2551
- throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
2552
- case "InternalError":
2553
- case "com.amazonaws.sns#InternalErrorException":
2554
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2555
- case "InvalidBatchEntryId":
2556
- case "com.amazonaws.sns#InvalidBatchEntryIdException":
2557
- throw await de_InvalidBatchEntryIdExceptionRes(parsedOutput, context);
2558
- case "InvalidParameter":
2559
- case "com.amazonaws.sns#InvalidParameterException":
2560
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2561
- case "InvalidSecurity":
2562
- case "com.amazonaws.sns#InvalidSecurityException":
2563
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2564
- case "KMSAccessDenied":
2565
- case "com.amazonaws.sns#KMSAccessDeniedException":
2566
- throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
2567
- case "KMSDisabled":
2568
- case "com.amazonaws.sns#KMSDisabledException":
2569
- throw await de_KMSDisabledExceptionRes(parsedOutput, context);
2570
- case "KMSInvalidState":
2571
- case "com.amazonaws.sns#KMSInvalidStateException":
2572
- throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
2573
- case "KMSNotFound":
2574
- case "com.amazonaws.sns#KMSNotFoundException":
2575
- throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
2576
- case "KMSOptInRequired":
2577
- case "com.amazonaws.sns#KMSOptInRequired":
2578
- throw await de_KMSOptInRequiredRes(parsedOutput, context);
2579
- case "KMSThrottling":
2580
- case "com.amazonaws.sns#KMSThrottlingException":
2581
- throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
2582
- case "NotFound":
2583
- case "com.amazonaws.sns#NotFoundException":
2584
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2585
- case "ParameterValueInvalid":
2586
- case "com.amazonaws.sns#InvalidParameterValueException":
2587
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2588
- case "PlatformApplicationDisabled":
2589
- case "com.amazonaws.sns#PlatformApplicationDisabledException":
2590
- throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
2591
- case "TooManyEntriesInBatchRequest":
2592
- case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
2593
- throw await de_TooManyEntriesInBatchRequestExceptionRes(parsedOutput, context);
2594
- case "ValidationException":
2595
- case "com.amazonaws.sns#ValidationException":
2596
- throw await de_ValidationExceptionRes(parsedOutput, context);
2597
- default:
2598
- const parsedBody = parsedOutput.body;
2599
- return throwDefaultError({
2600
- output,
2601
- parsedBody: parsedBody.Error,
2602
- errorCode
2603
- });
2604
- }
2605
- }, "de_PublishBatchCommandError");
2606
1643
  var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2607
1644
  if (output.statusCode >= 300) {
2608
- return de_PutDataProtectionPolicyCommandError(output, context);
1645
+ return de_CommandError(output, context);
2609
1646
  }
2610
1647
  await (0, import_smithy_client.collectBody)(output.body, context);
2611
1648
  const response = {
@@ -2613,40 +1650,9 @@ var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
2613
1650
  };
2614
1651
  return response;
2615
1652
  }, "de_PutDataProtectionPolicyCommand");
2616
- var de_PutDataProtectionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2617
- const parsedOutput = {
2618
- ...output,
2619
- body: await parseErrorBody(output.body, context)
2620
- };
2621
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2622
- switch (errorCode) {
2623
- case "AuthorizationError":
2624
- case "com.amazonaws.sns#AuthorizationErrorException":
2625
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2626
- case "InternalError":
2627
- case "com.amazonaws.sns#InternalErrorException":
2628
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2629
- case "InvalidParameter":
2630
- case "com.amazonaws.sns#InvalidParameterException":
2631
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2632
- case "InvalidSecurity":
2633
- case "com.amazonaws.sns#InvalidSecurityException":
2634
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2635
- case "NotFound":
2636
- case "com.amazonaws.sns#NotFoundException":
2637
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2638
- default:
2639
- const parsedBody = parsedOutput.body;
2640
- return throwDefaultError({
2641
- output,
2642
- parsedBody: parsedBody.Error,
2643
- errorCode
2644
- });
2645
- }
2646
- }, "de_PutDataProtectionPolicyCommandError");
2647
1653
  var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
2648
1654
  if (output.statusCode >= 300) {
2649
- return de_RemovePermissionCommandError(output, context);
1655
+ return de_CommandError(output, context);
2650
1656
  }
2651
1657
  await (0, import_smithy_client.collectBody)(output.body, context);
2652
1658
  const response = {
@@ -2654,37 +1660,9 @@ var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context)
2654
1660
  };
2655
1661
  return response;
2656
1662
  }, "de_RemovePermissionCommand");
2657
- var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2658
- const parsedOutput = {
2659
- ...output,
2660
- body: await parseErrorBody(output.body, context)
2661
- };
2662
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2663
- switch (errorCode) {
2664
- case "AuthorizationError":
2665
- case "com.amazonaws.sns#AuthorizationErrorException":
2666
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2667
- case "InternalError":
2668
- case "com.amazonaws.sns#InternalErrorException":
2669
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2670
- case "InvalidParameter":
2671
- case "com.amazonaws.sns#InvalidParameterException":
2672
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2673
- case "NotFound":
2674
- case "com.amazonaws.sns#NotFoundException":
2675
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2676
- default:
2677
- const parsedBody = parsedOutput.body;
2678
- return throwDefaultError({
2679
- output,
2680
- parsedBody: parsedBody.Error,
2681
- errorCode
2682
- });
2683
- }
2684
- }, "de_RemovePermissionCommandError");
2685
1663
  var de_SetEndpointAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2686
1664
  if (output.statusCode >= 300) {
2687
- return de_SetEndpointAttributesCommandError(output, context);
1665
+ return de_CommandError(output, context);
2688
1666
  }
2689
1667
  await (0, import_smithy_client.collectBody)(output.body, context);
2690
1668
  const response = {
@@ -2692,37 +1670,9 @@ var de_SetEndpointAttributesCommand = /* @__PURE__ */ __name(async (output, cont
2692
1670
  };
2693
1671
  return response;
2694
1672
  }, "de_SetEndpointAttributesCommand");
2695
- var de_SetEndpointAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2696
- const parsedOutput = {
2697
- ...output,
2698
- body: await parseErrorBody(output.body, context)
2699
- };
2700
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2701
- switch (errorCode) {
2702
- case "AuthorizationError":
2703
- case "com.amazonaws.sns#AuthorizationErrorException":
2704
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2705
- case "InternalError":
2706
- case "com.amazonaws.sns#InternalErrorException":
2707
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2708
- case "InvalidParameter":
2709
- case "com.amazonaws.sns#InvalidParameterException":
2710
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2711
- case "NotFound":
2712
- case "com.amazonaws.sns#NotFoundException":
2713
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2714
- default:
2715
- const parsedBody = parsedOutput.body;
2716
- return throwDefaultError({
2717
- output,
2718
- parsedBody: parsedBody.Error,
2719
- errorCode
2720
- });
2721
- }
2722
- }, "de_SetEndpointAttributesCommandError");
2723
1673
  var de_SetPlatformApplicationAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2724
1674
  if (output.statusCode >= 300) {
2725
- return de_SetPlatformApplicationAttributesCommandError(output, context);
1675
+ return de_CommandError(output, context);
2726
1676
  }
2727
1677
  await (0, import_smithy_client.collectBody)(output.body, context);
2728
1678
  const response = {
@@ -2730,37 +1680,9 @@ var de_SetPlatformApplicationAttributesCommand = /* @__PURE__ */ __name(async (o
2730
1680
  };
2731
1681
  return response;
2732
1682
  }, "de_SetPlatformApplicationAttributesCommand");
2733
- var de_SetPlatformApplicationAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2734
- const parsedOutput = {
2735
- ...output,
2736
- body: await parseErrorBody(output.body, context)
2737
- };
2738
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2739
- switch (errorCode) {
2740
- case "AuthorizationError":
2741
- case "com.amazonaws.sns#AuthorizationErrorException":
2742
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2743
- case "InternalError":
2744
- case "com.amazonaws.sns#InternalErrorException":
2745
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2746
- case "InvalidParameter":
2747
- case "com.amazonaws.sns#InvalidParameterException":
2748
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2749
- case "NotFound":
2750
- case "com.amazonaws.sns#NotFoundException":
2751
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2752
- default:
2753
- const parsedBody = parsedOutput.body;
2754
- return throwDefaultError({
2755
- output,
2756
- parsedBody: parsedBody.Error,
2757
- errorCode
2758
- });
2759
- }
2760
- }, "de_SetPlatformApplicationAttributesCommandError");
2761
1683
  var de_SetSMSAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2762
1684
  if (output.statusCode >= 300) {
2763
- return de_SetSMSAttributesCommandError(output, context);
1685
+ return de_CommandError(output, context);
2764
1686
  }
2765
1687
  const data = await parseBody(output.body, context);
2766
1688
  let contents = {};
@@ -2771,37 +1693,9 @@ var de_SetSMSAttributesCommand = /* @__PURE__ */ __name(async (output, context)
2771
1693
  };
2772
1694
  return response;
2773
1695
  }, "de_SetSMSAttributesCommand");
2774
- var de_SetSMSAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2775
- const parsedOutput = {
2776
- ...output,
2777
- body: await parseErrorBody(output.body, context)
2778
- };
2779
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2780
- switch (errorCode) {
2781
- case "AuthorizationError":
2782
- case "com.amazonaws.sns#AuthorizationErrorException":
2783
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2784
- case "InternalError":
2785
- case "com.amazonaws.sns#InternalErrorException":
2786
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2787
- case "InvalidParameter":
2788
- case "com.amazonaws.sns#InvalidParameterException":
2789
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2790
- case "Throttled":
2791
- case "com.amazonaws.sns#ThrottledException":
2792
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2793
- default:
2794
- const parsedBody = parsedOutput.body;
2795
- return throwDefaultError({
2796
- output,
2797
- parsedBody: parsedBody.Error,
2798
- errorCode
2799
- });
2800
- }
2801
- }, "de_SetSMSAttributesCommandError");
2802
1696
  var de_SetSubscriptionAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2803
1697
  if (output.statusCode >= 300) {
2804
- return de_SetSubscriptionAttributesCommandError(output, context);
1698
+ return de_CommandError(output, context);
2805
1699
  }
2806
1700
  await (0, import_smithy_client.collectBody)(output.body, context);
2807
1701
  const response = {
@@ -2809,43 +1703,9 @@ var de_SetSubscriptionAttributesCommand = /* @__PURE__ */ __name(async (output,
2809
1703
  };
2810
1704
  return response;
2811
1705
  }, "de_SetSubscriptionAttributesCommand");
2812
- var de_SetSubscriptionAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2813
- const parsedOutput = {
2814
- ...output,
2815
- body: await parseErrorBody(output.body, context)
2816
- };
2817
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2818
- switch (errorCode) {
2819
- case "AuthorizationError":
2820
- case "com.amazonaws.sns#AuthorizationErrorException":
2821
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2822
- case "FilterPolicyLimitExceeded":
2823
- case "com.amazonaws.sns#FilterPolicyLimitExceededException":
2824
- throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
2825
- case "InternalError":
2826
- case "com.amazonaws.sns#InternalErrorException":
2827
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2828
- case "InvalidParameter":
2829
- case "com.amazonaws.sns#InvalidParameterException":
2830
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2831
- case "NotFound":
2832
- case "com.amazonaws.sns#NotFoundException":
2833
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2834
- case "ReplayLimitExceeded":
2835
- case "com.amazonaws.sns#ReplayLimitExceededException":
2836
- throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
2837
- default:
2838
- const parsedBody = parsedOutput.body;
2839
- return throwDefaultError({
2840
- output,
2841
- parsedBody: parsedBody.Error,
2842
- errorCode
2843
- });
2844
- }
2845
- }, "de_SetSubscriptionAttributesCommandError");
2846
1706
  var de_SetTopicAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2847
1707
  if (output.statusCode >= 300) {
2848
- return de_SetTopicAttributesCommandError(output, context);
1708
+ return de_CommandError(output, context);
2849
1709
  }
2850
1710
  await (0, import_smithy_client.collectBody)(output.body, context);
2851
1711
  const response = {
@@ -2853,40 +1713,9 @@ var de_SetTopicAttributesCommand = /* @__PURE__ */ __name(async (output, context
2853
1713
  };
2854
1714
  return response;
2855
1715
  }, "de_SetTopicAttributesCommand");
2856
- var de_SetTopicAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2857
- const parsedOutput = {
2858
- ...output,
2859
- body: await parseErrorBody(output.body, context)
2860
- };
2861
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2862
- switch (errorCode) {
2863
- case "AuthorizationError":
2864
- case "com.amazonaws.sns#AuthorizationErrorException":
2865
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2866
- case "InternalError":
2867
- case "com.amazonaws.sns#InternalErrorException":
2868
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2869
- case "InvalidParameter":
2870
- case "com.amazonaws.sns#InvalidParameterException":
2871
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2872
- case "InvalidSecurity":
2873
- case "com.amazonaws.sns#InvalidSecurityException":
2874
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2875
- case "NotFound":
2876
- case "com.amazonaws.sns#NotFoundException":
2877
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2878
- default:
2879
- const parsedBody = parsedOutput.body;
2880
- return throwDefaultError({
2881
- output,
2882
- parsedBody: parsedBody.Error,
2883
- errorCode
2884
- });
2885
- }
2886
- }, "de_SetTopicAttributesCommandError");
2887
1716
  var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
2888
1717
  if (output.statusCode >= 300) {
2889
- return de_SubscribeCommandError(output, context);
1718
+ return de_CommandError(output, context);
2890
1719
  }
2891
1720
  const data = await parseBody(output.body, context);
2892
1721
  let contents = {};
@@ -2897,49 +1726,9 @@ var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
2897
1726
  };
2898
1727
  return response;
2899
1728
  }, "de_SubscribeCommand");
2900
- var de_SubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2901
- const parsedOutput = {
2902
- ...output,
2903
- body: await parseErrorBody(output.body, context)
2904
- };
2905
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2906
- switch (errorCode) {
2907
- case "AuthorizationError":
2908
- case "com.amazonaws.sns#AuthorizationErrorException":
2909
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2910
- case "FilterPolicyLimitExceeded":
2911
- case "com.amazonaws.sns#FilterPolicyLimitExceededException":
2912
- throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
2913
- case "InternalError":
2914
- case "com.amazonaws.sns#InternalErrorException":
2915
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2916
- case "InvalidParameter":
2917
- case "com.amazonaws.sns#InvalidParameterException":
2918
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2919
- case "InvalidSecurity":
2920
- case "com.amazonaws.sns#InvalidSecurityException":
2921
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
2922
- case "NotFound":
2923
- case "com.amazonaws.sns#NotFoundException":
2924
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2925
- case "ReplayLimitExceeded":
2926
- case "com.amazonaws.sns#ReplayLimitExceededException":
2927
- throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
2928
- case "SubscriptionLimitExceeded":
2929
- case "com.amazonaws.sns#SubscriptionLimitExceededException":
2930
- throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
2931
- default:
2932
- const parsedBody = parsedOutput.body;
2933
- return throwDefaultError({
2934
- output,
2935
- parsedBody: parsedBody.Error,
2936
- errorCode
2937
- });
2938
- }
2939
- }, "de_SubscribeCommandError");
2940
1729
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2941
1730
  if (output.statusCode >= 300) {
2942
- return de_TagResourceCommandError(output, context);
1731
+ return de_CommandError(output, context);
2943
1732
  }
2944
1733
  const data = await parseBody(output.body, context);
2945
1734
  let contents = {};
@@ -2950,46 +1739,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2950
1739
  };
2951
1740
  return response;
2952
1741
  }, "de_TagResourceCommand");
2953
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2954
- const parsedOutput = {
2955
- ...output,
2956
- body: await parseErrorBody(output.body, context)
2957
- };
2958
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2959
- switch (errorCode) {
2960
- case "AuthorizationError":
2961
- case "com.amazonaws.sns#AuthorizationErrorException":
2962
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
2963
- case "ConcurrentAccess":
2964
- case "com.amazonaws.sns#ConcurrentAccessException":
2965
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
2966
- case "InvalidParameter":
2967
- case "com.amazonaws.sns#InvalidParameterException":
2968
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2969
- case "ResourceNotFound":
2970
- case "com.amazonaws.sns#ResourceNotFoundException":
2971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2972
- case "StaleTag":
2973
- case "com.amazonaws.sns#StaleTagException":
2974
- throw await de_StaleTagExceptionRes(parsedOutput, context);
2975
- case "TagLimitExceeded":
2976
- case "com.amazonaws.sns#TagLimitExceededException":
2977
- throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
2978
- case "TagPolicy":
2979
- case "com.amazonaws.sns#TagPolicyException":
2980
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
2981
- default:
2982
- const parsedBody = parsedOutput.body;
2983
- return throwDefaultError({
2984
- output,
2985
- parsedBody: parsedBody.Error,
2986
- errorCode
2987
- });
2988
- }
2989
- }, "de_TagResourceCommandError");
2990
1742
  var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
2991
1743
  if (output.statusCode >= 300) {
2992
- return de_UnsubscribeCommandError(output, context);
1744
+ return de_CommandError(output, context);
2993
1745
  }
2994
1746
  await (0, import_smithy_client.collectBody)(output.body, context);
2995
1747
  const response = {
@@ -2997,40 +1749,9 @@ var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
2997
1749
  };
2998
1750
  return response;
2999
1751
  }, "de_UnsubscribeCommand");
3000
- var de_UnsubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3001
- const parsedOutput = {
3002
- ...output,
3003
- body: await parseErrorBody(output.body, context)
3004
- };
3005
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3006
- switch (errorCode) {
3007
- case "AuthorizationError":
3008
- case "com.amazonaws.sns#AuthorizationErrorException":
3009
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
3010
- case "InternalError":
3011
- case "com.amazonaws.sns#InternalErrorException":
3012
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
3013
- case "InvalidParameter":
3014
- case "com.amazonaws.sns#InvalidParameterException":
3015
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3016
- case "InvalidSecurity":
3017
- case "com.amazonaws.sns#InvalidSecurityException":
3018
- throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
3019
- case "NotFound":
3020
- case "com.amazonaws.sns#NotFoundException":
3021
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3022
- default:
3023
- const parsedBody = parsedOutput.body;
3024
- return throwDefaultError({
3025
- output,
3026
- parsedBody: parsedBody.Error,
3027
- errorCode
3028
- });
3029
- }
3030
- }, "de_UnsubscribeCommandError");
3031
1752
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3032
1753
  if (output.statusCode >= 300) {
3033
- return de_UntagResourceCommandError(output, context);
1754
+ return de_CommandError(output, context);
3034
1755
  }
3035
1756
  const data = await parseBody(output.body, context);
3036
1757
  let contents = {};
@@ -3041,46 +1762,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3041
1762
  };
3042
1763
  return response;
3043
1764
  }, "de_UntagResourceCommand");
3044
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3045
- const parsedOutput = {
3046
- ...output,
3047
- body: await parseErrorBody(output.body, context)
3048
- };
3049
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3050
- switch (errorCode) {
3051
- case "AuthorizationError":
3052
- case "com.amazonaws.sns#AuthorizationErrorException":
3053
- throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
3054
- case "ConcurrentAccess":
3055
- case "com.amazonaws.sns#ConcurrentAccessException":
3056
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
3057
- case "InvalidParameter":
3058
- case "com.amazonaws.sns#InvalidParameterException":
3059
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3060
- case "ResourceNotFound":
3061
- case "com.amazonaws.sns#ResourceNotFoundException":
3062
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3063
- case "StaleTag":
3064
- case "com.amazonaws.sns#StaleTagException":
3065
- throw await de_StaleTagExceptionRes(parsedOutput, context);
3066
- case "TagLimitExceeded":
3067
- case "com.amazonaws.sns#TagLimitExceededException":
3068
- throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
3069
- case "TagPolicy":
3070
- case "com.amazonaws.sns#TagPolicyException":
3071
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
3072
- default:
3073
- const parsedBody = parsedOutput.body;
3074
- return throwDefaultError({
3075
- output,
3076
- parsedBody: parsedBody.Error,
3077
- errorCode
3078
- });
3079
- }
3080
- }, "de_UntagResourceCommandError");
3081
1765
  var de_VerifySMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
3082
1766
  if (output.statusCode >= 300) {
3083
- return de_VerifySMSSandboxPhoneNumberCommandError(output, context);
1767
+ return de_CommandError(output, context);
3084
1768
  }
3085
1769
  const data = await parseBody(output.body, context);
3086
1770
  let contents = {};
@@ -3091,7 +1775,7 @@ var de_VerifySMSSandboxPhoneNumberCommand = /* @__PURE__ */ __name(async (output
3091
1775
  };
3092
1776
  return response;
3093
1777
  }, "de_VerifySMSSandboxPhoneNumberCommand");
3094
- var de_VerifySMSSandboxPhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1778
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3095
1779
  const parsedOutput = {
3096
1780
  ...output,
3097
1781
  body: await parseErrorBody(output.body, context)
@@ -3107,12 +1791,96 @@ var de_VerifySMSSandboxPhoneNumberCommandError = /* @__PURE__ */ __name(async (o
3107
1791
  case "InvalidParameter":
3108
1792
  case "com.amazonaws.sns#InvalidParameterException":
3109
1793
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3110
- case "ResourceNotFound":
3111
- case "com.amazonaws.sns#ResourceNotFoundException":
3112
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1794
+ case "NotFound":
1795
+ case "com.amazonaws.sns#NotFoundException":
1796
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3113
1797
  case "Throttled":
3114
1798
  case "com.amazonaws.sns#ThrottledException":
3115
1799
  throw await de_ThrottledExceptionRes(parsedOutput, context);
1800
+ case "FilterPolicyLimitExceeded":
1801
+ case "com.amazonaws.sns#FilterPolicyLimitExceededException":
1802
+ throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
1803
+ case "ReplayLimitExceeded":
1804
+ case "com.amazonaws.sns#ReplayLimitExceededException":
1805
+ throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
1806
+ case "SubscriptionLimitExceeded":
1807
+ case "com.amazonaws.sns#SubscriptionLimitExceededException":
1808
+ throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
1809
+ case "OptedOut":
1810
+ case "com.amazonaws.sns#OptedOutException":
1811
+ throw await de_OptedOutExceptionRes(parsedOutput, context);
1812
+ case "UserError":
1813
+ case "com.amazonaws.sns#UserErrorException":
1814
+ throw await de_UserErrorExceptionRes(parsedOutput, context);
1815
+ case "ConcurrentAccess":
1816
+ case "com.amazonaws.sns#ConcurrentAccessException":
1817
+ throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
1818
+ case "InvalidSecurity":
1819
+ case "com.amazonaws.sns#InvalidSecurityException":
1820
+ throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
1821
+ case "StaleTag":
1822
+ case "com.amazonaws.sns#StaleTagException":
1823
+ throw await de_StaleTagExceptionRes(parsedOutput, context);
1824
+ case "TagLimitExceeded":
1825
+ case "com.amazonaws.sns#TagLimitExceededException":
1826
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1827
+ case "TagPolicy":
1828
+ case "com.amazonaws.sns#TagPolicyException":
1829
+ throw await de_TagPolicyExceptionRes(parsedOutput, context);
1830
+ case "TopicLimitExceeded":
1831
+ case "com.amazonaws.sns#TopicLimitExceededException":
1832
+ throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
1833
+ case "ResourceNotFound":
1834
+ case "com.amazonaws.sns#ResourceNotFoundException":
1835
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
+ case "InvalidState":
1837
+ case "com.amazonaws.sns#InvalidStateException":
1838
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1839
+ case "ValidationException":
1840
+ case "com.amazonaws.sns#ValidationException":
1841
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1842
+ case "EndpointDisabled":
1843
+ case "com.amazonaws.sns#EndpointDisabledException":
1844
+ throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
1845
+ case "KMSAccessDenied":
1846
+ case "com.amazonaws.sns#KMSAccessDeniedException":
1847
+ throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
1848
+ case "KMSDisabled":
1849
+ case "com.amazonaws.sns#KMSDisabledException":
1850
+ throw await de_KMSDisabledExceptionRes(parsedOutput, context);
1851
+ case "KMSInvalidState":
1852
+ case "com.amazonaws.sns#KMSInvalidStateException":
1853
+ throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
1854
+ case "KMSNotFound":
1855
+ case "com.amazonaws.sns#KMSNotFoundException":
1856
+ throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
1857
+ case "KMSOptInRequired":
1858
+ case "com.amazonaws.sns#KMSOptInRequired":
1859
+ throw await de_KMSOptInRequiredRes(parsedOutput, context);
1860
+ case "KMSThrottling":
1861
+ case "com.amazonaws.sns#KMSThrottlingException":
1862
+ throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
1863
+ case "ParameterValueInvalid":
1864
+ case "com.amazonaws.sns#InvalidParameterValueException":
1865
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1866
+ case "PlatformApplicationDisabled":
1867
+ case "com.amazonaws.sns#PlatformApplicationDisabledException":
1868
+ throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
1869
+ case "BatchEntryIdsNotDistinct":
1870
+ case "com.amazonaws.sns#BatchEntryIdsNotDistinctException":
1871
+ throw await de_BatchEntryIdsNotDistinctExceptionRes(parsedOutput, context);
1872
+ case "BatchRequestTooLong":
1873
+ case "com.amazonaws.sns#BatchRequestTooLongException":
1874
+ throw await de_BatchRequestTooLongExceptionRes(parsedOutput, context);
1875
+ case "EmptyBatchRequest":
1876
+ case "com.amazonaws.sns#EmptyBatchRequestException":
1877
+ throw await de_EmptyBatchRequestExceptionRes(parsedOutput, context);
1878
+ case "InvalidBatchEntryId":
1879
+ case "com.amazonaws.sns#InvalidBatchEntryIdException":
1880
+ throw await de_InvalidBatchEntryIdExceptionRes(parsedOutput, context);
1881
+ case "TooManyEntriesInBatchRequest":
1882
+ case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
1883
+ throw await de_TooManyEntriesInBatchRequestExceptionRes(parsedOutput, context);
3116
1884
  case "VerificationException":
3117
1885
  case "com.amazonaws.sns#VerificationException":
3118
1886
  throw await de_VerificationExceptionRes(parsedOutput, context);
@@ -3124,7 +1892,7 @@ var de_VerifySMSSandboxPhoneNumberCommandError = /* @__PURE__ */ __name(async (o
3124
1892
  errorCode
3125
1893
  });
3126
1894
  }
3127
- }, "de_VerifySMSSandboxPhoneNumberCommandError");
1895
+ }, "de_CommandError");
3128
1896
  var de_AuthorizationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3129
1897
  const body = parsedOutput.body;
3130
1898
  const deserialized = de_AuthorizationErrorException(body.Error, context);