@aws-sdk/client-iam 3.180.0 → 3.181.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.
@@ -1627,19 +1627,19 @@ var deserializeAws_queryAddClientIDToOpenIDConnectProviderCommandError = functio
1627
1627
  case 0:
1628
1628
  _a = [__assign({}, output)];
1629
1629
  _c = {};
1630
- return [4, parseBody(output.body, context)];
1630
+ return [4, parseErrorBody(output.body, context)];
1631
1631
  case 1:
1632
1632
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1633
1633
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1634
1634
  _b = errorCode;
1635
1635
  switch (_b) {
1636
- case "InvalidInputException": return [3, 2];
1636
+ case "InvalidInput": return [3, 2];
1637
1637
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
1638
- case "LimitExceededException": return [3, 4];
1638
+ case "LimitExceeded": return [3, 4];
1639
1639
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
1640
- case "NoSuchEntityException": return [3, 6];
1640
+ case "NoSuchEntity": return [3, 6];
1641
1641
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
1642
- case "ServiceFailureException": return [3, 8];
1642
+ case "ServiceFailure": return [3, 8];
1643
1643
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
1644
1644
  }
1645
1645
  return [3, 10];
@@ -1690,21 +1690,21 @@ var deserializeAws_queryAddRoleToInstanceProfileCommandError = function (output,
1690
1690
  case 0:
1691
1691
  _a = [__assign({}, output)];
1692
1692
  _c = {};
1693
- return [4, parseBody(output.body, context)];
1693
+ return [4, parseErrorBody(output.body, context)];
1694
1694
  case 1:
1695
1695
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1696
1696
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1697
1697
  _b = errorCode;
1698
1698
  switch (_b) {
1699
- case "EntityAlreadyExistsException": return [3, 2];
1699
+ case "EntityAlreadyExists": return [3, 2];
1700
1700
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
1701
- case "LimitExceededException": return [3, 4];
1701
+ case "LimitExceeded": return [3, 4];
1702
1702
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
1703
- case "NoSuchEntityException": return [3, 6];
1703
+ case "NoSuchEntity": return [3, 6];
1704
1704
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
1705
- case "ServiceFailureException": return [3, 8];
1705
+ case "ServiceFailure": return [3, 8];
1706
1706
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
1707
- case "UnmodifiableEntityException": return [3, 10];
1707
+ case "UnmodifiableEntity": return [3, 10];
1708
1708
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 10];
1709
1709
  }
1710
1710
  return [3, 12];
@@ -1757,17 +1757,17 @@ var deserializeAws_queryAddUserToGroupCommandError = function (output, context)
1757
1757
  case 0:
1758
1758
  _a = [__assign({}, output)];
1759
1759
  _c = {};
1760
- return [4, parseBody(output.body, context)];
1760
+ return [4, parseErrorBody(output.body, context)];
1761
1761
  case 1:
1762
1762
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1763
1763
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1764
1764
  _b = errorCode;
1765
1765
  switch (_b) {
1766
- case "LimitExceededException": return [3, 2];
1766
+ case "LimitExceeded": return [3, 2];
1767
1767
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
1768
- case "NoSuchEntityException": return [3, 4];
1768
+ case "NoSuchEntity": return [3, 4];
1769
1769
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
1770
- case "ServiceFailureException": return [3, 6];
1770
+ case "ServiceFailure": return [3, 6];
1771
1771
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
1772
1772
  }
1773
1773
  return [3, 8];
@@ -1816,21 +1816,21 @@ var deserializeAws_queryAttachGroupPolicyCommandError = function (output, contex
1816
1816
  case 0:
1817
1817
  _a = [__assign({}, output)];
1818
1818
  _c = {};
1819
- return [4, parseBody(output.body, context)];
1819
+ return [4, parseErrorBody(output.body, context)];
1820
1820
  case 1:
1821
1821
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1822
1822
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1823
1823
  _b = errorCode;
1824
1824
  switch (_b) {
1825
- case "InvalidInputException": return [3, 2];
1825
+ case "InvalidInput": return [3, 2];
1826
1826
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
1827
- case "LimitExceededException": return [3, 4];
1827
+ case "LimitExceeded": return [3, 4];
1828
1828
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
1829
- case "NoSuchEntityException": return [3, 6];
1829
+ case "NoSuchEntity": return [3, 6];
1830
1830
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
1831
- case "PolicyNotAttachableException": return [3, 8];
1831
+ case "PolicyNotAttachable": return [3, 8];
1832
1832
  case "com.amazonaws.iam#PolicyNotAttachableException": return [3, 8];
1833
- case "ServiceFailureException": return [3, 10];
1833
+ case "ServiceFailure": return [3, 10];
1834
1834
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
1835
1835
  }
1836
1836
  return [3, 12];
@@ -1883,23 +1883,23 @@ var deserializeAws_queryAttachRolePolicyCommandError = function (output, context
1883
1883
  case 0:
1884
1884
  _a = [__assign({}, output)];
1885
1885
  _c = {};
1886
- return [4, parseBody(output.body, context)];
1886
+ return [4, parseErrorBody(output.body, context)];
1887
1887
  case 1:
1888
1888
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1889
1889
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1890
1890
  _b = errorCode;
1891
1891
  switch (_b) {
1892
- case "InvalidInputException": return [3, 2];
1892
+ case "InvalidInput": return [3, 2];
1893
1893
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
1894
- case "LimitExceededException": return [3, 4];
1894
+ case "LimitExceeded": return [3, 4];
1895
1895
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
1896
- case "NoSuchEntityException": return [3, 6];
1896
+ case "NoSuchEntity": return [3, 6];
1897
1897
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
1898
- case "PolicyNotAttachableException": return [3, 8];
1898
+ case "PolicyNotAttachable": return [3, 8];
1899
1899
  case "com.amazonaws.iam#PolicyNotAttachableException": return [3, 8];
1900
- case "ServiceFailureException": return [3, 10];
1900
+ case "ServiceFailure": return [3, 10];
1901
1901
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
1902
- case "UnmodifiableEntityException": return [3, 12];
1902
+ case "UnmodifiableEntity": return [3, 12];
1903
1903
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 12];
1904
1904
  }
1905
1905
  return [3, 14];
@@ -1954,21 +1954,21 @@ var deserializeAws_queryAttachUserPolicyCommandError = function (output, context
1954
1954
  case 0:
1955
1955
  _a = [__assign({}, output)];
1956
1956
  _c = {};
1957
- return [4, parseBody(output.body, context)];
1957
+ return [4, parseErrorBody(output.body, context)];
1958
1958
  case 1:
1959
1959
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1960
1960
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1961
1961
  _b = errorCode;
1962
1962
  switch (_b) {
1963
- case "InvalidInputException": return [3, 2];
1963
+ case "InvalidInput": return [3, 2];
1964
1964
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
1965
- case "LimitExceededException": return [3, 4];
1965
+ case "LimitExceeded": return [3, 4];
1966
1966
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
1967
- case "NoSuchEntityException": return [3, 6];
1967
+ case "NoSuchEntity": return [3, 6];
1968
1968
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
1969
- case "PolicyNotAttachableException": return [3, 8];
1969
+ case "PolicyNotAttachable": return [3, 8];
1970
1970
  case "com.amazonaws.iam#PolicyNotAttachableException": return [3, 8];
1971
- case "ServiceFailureException": return [3, 10];
1971
+ case "ServiceFailure": return [3, 10];
1972
1972
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
1973
1973
  }
1974
1974
  return [3, 12];
@@ -2021,23 +2021,23 @@ var deserializeAws_queryChangePasswordCommandError = function (output, context)
2021
2021
  case 0:
2022
2022
  _a = [__assign({}, output)];
2023
2023
  _c = {};
2024
- return [4, parseBody(output.body, context)];
2024
+ return [4, parseErrorBody(output.body, context)];
2025
2025
  case 1:
2026
2026
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2027
2027
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2028
2028
  _b = errorCode;
2029
2029
  switch (_b) {
2030
- case "EntityTemporarilyUnmodifiableException": return [3, 2];
2030
+ case "EntityTemporarilyUnmodifiable": return [3, 2];
2031
2031
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 2];
2032
- case "InvalidUserTypeException": return [3, 4];
2032
+ case "InvalidUserType": return [3, 4];
2033
2033
  case "com.amazonaws.iam#InvalidUserTypeException": return [3, 4];
2034
- case "LimitExceededException": return [3, 6];
2034
+ case "LimitExceeded": return [3, 6];
2035
2035
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
2036
- case "NoSuchEntityException": return [3, 8];
2036
+ case "NoSuchEntity": return [3, 8];
2037
2037
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
2038
- case "PasswordPolicyViolationException": return [3, 10];
2038
+ case "PasswordPolicyViolation": return [3, 10];
2039
2039
  case "com.amazonaws.iam#PasswordPolicyViolationException": return [3, 10];
2040
- case "ServiceFailureException": return [3, 12];
2040
+ case "ServiceFailure": return [3, 12];
2041
2041
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
2042
2042
  }
2043
2043
  return [3, 14];
@@ -2092,17 +2092,17 @@ var deserializeAws_queryCreateAccessKeyCommandError = function (output, context)
2092
2092
  case 0:
2093
2093
  _a = [__assign({}, output)];
2094
2094
  _c = {};
2095
- return [4, parseBody(output.body, context)];
2095
+ return [4, parseErrorBody(output.body, context)];
2096
2096
  case 1:
2097
2097
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2098
2098
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2099
2099
  _b = errorCode;
2100
2100
  switch (_b) {
2101
- case "LimitExceededException": return [3, 2];
2101
+ case "LimitExceeded": return [3, 2];
2102
2102
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
2103
- case "NoSuchEntityException": return [3, 4];
2103
+ case "NoSuchEntity": return [3, 4];
2104
2104
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
2105
- case "ServiceFailureException": return [3, 6];
2105
+ case "ServiceFailure": return [3, 6];
2106
2106
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
2107
2107
  }
2108
2108
  return [3, 8];
@@ -2151,17 +2151,17 @@ var deserializeAws_queryCreateAccountAliasCommandError = function (output, conte
2151
2151
  case 0:
2152
2152
  _a = [__assign({}, output)];
2153
2153
  _c = {};
2154
- return [4, parseBody(output.body, context)];
2154
+ return [4, parseErrorBody(output.body, context)];
2155
2155
  case 1:
2156
2156
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2157
2157
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2158
2158
  _b = errorCode;
2159
2159
  switch (_b) {
2160
- case "EntityAlreadyExistsException": return [3, 2];
2160
+ case "EntityAlreadyExists": return [3, 2];
2161
2161
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
2162
- case "LimitExceededException": return [3, 4];
2162
+ case "LimitExceeded": return [3, 4];
2163
2163
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
2164
- case "ServiceFailureException": return [3, 6];
2164
+ case "ServiceFailure": return [3, 6];
2165
2165
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
2166
2166
  }
2167
2167
  return [3, 8];
@@ -2210,19 +2210,19 @@ var deserializeAws_queryCreateGroupCommandError = function (output, context) { r
2210
2210
  case 0:
2211
2211
  _a = [__assign({}, output)];
2212
2212
  _c = {};
2213
- return [4, parseBody(output.body, context)];
2213
+ return [4, parseErrorBody(output.body, context)];
2214
2214
  case 1:
2215
2215
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2216
2216
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2217
2217
  _b = errorCode;
2218
2218
  switch (_b) {
2219
- case "EntityAlreadyExistsException": return [3, 2];
2219
+ case "EntityAlreadyExists": return [3, 2];
2220
2220
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
2221
- case "LimitExceededException": return [3, 4];
2221
+ case "LimitExceeded": return [3, 4];
2222
2222
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
2223
- case "NoSuchEntityException": return [3, 6];
2223
+ case "NoSuchEntity": return [3, 6];
2224
2224
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
2225
- case "ServiceFailureException": return [3, 8];
2225
+ case "ServiceFailure": return [3, 8];
2226
2226
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
2227
2227
  }
2228
2228
  return [3, 10];
@@ -2273,21 +2273,21 @@ var deserializeAws_queryCreateInstanceProfileCommandError = function (output, co
2273
2273
  case 0:
2274
2274
  _a = [__assign({}, output)];
2275
2275
  _c = {};
2276
- return [4, parseBody(output.body, context)];
2276
+ return [4, parseErrorBody(output.body, context)];
2277
2277
  case 1:
2278
2278
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2279
2279
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2280
2280
  _b = errorCode;
2281
2281
  switch (_b) {
2282
- case "ConcurrentModificationException": return [3, 2];
2282
+ case "ConcurrentModification": return [3, 2];
2283
2283
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2284
- case "EntityAlreadyExistsException": return [3, 4];
2284
+ case "EntityAlreadyExists": return [3, 4];
2285
2285
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2286
- case "InvalidInputException": return [3, 6];
2286
+ case "InvalidInput": return [3, 6];
2287
2287
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2288
- case "LimitExceededException": return [3, 8];
2288
+ case "LimitExceeded": return [3, 8];
2289
2289
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2290
- case "ServiceFailureException": return [3, 10];
2290
+ case "ServiceFailure": return [3, 10];
2291
2291
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2292
2292
  }
2293
2293
  return [3, 12];
@@ -2340,21 +2340,21 @@ var deserializeAws_queryCreateLoginProfileCommandError = function (output, conte
2340
2340
  case 0:
2341
2341
  _a = [__assign({}, output)];
2342
2342
  _c = {};
2343
- return [4, parseBody(output.body, context)];
2343
+ return [4, parseErrorBody(output.body, context)];
2344
2344
  case 1:
2345
2345
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2346
2346
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2347
2347
  _b = errorCode;
2348
2348
  switch (_b) {
2349
- case "EntityAlreadyExistsException": return [3, 2];
2349
+ case "EntityAlreadyExists": return [3, 2];
2350
2350
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
2351
- case "LimitExceededException": return [3, 4];
2351
+ case "LimitExceeded": return [3, 4];
2352
2352
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
2353
- case "NoSuchEntityException": return [3, 6];
2353
+ case "NoSuchEntity": return [3, 6];
2354
2354
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
2355
- case "PasswordPolicyViolationException": return [3, 8];
2355
+ case "PasswordPolicyViolation": return [3, 8];
2356
2356
  case "com.amazonaws.iam#PasswordPolicyViolationException": return [3, 8];
2357
- case "ServiceFailureException": return [3, 10];
2357
+ case "ServiceFailure": return [3, 10];
2358
2358
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2359
2359
  }
2360
2360
  return [3, 12];
@@ -2407,21 +2407,21 @@ var deserializeAws_queryCreateOpenIDConnectProviderCommandError = function (outp
2407
2407
  case 0:
2408
2408
  _a = [__assign({}, output)];
2409
2409
  _c = {};
2410
- return [4, parseBody(output.body, context)];
2410
+ return [4, parseErrorBody(output.body, context)];
2411
2411
  case 1:
2412
2412
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2413
2413
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2414
2414
  _b = errorCode;
2415
2415
  switch (_b) {
2416
- case "ConcurrentModificationException": return [3, 2];
2416
+ case "ConcurrentModification": return [3, 2];
2417
2417
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2418
- case "EntityAlreadyExistsException": return [3, 4];
2418
+ case "EntityAlreadyExists": return [3, 4];
2419
2419
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2420
- case "InvalidInputException": return [3, 6];
2420
+ case "InvalidInput": return [3, 6];
2421
2421
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2422
- case "LimitExceededException": return [3, 8];
2422
+ case "LimitExceeded": return [3, 8];
2423
2423
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2424
- case "ServiceFailureException": return [3, 10];
2424
+ case "ServiceFailure": return [3, 10];
2425
2425
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2426
2426
  }
2427
2427
  return [3, 12];
@@ -2474,23 +2474,23 @@ var deserializeAws_queryCreatePolicyCommandError = function (output, context) {
2474
2474
  case 0:
2475
2475
  _a = [__assign({}, output)];
2476
2476
  _c = {};
2477
- return [4, parseBody(output.body, context)];
2477
+ return [4, parseErrorBody(output.body, context)];
2478
2478
  case 1:
2479
2479
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2480
2480
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2481
2481
  _b = errorCode;
2482
2482
  switch (_b) {
2483
- case "ConcurrentModificationException": return [3, 2];
2483
+ case "ConcurrentModification": return [3, 2];
2484
2484
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2485
- case "EntityAlreadyExistsException": return [3, 4];
2485
+ case "EntityAlreadyExists": return [3, 4];
2486
2486
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2487
- case "InvalidInputException": return [3, 6];
2487
+ case "InvalidInput": return [3, 6];
2488
2488
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2489
- case "LimitExceededException": return [3, 8];
2489
+ case "LimitExceeded": return [3, 8];
2490
2490
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2491
- case "MalformedPolicyDocumentException": return [3, 10];
2491
+ case "MalformedPolicyDocument": return [3, 10];
2492
2492
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 10];
2493
- case "ServiceFailureException": return [3, 12];
2493
+ case "ServiceFailure": return [3, 12];
2494
2494
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
2495
2495
  }
2496
2496
  return [3, 14];
@@ -2545,21 +2545,21 @@ var deserializeAws_queryCreatePolicyVersionCommandError = function (output, cont
2545
2545
  case 0:
2546
2546
  _a = [__assign({}, output)];
2547
2547
  _c = {};
2548
- return [4, parseBody(output.body, context)];
2548
+ return [4, parseErrorBody(output.body, context)];
2549
2549
  case 1:
2550
2550
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2551
2551
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2552
2552
  _b = errorCode;
2553
2553
  switch (_b) {
2554
- case "InvalidInputException": return [3, 2];
2554
+ case "InvalidInput": return [3, 2];
2555
2555
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
2556
- case "LimitExceededException": return [3, 4];
2556
+ case "LimitExceeded": return [3, 4];
2557
2557
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
2558
- case "MalformedPolicyDocumentException": return [3, 6];
2558
+ case "MalformedPolicyDocument": return [3, 6];
2559
2559
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 6];
2560
- case "NoSuchEntityException": return [3, 8];
2560
+ case "NoSuchEntity": return [3, 8];
2561
2561
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
2562
- case "ServiceFailureException": return [3, 10];
2562
+ case "ServiceFailure": return [3, 10];
2563
2563
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2564
2564
  }
2565
2565
  return [3, 12];
@@ -2612,23 +2612,23 @@ var deserializeAws_queryCreateRoleCommandError = function (output, context) { re
2612
2612
  case 0:
2613
2613
  _a = [__assign({}, output)];
2614
2614
  _c = {};
2615
- return [4, parseBody(output.body, context)];
2615
+ return [4, parseErrorBody(output.body, context)];
2616
2616
  case 1:
2617
2617
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2618
2618
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2619
2619
  _b = errorCode;
2620
2620
  switch (_b) {
2621
- case "ConcurrentModificationException": return [3, 2];
2621
+ case "ConcurrentModification": return [3, 2];
2622
2622
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2623
- case "EntityAlreadyExistsException": return [3, 4];
2623
+ case "EntityAlreadyExists": return [3, 4];
2624
2624
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2625
- case "InvalidInputException": return [3, 6];
2625
+ case "InvalidInput": return [3, 6];
2626
2626
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2627
- case "LimitExceededException": return [3, 8];
2627
+ case "LimitExceeded": return [3, 8];
2628
2628
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2629
- case "MalformedPolicyDocumentException": return [3, 10];
2629
+ case "MalformedPolicyDocument": return [3, 10];
2630
2630
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 10];
2631
- case "ServiceFailureException": return [3, 12];
2631
+ case "ServiceFailure": return [3, 12];
2632
2632
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
2633
2633
  }
2634
2634
  return [3, 14];
@@ -2683,21 +2683,21 @@ var deserializeAws_queryCreateSAMLProviderCommandError = function (output, conte
2683
2683
  case 0:
2684
2684
  _a = [__assign({}, output)];
2685
2685
  _c = {};
2686
- return [4, parseBody(output.body, context)];
2686
+ return [4, parseErrorBody(output.body, context)];
2687
2687
  case 1:
2688
2688
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2689
2689
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2690
2690
  _b = errorCode;
2691
2691
  switch (_b) {
2692
- case "ConcurrentModificationException": return [3, 2];
2692
+ case "ConcurrentModification": return [3, 2];
2693
2693
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2694
- case "EntityAlreadyExistsException": return [3, 4];
2694
+ case "EntityAlreadyExists": return [3, 4];
2695
2695
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2696
- case "InvalidInputException": return [3, 6];
2696
+ case "InvalidInput": return [3, 6];
2697
2697
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2698
- case "LimitExceededException": return [3, 8];
2698
+ case "LimitExceeded": return [3, 8];
2699
2699
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2700
- case "ServiceFailureException": return [3, 10];
2700
+ case "ServiceFailure": return [3, 10];
2701
2701
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2702
2702
  }
2703
2703
  return [3, 12];
@@ -2750,19 +2750,19 @@ var deserializeAws_queryCreateServiceLinkedRoleCommandError = function (output,
2750
2750
  case 0:
2751
2751
  _a = [__assign({}, output)];
2752
2752
  _c = {};
2753
- return [4, parseBody(output.body, context)];
2753
+ return [4, parseErrorBody(output.body, context)];
2754
2754
  case 1:
2755
2755
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2756
2756
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2757
2757
  _b = errorCode;
2758
2758
  switch (_b) {
2759
- case "InvalidInputException": return [3, 2];
2759
+ case "InvalidInput": return [3, 2];
2760
2760
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
2761
- case "LimitExceededException": return [3, 4];
2761
+ case "LimitExceeded": return [3, 4];
2762
2762
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
2763
- case "NoSuchEntityException": return [3, 6];
2763
+ case "NoSuchEntity": return [3, 6];
2764
2764
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
2765
- case "ServiceFailureException": return [3, 8];
2765
+ case "ServiceFailure": return [3, 8];
2766
2766
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
2767
2767
  }
2768
2768
  return [3, 10];
@@ -2813,17 +2813,17 @@ var deserializeAws_queryCreateServiceSpecificCredentialCommandError = function (
2813
2813
  case 0:
2814
2814
  _a = [__assign({}, output)];
2815
2815
  _c = {};
2816
- return [4, parseBody(output.body, context)];
2816
+ return [4, parseErrorBody(output.body, context)];
2817
2817
  case 1:
2818
2818
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2819
2819
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2820
2820
  _b = errorCode;
2821
2821
  switch (_b) {
2822
- case "LimitExceededException": return [3, 2];
2822
+ case "LimitExceeded": return [3, 2];
2823
2823
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
2824
- case "NoSuchEntityException": return [3, 4];
2824
+ case "NoSuchEntity": return [3, 4];
2825
2825
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
2826
- case "ServiceNotSupportedException": return [3, 6];
2826
+ case "NotSupportedService": return [3, 6];
2827
2827
  case "com.amazonaws.iam#ServiceNotSupportedException": return [3, 6];
2828
2828
  }
2829
2829
  return [3, 8];
@@ -2872,23 +2872,23 @@ var deserializeAws_queryCreateUserCommandError = function (output, context) { re
2872
2872
  case 0:
2873
2873
  _a = [__assign({}, output)];
2874
2874
  _c = {};
2875
- return [4, parseBody(output.body, context)];
2875
+ return [4, parseErrorBody(output.body, context)];
2876
2876
  case 1:
2877
2877
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2878
2878
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2879
2879
  _b = errorCode;
2880
2880
  switch (_b) {
2881
- case "ConcurrentModificationException": return [3, 2];
2881
+ case "ConcurrentModification": return [3, 2];
2882
2882
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2883
- case "EntityAlreadyExistsException": return [3, 4];
2883
+ case "EntityAlreadyExists": return [3, 4];
2884
2884
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2885
- case "InvalidInputException": return [3, 6];
2885
+ case "InvalidInput": return [3, 6];
2886
2886
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2887
- case "LimitExceededException": return [3, 8];
2887
+ case "LimitExceeded": return [3, 8];
2888
2888
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2889
- case "NoSuchEntityException": return [3, 10];
2889
+ case "NoSuchEntity": return [3, 10];
2890
2890
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 10];
2891
- case "ServiceFailureException": return [3, 12];
2891
+ case "ServiceFailure": return [3, 12];
2892
2892
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
2893
2893
  }
2894
2894
  return [3, 14];
@@ -2943,21 +2943,21 @@ var deserializeAws_queryCreateVirtualMFADeviceCommandError = function (output, c
2943
2943
  case 0:
2944
2944
  _a = [__assign({}, output)];
2945
2945
  _c = {};
2946
- return [4, parseBody(output.body, context)];
2946
+ return [4, parseErrorBody(output.body, context)];
2947
2947
  case 1:
2948
2948
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2949
2949
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2950
2950
  _b = errorCode;
2951
2951
  switch (_b) {
2952
- case "ConcurrentModificationException": return [3, 2];
2952
+ case "ConcurrentModification": return [3, 2];
2953
2953
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
2954
- case "EntityAlreadyExistsException": return [3, 4];
2954
+ case "EntityAlreadyExists": return [3, 4];
2955
2955
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
2956
- case "InvalidInputException": return [3, 6];
2956
+ case "InvalidInput": return [3, 6];
2957
2957
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
2958
- case "LimitExceededException": return [3, 8];
2958
+ case "LimitExceeded": return [3, 8];
2959
2959
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
2960
- case "ServiceFailureException": return [3, 10];
2960
+ case "ServiceFailure": return [3, 10];
2961
2961
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
2962
2962
  }
2963
2963
  return [3, 12];
@@ -3010,19 +3010,19 @@ var deserializeAws_queryDeactivateMFADeviceCommandError = function (output, cont
3010
3010
  case 0:
3011
3011
  _a = [__assign({}, output)];
3012
3012
  _c = {};
3013
- return [4, parseBody(output.body, context)];
3013
+ return [4, parseErrorBody(output.body, context)];
3014
3014
  case 1:
3015
3015
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3016
3016
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3017
3017
  _b = errorCode;
3018
3018
  switch (_b) {
3019
- case "EntityTemporarilyUnmodifiableException": return [3, 2];
3019
+ case "EntityTemporarilyUnmodifiable": return [3, 2];
3020
3020
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 2];
3021
- case "LimitExceededException": return [3, 4];
3021
+ case "LimitExceeded": return [3, 4];
3022
3022
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3023
- case "NoSuchEntityException": return [3, 6];
3023
+ case "NoSuchEntity": return [3, 6];
3024
3024
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3025
- case "ServiceFailureException": return [3, 8];
3025
+ case "ServiceFailure": return [3, 8];
3026
3026
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3027
3027
  }
3028
3028
  return [3, 10];
@@ -3073,17 +3073,17 @@ var deserializeAws_queryDeleteAccessKeyCommandError = function (output, context)
3073
3073
  case 0:
3074
3074
  _a = [__assign({}, output)];
3075
3075
  _c = {};
3076
- return [4, parseBody(output.body, context)];
3076
+ return [4, parseErrorBody(output.body, context)];
3077
3077
  case 1:
3078
3078
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3079
3079
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3080
3080
  _b = errorCode;
3081
3081
  switch (_b) {
3082
- case "LimitExceededException": return [3, 2];
3082
+ case "LimitExceeded": return [3, 2];
3083
3083
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
3084
- case "NoSuchEntityException": return [3, 4];
3084
+ case "NoSuchEntity": return [3, 4];
3085
3085
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3086
- case "ServiceFailureException": return [3, 6];
3086
+ case "ServiceFailure": return [3, 6];
3087
3087
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3088
3088
  }
3089
3089
  return [3, 8];
@@ -3132,17 +3132,17 @@ var deserializeAws_queryDeleteAccountAliasCommandError = function (output, conte
3132
3132
  case 0:
3133
3133
  _a = [__assign({}, output)];
3134
3134
  _c = {};
3135
- return [4, parseBody(output.body, context)];
3135
+ return [4, parseErrorBody(output.body, context)];
3136
3136
  case 1:
3137
3137
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3138
3138
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3139
3139
  _b = errorCode;
3140
3140
  switch (_b) {
3141
- case "LimitExceededException": return [3, 2];
3141
+ case "LimitExceeded": return [3, 2];
3142
3142
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
3143
- case "NoSuchEntityException": return [3, 4];
3143
+ case "NoSuchEntity": return [3, 4];
3144
3144
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3145
- case "ServiceFailureException": return [3, 6];
3145
+ case "ServiceFailure": return [3, 6];
3146
3146
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3147
3147
  }
3148
3148
  return [3, 8];
@@ -3191,17 +3191,17 @@ var deserializeAws_queryDeleteAccountPasswordPolicyCommandError = function (outp
3191
3191
  case 0:
3192
3192
  _a = [__assign({}, output)];
3193
3193
  _c = {};
3194
- return [4, parseBody(output.body, context)];
3194
+ return [4, parseErrorBody(output.body, context)];
3195
3195
  case 1:
3196
3196
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3197
3197
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3198
3198
  _b = errorCode;
3199
3199
  switch (_b) {
3200
- case "LimitExceededException": return [3, 2];
3200
+ case "LimitExceeded": return [3, 2];
3201
3201
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
3202
- case "NoSuchEntityException": return [3, 4];
3202
+ case "NoSuchEntity": return [3, 4];
3203
3203
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3204
- case "ServiceFailureException": return [3, 6];
3204
+ case "ServiceFailure": return [3, 6];
3205
3205
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3206
3206
  }
3207
3207
  return [3, 8];
@@ -3250,19 +3250,19 @@ var deserializeAws_queryDeleteGroupCommandError = function (output, context) { r
3250
3250
  case 0:
3251
3251
  _a = [__assign({}, output)];
3252
3252
  _c = {};
3253
- return [4, parseBody(output.body, context)];
3253
+ return [4, parseErrorBody(output.body, context)];
3254
3254
  case 1:
3255
3255
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3256
3256
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3257
3257
  _b = errorCode;
3258
3258
  switch (_b) {
3259
- case "DeleteConflictException": return [3, 2];
3259
+ case "DeleteConflict": return [3, 2];
3260
3260
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
3261
- case "LimitExceededException": return [3, 4];
3261
+ case "LimitExceeded": return [3, 4];
3262
3262
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3263
- case "NoSuchEntityException": return [3, 6];
3263
+ case "NoSuchEntity": return [3, 6];
3264
3264
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3265
- case "ServiceFailureException": return [3, 8];
3265
+ case "ServiceFailure": return [3, 8];
3266
3266
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3267
3267
  }
3268
3268
  return [3, 10];
@@ -3313,17 +3313,17 @@ var deserializeAws_queryDeleteGroupPolicyCommandError = function (output, contex
3313
3313
  case 0:
3314
3314
  _a = [__assign({}, output)];
3315
3315
  _c = {};
3316
- return [4, parseBody(output.body, context)];
3316
+ return [4, parseErrorBody(output.body, context)];
3317
3317
  case 1:
3318
3318
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3319
3319
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3320
3320
  _b = errorCode;
3321
3321
  switch (_b) {
3322
- case "LimitExceededException": return [3, 2];
3322
+ case "LimitExceeded": return [3, 2];
3323
3323
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
3324
- case "NoSuchEntityException": return [3, 4];
3324
+ case "NoSuchEntity": return [3, 4];
3325
3325
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3326
- case "ServiceFailureException": return [3, 6];
3326
+ case "ServiceFailure": return [3, 6];
3327
3327
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3328
3328
  }
3329
3329
  return [3, 8];
@@ -3372,19 +3372,19 @@ var deserializeAws_queryDeleteInstanceProfileCommandError = function (output, co
3372
3372
  case 0:
3373
3373
  _a = [__assign({}, output)];
3374
3374
  _c = {};
3375
- return [4, parseBody(output.body, context)];
3375
+ return [4, parseErrorBody(output.body, context)];
3376
3376
  case 1:
3377
3377
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3378
3378
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3379
3379
  _b = errorCode;
3380
3380
  switch (_b) {
3381
- case "DeleteConflictException": return [3, 2];
3381
+ case "DeleteConflict": return [3, 2];
3382
3382
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
3383
- case "LimitExceededException": return [3, 4];
3383
+ case "LimitExceeded": return [3, 4];
3384
3384
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3385
- case "NoSuchEntityException": return [3, 6];
3385
+ case "NoSuchEntity": return [3, 6];
3386
3386
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3387
- case "ServiceFailureException": return [3, 8];
3387
+ case "ServiceFailure": return [3, 8];
3388
3388
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3389
3389
  }
3390
3390
  return [3, 10];
@@ -3435,19 +3435,19 @@ var deserializeAws_queryDeleteLoginProfileCommandError = function (output, conte
3435
3435
  case 0:
3436
3436
  _a = [__assign({}, output)];
3437
3437
  _c = {};
3438
- return [4, parseBody(output.body, context)];
3438
+ return [4, parseErrorBody(output.body, context)];
3439
3439
  case 1:
3440
3440
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3441
3441
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3442
3442
  _b = errorCode;
3443
3443
  switch (_b) {
3444
- case "EntityTemporarilyUnmodifiableException": return [3, 2];
3444
+ case "EntityTemporarilyUnmodifiable": return [3, 2];
3445
3445
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 2];
3446
- case "LimitExceededException": return [3, 4];
3446
+ case "LimitExceeded": return [3, 4];
3447
3447
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3448
- case "NoSuchEntityException": return [3, 6];
3448
+ case "NoSuchEntity": return [3, 6];
3449
3449
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3450
- case "ServiceFailureException": return [3, 8];
3450
+ case "ServiceFailure": return [3, 8];
3451
3451
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3452
3452
  }
3453
3453
  return [3, 10];
@@ -3498,17 +3498,17 @@ var deserializeAws_queryDeleteOpenIDConnectProviderCommandError = function (outp
3498
3498
  case 0:
3499
3499
  _a = [__assign({}, output)];
3500
3500
  _c = {};
3501
- return [4, parseBody(output.body, context)];
3501
+ return [4, parseErrorBody(output.body, context)];
3502
3502
  case 1:
3503
3503
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3504
3504
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3505
3505
  _b = errorCode;
3506
3506
  switch (_b) {
3507
- case "InvalidInputException": return [3, 2];
3507
+ case "InvalidInput": return [3, 2];
3508
3508
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
3509
- case "NoSuchEntityException": return [3, 4];
3509
+ case "NoSuchEntity": return [3, 4];
3510
3510
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3511
- case "ServiceFailureException": return [3, 6];
3511
+ case "ServiceFailure": return [3, 6];
3512
3512
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3513
3513
  }
3514
3514
  return [3, 8];
@@ -3557,21 +3557,21 @@ var deserializeAws_queryDeletePolicyCommandError = function (output, context) {
3557
3557
  case 0:
3558
3558
  _a = [__assign({}, output)];
3559
3559
  _c = {};
3560
- return [4, parseBody(output.body, context)];
3560
+ return [4, parseErrorBody(output.body, context)];
3561
3561
  case 1:
3562
3562
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3563
3563
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3564
3564
  _b = errorCode;
3565
3565
  switch (_b) {
3566
- case "DeleteConflictException": return [3, 2];
3566
+ case "DeleteConflict": return [3, 2];
3567
3567
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
3568
- case "InvalidInputException": return [3, 4];
3568
+ case "InvalidInput": return [3, 4];
3569
3569
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
3570
- case "LimitExceededException": return [3, 6];
3570
+ case "LimitExceeded": return [3, 6];
3571
3571
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
3572
- case "NoSuchEntityException": return [3, 8];
3572
+ case "NoSuchEntity": return [3, 8];
3573
3573
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
3574
- case "ServiceFailureException": return [3, 10];
3574
+ case "ServiceFailure": return [3, 10];
3575
3575
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
3576
3576
  }
3577
3577
  return [3, 12];
@@ -3624,21 +3624,21 @@ var deserializeAws_queryDeletePolicyVersionCommandError = function (output, cont
3624
3624
  case 0:
3625
3625
  _a = [__assign({}, output)];
3626
3626
  _c = {};
3627
- return [4, parseBody(output.body, context)];
3627
+ return [4, parseErrorBody(output.body, context)];
3628
3628
  case 1:
3629
3629
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3630
3630
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3631
3631
  _b = errorCode;
3632
3632
  switch (_b) {
3633
- case "DeleteConflictException": return [3, 2];
3633
+ case "DeleteConflict": return [3, 2];
3634
3634
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
3635
- case "InvalidInputException": return [3, 4];
3635
+ case "InvalidInput": return [3, 4];
3636
3636
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
3637
- case "LimitExceededException": return [3, 6];
3637
+ case "LimitExceeded": return [3, 6];
3638
3638
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
3639
- case "NoSuchEntityException": return [3, 8];
3639
+ case "NoSuchEntity": return [3, 8];
3640
3640
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
3641
- case "ServiceFailureException": return [3, 10];
3641
+ case "ServiceFailure": return [3, 10];
3642
3642
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
3643
3643
  }
3644
3644
  return [3, 12];
@@ -3691,23 +3691,23 @@ var deserializeAws_queryDeleteRoleCommandError = function (output, context) { re
3691
3691
  case 0:
3692
3692
  _a = [__assign({}, output)];
3693
3693
  _c = {};
3694
- return [4, parseBody(output.body, context)];
3694
+ return [4, parseErrorBody(output.body, context)];
3695
3695
  case 1:
3696
3696
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3697
3697
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3698
3698
  _b = errorCode;
3699
3699
  switch (_b) {
3700
- case "ConcurrentModificationException": return [3, 2];
3700
+ case "ConcurrentModification": return [3, 2];
3701
3701
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
3702
- case "DeleteConflictException": return [3, 4];
3702
+ case "DeleteConflict": return [3, 4];
3703
3703
  case "com.amazonaws.iam#DeleteConflictException": return [3, 4];
3704
- case "LimitExceededException": return [3, 6];
3704
+ case "LimitExceeded": return [3, 6];
3705
3705
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
3706
- case "NoSuchEntityException": return [3, 8];
3706
+ case "NoSuchEntity": return [3, 8];
3707
3707
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
3708
- case "ServiceFailureException": return [3, 10];
3708
+ case "ServiceFailure": return [3, 10];
3709
3709
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
3710
- case "UnmodifiableEntityException": return [3, 12];
3710
+ case "UnmodifiableEntity": return [3, 12];
3711
3711
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 12];
3712
3712
  }
3713
3713
  return [3, 14];
@@ -3762,17 +3762,17 @@ var deserializeAws_queryDeleteRolePermissionsBoundaryCommandError = function (ou
3762
3762
  case 0:
3763
3763
  _a = [__assign({}, output)];
3764
3764
  _c = {};
3765
- return [4, parseBody(output.body, context)];
3765
+ return [4, parseErrorBody(output.body, context)];
3766
3766
  case 1:
3767
3767
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3768
3768
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3769
3769
  _b = errorCode;
3770
3770
  switch (_b) {
3771
- case "NoSuchEntityException": return [3, 2];
3771
+ case "NoSuchEntity": return [3, 2];
3772
3772
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
3773
- case "ServiceFailureException": return [3, 4];
3773
+ case "ServiceFailure": return [3, 4];
3774
3774
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
3775
- case "UnmodifiableEntityException": return [3, 6];
3775
+ case "UnmodifiableEntity": return [3, 6];
3776
3776
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 6];
3777
3777
  }
3778
3778
  return [3, 8];
@@ -3821,19 +3821,19 @@ var deserializeAws_queryDeleteRolePolicyCommandError = function (output, context
3821
3821
  case 0:
3822
3822
  _a = [__assign({}, output)];
3823
3823
  _c = {};
3824
- return [4, parseBody(output.body, context)];
3824
+ return [4, parseErrorBody(output.body, context)];
3825
3825
  case 1:
3826
3826
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3827
3827
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3828
3828
  _b = errorCode;
3829
3829
  switch (_b) {
3830
- case "LimitExceededException": return [3, 2];
3830
+ case "LimitExceeded": return [3, 2];
3831
3831
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
3832
- case "NoSuchEntityException": return [3, 4];
3832
+ case "NoSuchEntity": return [3, 4];
3833
3833
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
3834
- case "ServiceFailureException": return [3, 6];
3834
+ case "ServiceFailure": return [3, 6];
3835
3835
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
3836
- case "UnmodifiableEntityException": return [3, 8];
3836
+ case "UnmodifiableEntity": return [3, 8];
3837
3837
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 8];
3838
3838
  }
3839
3839
  return [3, 10];
@@ -3884,19 +3884,19 @@ var deserializeAws_queryDeleteSAMLProviderCommandError = function (output, conte
3884
3884
  case 0:
3885
3885
  _a = [__assign({}, output)];
3886
3886
  _c = {};
3887
- return [4, parseBody(output.body, context)];
3887
+ return [4, parseErrorBody(output.body, context)];
3888
3888
  case 1:
3889
3889
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3890
3890
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3891
3891
  _b = errorCode;
3892
3892
  switch (_b) {
3893
- case "InvalidInputException": return [3, 2];
3893
+ case "InvalidInput": return [3, 2];
3894
3894
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
3895
- case "LimitExceededException": return [3, 4];
3895
+ case "LimitExceeded": return [3, 4];
3896
3896
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3897
- case "NoSuchEntityException": return [3, 6];
3897
+ case "NoSuchEntity": return [3, 6];
3898
3898
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3899
- case "ServiceFailureException": return [3, 8];
3899
+ case "ServiceFailure": return [3, 8];
3900
3900
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3901
3901
  }
3902
3902
  return [3, 10];
@@ -3947,19 +3947,19 @@ var deserializeAws_queryDeleteServerCertificateCommandError = function (output,
3947
3947
  case 0:
3948
3948
  _a = [__assign({}, output)];
3949
3949
  _c = {};
3950
- return [4, parseBody(output.body, context)];
3950
+ return [4, parseErrorBody(output.body, context)];
3951
3951
  case 1:
3952
3952
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3953
3953
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3954
3954
  _b = errorCode;
3955
3955
  switch (_b) {
3956
- case "DeleteConflictException": return [3, 2];
3956
+ case "DeleteConflict": return [3, 2];
3957
3957
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
3958
- case "LimitExceededException": return [3, 4];
3958
+ case "LimitExceeded": return [3, 4];
3959
3959
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
3960
- case "NoSuchEntityException": return [3, 6];
3960
+ case "NoSuchEntity": return [3, 6];
3961
3961
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
3962
- case "ServiceFailureException": return [3, 8];
3962
+ case "ServiceFailure": return [3, 8];
3963
3963
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
3964
3964
  }
3965
3965
  return [3, 10];
@@ -4010,17 +4010,17 @@ var deserializeAws_queryDeleteServiceLinkedRoleCommandError = function (output,
4010
4010
  case 0:
4011
4011
  _a = [__assign({}, output)];
4012
4012
  _c = {};
4013
- return [4, parseBody(output.body, context)];
4013
+ return [4, parseErrorBody(output.body, context)];
4014
4014
  case 1:
4015
4015
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4016
4016
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4017
4017
  _b = errorCode;
4018
4018
  switch (_b) {
4019
- case "LimitExceededException": return [3, 2];
4019
+ case "LimitExceeded": return [3, 2];
4020
4020
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
4021
- case "NoSuchEntityException": return [3, 4];
4021
+ case "NoSuchEntity": return [3, 4];
4022
4022
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
4023
- case "ServiceFailureException": return [3, 6];
4023
+ case "ServiceFailure": return [3, 6];
4024
4024
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
4025
4025
  }
4026
4026
  return [3, 8];
@@ -4069,13 +4069,13 @@ var deserializeAws_queryDeleteServiceSpecificCredentialCommandError = function (
4069
4069
  case 0:
4070
4070
  _a = [__assign({}, output)];
4071
4071
  _c = {};
4072
- return [4, parseBody(output.body, context)];
4072
+ return [4, parseErrorBody(output.body, context)];
4073
4073
  case 1:
4074
4074
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4075
4075
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4076
4076
  _b = errorCode;
4077
4077
  switch (_b) {
4078
- case "NoSuchEntityException": return [3, 2];
4078
+ case "NoSuchEntity": return [3, 2];
4079
4079
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
4080
4080
  }
4081
4081
  return [3, 4];
@@ -4120,17 +4120,17 @@ var deserializeAws_queryDeleteSigningCertificateCommandError = function (output,
4120
4120
  case 0:
4121
4121
  _a = [__assign({}, output)];
4122
4122
  _c = {};
4123
- return [4, parseBody(output.body, context)];
4123
+ return [4, parseErrorBody(output.body, context)];
4124
4124
  case 1:
4125
4125
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4126
4126
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4127
4127
  _b = errorCode;
4128
4128
  switch (_b) {
4129
- case "LimitExceededException": return [3, 2];
4129
+ case "LimitExceeded": return [3, 2];
4130
4130
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
4131
- case "NoSuchEntityException": return [3, 4];
4131
+ case "NoSuchEntity": return [3, 4];
4132
4132
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
4133
- case "ServiceFailureException": return [3, 6];
4133
+ case "ServiceFailure": return [3, 6];
4134
4134
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
4135
4135
  }
4136
4136
  return [3, 8];
@@ -4179,13 +4179,13 @@ var deserializeAws_queryDeleteSSHPublicKeyCommandError = function (output, conte
4179
4179
  case 0:
4180
4180
  _a = [__assign({}, output)];
4181
4181
  _c = {};
4182
- return [4, parseBody(output.body, context)];
4182
+ return [4, parseErrorBody(output.body, context)];
4183
4183
  case 1:
4184
4184
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4185
4185
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4186
4186
  _b = errorCode;
4187
4187
  switch (_b) {
4188
- case "NoSuchEntityException": return [3, 2];
4188
+ case "NoSuchEntity": return [3, 2];
4189
4189
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
4190
4190
  }
4191
4191
  return [3, 4];
@@ -4230,21 +4230,21 @@ var deserializeAws_queryDeleteUserCommandError = function (output, context) { re
4230
4230
  case 0:
4231
4231
  _a = [__assign({}, output)];
4232
4232
  _c = {};
4233
- return [4, parseBody(output.body, context)];
4233
+ return [4, parseErrorBody(output.body, context)];
4234
4234
  case 1:
4235
4235
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4236
4236
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4237
4237
  _b = errorCode;
4238
4238
  switch (_b) {
4239
- case "ConcurrentModificationException": return [3, 2];
4239
+ case "ConcurrentModification": return [3, 2];
4240
4240
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
4241
- case "DeleteConflictException": return [3, 4];
4241
+ case "DeleteConflict": return [3, 4];
4242
4242
  case "com.amazonaws.iam#DeleteConflictException": return [3, 4];
4243
- case "LimitExceededException": return [3, 6];
4243
+ case "LimitExceeded": return [3, 6];
4244
4244
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
4245
- case "NoSuchEntityException": return [3, 8];
4245
+ case "NoSuchEntity": return [3, 8];
4246
4246
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
4247
- case "ServiceFailureException": return [3, 10];
4247
+ case "ServiceFailure": return [3, 10];
4248
4248
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
4249
4249
  }
4250
4250
  return [3, 12];
@@ -4297,15 +4297,15 @@ var deserializeAws_queryDeleteUserPermissionsBoundaryCommandError = function (ou
4297
4297
  case 0:
4298
4298
  _a = [__assign({}, output)];
4299
4299
  _c = {};
4300
- return [4, parseBody(output.body, context)];
4300
+ return [4, parseErrorBody(output.body, context)];
4301
4301
  case 1:
4302
4302
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4303
4303
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4304
4304
  _b = errorCode;
4305
4305
  switch (_b) {
4306
- case "NoSuchEntityException": return [3, 2];
4306
+ case "NoSuchEntity": return [3, 2];
4307
4307
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
4308
- case "ServiceFailureException": return [3, 4];
4308
+ case "ServiceFailure": return [3, 4];
4309
4309
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
4310
4310
  }
4311
4311
  return [3, 6];
@@ -4352,17 +4352,17 @@ var deserializeAws_queryDeleteUserPolicyCommandError = function (output, context
4352
4352
  case 0:
4353
4353
  _a = [__assign({}, output)];
4354
4354
  _c = {};
4355
- return [4, parseBody(output.body, context)];
4355
+ return [4, parseErrorBody(output.body, context)];
4356
4356
  case 1:
4357
4357
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4358
4358
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4359
4359
  _b = errorCode;
4360
4360
  switch (_b) {
4361
- case "LimitExceededException": return [3, 2];
4361
+ case "LimitExceeded": return [3, 2];
4362
4362
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
4363
- case "NoSuchEntityException": return [3, 4];
4363
+ case "NoSuchEntity": return [3, 4];
4364
4364
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
4365
- case "ServiceFailureException": return [3, 6];
4365
+ case "ServiceFailure": return [3, 6];
4366
4366
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
4367
4367
  }
4368
4368
  return [3, 8];
@@ -4411,19 +4411,19 @@ var deserializeAws_queryDeleteVirtualMFADeviceCommandError = function (output, c
4411
4411
  case 0:
4412
4412
  _a = [__assign({}, output)];
4413
4413
  _c = {};
4414
- return [4, parseBody(output.body, context)];
4414
+ return [4, parseErrorBody(output.body, context)];
4415
4415
  case 1:
4416
4416
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4417
4417
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4418
4418
  _b = errorCode;
4419
4419
  switch (_b) {
4420
- case "DeleteConflictException": return [3, 2];
4420
+ case "DeleteConflict": return [3, 2];
4421
4421
  case "com.amazonaws.iam#DeleteConflictException": return [3, 2];
4422
- case "LimitExceededException": return [3, 4];
4422
+ case "LimitExceeded": return [3, 4];
4423
4423
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
4424
- case "NoSuchEntityException": return [3, 6];
4424
+ case "NoSuchEntity": return [3, 6];
4425
4425
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
4426
- case "ServiceFailureException": return [3, 8];
4426
+ case "ServiceFailure": return [3, 8];
4427
4427
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
4428
4428
  }
4429
4429
  return [3, 10];
@@ -4474,19 +4474,19 @@ var deserializeAws_queryDetachGroupPolicyCommandError = function (output, contex
4474
4474
  case 0:
4475
4475
  _a = [__assign({}, output)];
4476
4476
  _c = {};
4477
- return [4, parseBody(output.body, context)];
4477
+ return [4, parseErrorBody(output.body, context)];
4478
4478
  case 1:
4479
4479
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4480
4480
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4481
4481
  _b = errorCode;
4482
4482
  switch (_b) {
4483
- case "InvalidInputException": return [3, 2];
4483
+ case "InvalidInput": return [3, 2];
4484
4484
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
4485
- case "LimitExceededException": return [3, 4];
4485
+ case "LimitExceeded": return [3, 4];
4486
4486
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
4487
- case "NoSuchEntityException": return [3, 6];
4487
+ case "NoSuchEntity": return [3, 6];
4488
4488
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
4489
- case "ServiceFailureException": return [3, 8];
4489
+ case "ServiceFailure": return [3, 8];
4490
4490
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
4491
4491
  }
4492
4492
  return [3, 10];
@@ -4537,21 +4537,21 @@ var deserializeAws_queryDetachRolePolicyCommandError = function (output, context
4537
4537
  case 0:
4538
4538
  _a = [__assign({}, output)];
4539
4539
  _c = {};
4540
- return [4, parseBody(output.body, context)];
4540
+ return [4, parseErrorBody(output.body, context)];
4541
4541
  case 1:
4542
4542
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4543
4543
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4544
4544
  _b = errorCode;
4545
4545
  switch (_b) {
4546
- case "InvalidInputException": return [3, 2];
4546
+ case "InvalidInput": return [3, 2];
4547
4547
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
4548
- case "LimitExceededException": return [3, 4];
4548
+ case "LimitExceeded": return [3, 4];
4549
4549
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
4550
- case "NoSuchEntityException": return [3, 6];
4550
+ case "NoSuchEntity": return [3, 6];
4551
4551
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
4552
- case "ServiceFailureException": return [3, 8];
4552
+ case "ServiceFailure": return [3, 8];
4553
4553
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
4554
- case "UnmodifiableEntityException": return [3, 10];
4554
+ case "UnmodifiableEntity": return [3, 10];
4555
4555
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 10];
4556
4556
  }
4557
4557
  return [3, 12];
@@ -4604,19 +4604,19 @@ var deserializeAws_queryDetachUserPolicyCommandError = function (output, context
4604
4604
  case 0:
4605
4605
  _a = [__assign({}, output)];
4606
4606
  _c = {};
4607
- return [4, parseBody(output.body, context)];
4607
+ return [4, parseErrorBody(output.body, context)];
4608
4608
  case 1:
4609
4609
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4610
4610
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4611
4611
  _b = errorCode;
4612
4612
  switch (_b) {
4613
- case "InvalidInputException": return [3, 2];
4613
+ case "InvalidInput": return [3, 2];
4614
4614
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
4615
- case "LimitExceededException": return [3, 4];
4615
+ case "LimitExceeded": return [3, 4];
4616
4616
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
4617
- case "NoSuchEntityException": return [3, 6];
4617
+ case "NoSuchEntity": return [3, 6];
4618
4618
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
4619
- case "ServiceFailureException": return [3, 8];
4619
+ case "ServiceFailure": return [3, 8];
4620
4620
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
4621
4621
  }
4622
4622
  return [3, 10];
@@ -4667,23 +4667,23 @@ var deserializeAws_queryEnableMFADeviceCommandError = function (output, context)
4667
4667
  case 0:
4668
4668
  _a = [__assign({}, output)];
4669
4669
  _c = {};
4670
- return [4, parseBody(output.body, context)];
4670
+ return [4, parseErrorBody(output.body, context)];
4671
4671
  case 1:
4672
4672
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4673
4673
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4674
4674
  _b = errorCode;
4675
4675
  switch (_b) {
4676
- case "EntityAlreadyExistsException": return [3, 2];
4676
+ case "EntityAlreadyExists": return [3, 2];
4677
4677
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
4678
- case "EntityTemporarilyUnmodifiableException": return [3, 4];
4678
+ case "EntityTemporarilyUnmodifiable": return [3, 4];
4679
4679
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 4];
4680
- case "InvalidAuthenticationCodeException": return [3, 6];
4680
+ case "InvalidAuthenticationCode": return [3, 6];
4681
4681
  case "com.amazonaws.iam#InvalidAuthenticationCodeException": return [3, 6];
4682
- case "LimitExceededException": return [3, 8];
4682
+ case "LimitExceeded": return [3, 8];
4683
4683
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
4684
- case "NoSuchEntityException": return [3, 10];
4684
+ case "NoSuchEntity": return [3, 10];
4685
4685
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 10];
4686
- case "ServiceFailureException": return [3, 12];
4686
+ case "ServiceFailure": return [3, 12];
4687
4687
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
4688
4688
  }
4689
4689
  return [3, 14];
@@ -4738,15 +4738,15 @@ var deserializeAws_queryGenerateCredentialReportCommandError = function (output,
4738
4738
  case 0:
4739
4739
  _a = [__assign({}, output)];
4740
4740
  _c = {};
4741
- return [4, parseBody(output.body, context)];
4741
+ return [4, parseErrorBody(output.body, context)];
4742
4742
  case 1:
4743
4743
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4744
4744
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4745
4745
  _b = errorCode;
4746
4746
  switch (_b) {
4747
- case "LimitExceededException": return [3, 2];
4747
+ case "LimitExceeded": return [3, 2];
4748
4748
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
4749
- case "ServiceFailureException": return [3, 4];
4749
+ case "ServiceFailure": return [3, 4];
4750
4750
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
4751
4751
  }
4752
4752
  return [3, 6];
@@ -4793,13 +4793,13 @@ var deserializeAws_queryGenerateOrganizationsAccessReportCommandError = function
4793
4793
  case 0:
4794
4794
  _a = [__assign({}, output)];
4795
4795
  _c = {};
4796
- return [4, parseBody(output.body, context)];
4796
+ return [4, parseErrorBody(output.body, context)];
4797
4797
  case 1:
4798
4798
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4799
4799
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4800
4800
  _b = errorCode;
4801
4801
  switch (_b) {
4802
- case "ReportGenerationLimitExceededException": return [3, 2];
4802
+ case "ReportGenerationLimitExceeded": return [3, 2];
4803
4803
  case "com.amazonaws.iam#ReportGenerationLimitExceededException": return [3, 2];
4804
4804
  }
4805
4805
  return [3, 4];
@@ -4844,15 +4844,15 @@ var deserializeAws_queryGenerateServiceLastAccessedDetailsCommandError = functio
4844
4844
  case 0:
4845
4845
  _a = [__assign({}, output)];
4846
4846
  _c = {};
4847
- return [4, parseBody(output.body, context)];
4847
+ return [4, parseErrorBody(output.body, context)];
4848
4848
  case 1:
4849
4849
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4850
4850
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4851
4851
  _b = errorCode;
4852
4852
  switch (_b) {
4853
- case "InvalidInputException": return [3, 2];
4853
+ case "InvalidInput": return [3, 2];
4854
4854
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
4855
- case "NoSuchEntityException": return [3, 4];
4855
+ case "NoSuchEntity": return [3, 4];
4856
4856
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
4857
4857
  }
4858
4858
  return [3, 6];
@@ -4899,13 +4899,13 @@ var deserializeAws_queryGetAccessKeyLastUsedCommandError = function (output, con
4899
4899
  case 0:
4900
4900
  _a = [__assign({}, output)];
4901
4901
  _c = {};
4902
- return [4, parseBody(output.body, context)];
4902
+ return [4, parseErrorBody(output.body, context)];
4903
4903
  case 1:
4904
4904
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4905
4905
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4906
4906
  _b = errorCode;
4907
4907
  switch (_b) {
4908
- case "NoSuchEntityException": return [3, 2];
4908
+ case "NoSuchEntity": return [3, 2];
4909
4909
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
4910
4910
  }
4911
4911
  return [3, 4];
@@ -4950,13 +4950,13 @@ var deserializeAws_queryGetAccountAuthorizationDetailsCommandError = function (o
4950
4950
  case 0:
4951
4951
  _a = [__assign({}, output)];
4952
4952
  _c = {};
4953
- return [4, parseBody(output.body, context)];
4953
+ return [4, parseErrorBody(output.body, context)];
4954
4954
  case 1:
4955
4955
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4956
4956
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4957
4957
  _b = errorCode;
4958
4958
  switch (_b) {
4959
- case "ServiceFailureException": return [3, 2];
4959
+ case "ServiceFailure": return [3, 2];
4960
4960
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
4961
4961
  }
4962
4962
  return [3, 4];
@@ -5001,15 +5001,15 @@ var deserializeAws_queryGetAccountPasswordPolicyCommandError = function (output,
5001
5001
  case 0:
5002
5002
  _a = [__assign({}, output)];
5003
5003
  _c = {};
5004
- return [4, parseBody(output.body, context)];
5004
+ return [4, parseErrorBody(output.body, context)];
5005
5005
  case 1:
5006
5006
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5007
5007
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5008
5008
  _b = errorCode;
5009
5009
  switch (_b) {
5010
- case "NoSuchEntityException": return [3, 2];
5010
+ case "NoSuchEntity": return [3, 2];
5011
5011
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5012
- case "ServiceFailureException": return [3, 4];
5012
+ case "ServiceFailure": return [3, 4];
5013
5013
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5014
5014
  }
5015
5015
  return [3, 6];
@@ -5056,13 +5056,13 @@ var deserializeAws_queryGetAccountSummaryCommandError = function (output, contex
5056
5056
  case 0:
5057
5057
  _a = [__assign({}, output)];
5058
5058
  _c = {};
5059
- return [4, parseBody(output.body, context)];
5059
+ return [4, parseErrorBody(output.body, context)];
5060
5060
  case 1:
5061
5061
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5062
5062
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5063
5063
  _b = errorCode;
5064
5064
  switch (_b) {
5065
- case "ServiceFailureException": return [3, 2];
5065
+ case "ServiceFailure": return [3, 2];
5066
5066
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
5067
5067
  }
5068
5068
  return [3, 4];
@@ -5107,13 +5107,13 @@ var deserializeAws_queryGetContextKeysForCustomPolicyCommandError = function (ou
5107
5107
  case 0:
5108
5108
  _a = [__assign({}, output)];
5109
5109
  _c = {};
5110
- return [4, parseBody(output.body, context)];
5110
+ return [4, parseErrorBody(output.body, context)];
5111
5111
  case 1:
5112
5112
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5113
5113
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5114
5114
  _b = errorCode;
5115
5115
  switch (_b) {
5116
- case "InvalidInputException": return [3, 2];
5116
+ case "InvalidInput": return [3, 2];
5117
5117
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5118
5118
  }
5119
5119
  return [3, 4];
@@ -5158,15 +5158,15 @@ var deserializeAws_queryGetContextKeysForPrincipalPolicyCommandError = function
5158
5158
  case 0:
5159
5159
  _a = [__assign({}, output)];
5160
5160
  _c = {};
5161
- return [4, parseBody(output.body, context)];
5161
+ return [4, parseErrorBody(output.body, context)];
5162
5162
  case 1:
5163
5163
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5164
5164
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5165
5165
  _b = errorCode;
5166
5166
  switch (_b) {
5167
- case "InvalidInputException": return [3, 2];
5167
+ case "InvalidInput": return [3, 2];
5168
5168
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5169
- case "NoSuchEntityException": return [3, 4];
5169
+ case "NoSuchEntity": return [3, 4];
5170
5170
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5171
5171
  }
5172
5172
  return [3, 6];
@@ -5213,27 +5213,27 @@ var deserializeAws_queryGetCredentialReportCommandError = function (output, cont
5213
5213
  case 0:
5214
5214
  _a = [__assign({}, output)];
5215
5215
  _c = {};
5216
- return [4, parseBody(output.body, context)];
5216
+ return [4, parseErrorBody(output.body, context)];
5217
5217
  case 1:
5218
5218
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5219
5219
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5220
5220
  _b = errorCode;
5221
5221
  switch (_b) {
5222
- case "CredentialReportExpiredException": return [3, 2];
5222
+ case "ReportExpired": return [3, 2];
5223
5223
  case "com.amazonaws.iam#CredentialReportExpiredException": return [3, 2];
5224
- case "CredentialReportNotPresentException": return [3, 4];
5225
- case "com.amazonaws.iam#CredentialReportNotPresentException": return [3, 4];
5226
- case "CredentialReportNotReadyException": return [3, 6];
5227
- case "com.amazonaws.iam#CredentialReportNotReadyException": return [3, 6];
5228
- case "ServiceFailureException": return [3, 8];
5224
+ case "ReportInProgress": return [3, 4];
5225
+ case "com.amazonaws.iam#CredentialReportNotReadyException": return [3, 4];
5226
+ case "ReportNotPresent": return [3, 6];
5227
+ case "com.amazonaws.iam#CredentialReportNotPresentException": return [3, 6];
5228
+ case "ServiceFailure": return [3, 8];
5229
5229
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
5230
5230
  }
5231
5231
  return [3, 10];
5232
5232
  case 2: return [4, deserializeAws_queryCredentialReportExpiredExceptionResponse(parsedOutput, context)];
5233
5233
  case 3: throw _d.sent();
5234
- case 4: return [4, deserializeAws_queryCredentialReportNotPresentExceptionResponse(parsedOutput, context)];
5234
+ case 4: return [4, deserializeAws_queryCredentialReportNotReadyExceptionResponse(parsedOutput, context)];
5235
5235
  case 5: throw _d.sent();
5236
- case 6: return [4, deserializeAws_queryCredentialReportNotReadyExceptionResponse(parsedOutput, context)];
5236
+ case 6: return [4, deserializeAws_queryCredentialReportNotPresentExceptionResponse(parsedOutput, context)];
5237
5237
  case 7: throw _d.sent();
5238
5238
  case 8: return [4, deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context)];
5239
5239
  case 9: throw _d.sent();
@@ -5276,15 +5276,15 @@ var deserializeAws_queryGetGroupCommandError = function (output, context) { retu
5276
5276
  case 0:
5277
5277
  _a = [__assign({}, output)];
5278
5278
  _c = {};
5279
- return [4, parseBody(output.body, context)];
5279
+ return [4, parseErrorBody(output.body, context)];
5280
5280
  case 1:
5281
5281
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5282
5282
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5283
5283
  _b = errorCode;
5284
5284
  switch (_b) {
5285
- case "NoSuchEntityException": return [3, 2];
5285
+ case "NoSuchEntity": return [3, 2];
5286
5286
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5287
- case "ServiceFailureException": return [3, 4];
5287
+ case "ServiceFailure": return [3, 4];
5288
5288
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5289
5289
  }
5290
5290
  return [3, 6];
@@ -5331,15 +5331,15 @@ var deserializeAws_queryGetGroupPolicyCommandError = function (output, context)
5331
5331
  case 0:
5332
5332
  _a = [__assign({}, output)];
5333
5333
  _c = {};
5334
- return [4, parseBody(output.body, context)];
5334
+ return [4, parseErrorBody(output.body, context)];
5335
5335
  case 1:
5336
5336
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5337
5337
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5338
5338
  _b = errorCode;
5339
5339
  switch (_b) {
5340
- case "NoSuchEntityException": return [3, 2];
5340
+ case "NoSuchEntity": return [3, 2];
5341
5341
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5342
- case "ServiceFailureException": return [3, 4];
5342
+ case "ServiceFailure": return [3, 4];
5343
5343
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5344
5344
  }
5345
5345
  return [3, 6];
@@ -5386,15 +5386,15 @@ var deserializeAws_queryGetInstanceProfileCommandError = function (output, conte
5386
5386
  case 0:
5387
5387
  _a = [__assign({}, output)];
5388
5388
  _c = {};
5389
- return [4, parseBody(output.body, context)];
5389
+ return [4, parseErrorBody(output.body, context)];
5390
5390
  case 1:
5391
5391
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5392
5392
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5393
5393
  _b = errorCode;
5394
5394
  switch (_b) {
5395
- case "NoSuchEntityException": return [3, 2];
5395
+ case "NoSuchEntity": return [3, 2];
5396
5396
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5397
- case "ServiceFailureException": return [3, 4];
5397
+ case "ServiceFailure": return [3, 4];
5398
5398
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5399
5399
  }
5400
5400
  return [3, 6];
@@ -5441,15 +5441,15 @@ var deserializeAws_queryGetLoginProfileCommandError = function (output, context)
5441
5441
  case 0:
5442
5442
  _a = [__assign({}, output)];
5443
5443
  _c = {};
5444
- return [4, parseBody(output.body, context)];
5444
+ return [4, parseErrorBody(output.body, context)];
5445
5445
  case 1:
5446
5446
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5447
5447
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5448
5448
  _b = errorCode;
5449
5449
  switch (_b) {
5450
- case "NoSuchEntityException": return [3, 2];
5450
+ case "NoSuchEntity": return [3, 2];
5451
5451
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5452
- case "ServiceFailureException": return [3, 4];
5452
+ case "ServiceFailure": return [3, 4];
5453
5453
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5454
5454
  }
5455
5455
  return [3, 6];
@@ -5496,17 +5496,17 @@ var deserializeAws_queryGetOpenIDConnectProviderCommandError = function (output,
5496
5496
  case 0:
5497
5497
  _a = [__assign({}, output)];
5498
5498
  _c = {};
5499
- return [4, parseBody(output.body, context)];
5499
+ return [4, parseErrorBody(output.body, context)];
5500
5500
  case 1:
5501
5501
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5502
5502
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5503
5503
  _b = errorCode;
5504
5504
  switch (_b) {
5505
- case "InvalidInputException": return [3, 2];
5505
+ case "InvalidInput": return [3, 2];
5506
5506
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5507
- case "NoSuchEntityException": return [3, 4];
5507
+ case "NoSuchEntity": return [3, 4];
5508
5508
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5509
- case "ServiceFailureException": return [3, 6];
5509
+ case "ServiceFailure": return [3, 6];
5510
5510
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
5511
5511
  }
5512
5512
  return [3, 8];
@@ -5555,13 +5555,13 @@ var deserializeAws_queryGetOrganizationsAccessReportCommandError = function (out
5555
5555
  case 0:
5556
5556
  _a = [__assign({}, output)];
5557
5557
  _c = {};
5558
- return [4, parseBody(output.body, context)];
5558
+ return [4, parseErrorBody(output.body, context)];
5559
5559
  case 1:
5560
5560
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5561
5561
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5562
5562
  _b = errorCode;
5563
5563
  switch (_b) {
5564
- case "NoSuchEntityException": return [3, 2];
5564
+ case "NoSuchEntity": return [3, 2];
5565
5565
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5566
5566
  }
5567
5567
  return [3, 4];
@@ -5606,17 +5606,17 @@ var deserializeAws_queryGetPolicyCommandError = function (output, context) { ret
5606
5606
  case 0:
5607
5607
  _a = [__assign({}, output)];
5608
5608
  _c = {};
5609
- return [4, parseBody(output.body, context)];
5609
+ return [4, parseErrorBody(output.body, context)];
5610
5610
  case 1:
5611
5611
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5612
5612
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5613
5613
  _b = errorCode;
5614
5614
  switch (_b) {
5615
- case "InvalidInputException": return [3, 2];
5615
+ case "InvalidInput": return [3, 2];
5616
5616
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5617
- case "NoSuchEntityException": return [3, 4];
5617
+ case "NoSuchEntity": return [3, 4];
5618
5618
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5619
- case "ServiceFailureException": return [3, 6];
5619
+ case "ServiceFailure": return [3, 6];
5620
5620
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
5621
5621
  }
5622
5622
  return [3, 8];
@@ -5665,17 +5665,17 @@ var deserializeAws_queryGetPolicyVersionCommandError = function (output, context
5665
5665
  case 0:
5666
5666
  _a = [__assign({}, output)];
5667
5667
  _c = {};
5668
- return [4, parseBody(output.body, context)];
5668
+ return [4, parseErrorBody(output.body, context)];
5669
5669
  case 1:
5670
5670
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5671
5671
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5672
5672
  _b = errorCode;
5673
5673
  switch (_b) {
5674
- case "InvalidInputException": return [3, 2];
5674
+ case "InvalidInput": return [3, 2];
5675
5675
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5676
- case "NoSuchEntityException": return [3, 4];
5676
+ case "NoSuchEntity": return [3, 4];
5677
5677
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5678
- case "ServiceFailureException": return [3, 6];
5678
+ case "ServiceFailure": return [3, 6];
5679
5679
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
5680
5680
  }
5681
5681
  return [3, 8];
@@ -5724,15 +5724,15 @@ var deserializeAws_queryGetRoleCommandError = function (output, context) { retur
5724
5724
  case 0:
5725
5725
  _a = [__assign({}, output)];
5726
5726
  _c = {};
5727
- return [4, parseBody(output.body, context)];
5727
+ return [4, parseErrorBody(output.body, context)];
5728
5728
  case 1:
5729
5729
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5730
5730
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5731
5731
  _b = errorCode;
5732
5732
  switch (_b) {
5733
- case "NoSuchEntityException": return [3, 2];
5733
+ case "NoSuchEntity": return [3, 2];
5734
5734
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5735
- case "ServiceFailureException": return [3, 4];
5735
+ case "ServiceFailure": return [3, 4];
5736
5736
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5737
5737
  }
5738
5738
  return [3, 6];
@@ -5779,15 +5779,15 @@ var deserializeAws_queryGetRolePolicyCommandError = function (output, context) {
5779
5779
  case 0:
5780
5780
  _a = [__assign({}, output)];
5781
5781
  _c = {};
5782
- return [4, parseBody(output.body, context)];
5782
+ return [4, parseErrorBody(output.body, context)];
5783
5783
  case 1:
5784
5784
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5785
5785
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5786
5786
  _b = errorCode;
5787
5787
  switch (_b) {
5788
- case "NoSuchEntityException": return [3, 2];
5788
+ case "NoSuchEntity": return [3, 2];
5789
5789
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5790
- case "ServiceFailureException": return [3, 4];
5790
+ case "ServiceFailure": return [3, 4];
5791
5791
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5792
5792
  }
5793
5793
  return [3, 6];
@@ -5834,17 +5834,17 @@ var deserializeAws_queryGetSAMLProviderCommandError = function (output, context)
5834
5834
  case 0:
5835
5835
  _a = [__assign({}, output)];
5836
5836
  _c = {};
5837
- return [4, parseBody(output.body, context)];
5837
+ return [4, parseErrorBody(output.body, context)];
5838
5838
  case 1:
5839
5839
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5840
5840
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5841
5841
  _b = errorCode;
5842
5842
  switch (_b) {
5843
- case "InvalidInputException": return [3, 2];
5843
+ case "InvalidInput": return [3, 2];
5844
5844
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5845
- case "NoSuchEntityException": return [3, 4];
5845
+ case "NoSuchEntity": return [3, 4];
5846
5846
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5847
- case "ServiceFailureException": return [3, 6];
5847
+ case "ServiceFailure": return [3, 6];
5848
5848
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
5849
5849
  }
5850
5850
  return [3, 8];
@@ -5893,15 +5893,15 @@ var deserializeAws_queryGetServerCertificateCommandError = function (output, con
5893
5893
  case 0:
5894
5894
  _a = [__assign({}, output)];
5895
5895
  _c = {};
5896
- return [4, parseBody(output.body, context)];
5896
+ return [4, parseErrorBody(output.body, context)];
5897
5897
  case 1:
5898
5898
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5899
5899
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5900
5900
  _b = errorCode;
5901
5901
  switch (_b) {
5902
- case "NoSuchEntityException": return [3, 2];
5902
+ case "NoSuchEntity": return [3, 2];
5903
5903
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
5904
- case "ServiceFailureException": return [3, 4];
5904
+ case "ServiceFailure": return [3, 4];
5905
5905
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
5906
5906
  }
5907
5907
  return [3, 6];
@@ -5948,15 +5948,15 @@ var deserializeAws_queryGetServiceLastAccessedDetailsCommandError = function (ou
5948
5948
  case 0:
5949
5949
  _a = [__assign({}, output)];
5950
5950
  _c = {};
5951
- return [4, parseBody(output.body, context)];
5951
+ return [4, parseErrorBody(output.body, context)];
5952
5952
  case 1:
5953
5953
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5954
5954
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
5955
5955
  _b = errorCode;
5956
5956
  switch (_b) {
5957
- case "InvalidInputException": return [3, 2];
5957
+ case "InvalidInput": return [3, 2];
5958
5958
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
5959
- case "NoSuchEntityException": return [3, 4];
5959
+ case "NoSuchEntity": return [3, 4];
5960
5960
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
5961
5961
  }
5962
5962
  return [3, 6];
@@ -6003,15 +6003,15 @@ var deserializeAws_queryGetServiceLastAccessedDetailsWithEntitiesCommandError =
6003
6003
  case 0:
6004
6004
  _a = [__assign({}, output)];
6005
6005
  _c = {};
6006
- return [4, parseBody(output.body, context)];
6006
+ return [4, parseErrorBody(output.body, context)];
6007
6007
  case 1:
6008
6008
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6009
6009
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6010
6010
  _b = errorCode;
6011
6011
  switch (_b) {
6012
- case "InvalidInputException": return [3, 2];
6012
+ case "InvalidInput": return [3, 2];
6013
6013
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6014
- case "NoSuchEntityException": return [3, 4];
6014
+ case "NoSuchEntity": return [3, 4];
6015
6015
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6016
6016
  }
6017
6017
  return [3, 6];
@@ -6058,17 +6058,17 @@ var deserializeAws_queryGetServiceLinkedRoleDeletionStatusCommandError = functio
6058
6058
  case 0:
6059
6059
  _a = [__assign({}, output)];
6060
6060
  _c = {};
6061
- return [4, parseBody(output.body, context)];
6061
+ return [4, parseErrorBody(output.body, context)];
6062
6062
  case 1:
6063
6063
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6064
6064
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6065
6065
  _b = errorCode;
6066
6066
  switch (_b) {
6067
- case "InvalidInputException": return [3, 2];
6067
+ case "InvalidInput": return [3, 2];
6068
6068
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6069
- case "NoSuchEntityException": return [3, 4];
6069
+ case "NoSuchEntity": return [3, 4];
6070
6070
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6071
- case "ServiceFailureException": return [3, 6];
6071
+ case "ServiceFailure": return [3, 6];
6072
6072
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
6073
6073
  }
6074
6074
  return [3, 8];
@@ -6117,15 +6117,15 @@ var deserializeAws_queryGetSSHPublicKeyCommandError = function (output, context)
6117
6117
  case 0:
6118
6118
  _a = [__assign({}, output)];
6119
6119
  _c = {};
6120
- return [4, parseBody(output.body, context)];
6120
+ return [4, parseErrorBody(output.body, context)];
6121
6121
  case 1:
6122
6122
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6123
6123
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6124
6124
  _b = errorCode;
6125
6125
  switch (_b) {
6126
- case "NoSuchEntityException": return [3, 2];
6126
+ case "NoSuchEntity": return [3, 2];
6127
6127
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6128
- case "UnrecognizedPublicKeyEncodingException": return [3, 4];
6128
+ case "UnrecognizedPublicKeyEncoding": return [3, 4];
6129
6129
  case "com.amazonaws.iam#UnrecognizedPublicKeyEncodingException": return [3, 4];
6130
6130
  }
6131
6131
  return [3, 6];
@@ -6172,15 +6172,15 @@ var deserializeAws_queryGetUserCommandError = function (output, context) { retur
6172
6172
  case 0:
6173
6173
  _a = [__assign({}, output)];
6174
6174
  _c = {};
6175
- return [4, parseBody(output.body, context)];
6175
+ return [4, parseErrorBody(output.body, context)];
6176
6176
  case 1:
6177
6177
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6178
6178
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6179
6179
  _b = errorCode;
6180
6180
  switch (_b) {
6181
- case "NoSuchEntityException": return [3, 2];
6181
+ case "NoSuchEntity": return [3, 2];
6182
6182
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6183
- case "ServiceFailureException": return [3, 4];
6183
+ case "ServiceFailure": return [3, 4];
6184
6184
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6185
6185
  }
6186
6186
  return [3, 6];
@@ -6227,15 +6227,15 @@ var deserializeAws_queryGetUserPolicyCommandError = function (output, context) {
6227
6227
  case 0:
6228
6228
  _a = [__assign({}, output)];
6229
6229
  _c = {};
6230
- return [4, parseBody(output.body, context)];
6230
+ return [4, parseErrorBody(output.body, context)];
6231
6231
  case 1:
6232
6232
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6233
6233
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6234
6234
  _b = errorCode;
6235
6235
  switch (_b) {
6236
- case "NoSuchEntityException": return [3, 2];
6236
+ case "NoSuchEntity": return [3, 2];
6237
6237
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6238
- case "ServiceFailureException": return [3, 4];
6238
+ case "ServiceFailure": return [3, 4];
6239
6239
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6240
6240
  }
6241
6241
  return [3, 6];
@@ -6282,15 +6282,15 @@ var deserializeAws_queryListAccessKeysCommandError = function (output, context)
6282
6282
  case 0:
6283
6283
  _a = [__assign({}, output)];
6284
6284
  _c = {};
6285
- return [4, parseBody(output.body, context)];
6285
+ return [4, parseErrorBody(output.body, context)];
6286
6286
  case 1:
6287
6287
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6288
6288
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6289
6289
  _b = errorCode;
6290
6290
  switch (_b) {
6291
- case "NoSuchEntityException": return [3, 2];
6291
+ case "NoSuchEntity": return [3, 2];
6292
6292
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6293
- case "ServiceFailureException": return [3, 4];
6293
+ case "ServiceFailure": return [3, 4];
6294
6294
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6295
6295
  }
6296
6296
  return [3, 6];
@@ -6337,13 +6337,13 @@ var deserializeAws_queryListAccountAliasesCommandError = function (output, conte
6337
6337
  case 0:
6338
6338
  _a = [__assign({}, output)];
6339
6339
  _c = {};
6340
- return [4, parseBody(output.body, context)];
6340
+ return [4, parseErrorBody(output.body, context)];
6341
6341
  case 1:
6342
6342
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6343
6343
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6344
6344
  _b = errorCode;
6345
6345
  switch (_b) {
6346
- case "ServiceFailureException": return [3, 2];
6346
+ case "ServiceFailure": return [3, 2];
6347
6347
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
6348
6348
  }
6349
6349
  return [3, 4];
@@ -6388,17 +6388,17 @@ var deserializeAws_queryListAttachedGroupPoliciesCommandError = function (output
6388
6388
  case 0:
6389
6389
  _a = [__assign({}, output)];
6390
6390
  _c = {};
6391
- return [4, parseBody(output.body, context)];
6391
+ return [4, parseErrorBody(output.body, context)];
6392
6392
  case 1:
6393
6393
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6394
6394
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6395
6395
  _b = errorCode;
6396
6396
  switch (_b) {
6397
- case "InvalidInputException": return [3, 2];
6397
+ case "InvalidInput": return [3, 2];
6398
6398
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6399
- case "NoSuchEntityException": return [3, 4];
6399
+ case "NoSuchEntity": return [3, 4];
6400
6400
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6401
- case "ServiceFailureException": return [3, 6];
6401
+ case "ServiceFailure": return [3, 6];
6402
6402
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
6403
6403
  }
6404
6404
  return [3, 8];
@@ -6447,17 +6447,17 @@ var deserializeAws_queryListAttachedRolePoliciesCommandError = function (output,
6447
6447
  case 0:
6448
6448
  _a = [__assign({}, output)];
6449
6449
  _c = {};
6450
- return [4, parseBody(output.body, context)];
6450
+ return [4, parseErrorBody(output.body, context)];
6451
6451
  case 1:
6452
6452
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6453
6453
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6454
6454
  _b = errorCode;
6455
6455
  switch (_b) {
6456
- case "InvalidInputException": return [3, 2];
6456
+ case "InvalidInput": return [3, 2];
6457
6457
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6458
- case "NoSuchEntityException": return [3, 4];
6458
+ case "NoSuchEntity": return [3, 4];
6459
6459
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6460
- case "ServiceFailureException": return [3, 6];
6460
+ case "ServiceFailure": return [3, 6];
6461
6461
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
6462
6462
  }
6463
6463
  return [3, 8];
@@ -6506,17 +6506,17 @@ var deserializeAws_queryListAttachedUserPoliciesCommandError = function (output,
6506
6506
  case 0:
6507
6507
  _a = [__assign({}, output)];
6508
6508
  _c = {};
6509
- return [4, parseBody(output.body, context)];
6509
+ return [4, parseErrorBody(output.body, context)];
6510
6510
  case 1:
6511
6511
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6512
6512
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6513
6513
  _b = errorCode;
6514
6514
  switch (_b) {
6515
- case "InvalidInputException": return [3, 2];
6515
+ case "InvalidInput": return [3, 2];
6516
6516
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6517
- case "NoSuchEntityException": return [3, 4];
6517
+ case "NoSuchEntity": return [3, 4];
6518
6518
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6519
- case "ServiceFailureException": return [3, 6];
6519
+ case "ServiceFailure": return [3, 6];
6520
6520
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
6521
6521
  }
6522
6522
  return [3, 8];
@@ -6565,17 +6565,17 @@ var deserializeAws_queryListEntitiesForPolicyCommandError = function (output, co
6565
6565
  case 0:
6566
6566
  _a = [__assign({}, output)];
6567
6567
  _c = {};
6568
- return [4, parseBody(output.body, context)];
6568
+ return [4, parseErrorBody(output.body, context)];
6569
6569
  case 1:
6570
6570
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6571
6571
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6572
6572
  _b = errorCode;
6573
6573
  switch (_b) {
6574
- case "InvalidInputException": return [3, 2];
6574
+ case "InvalidInput": return [3, 2];
6575
6575
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
6576
- case "NoSuchEntityException": return [3, 4];
6576
+ case "NoSuchEntity": return [3, 4];
6577
6577
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
6578
- case "ServiceFailureException": return [3, 6];
6578
+ case "ServiceFailure": return [3, 6];
6579
6579
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
6580
6580
  }
6581
6581
  return [3, 8];
@@ -6624,15 +6624,15 @@ var deserializeAws_queryListGroupPoliciesCommandError = function (output, contex
6624
6624
  case 0:
6625
6625
  _a = [__assign({}, output)];
6626
6626
  _c = {};
6627
- return [4, parseBody(output.body, context)];
6627
+ return [4, parseErrorBody(output.body, context)];
6628
6628
  case 1:
6629
6629
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6630
6630
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6631
6631
  _b = errorCode;
6632
6632
  switch (_b) {
6633
- case "NoSuchEntityException": return [3, 2];
6633
+ case "NoSuchEntity": return [3, 2];
6634
6634
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6635
- case "ServiceFailureException": return [3, 4];
6635
+ case "ServiceFailure": return [3, 4];
6636
6636
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6637
6637
  }
6638
6638
  return [3, 6];
@@ -6679,13 +6679,13 @@ var deserializeAws_queryListGroupsCommandError = function (output, context) { re
6679
6679
  case 0:
6680
6680
  _a = [__assign({}, output)];
6681
6681
  _c = {};
6682
- return [4, parseBody(output.body, context)];
6682
+ return [4, parseErrorBody(output.body, context)];
6683
6683
  case 1:
6684
6684
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6685
6685
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6686
6686
  _b = errorCode;
6687
6687
  switch (_b) {
6688
- case "ServiceFailureException": return [3, 2];
6688
+ case "ServiceFailure": return [3, 2];
6689
6689
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
6690
6690
  }
6691
6691
  return [3, 4];
@@ -6730,15 +6730,15 @@ var deserializeAws_queryListGroupsForUserCommandError = function (output, contex
6730
6730
  case 0:
6731
6731
  _a = [__assign({}, output)];
6732
6732
  _c = {};
6733
- return [4, parseBody(output.body, context)];
6733
+ return [4, parseErrorBody(output.body, context)];
6734
6734
  case 1:
6735
6735
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6736
6736
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6737
6737
  _b = errorCode;
6738
6738
  switch (_b) {
6739
- case "NoSuchEntityException": return [3, 2];
6739
+ case "NoSuchEntity": return [3, 2];
6740
6740
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6741
- case "ServiceFailureException": return [3, 4];
6741
+ case "ServiceFailure": return [3, 4];
6742
6742
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6743
6743
  }
6744
6744
  return [3, 6];
@@ -6785,13 +6785,13 @@ var deserializeAws_queryListInstanceProfilesCommandError = function (output, con
6785
6785
  case 0:
6786
6786
  _a = [__assign({}, output)];
6787
6787
  _c = {};
6788
- return [4, parseBody(output.body, context)];
6788
+ return [4, parseErrorBody(output.body, context)];
6789
6789
  case 1:
6790
6790
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6791
6791
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6792
6792
  _b = errorCode;
6793
6793
  switch (_b) {
6794
- case "ServiceFailureException": return [3, 2];
6794
+ case "ServiceFailure": return [3, 2];
6795
6795
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
6796
6796
  }
6797
6797
  return [3, 4];
@@ -6836,15 +6836,15 @@ var deserializeAws_queryListInstanceProfilesForRoleCommandError = function (outp
6836
6836
  case 0:
6837
6837
  _a = [__assign({}, output)];
6838
6838
  _c = {};
6839
- return [4, parseBody(output.body, context)];
6839
+ return [4, parseErrorBody(output.body, context)];
6840
6840
  case 1:
6841
6841
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6842
6842
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6843
6843
  _b = errorCode;
6844
6844
  switch (_b) {
6845
- case "NoSuchEntityException": return [3, 2];
6845
+ case "NoSuchEntity": return [3, 2];
6846
6846
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6847
- case "ServiceFailureException": return [3, 4];
6847
+ case "ServiceFailure": return [3, 4];
6848
6848
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6849
6849
  }
6850
6850
  return [3, 6];
@@ -6891,15 +6891,15 @@ var deserializeAws_queryListInstanceProfileTagsCommandError = function (output,
6891
6891
  case 0:
6892
6892
  _a = [__assign({}, output)];
6893
6893
  _c = {};
6894
- return [4, parseBody(output.body, context)];
6894
+ return [4, parseErrorBody(output.body, context)];
6895
6895
  case 1:
6896
6896
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6897
6897
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6898
6898
  _b = errorCode;
6899
6899
  switch (_b) {
6900
- case "NoSuchEntityException": return [3, 2];
6900
+ case "NoSuchEntity": return [3, 2];
6901
6901
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6902
- case "ServiceFailureException": return [3, 4];
6902
+ case "ServiceFailure": return [3, 4];
6903
6903
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6904
6904
  }
6905
6905
  return [3, 6];
@@ -6946,15 +6946,15 @@ var deserializeAws_queryListMFADevicesCommandError = function (output, context)
6946
6946
  case 0:
6947
6947
  _a = [__assign({}, output)];
6948
6948
  _c = {};
6949
- return [4, parseBody(output.body, context)];
6949
+ return [4, parseErrorBody(output.body, context)];
6950
6950
  case 1:
6951
6951
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6952
6952
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
6953
6953
  _b = errorCode;
6954
6954
  switch (_b) {
6955
- case "NoSuchEntityException": return [3, 2];
6955
+ case "NoSuchEntity": return [3, 2];
6956
6956
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
6957
- case "ServiceFailureException": return [3, 4];
6957
+ case "ServiceFailure": return [3, 4];
6958
6958
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
6959
6959
  }
6960
6960
  return [3, 6];
@@ -7001,17 +7001,17 @@ var deserializeAws_queryListMFADeviceTagsCommandError = function (output, contex
7001
7001
  case 0:
7002
7002
  _a = [__assign({}, output)];
7003
7003
  _c = {};
7004
- return [4, parseBody(output.body, context)];
7004
+ return [4, parseErrorBody(output.body, context)];
7005
7005
  case 1:
7006
7006
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7007
7007
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7008
7008
  _b = errorCode;
7009
7009
  switch (_b) {
7010
- case "InvalidInputException": return [3, 2];
7010
+ case "InvalidInput": return [3, 2];
7011
7011
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7012
- case "NoSuchEntityException": return [3, 4];
7012
+ case "NoSuchEntity": return [3, 4];
7013
7013
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7014
- case "ServiceFailureException": return [3, 6];
7014
+ case "ServiceFailure": return [3, 6];
7015
7015
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
7016
7016
  }
7017
7017
  return [3, 8];
@@ -7060,13 +7060,13 @@ var deserializeAws_queryListOpenIDConnectProvidersCommandError = function (outpu
7060
7060
  case 0:
7061
7061
  _a = [__assign({}, output)];
7062
7062
  _c = {};
7063
- return [4, parseBody(output.body, context)];
7063
+ return [4, parseErrorBody(output.body, context)];
7064
7064
  case 1:
7065
7065
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7066
7066
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7067
7067
  _b = errorCode;
7068
7068
  switch (_b) {
7069
- case "ServiceFailureException": return [3, 2];
7069
+ case "ServiceFailure": return [3, 2];
7070
7070
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7071
7071
  }
7072
7072
  return [3, 4];
@@ -7111,17 +7111,17 @@ var deserializeAws_queryListOpenIDConnectProviderTagsCommandError = function (ou
7111
7111
  case 0:
7112
7112
  _a = [__assign({}, output)];
7113
7113
  _c = {};
7114
- return [4, parseBody(output.body, context)];
7114
+ return [4, parseErrorBody(output.body, context)];
7115
7115
  case 1:
7116
7116
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7117
7117
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7118
7118
  _b = errorCode;
7119
7119
  switch (_b) {
7120
- case "InvalidInputException": return [3, 2];
7120
+ case "InvalidInput": return [3, 2];
7121
7121
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7122
- case "NoSuchEntityException": return [3, 4];
7122
+ case "NoSuchEntity": return [3, 4];
7123
7123
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7124
- case "ServiceFailureException": return [3, 6];
7124
+ case "ServiceFailure": return [3, 6];
7125
7125
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
7126
7126
  }
7127
7127
  return [3, 8];
@@ -7170,13 +7170,13 @@ var deserializeAws_queryListPoliciesCommandError = function (output, context) {
7170
7170
  case 0:
7171
7171
  _a = [__assign({}, output)];
7172
7172
  _c = {};
7173
- return [4, parseBody(output.body, context)];
7173
+ return [4, parseErrorBody(output.body, context)];
7174
7174
  case 1:
7175
7175
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7176
7176
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7177
7177
  _b = errorCode;
7178
7178
  switch (_b) {
7179
- case "ServiceFailureException": return [3, 2];
7179
+ case "ServiceFailure": return [3, 2];
7180
7180
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7181
7181
  }
7182
7182
  return [3, 4];
@@ -7221,15 +7221,15 @@ var deserializeAws_queryListPoliciesGrantingServiceAccessCommandError = function
7221
7221
  case 0:
7222
7222
  _a = [__assign({}, output)];
7223
7223
  _c = {};
7224
- return [4, parseBody(output.body, context)];
7224
+ return [4, parseErrorBody(output.body, context)];
7225
7225
  case 1:
7226
7226
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7227
7227
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7228
7228
  _b = errorCode;
7229
7229
  switch (_b) {
7230
- case "InvalidInputException": return [3, 2];
7230
+ case "InvalidInput": return [3, 2];
7231
7231
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7232
- case "NoSuchEntityException": return [3, 4];
7232
+ case "NoSuchEntity": return [3, 4];
7233
7233
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7234
7234
  }
7235
7235
  return [3, 6];
@@ -7276,17 +7276,17 @@ var deserializeAws_queryListPolicyTagsCommandError = function (output, context)
7276
7276
  case 0:
7277
7277
  _a = [__assign({}, output)];
7278
7278
  _c = {};
7279
- return [4, parseBody(output.body, context)];
7279
+ return [4, parseErrorBody(output.body, context)];
7280
7280
  case 1:
7281
7281
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7282
7282
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7283
7283
  _b = errorCode;
7284
7284
  switch (_b) {
7285
- case "InvalidInputException": return [3, 2];
7285
+ case "InvalidInput": return [3, 2];
7286
7286
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7287
- case "NoSuchEntityException": return [3, 4];
7287
+ case "NoSuchEntity": return [3, 4];
7288
7288
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7289
- case "ServiceFailureException": return [3, 6];
7289
+ case "ServiceFailure": return [3, 6];
7290
7290
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
7291
7291
  }
7292
7292
  return [3, 8];
@@ -7335,17 +7335,17 @@ var deserializeAws_queryListPolicyVersionsCommandError = function (output, conte
7335
7335
  case 0:
7336
7336
  _a = [__assign({}, output)];
7337
7337
  _c = {};
7338
- return [4, parseBody(output.body, context)];
7338
+ return [4, parseErrorBody(output.body, context)];
7339
7339
  case 1:
7340
7340
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7341
7341
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7342
7342
  _b = errorCode;
7343
7343
  switch (_b) {
7344
- case "InvalidInputException": return [3, 2];
7344
+ case "InvalidInput": return [3, 2];
7345
7345
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7346
- case "NoSuchEntityException": return [3, 4];
7346
+ case "NoSuchEntity": return [3, 4];
7347
7347
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7348
- case "ServiceFailureException": return [3, 6];
7348
+ case "ServiceFailure": return [3, 6];
7349
7349
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
7350
7350
  }
7351
7351
  return [3, 8];
@@ -7394,15 +7394,15 @@ var deserializeAws_queryListRolePoliciesCommandError = function (output, context
7394
7394
  case 0:
7395
7395
  _a = [__assign({}, output)];
7396
7396
  _c = {};
7397
- return [4, parseBody(output.body, context)];
7397
+ return [4, parseErrorBody(output.body, context)];
7398
7398
  case 1:
7399
7399
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7400
7400
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7401
7401
  _b = errorCode;
7402
7402
  switch (_b) {
7403
- case "NoSuchEntityException": return [3, 2];
7403
+ case "NoSuchEntity": return [3, 2];
7404
7404
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7405
- case "ServiceFailureException": return [3, 4];
7405
+ case "ServiceFailure": return [3, 4];
7406
7406
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
7407
7407
  }
7408
7408
  return [3, 6];
@@ -7449,13 +7449,13 @@ var deserializeAws_queryListRolesCommandError = function (output, context) { ret
7449
7449
  case 0:
7450
7450
  _a = [__assign({}, output)];
7451
7451
  _c = {};
7452
- return [4, parseBody(output.body, context)];
7452
+ return [4, parseErrorBody(output.body, context)];
7453
7453
  case 1:
7454
7454
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7455
7455
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7456
7456
  _b = errorCode;
7457
7457
  switch (_b) {
7458
- case "ServiceFailureException": return [3, 2];
7458
+ case "ServiceFailure": return [3, 2];
7459
7459
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7460
7460
  }
7461
7461
  return [3, 4];
@@ -7500,15 +7500,15 @@ var deserializeAws_queryListRoleTagsCommandError = function (output, context) {
7500
7500
  case 0:
7501
7501
  _a = [__assign({}, output)];
7502
7502
  _c = {};
7503
- return [4, parseBody(output.body, context)];
7503
+ return [4, parseErrorBody(output.body, context)];
7504
7504
  case 1:
7505
7505
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7506
7506
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7507
7507
  _b = errorCode;
7508
7508
  switch (_b) {
7509
- case "NoSuchEntityException": return [3, 2];
7509
+ case "NoSuchEntity": return [3, 2];
7510
7510
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7511
- case "ServiceFailureException": return [3, 4];
7511
+ case "ServiceFailure": return [3, 4];
7512
7512
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
7513
7513
  }
7514
7514
  return [3, 6];
@@ -7555,13 +7555,13 @@ var deserializeAws_queryListSAMLProvidersCommandError = function (output, contex
7555
7555
  case 0:
7556
7556
  _a = [__assign({}, output)];
7557
7557
  _c = {};
7558
- return [4, parseBody(output.body, context)];
7558
+ return [4, parseErrorBody(output.body, context)];
7559
7559
  case 1:
7560
7560
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7561
7561
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7562
7562
  _b = errorCode;
7563
7563
  switch (_b) {
7564
- case "ServiceFailureException": return [3, 2];
7564
+ case "ServiceFailure": return [3, 2];
7565
7565
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7566
7566
  }
7567
7567
  return [3, 4];
@@ -7606,17 +7606,17 @@ var deserializeAws_queryListSAMLProviderTagsCommandError = function (output, con
7606
7606
  case 0:
7607
7607
  _a = [__assign({}, output)];
7608
7608
  _c = {};
7609
- return [4, parseBody(output.body, context)];
7609
+ return [4, parseErrorBody(output.body, context)];
7610
7610
  case 1:
7611
7611
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7612
7612
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7613
7613
  _b = errorCode;
7614
7614
  switch (_b) {
7615
- case "InvalidInputException": return [3, 2];
7615
+ case "InvalidInput": return [3, 2];
7616
7616
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
7617
- case "NoSuchEntityException": return [3, 4];
7617
+ case "NoSuchEntity": return [3, 4];
7618
7618
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
7619
- case "ServiceFailureException": return [3, 6];
7619
+ case "ServiceFailure": return [3, 6];
7620
7620
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
7621
7621
  }
7622
7622
  return [3, 8];
@@ -7665,13 +7665,13 @@ var deserializeAws_queryListServerCertificatesCommandError = function (output, c
7665
7665
  case 0:
7666
7666
  _a = [__assign({}, output)];
7667
7667
  _c = {};
7668
- return [4, parseBody(output.body, context)];
7668
+ return [4, parseErrorBody(output.body, context)];
7669
7669
  case 1:
7670
7670
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7671
7671
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7672
7672
  _b = errorCode;
7673
7673
  switch (_b) {
7674
- case "ServiceFailureException": return [3, 2];
7674
+ case "ServiceFailure": return [3, 2];
7675
7675
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7676
7676
  }
7677
7677
  return [3, 4];
@@ -7716,15 +7716,15 @@ var deserializeAws_queryListServerCertificateTagsCommandError = function (output
7716
7716
  case 0:
7717
7717
  _a = [__assign({}, output)];
7718
7718
  _c = {};
7719
- return [4, parseBody(output.body, context)];
7719
+ return [4, parseErrorBody(output.body, context)];
7720
7720
  case 1:
7721
7721
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7722
7722
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7723
7723
  _b = errorCode;
7724
7724
  switch (_b) {
7725
- case "NoSuchEntityException": return [3, 2];
7725
+ case "NoSuchEntity": return [3, 2];
7726
7726
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7727
- case "ServiceFailureException": return [3, 4];
7727
+ case "ServiceFailure": return [3, 4];
7728
7728
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
7729
7729
  }
7730
7730
  return [3, 6];
@@ -7771,15 +7771,15 @@ var deserializeAws_queryListServiceSpecificCredentialsCommandError = function (o
7771
7771
  case 0:
7772
7772
  _a = [__assign({}, output)];
7773
7773
  _c = {};
7774
- return [4, parseBody(output.body, context)];
7774
+ return [4, parseErrorBody(output.body, context)];
7775
7775
  case 1:
7776
7776
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7777
7777
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7778
7778
  _b = errorCode;
7779
7779
  switch (_b) {
7780
- case "NoSuchEntityException": return [3, 2];
7780
+ case "NoSuchEntity": return [3, 2];
7781
7781
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7782
- case "ServiceNotSupportedException": return [3, 4];
7782
+ case "NotSupportedService": return [3, 4];
7783
7783
  case "com.amazonaws.iam#ServiceNotSupportedException": return [3, 4];
7784
7784
  }
7785
7785
  return [3, 6];
@@ -7826,15 +7826,15 @@ var deserializeAws_queryListSigningCertificatesCommandError = function (output,
7826
7826
  case 0:
7827
7827
  _a = [__assign({}, output)];
7828
7828
  _c = {};
7829
- return [4, parseBody(output.body, context)];
7829
+ return [4, parseErrorBody(output.body, context)];
7830
7830
  case 1:
7831
7831
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7832
7832
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7833
7833
  _b = errorCode;
7834
7834
  switch (_b) {
7835
- case "NoSuchEntityException": return [3, 2];
7835
+ case "NoSuchEntity": return [3, 2];
7836
7836
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7837
- case "ServiceFailureException": return [3, 4];
7837
+ case "ServiceFailure": return [3, 4];
7838
7838
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
7839
7839
  }
7840
7840
  return [3, 6];
@@ -7881,13 +7881,13 @@ var deserializeAws_queryListSSHPublicKeysCommandError = function (output, contex
7881
7881
  case 0:
7882
7882
  _a = [__assign({}, output)];
7883
7883
  _c = {};
7884
- return [4, parseBody(output.body, context)];
7884
+ return [4, parseErrorBody(output.body, context)];
7885
7885
  case 1:
7886
7886
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7887
7887
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7888
7888
  _b = errorCode;
7889
7889
  switch (_b) {
7890
- case "NoSuchEntityException": return [3, 2];
7890
+ case "NoSuchEntity": return [3, 2];
7891
7891
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7892
7892
  }
7893
7893
  return [3, 4];
@@ -7932,15 +7932,15 @@ var deserializeAws_queryListUserPoliciesCommandError = function (output, context
7932
7932
  case 0:
7933
7933
  _a = [__assign({}, output)];
7934
7934
  _c = {};
7935
- return [4, parseBody(output.body, context)];
7935
+ return [4, parseErrorBody(output.body, context)];
7936
7936
  case 1:
7937
7937
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7938
7938
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7939
7939
  _b = errorCode;
7940
7940
  switch (_b) {
7941
- case "NoSuchEntityException": return [3, 2];
7941
+ case "NoSuchEntity": return [3, 2];
7942
7942
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
7943
- case "ServiceFailureException": return [3, 4];
7943
+ case "ServiceFailure": return [3, 4];
7944
7944
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
7945
7945
  }
7946
7946
  return [3, 6];
@@ -7987,13 +7987,13 @@ var deserializeAws_queryListUsersCommandError = function (output, context) { ret
7987
7987
  case 0:
7988
7988
  _a = [__assign({}, output)];
7989
7989
  _c = {};
7990
- return [4, parseBody(output.body, context)];
7990
+ return [4, parseErrorBody(output.body, context)];
7991
7991
  case 1:
7992
7992
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7993
7993
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
7994
7994
  _b = errorCode;
7995
7995
  switch (_b) {
7996
- case "ServiceFailureException": return [3, 2];
7996
+ case "ServiceFailure": return [3, 2];
7997
7997
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
7998
7998
  }
7999
7999
  return [3, 4];
@@ -8038,15 +8038,15 @@ var deserializeAws_queryListUserTagsCommandError = function (output, context) {
8038
8038
  case 0:
8039
8039
  _a = [__assign({}, output)];
8040
8040
  _c = {};
8041
- return [4, parseBody(output.body, context)];
8041
+ return [4, parseErrorBody(output.body, context)];
8042
8042
  case 1:
8043
8043
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8044
8044
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8045
8045
  _b = errorCode;
8046
8046
  switch (_b) {
8047
- case "NoSuchEntityException": return [3, 2];
8047
+ case "NoSuchEntity": return [3, 2];
8048
8048
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
8049
- case "ServiceFailureException": return [3, 4];
8049
+ case "ServiceFailure": return [3, 4];
8050
8050
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
8051
8051
  }
8052
8052
  return [3, 6];
@@ -8093,7 +8093,7 @@ var deserializeAws_queryListVirtualMFADevicesCommandError = function (output, co
8093
8093
  case 0:
8094
8094
  _a = [__assign({}, output)];
8095
8095
  _b = {};
8096
- return [4, parseBody(output.body, context)];
8096
+ return [4, parseErrorBody(output.body, context)];
8097
8097
  case 1:
8098
8098
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
8099
8099
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
@@ -8134,19 +8134,19 @@ var deserializeAws_queryPutGroupPolicyCommandError = function (output, context)
8134
8134
  case 0:
8135
8135
  _a = [__assign({}, output)];
8136
8136
  _c = {};
8137
- return [4, parseBody(output.body, context)];
8137
+ return [4, parseErrorBody(output.body, context)];
8138
8138
  case 1:
8139
8139
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8140
8140
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8141
8141
  _b = errorCode;
8142
8142
  switch (_b) {
8143
- case "LimitExceededException": return [3, 2];
8143
+ case "LimitExceeded": return [3, 2];
8144
8144
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
8145
- case "MalformedPolicyDocumentException": return [3, 4];
8145
+ case "MalformedPolicyDocument": return [3, 4];
8146
8146
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 4];
8147
- case "NoSuchEntityException": return [3, 6];
8147
+ case "NoSuchEntity": return [3, 6];
8148
8148
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
8149
- case "ServiceFailureException": return [3, 8];
8149
+ case "ServiceFailure": return [3, 8];
8150
8150
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8151
8151
  }
8152
8152
  return [3, 10];
@@ -8197,21 +8197,21 @@ var deserializeAws_queryPutRolePermissionsBoundaryCommandError = function (outpu
8197
8197
  case 0:
8198
8198
  _a = [__assign({}, output)];
8199
8199
  _c = {};
8200
- return [4, parseBody(output.body, context)];
8200
+ return [4, parseErrorBody(output.body, context)];
8201
8201
  case 1:
8202
8202
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8203
8203
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8204
8204
  _b = errorCode;
8205
8205
  switch (_b) {
8206
- case "InvalidInputException": return [3, 2];
8206
+ case "InvalidInput": return [3, 2];
8207
8207
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8208
- case "NoSuchEntityException": return [3, 4];
8208
+ case "NoSuchEntity": return [3, 4];
8209
8209
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8210
- case "PolicyNotAttachableException": return [3, 6];
8210
+ case "PolicyNotAttachable": return [3, 6];
8211
8211
  case "com.amazonaws.iam#PolicyNotAttachableException": return [3, 6];
8212
- case "ServiceFailureException": return [3, 8];
8212
+ case "ServiceFailure": return [3, 8];
8213
8213
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8214
- case "UnmodifiableEntityException": return [3, 10];
8214
+ case "UnmodifiableEntity": return [3, 10];
8215
8215
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 10];
8216
8216
  }
8217
8217
  return [3, 12];
@@ -8264,21 +8264,21 @@ var deserializeAws_queryPutRolePolicyCommandError = function (output, context) {
8264
8264
  case 0:
8265
8265
  _a = [__assign({}, output)];
8266
8266
  _c = {};
8267
- return [4, parseBody(output.body, context)];
8267
+ return [4, parseErrorBody(output.body, context)];
8268
8268
  case 1:
8269
8269
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8270
8270
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8271
8271
  _b = errorCode;
8272
8272
  switch (_b) {
8273
- case "LimitExceededException": return [3, 2];
8273
+ case "LimitExceeded": return [3, 2];
8274
8274
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
8275
- case "MalformedPolicyDocumentException": return [3, 4];
8275
+ case "MalformedPolicyDocument": return [3, 4];
8276
8276
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 4];
8277
- case "NoSuchEntityException": return [3, 6];
8277
+ case "NoSuchEntity": return [3, 6];
8278
8278
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
8279
- case "ServiceFailureException": return [3, 8];
8279
+ case "ServiceFailure": return [3, 8];
8280
8280
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8281
- case "UnmodifiableEntityException": return [3, 10];
8281
+ case "UnmodifiableEntity": return [3, 10];
8282
8282
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 10];
8283
8283
  }
8284
8284
  return [3, 12];
@@ -8331,19 +8331,19 @@ var deserializeAws_queryPutUserPermissionsBoundaryCommandError = function (outpu
8331
8331
  case 0:
8332
8332
  _a = [__assign({}, output)];
8333
8333
  _c = {};
8334
- return [4, parseBody(output.body, context)];
8334
+ return [4, parseErrorBody(output.body, context)];
8335
8335
  case 1:
8336
8336
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8337
8337
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8338
8338
  _b = errorCode;
8339
8339
  switch (_b) {
8340
- case "InvalidInputException": return [3, 2];
8340
+ case "InvalidInput": return [3, 2];
8341
8341
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8342
- case "NoSuchEntityException": return [3, 4];
8342
+ case "NoSuchEntity": return [3, 4];
8343
8343
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8344
- case "PolicyNotAttachableException": return [3, 6];
8344
+ case "PolicyNotAttachable": return [3, 6];
8345
8345
  case "com.amazonaws.iam#PolicyNotAttachableException": return [3, 6];
8346
- case "ServiceFailureException": return [3, 8];
8346
+ case "ServiceFailure": return [3, 8];
8347
8347
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8348
8348
  }
8349
8349
  return [3, 10];
@@ -8394,19 +8394,19 @@ var deserializeAws_queryPutUserPolicyCommandError = function (output, context) {
8394
8394
  case 0:
8395
8395
  _a = [__assign({}, output)];
8396
8396
  _c = {};
8397
- return [4, parseBody(output.body, context)];
8397
+ return [4, parseErrorBody(output.body, context)];
8398
8398
  case 1:
8399
8399
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8400
8400
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8401
8401
  _b = errorCode;
8402
8402
  switch (_b) {
8403
- case "LimitExceededException": return [3, 2];
8403
+ case "LimitExceeded": return [3, 2];
8404
8404
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
8405
- case "MalformedPolicyDocumentException": return [3, 4];
8405
+ case "MalformedPolicyDocument": return [3, 4];
8406
8406
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 4];
8407
- case "NoSuchEntityException": return [3, 6];
8407
+ case "NoSuchEntity": return [3, 6];
8408
8408
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
8409
- case "ServiceFailureException": return [3, 8];
8409
+ case "ServiceFailure": return [3, 8];
8410
8410
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8411
8411
  }
8412
8412
  return [3, 10];
@@ -8457,17 +8457,17 @@ var deserializeAws_queryRemoveClientIDFromOpenIDConnectProviderCommandError = fu
8457
8457
  case 0:
8458
8458
  _a = [__assign({}, output)];
8459
8459
  _c = {};
8460
- return [4, parseBody(output.body, context)];
8460
+ return [4, parseErrorBody(output.body, context)];
8461
8461
  case 1:
8462
8462
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8463
8463
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8464
8464
  _b = errorCode;
8465
8465
  switch (_b) {
8466
- case "InvalidInputException": return [3, 2];
8466
+ case "InvalidInput": return [3, 2];
8467
8467
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8468
- case "NoSuchEntityException": return [3, 4];
8468
+ case "NoSuchEntity": return [3, 4];
8469
8469
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8470
- case "ServiceFailureException": return [3, 6];
8470
+ case "ServiceFailure": return [3, 6];
8471
8471
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
8472
8472
  }
8473
8473
  return [3, 8];
@@ -8516,19 +8516,19 @@ var deserializeAws_queryRemoveRoleFromInstanceProfileCommandError = function (ou
8516
8516
  case 0:
8517
8517
  _a = [__assign({}, output)];
8518
8518
  _c = {};
8519
- return [4, parseBody(output.body, context)];
8519
+ return [4, parseErrorBody(output.body, context)];
8520
8520
  case 1:
8521
8521
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8522
8522
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8523
8523
  _b = errorCode;
8524
8524
  switch (_b) {
8525
- case "LimitExceededException": return [3, 2];
8525
+ case "LimitExceeded": return [3, 2];
8526
8526
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
8527
- case "NoSuchEntityException": return [3, 4];
8527
+ case "NoSuchEntity": return [3, 4];
8528
8528
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8529
- case "ServiceFailureException": return [3, 6];
8529
+ case "ServiceFailure": return [3, 6];
8530
8530
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
8531
- case "UnmodifiableEntityException": return [3, 8];
8531
+ case "UnmodifiableEntity": return [3, 8];
8532
8532
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 8];
8533
8533
  }
8534
8534
  return [3, 10];
@@ -8579,17 +8579,17 @@ var deserializeAws_queryRemoveUserFromGroupCommandError = function (output, cont
8579
8579
  case 0:
8580
8580
  _a = [__assign({}, output)];
8581
8581
  _c = {};
8582
- return [4, parseBody(output.body, context)];
8582
+ return [4, parseErrorBody(output.body, context)];
8583
8583
  case 1:
8584
8584
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8585
8585
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8586
8586
  _b = errorCode;
8587
8587
  switch (_b) {
8588
- case "LimitExceededException": return [3, 2];
8588
+ case "LimitExceeded": return [3, 2];
8589
8589
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
8590
- case "NoSuchEntityException": return [3, 4];
8590
+ case "NoSuchEntity": return [3, 4];
8591
8591
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8592
- case "ServiceFailureException": return [3, 6];
8592
+ case "ServiceFailure": return [3, 6];
8593
8593
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
8594
8594
  }
8595
8595
  return [3, 8];
@@ -8638,13 +8638,13 @@ var deserializeAws_queryResetServiceSpecificCredentialCommandError = function (o
8638
8638
  case 0:
8639
8639
  _a = [__assign({}, output)];
8640
8640
  _c = {};
8641
- return [4, parseBody(output.body, context)];
8641
+ return [4, parseErrorBody(output.body, context)];
8642
8642
  case 1:
8643
8643
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8644
8644
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8645
8645
  _b = errorCode;
8646
8646
  switch (_b) {
8647
- case "NoSuchEntityException": return [3, 2];
8647
+ case "NoSuchEntity": return [3, 2];
8648
8648
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
8649
8649
  }
8650
8650
  return [3, 4];
@@ -8689,19 +8689,19 @@ var deserializeAws_queryResyncMFADeviceCommandError = function (output, context)
8689
8689
  case 0:
8690
8690
  _a = [__assign({}, output)];
8691
8691
  _c = {};
8692
- return [4, parseBody(output.body, context)];
8692
+ return [4, parseErrorBody(output.body, context)];
8693
8693
  case 1:
8694
8694
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8695
8695
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8696
8696
  _b = errorCode;
8697
8697
  switch (_b) {
8698
- case "InvalidAuthenticationCodeException": return [3, 2];
8698
+ case "InvalidAuthenticationCode": return [3, 2];
8699
8699
  case "com.amazonaws.iam#InvalidAuthenticationCodeException": return [3, 2];
8700
- case "LimitExceededException": return [3, 4];
8700
+ case "LimitExceeded": return [3, 4];
8701
8701
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
8702
- case "NoSuchEntityException": return [3, 6];
8702
+ case "NoSuchEntity": return [3, 6];
8703
8703
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
8704
- case "ServiceFailureException": return [3, 8];
8704
+ case "ServiceFailure": return [3, 8];
8705
8705
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8706
8706
  }
8707
8707
  return [3, 10];
@@ -8752,19 +8752,19 @@ var deserializeAws_querySetDefaultPolicyVersionCommandError = function (output,
8752
8752
  case 0:
8753
8753
  _a = [__assign({}, output)];
8754
8754
  _c = {};
8755
- return [4, parseBody(output.body, context)];
8755
+ return [4, parseErrorBody(output.body, context)];
8756
8756
  case 1:
8757
8757
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8758
8758
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8759
8759
  _b = errorCode;
8760
8760
  switch (_b) {
8761
- case "InvalidInputException": return [3, 2];
8761
+ case "InvalidInput": return [3, 2];
8762
8762
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8763
- case "LimitExceededException": return [3, 4];
8763
+ case "LimitExceeded": return [3, 4];
8764
8764
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
8765
- case "NoSuchEntityException": return [3, 6];
8765
+ case "NoSuchEntity": return [3, 6];
8766
8766
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
8767
- case "ServiceFailureException": return [3, 8];
8767
+ case "ServiceFailure": return [3, 8];
8768
8768
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
8769
8769
  }
8770
8770
  return [3, 10];
@@ -8815,13 +8815,13 @@ var deserializeAws_querySetSecurityTokenServicePreferencesCommandError = functio
8815
8815
  case 0:
8816
8816
  _a = [__assign({}, output)];
8817
8817
  _c = {};
8818
- return [4, parseBody(output.body, context)];
8818
+ return [4, parseErrorBody(output.body, context)];
8819
8819
  case 1:
8820
8820
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8821
8821
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8822
8822
  _b = errorCode;
8823
8823
  switch (_b) {
8824
- case "ServiceFailureException": return [3, 2];
8824
+ case "ServiceFailure": return [3, 2];
8825
8825
  case "com.amazonaws.iam#ServiceFailureException": return [3, 2];
8826
8826
  }
8827
8827
  return [3, 4];
@@ -8866,15 +8866,15 @@ var deserializeAws_querySimulateCustomPolicyCommandError = function (output, con
8866
8866
  case 0:
8867
8867
  _a = [__assign({}, output)];
8868
8868
  _c = {};
8869
- return [4, parseBody(output.body, context)];
8869
+ return [4, parseErrorBody(output.body, context)];
8870
8870
  case 1:
8871
8871
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8872
8872
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8873
8873
  _b = errorCode;
8874
8874
  switch (_b) {
8875
- case "InvalidInputException": return [3, 2];
8875
+ case "InvalidInput": return [3, 2];
8876
8876
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8877
- case "PolicyEvaluationException": return [3, 4];
8877
+ case "PolicyEvaluation": return [3, 4];
8878
8878
  case "com.amazonaws.iam#PolicyEvaluationException": return [3, 4];
8879
8879
  }
8880
8880
  return [3, 6];
@@ -8921,17 +8921,17 @@ var deserializeAws_querySimulatePrincipalPolicyCommandError = function (output,
8921
8921
  case 0:
8922
8922
  _a = [__assign({}, output)];
8923
8923
  _c = {};
8924
- return [4, parseBody(output.body, context)];
8924
+ return [4, parseErrorBody(output.body, context)];
8925
8925
  case 1:
8926
8926
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8927
8927
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8928
8928
  _b = errorCode;
8929
8929
  switch (_b) {
8930
- case "InvalidInputException": return [3, 2];
8930
+ case "InvalidInput": return [3, 2];
8931
8931
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
8932
- case "NoSuchEntityException": return [3, 4];
8932
+ case "NoSuchEntity": return [3, 4];
8933
8933
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
8934
- case "PolicyEvaluationException": return [3, 6];
8934
+ case "PolicyEvaluation": return [3, 6];
8935
8935
  case "com.amazonaws.iam#PolicyEvaluationException": return [3, 6];
8936
8936
  }
8937
8937
  return [3, 8];
@@ -8980,21 +8980,21 @@ var deserializeAws_queryTagInstanceProfileCommandError = function (output, conte
8980
8980
  case 0:
8981
8981
  _a = [__assign({}, output)];
8982
8982
  _c = {};
8983
- return [4, parseBody(output.body, context)];
8983
+ return [4, parseErrorBody(output.body, context)];
8984
8984
  case 1:
8985
8985
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8986
8986
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
8987
8987
  _b = errorCode;
8988
8988
  switch (_b) {
8989
- case "ConcurrentModificationException": return [3, 2];
8989
+ case "ConcurrentModification": return [3, 2];
8990
8990
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
8991
- case "InvalidInputException": return [3, 4];
8991
+ case "InvalidInput": return [3, 4];
8992
8992
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
8993
- case "LimitExceededException": return [3, 6];
8993
+ case "LimitExceeded": return [3, 6];
8994
8994
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
8995
- case "NoSuchEntityException": return [3, 8];
8995
+ case "NoSuchEntity": return [3, 8];
8996
8996
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
8997
- case "ServiceFailureException": return [3, 10];
8997
+ case "ServiceFailure": return [3, 10];
8998
8998
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
8999
8999
  }
9000
9000
  return [3, 12];
@@ -9047,21 +9047,21 @@ var deserializeAws_queryTagMFADeviceCommandError = function (output, context) {
9047
9047
  case 0:
9048
9048
  _a = [__assign({}, output)];
9049
9049
  _c = {};
9050
- return [4, parseBody(output.body, context)];
9050
+ return [4, parseErrorBody(output.body, context)];
9051
9051
  case 1:
9052
9052
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9053
9053
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9054
9054
  _b = errorCode;
9055
9055
  switch (_b) {
9056
- case "ConcurrentModificationException": return [3, 2];
9056
+ case "ConcurrentModification": return [3, 2];
9057
9057
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9058
- case "InvalidInputException": return [3, 4];
9058
+ case "InvalidInput": return [3, 4];
9059
9059
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9060
- case "LimitExceededException": return [3, 6];
9060
+ case "LimitExceeded": return [3, 6];
9061
9061
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9062
- case "NoSuchEntityException": return [3, 8];
9062
+ case "NoSuchEntity": return [3, 8];
9063
9063
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9064
- case "ServiceFailureException": return [3, 10];
9064
+ case "ServiceFailure": return [3, 10];
9065
9065
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9066
9066
  }
9067
9067
  return [3, 12];
@@ -9114,21 +9114,21 @@ var deserializeAws_queryTagOpenIDConnectProviderCommandError = function (output,
9114
9114
  case 0:
9115
9115
  _a = [__assign({}, output)];
9116
9116
  _c = {};
9117
- return [4, parseBody(output.body, context)];
9117
+ return [4, parseErrorBody(output.body, context)];
9118
9118
  case 1:
9119
9119
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9120
9120
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9121
9121
  _b = errorCode;
9122
9122
  switch (_b) {
9123
- case "ConcurrentModificationException": return [3, 2];
9123
+ case "ConcurrentModification": return [3, 2];
9124
9124
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9125
- case "InvalidInputException": return [3, 4];
9125
+ case "InvalidInput": return [3, 4];
9126
9126
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9127
- case "LimitExceededException": return [3, 6];
9127
+ case "LimitExceeded": return [3, 6];
9128
9128
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9129
- case "NoSuchEntityException": return [3, 8];
9129
+ case "NoSuchEntity": return [3, 8];
9130
9130
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9131
- case "ServiceFailureException": return [3, 10];
9131
+ case "ServiceFailure": return [3, 10];
9132
9132
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9133
9133
  }
9134
9134
  return [3, 12];
@@ -9181,21 +9181,21 @@ var deserializeAws_queryTagPolicyCommandError = function (output, context) { ret
9181
9181
  case 0:
9182
9182
  _a = [__assign({}, output)];
9183
9183
  _c = {};
9184
- return [4, parseBody(output.body, context)];
9184
+ return [4, parseErrorBody(output.body, context)];
9185
9185
  case 1:
9186
9186
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9187
9187
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9188
9188
  _b = errorCode;
9189
9189
  switch (_b) {
9190
- case "ConcurrentModificationException": return [3, 2];
9190
+ case "ConcurrentModification": return [3, 2];
9191
9191
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9192
- case "InvalidInputException": return [3, 4];
9192
+ case "InvalidInput": return [3, 4];
9193
9193
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9194
- case "LimitExceededException": return [3, 6];
9194
+ case "LimitExceeded": return [3, 6];
9195
9195
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9196
- case "NoSuchEntityException": return [3, 8];
9196
+ case "NoSuchEntity": return [3, 8];
9197
9197
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9198
- case "ServiceFailureException": return [3, 10];
9198
+ case "ServiceFailure": return [3, 10];
9199
9199
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9200
9200
  }
9201
9201
  return [3, 12];
@@ -9248,21 +9248,21 @@ var deserializeAws_queryTagRoleCommandError = function (output, context) { retur
9248
9248
  case 0:
9249
9249
  _a = [__assign({}, output)];
9250
9250
  _c = {};
9251
- return [4, parseBody(output.body, context)];
9251
+ return [4, parseErrorBody(output.body, context)];
9252
9252
  case 1:
9253
9253
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9254
9254
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9255
9255
  _b = errorCode;
9256
9256
  switch (_b) {
9257
- case "ConcurrentModificationException": return [3, 2];
9257
+ case "ConcurrentModification": return [3, 2];
9258
9258
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9259
- case "InvalidInputException": return [3, 4];
9259
+ case "InvalidInput": return [3, 4];
9260
9260
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9261
- case "LimitExceededException": return [3, 6];
9261
+ case "LimitExceeded": return [3, 6];
9262
9262
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9263
- case "NoSuchEntityException": return [3, 8];
9263
+ case "NoSuchEntity": return [3, 8];
9264
9264
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9265
- case "ServiceFailureException": return [3, 10];
9265
+ case "ServiceFailure": return [3, 10];
9266
9266
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9267
9267
  }
9268
9268
  return [3, 12];
@@ -9315,21 +9315,21 @@ var deserializeAws_queryTagSAMLProviderCommandError = function (output, context)
9315
9315
  case 0:
9316
9316
  _a = [__assign({}, output)];
9317
9317
  _c = {};
9318
- return [4, parseBody(output.body, context)];
9318
+ return [4, parseErrorBody(output.body, context)];
9319
9319
  case 1:
9320
9320
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9321
9321
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9322
9322
  _b = errorCode;
9323
9323
  switch (_b) {
9324
- case "ConcurrentModificationException": return [3, 2];
9324
+ case "ConcurrentModification": return [3, 2];
9325
9325
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9326
- case "InvalidInputException": return [3, 4];
9326
+ case "InvalidInput": return [3, 4];
9327
9327
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9328
- case "LimitExceededException": return [3, 6];
9328
+ case "LimitExceeded": return [3, 6];
9329
9329
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9330
- case "NoSuchEntityException": return [3, 8];
9330
+ case "NoSuchEntity": return [3, 8];
9331
9331
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9332
- case "ServiceFailureException": return [3, 10];
9332
+ case "ServiceFailure": return [3, 10];
9333
9333
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9334
9334
  }
9335
9335
  return [3, 12];
@@ -9382,21 +9382,21 @@ var deserializeAws_queryTagServerCertificateCommandError = function (output, con
9382
9382
  case 0:
9383
9383
  _a = [__assign({}, output)];
9384
9384
  _c = {};
9385
- return [4, parseBody(output.body, context)];
9385
+ return [4, parseErrorBody(output.body, context)];
9386
9386
  case 1:
9387
9387
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9388
9388
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9389
9389
  _b = errorCode;
9390
9390
  switch (_b) {
9391
- case "ConcurrentModificationException": return [3, 2];
9391
+ case "ConcurrentModification": return [3, 2];
9392
9392
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9393
- case "InvalidInputException": return [3, 4];
9393
+ case "InvalidInput": return [3, 4];
9394
9394
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9395
- case "LimitExceededException": return [3, 6];
9395
+ case "LimitExceeded": return [3, 6];
9396
9396
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9397
- case "NoSuchEntityException": return [3, 8];
9397
+ case "NoSuchEntity": return [3, 8];
9398
9398
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9399
- case "ServiceFailureException": return [3, 10];
9399
+ case "ServiceFailure": return [3, 10];
9400
9400
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9401
9401
  }
9402
9402
  return [3, 12];
@@ -9449,21 +9449,21 @@ var deserializeAws_queryTagUserCommandError = function (output, context) { retur
9449
9449
  case 0:
9450
9450
  _a = [__assign({}, output)];
9451
9451
  _c = {};
9452
- return [4, parseBody(output.body, context)];
9452
+ return [4, parseErrorBody(output.body, context)];
9453
9453
  case 1:
9454
9454
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9455
9455
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9456
9456
  _b = errorCode;
9457
9457
  switch (_b) {
9458
- case "ConcurrentModificationException": return [3, 2];
9458
+ case "ConcurrentModification": return [3, 2];
9459
9459
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9460
- case "InvalidInputException": return [3, 4];
9460
+ case "InvalidInput": return [3, 4];
9461
9461
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9462
- case "LimitExceededException": return [3, 6];
9462
+ case "LimitExceeded": return [3, 6];
9463
9463
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
9464
- case "NoSuchEntityException": return [3, 8];
9464
+ case "NoSuchEntity": return [3, 8];
9465
9465
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
9466
- case "ServiceFailureException": return [3, 10];
9466
+ case "ServiceFailure": return [3, 10];
9467
9467
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
9468
9468
  }
9469
9469
  return [3, 12];
@@ -9516,19 +9516,19 @@ var deserializeAws_queryUntagInstanceProfileCommandError = function (output, con
9516
9516
  case 0:
9517
9517
  _a = [__assign({}, output)];
9518
9518
  _c = {};
9519
- return [4, parseBody(output.body, context)];
9519
+ return [4, parseErrorBody(output.body, context)];
9520
9520
  case 1:
9521
9521
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9522
9522
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9523
9523
  _b = errorCode;
9524
9524
  switch (_b) {
9525
- case "ConcurrentModificationException": return [3, 2];
9525
+ case "ConcurrentModification": return [3, 2];
9526
9526
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9527
- case "InvalidInputException": return [3, 4];
9527
+ case "InvalidInput": return [3, 4];
9528
9528
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9529
- case "NoSuchEntityException": return [3, 6];
9529
+ case "NoSuchEntity": return [3, 6];
9530
9530
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9531
- case "ServiceFailureException": return [3, 8];
9531
+ case "ServiceFailure": return [3, 8];
9532
9532
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9533
9533
  }
9534
9534
  return [3, 10];
@@ -9579,19 +9579,19 @@ var deserializeAws_queryUntagMFADeviceCommandError = function (output, context)
9579
9579
  case 0:
9580
9580
  _a = [__assign({}, output)];
9581
9581
  _c = {};
9582
- return [4, parseBody(output.body, context)];
9582
+ return [4, parseErrorBody(output.body, context)];
9583
9583
  case 1:
9584
9584
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9585
9585
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9586
9586
  _b = errorCode;
9587
9587
  switch (_b) {
9588
- case "ConcurrentModificationException": return [3, 2];
9588
+ case "ConcurrentModification": return [3, 2];
9589
9589
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9590
- case "InvalidInputException": return [3, 4];
9590
+ case "InvalidInput": return [3, 4];
9591
9591
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9592
- case "NoSuchEntityException": return [3, 6];
9592
+ case "NoSuchEntity": return [3, 6];
9593
9593
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9594
- case "ServiceFailureException": return [3, 8];
9594
+ case "ServiceFailure": return [3, 8];
9595
9595
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9596
9596
  }
9597
9597
  return [3, 10];
@@ -9642,19 +9642,19 @@ var deserializeAws_queryUntagOpenIDConnectProviderCommandError = function (outpu
9642
9642
  case 0:
9643
9643
  _a = [__assign({}, output)];
9644
9644
  _c = {};
9645
- return [4, parseBody(output.body, context)];
9645
+ return [4, parseErrorBody(output.body, context)];
9646
9646
  case 1:
9647
9647
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9648
9648
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9649
9649
  _b = errorCode;
9650
9650
  switch (_b) {
9651
- case "ConcurrentModificationException": return [3, 2];
9651
+ case "ConcurrentModification": return [3, 2];
9652
9652
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9653
- case "InvalidInputException": return [3, 4];
9653
+ case "InvalidInput": return [3, 4];
9654
9654
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9655
- case "NoSuchEntityException": return [3, 6];
9655
+ case "NoSuchEntity": return [3, 6];
9656
9656
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9657
- case "ServiceFailureException": return [3, 8];
9657
+ case "ServiceFailure": return [3, 8];
9658
9658
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9659
9659
  }
9660
9660
  return [3, 10];
@@ -9705,19 +9705,19 @@ var deserializeAws_queryUntagPolicyCommandError = function (output, context) { r
9705
9705
  case 0:
9706
9706
  _a = [__assign({}, output)];
9707
9707
  _c = {};
9708
- return [4, parseBody(output.body, context)];
9708
+ return [4, parseErrorBody(output.body, context)];
9709
9709
  case 1:
9710
9710
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9711
9711
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9712
9712
  _b = errorCode;
9713
9713
  switch (_b) {
9714
- case "ConcurrentModificationException": return [3, 2];
9714
+ case "ConcurrentModification": return [3, 2];
9715
9715
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9716
- case "InvalidInputException": return [3, 4];
9716
+ case "InvalidInput": return [3, 4];
9717
9717
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9718
- case "NoSuchEntityException": return [3, 6];
9718
+ case "NoSuchEntity": return [3, 6];
9719
9719
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9720
- case "ServiceFailureException": return [3, 8];
9720
+ case "ServiceFailure": return [3, 8];
9721
9721
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9722
9722
  }
9723
9723
  return [3, 10];
@@ -9768,17 +9768,17 @@ var deserializeAws_queryUntagRoleCommandError = function (output, context) { ret
9768
9768
  case 0:
9769
9769
  _a = [__assign({}, output)];
9770
9770
  _c = {};
9771
- return [4, parseBody(output.body, context)];
9771
+ return [4, parseErrorBody(output.body, context)];
9772
9772
  case 1:
9773
9773
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9774
9774
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9775
9775
  _b = errorCode;
9776
9776
  switch (_b) {
9777
- case "ConcurrentModificationException": return [3, 2];
9777
+ case "ConcurrentModification": return [3, 2];
9778
9778
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9779
- case "NoSuchEntityException": return [3, 4];
9779
+ case "NoSuchEntity": return [3, 4];
9780
9780
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
9781
- case "ServiceFailureException": return [3, 6];
9781
+ case "ServiceFailure": return [3, 6];
9782
9782
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
9783
9783
  }
9784
9784
  return [3, 8];
@@ -9827,19 +9827,19 @@ var deserializeAws_queryUntagSAMLProviderCommandError = function (output, contex
9827
9827
  case 0:
9828
9828
  _a = [__assign({}, output)];
9829
9829
  _c = {};
9830
- return [4, parseBody(output.body, context)];
9830
+ return [4, parseErrorBody(output.body, context)];
9831
9831
  case 1:
9832
9832
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9833
9833
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9834
9834
  _b = errorCode;
9835
9835
  switch (_b) {
9836
- case "ConcurrentModificationException": return [3, 2];
9836
+ case "ConcurrentModification": return [3, 2];
9837
9837
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9838
- case "InvalidInputException": return [3, 4];
9838
+ case "InvalidInput": return [3, 4];
9839
9839
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9840
- case "NoSuchEntityException": return [3, 6];
9840
+ case "NoSuchEntity": return [3, 6];
9841
9841
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9842
- case "ServiceFailureException": return [3, 8];
9842
+ case "ServiceFailure": return [3, 8];
9843
9843
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9844
9844
  }
9845
9845
  return [3, 10];
@@ -9890,19 +9890,19 @@ var deserializeAws_queryUntagServerCertificateCommandError = function (output, c
9890
9890
  case 0:
9891
9891
  _a = [__assign({}, output)];
9892
9892
  _c = {};
9893
- return [4, parseBody(output.body, context)];
9893
+ return [4, parseErrorBody(output.body, context)];
9894
9894
  case 1:
9895
9895
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9896
9896
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9897
9897
  _b = errorCode;
9898
9898
  switch (_b) {
9899
- case "ConcurrentModificationException": return [3, 2];
9899
+ case "ConcurrentModification": return [3, 2];
9900
9900
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9901
- case "InvalidInputException": return [3, 4];
9901
+ case "InvalidInput": return [3, 4];
9902
9902
  case "com.amazonaws.iam#InvalidInputException": return [3, 4];
9903
- case "NoSuchEntityException": return [3, 6];
9903
+ case "NoSuchEntity": return [3, 6];
9904
9904
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
9905
- case "ServiceFailureException": return [3, 8];
9905
+ case "ServiceFailure": return [3, 8];
9906
9906
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
9907
9907
  }
9908
9908
  return [3, 10];
@@ -9953,17 +9953,17 @@ var deserializeAws_queryUntagUserCommandError = function (output, context) { ret
9953
9953
  case 0:
9954
9954
  _a = [__assign({}, output)];
9955
9955
  _c = {};
9956
- return [4, parseBody(output.body, context)];
9956
+ return [4, parseErrorBody(output.body, context)];
9957
9957
  case 1:
9958
9958
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9959
9959
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
9960
9960
  _b = errorCode;
9961
9961
  switch (_b) {
9962
- case "ConcurrentModificationException": return [3, 2];
9962
+ case "ConcurrentModification": return [3, 2];
9963
9963
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
9964
- case "NoSuchEntityException": return [3, 4];
9964
+ case "NoSuchEntity": return [3, 4];
9965
9965
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
9966
- case "ServiceFailureException": return [3, 6];
9966
+ case "ServiceFailure": return [3, 6];
9967
9967
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
9968
9968
  }
9969
9969
  return [3, 8];
@@ -10012,17 +10012,17 @@ var deserializeAws_queryUpdateAccessKeyCommandError = function (output, context)
10012
10012
  case 0:
10013
10013
  _a = [__assign({}, output)];
10014
10014
  _c = {};
10015
- return [4, parseBody(output.body, context)];
10015
+ return [4, parseErrorBody(output.body, context)];
10016
10016
  case 1:
10017
10017
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10018
10018
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10019
10019
  _b = errorCode;
10020
10020
  switch (_b) {
10021
- case "LimitExceededException": return [3, 2];
10021
+ case "LimitExceeded": return [3, 2];
10022
10022
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
10023
- case "NoSuchEntityException": return [3, 4];
10023
+ case "NoSuchEntity": return [3, 4];
10024
10024
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
10025
- case "ServiceFailureException": return [3, 6];
10025
+ case "ServiceFailure": return [3, 6];
10026
10026
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
10027
10027
  }
10028
10028
  return [3, 8];
@@ -10071,19 +10071,19 @@ var deserializeAws_queryUpdateAccountPasswordPolicyCommandError = function (outp
10071
10071
  case 0:
10072
10072
  _a = [__assign({}, output)];
10073
10073
  _c = {};
10074
- return [4, parseBody(output.body, context)];
10074
+ return [4, parseErrorBody(output.body, context)];
10075
10075
  case 1:
10076
10076
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10077
10077
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10078
10078
  _b = errorCode;
10079
10079
  switch (_b) {
10080
- case "LimitExceededException": return [3, 2];
10080
+ case "LimitExceeded": return [3, 2];
10081
10081
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
10082
- case "MalformedPolicyDocumentException": return [3, 4];
10082
+ case "MalformedPolicyDocument": return [3, 4];
10083
10083
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 4];
10084
- case "NoSuchEntityException": return [3, 6];
10084
+ case "NoSuchEntity": return [3, 6];
10085
10085
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10086
- case "ServiceFailureException": return [3, 8];
10086
+ case "ServiceFailure": return [3, 8];
10087
10087
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
10088
10088
  }
10089
10089
  return [3, 10];
@@ -10134,21 +10134,21 @@ var deserializeAws_queryUpdateAssumeRolePolicyCommandError = function (output, c
10134
10134
  case 0:
10135
10135
  _a = [__assign({}, output)];
10136
10136
  _c = {};
10137
- return [4, parseBody(output.body, context)];
10137
+ return [4, parseErrorBody(output.body, context)];
10138
10138
  case 1:
10139
10139
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10140
10140
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10141
10141
  _b = errorCode;
10142
10142
  switch (_b) {
10143
- case "LimitExceededException": return [3, 2];
10143
+ case "LimitExceeded": return [3, 2];
10144
10144
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
10145
- case "MalformedPolicyDocumentException": return [3, 4];
10145
+ case "MalformedPolicyDocument": return [3, 4];
10146
10146
  case "com.amazonaws.iam#MalformedPolicyDocumentException": return [3, 4];
10147
- case "NoSuchEntityException": return [3, 6];
10147
+ case "NoSuchEntity": return [3, 6];
10148
10148
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10149
- case "ServiceFailureException": return [3, 8];
10149
+ case "ServiceFailure": return [3, 8];
10150
10150
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
10151
- case "UnmodifiableEntityException": return [3, 10];
10151
+ case "UnmodifiableEntity": return [3, 10];
10152
10152
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 10];
10153
10153
  }
10154
10154
  return [3, 12];
@@ -10201,19 +10201,19 @@ var deserializeAws_queryUpdateGroupCommandError = function (output, context) { r
10201
10201
  case 0:
10202
10202
  _a = [__assign({}, output)];
10203
10203
  _c = {};
10204
- return [4, parseBody(output.body, context)];
10204
+ return [4, parseErrorBody(output.body, context)];
10205
10205
  case 1:
10206
10206
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10207
10207
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10208
10208
  _b = errorCode;
10209
10209
  switch (_b) {
10210
- case "EntityAlreadyExistsException": return [3, 2];
10210
+ case "EntityAlreadyExists": return [3, 2];
10211
10211
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
10212
- case "LimitExceededException": return [3, 4];
10212
+ case "LimitExceeded": return [3, 4];
10213
10213
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
10214
- case "NoSuchEntityException": return [3, 6];
10214
+ case "NoSuchEntity": return [3, 6];
10215
10215
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10216
- case "ServiceFailureException": return [3, 8];
10216
+ case "ServiceFailure": return [3, 8];
10217
10217
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
10218
10218
  }
10219
10219
  return [3, 10];
@@ -10264,21 +10264,21 @@ var deserializeAws_queryUpdateLoginProfileCommandError = function (output, conte
10264
10264
  case 0:
10265
10265
  _a = [__assign({}, output)];
10266
10266
  _c = {};
10267
- return [4, parseBody(output.body, context)];
10267
+ return [4, parseErrorBody(output.body, context)];
10268
10268
  case 1:
10269
10269
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10270
10270
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10271
10271
  _b = errorCode;
10272
10272
  switch (_b) {
10273
- case "EntityTemporarilyUnmodifiableException": return [3, 2];
10273
+ case "EntityTemporarilyUnmodifiable": return [3, 2];
10274
10274
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 2];
10275
- case "LimitExceededException": return [3, 4];
10275
+ case "LimitExceeded": return [3, 4];
10276
10276
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
10277
- case "NoSuchEntityException": return [3, 6];
10277
+ case "NoSuchEntity": return [3, 6];
10278
10278
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10279
- case "PasswordPolicyViolationException": return [3, 8];
10279
+ case "PasswordPolicyViolation": return [3, 8];
10280
10280
  case "com.amazonaws.iam#PasswordPolicyViolationException": return [3, 8];
10281
- case "ServiceFailureException": return [3, 10];
10281
+ case "ServiceFailure": return [3, 10];
10282
10282
  case "com.amazonaws.iam#ServiceFailureException": return [3, 10];
10283
10283
  }
10284
10284
  return [3, 12];
@@ -10331,17 +10331,17 @@ var deserializeAws_queryUpdateOpenIDConnectProviderThumbprintCommandError = func
10331
10331
  case 0:
10332
10332
  _a = [__assign({}, output)];
10333
10333
  _c = {};
10334
- return [4, parseBody(output.body, context)];
10334
+ return [4, parseErrorBody(output.body, context)];
10335
10335
  case 1:
10336
10336
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10337
10337
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10338
10338
  _b = errorCode;
10339
10339
  switch (_b) {
10340
- case "InvalidInputException": return [3, 2];
10340
+ case "InvalidInput": return [3, 2];
10341
10341
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
10342
- case "NoSuchEntityException": return [3, 4];
10342
+ case "NoSuchEntity": return [3, 4];
10343
10343
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
10344
- case "ServiceFailureException": return [3, 6];
10344
+ case "ServiceFailure": return [3, 6];
10345
10345
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
10346
10346
  }
10347
10347
  return [3, 8];
@@ -10390,17 +10390,17 @@ var deserializeAws_queryUpdateRoleCommandError = function (output, context) { re
10390
10390
  case 0:
10391
10391
  _a = [__assign({}, output)];
10392
10392
  _c = {};
10393
- return [4, parseBody(output.body, context)];
10393
+ return [4, parseErrorBody(output.body, context)];
10394
10394
  case 1:
10395
10395
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10396
10396
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10397
10397
  _b = errorCode;
10398
10398
  switch (_b) {
10399
- case "NoSuchEntityException": return [3, 2];
10399
+ case "NoSuchEntity": return [3, 2];
10400
10400
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
10401
- case "ServiceFailureException": return [3, 4];
10401
+ case "ServiceFailure": return [3, 4];
10402
10402
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
10403
- case "UnmodifiableEntityException": return [3, 6];
10403
+ case "UnmodifiableEntity": return [3, 6];
10404
10404
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 6];
10405
10405
  }
10406
10406
  return [3, 8];
@@ -10449,17 +10449,17 @@ var deserializeAws_queryUpdateRoleDescriptionCommandError = function (output, co
10449
10449
  case 0:
10450
10450
  _a = [__assign({}, output)];
10451
10451
  _c = {};
10452
- return [4, parseBody(output.body, context)];
10452
+ return [4, parseErrorBody(output.body, context)];
10453
10453
  case 1:
10454
10454
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10455
10455
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10456
10456
  _b = errorCode;
10457
10457
  switch (_b) {
10458
- case "NoSuchEntityException": return [3, 2];
10458
+ case "NoSuchEntity": return [3, 2];
10459
10459
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
10460
- case "ServiceFailureException": return [3, 4];
10460
+ case "ServiceFailure": return [3, 4];
10461
10461
  case "com.amazonaws.iam#ServiceFailureException": return [3, 4];
10462
- case "UnmodifiableEntityException": return [3, 6];
10462
+ case "UnmodifiableEntity": return [3, 6];
10463
10463
  case "com.amazonaws.iam#UnmodifiableEntityException": return [3, 6];
10464
10464
  }
10465
10465
  return [3, 8];
@@ -10508,19 +10508,19 @@ var deserializeAws_queryUpdateSAMLProviderCommandError = function (output, conte
10508
10508
  case 0:
10509
10509
  _a = [__assign({}, output)];
10510
10510
  _c = {};
10511
- return [4, parseBody(output.body, context)];
10511
+ return [4, parseErrorBody(output.body, context)];
10512
10512
  case 1:
10513
10513
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10514
10514
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10515
10515
  _b = errorCode;
10516
10516
  switch (_b) {
10517
- case "InvalidInputException": return [3, 2];
10517
+ case "InvalidInput": return [3, 2];
10518
10518
  case "com.amazonaws.iam#InvalidInputException": return [3, 2];
10519
- case "LimitExceededException": return [3, 4];
10519
+ case "LimitExceeded": return [3, 4];
10520
10520
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
10521
- case "NoSuchEntityException": return [3, 6];
10521
+ case "NoSuchEntity": return [3, 6];
10522
10522
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10523
- case "ServiceFailureException": return [3, 8];
10523
+ case "ServiceFailure": return [3, 8];
10524
10524
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
10525
10525
  }
10526
10526
  return [3, 10];
@@ -10571,19 +10571,19 @@ var deserializeAws_queryUpdateServerCertificateCommandError = function (output,
10571
10571
  case 0:
10572
10572
  _a = [__assign({}, output)];
10573
10573
  _c = {};
10574
- return [4, parseBody(output.body, context)];
10574
+ return [4, parseErrorBody(output.body, context)];
10575
10575
  case 1:
10576
10576
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10577
10577
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10578
10578
  _b = errorCode;
10579
10579
  switch (_b) {
10580
- case "EntityAlreadyExistsException": return [3, 2];
10580
+ case "EntityAlreadyExists": return [3, 2];
10581
10581
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 2];
10582
- case "LimitExceededException": return [3, 4];
10582
+ case "LimitExceeded": return [3, 4];
10583
10583
  case "com.amazonaws.iam#LimitExceededException": return [3, 4];
10584
- case "NoSuchEntityException": return [3, 6];
10584
+ case "NoSuchEntity": return [3, 6];
10585
10585
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 6];
10586
- case "ServiceFailureException": return [3, 8];
10586
+ case "ServiceFailure": return [3, 8];
10587
10587
  case "com.amazonaws.iam#ServiceFailureException": return [3, 8];
10588
10588
  }
10589
10589
  return [3, 10];
@@ -10634,13 +10634,13 @@ var deserializeAws_queryUpdateServiceSpecificCredentialCommandError = function (
10634
10634
  case 0:
10635
10635
  _a = [__assign({}, output)];
10636
10636
  _c = {};
10637
- return [4, parseBody(output.body, context)];
10637
+ return [4, parseErrorBody(output.body, context)];
10638
10638
  case 1:
10639
10639
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10640
10640
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10641
10641
  _b = errorCode;
10642
10642
  switch (_b) {
10643
- case "NoSuchEntityException": return [3, 2];
10643
+ case "NoSuchEntity": return [3, 2];
10644
10644
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
10645
10645
  }
10646
10646
  return [3, 4];
@@ -10685,17 +10685,17 @@ var deserializeAws_queryUpdateSigningCertificateCommandError = function (output,
10685
10685
  case 0:
10686
10686
  _a = [__assign({}, output)];
10687
10687
  _c = {};
10688
- return [4, parseBody(output.body, context)];
10688
+ return [4, parseErrorBody(output.body, context)];
10689
10689
  case 1:
10690
10690
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10691
10691
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10692
10692
  _b = errorCode;
10693
10693
  switch (_b) {
10694
- case "LimitExceededException": return [3, 2];
10694
+ case "LimitExceeded": return [3, 2];
10695
10695
  case "com.amazonaws.iam#LimitExceededException": return [3, 2];
10696
- case "NoSuchEntityException": return [3, 4];
10696
+ case "NoSuchEntity": return [3, 4];
10697
10697
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 4];
10698
- case "ServiceFailureException": return [3, 6];
10698
+ case "ServiceFailure": return [3, 6];
10699
10699
  case "com.amazonaws.iam#ServiceFailureException": return [3, 6];
10700
10700
  }
10701
10701
  return [3, 8];
@@ -10744,13 +10744,13 @@ var deserializeAws_queryUpdateSSHPublicKeyCommandError = function (output, conte
10744
10744
  case 0:
10745
10745
  _a = [__assign({}, output)];
10746
10746
  _c = {};
10747
- return [4, parseBody(output.body, context)];
10747
+ return [4, parseErrorBody(output.body, context)];
10748
10748
  case 1:
10749
10749
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10750
10750
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10751
10751
  _b = errorCode;
10752
10752
  switch (_b) {
10753
- case "NoSuchEntityException": return [3, 2];
10753
+ case "NoSuchEntity": return [3, 2];
10754
10754
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 2];
10755
10755
  }
10756
10756
  return [3, 4];
@@ -10795,23 +10795,23 @@ var deserializeAws_queryUpdateUserCommandError = function (output, context) { re
10795
10795
  case 0:
10796
10796
  _a = [__assign({}, output)];
10797
10797
  _c = {};
10798
- return [4, parseBody(output.body, context)];
10798
+ return [4, parseErrorBody(output.body, context)];
10799
10799
  case 1:
10800
10800
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10801
10801
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10802
10802
  _b = errorCode;
10803
10803
  switch (_b) {
10804
- case "ConcurrentModificationException": return [3, 2];
10804
+ case "ConcurrentModification": return [3, 2];
10805
10805
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
10806
- case "EntityAlreadyExistsException": return [3, 4];
10806
+ case "EntityAlreadyExists": return [3, 4];
10807
10807
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
10808
- case "EntityTemporarilyUnmodifiableException": return [3, 6];
10808
+ case "EntityTemporarilyUnmodifiable": return [3, 6];
10809
10809
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": return [3, 6];
10810
- case "LimitExceededException": return [3, 8];
10810
+ case "LimitExceeded": return [3, 8];
10811
10811
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
10812
- case "NoSuchEntityException": return [3, 10];
10812
+ case "NoSuchEntity": return [3, 10];
10813
10813
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 10];
10814
- case "ServiceFailureException": return [3, 12];
10814
+ case "ServiceFailure": return [3, 12];
10815
10815
  case "com.amazonaws.iam#ServiceFailureException": return [3, 12];
10816
10816
  }
10817
10817
  return [3, 14];
@@ -10866,25 +10866,25 @@ var deserializeAws_queryUploadServerCertificateCommandError = function (output,
10866
10866
  case 0:
10867
10867
  _a = [__assign({}, output)];
10868
10868
  _c = {};
10869
- return [4, parseBody(output.body, context)];
10869
+ return [4, parseErrorBody(output.body, context)];
10870
10870
  case 1:
10871
10871
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10872
10872
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10873
10873
  _b = errorCode;
10874
10874
  switch (_b) {
10875
- case "ConcurrentModificationException": return [3, 2];
10875
+ case "ConcurrentModification": return [3, 2];
10876
10876
  case "com.amazonaws.iam#ConcurrentModificationException": return [3, 2];
10877
- case "EntityAlreadyExistsException": return [3, 4];
10877
+ case "EntityAlreadyExists": return [3, 4];
10878
10878
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
10879
- case "InvalidInputException": return [3, 6];
10879
+ case "InvalidInput": return [3, 6];
10880
10880
  case "com.amazonaws.iam#InvalidInputException": return [3, 6];
10881
- case "KeyPairMismatchException": return [3, 8];
10881
+ case "KeyPairMismatch": return [3, 8];
10882
10882
  case "com.amazonaws.iam#KeyPairMismatchException": return [3, 8];
10883
- case "LimitExceededException": return [3, 10];
10883
+ case "LimitExceeded": return [3, 10];
10884
10884
  case "com.amazonaws.iam#LimitExceededException": return [3, 10];
10885
- case "MalformedCertificateException": return [3, 12];
10885
+ case "MalformedCertificate": return [3, 12];
10886
10886
  case "com.amazonaws.iam#MalformedCertificateException": return [3, 12];
10887
- case "ServiceFailureException": return [3, 14];
10887
+ case "ServiceFailure": return [3, 14];
10888
10888
  case "com.amazonaws.iam#ServiceFailureException": return [3, 14];
10889
10889
  }
10890
10890
  return [3, 16];
@@ -10941,25 +10941,25 @@ var deserializeAws_queryUploadSigningCertificateCommandError = function (output,
10941
10941
  case 0:
10942
10942
  _a = [__assign({}, output)];
10943
10943
  _c = {};
10944
- return [4, parseBody(output.body, context)];
10944
+ return [4, parseErrorBody(output.body, context)];
10945
10945
  case 1:
10946
10946
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
10947
10947
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
10948
10948
  _b = errorCode;
10949
10949
  switch (_b) {
10950
- case "DuplicateCertificateException": return [3, 2];
10950
+ case "DuplicateCertificate": return [3, 2];
10951
10951
  case "com.amazonaws.iam#DuplicateCertificateException": return [3, 2];
10952
- case "EntityAlreadyExistsException": return [3, 4];
10952
+ case "EntityAlreadyExists": return [3, 4];
10953
10953
  case "com.amazonaws.iam#EntityAlreadyExistsException": return [3, 4];
10954
- case "InvalidCertificateException": return [3, 6];
10954
+ case "InvalidCertificate": return [3, 6];
10955
10955
  case "com.amazonaws.iam#InvalidCertificateException": return [3, 6];
10956
- case "LimitExceededException": return [3, 8];
10956
+ case "LimitExceeded": return [3, 8];
10957
10957
  case "com.amazonaws.iam#LimitExceededException": return [3, 8];
10958
- case "MalformedCertificateException": return [3, 10];
10958
+ case "MalformedCertificate": return [3, 10];
10959
10959
  case "com.amazonaws.iam#MalformedCertificateException": return [3, 10];
10960
- case "NoSuchEntityException": return [3, 12];
10960
+ case "NoSuchEntity": return [3, 12];
10961
10961
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 12];
10962
- case "ServiceFailureException": return [3, 14];
10962
+ case "ServiceFailure": return [3, 14];
10963
10963
  case "com.amazonaws.iam#ServiceFailureException": return [3, 14];
10964
10964
  }
10965
10965
  return [3, 16];
@@ -11016,21 +11016,21 @@ var deserializeAws_queryUploadSSHPublicKeyCommandError = function (output, conte
11016
11016
  case 0:
11017
11017
  _a = [__assign({}, output)];
11018
11018
  _c = {};
11019
- return [4, parseBody(output.body, context)];
11019
+ return [4, parseErrorBody(output.body, context)];
11020
11020
  case 1:
11021
11021
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
11022
11022
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
11023
11023
  _b = errorCode;
11024
11024
  switch (_b) {
11025
- case "DuplicateSSHPublicKeyException": return [3, 2];
11025
+ case "DuplicateSSHPublicKey": return [3, 2];
11026
11026
  case "com.amazonaws.iam#DuplicateSSHPublicKeyException": return [3, 2];
11027
- case "InvalidPublicKeyException": return [3, 4];
11027
+ case "InvalidPublicKey": return [3, 4];
11028
11028
  case "com.amazonaws.iam#InvalidPublicKeyException": return [3, 4];
11029
- case "LimitExceededException": return [3, 6];
11029
+ case "LimitExceeded": return [3, 6];
11030
11030
  case "com.amazonaws.iam#LimitExceededException": return [3, 6];
11031
- case "NoSuchEntityException": return [3, 8];
11031
+ case "NoSuchEntity": return [3, 8];
11032
11032
  case "com.amazonaws.iam#NoSuchEntityException": return [3, 8];
11033
- case "UnrecognizedPublicKeyEncodingException": return [3, 10];
11033
+ case "UnrecognizedPublicKeyEncoding": return [3, 10];
11034
11034
  case "com.amazonaws.iam#UnrecognizedPublicKeyEncodingException": return [3, 10];
11035
11035
  }
11036
11036
  return [3, 12];
@@ -16856,6 +16856,21 @@ var parseBody = function (streamBody, context) {
16856
16856
  return {};
16857
16857
  });
16858
16858
  };
16859
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
16860
+ var value;
16861
+ var _a;
16862
+ return __generator(this, function (_b) {
16863
+ switch (_b.label) {
16864
+ case 0: return [4, parseBody(errorBody, context)];
16865
+ case 1:
16866
+ value = _b.sent();
16867
+ if (value.Error) {
16868
+ value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
16869
+ }
16870
+ return [2, value];
16871
+ }
16872
+ });
16873
+ }); };
16859
16874
  var buildFormUrlencodedString = function (formEntries) {
16860
16875
  return Object.entries(formEntries)
16861
16876
  .map(function (_a) {