@aws-sdk/client-iam 3.179.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.
@@ -2072,20 +2072,20 @@ exports.deserializeAws_queryAddClientIDToOpenIDConnectProviderCommand = deserial
2072
2072
  const deserializeAws_queryAddClientIDToOpenIDConnectProviderCommandError = async (output, context) => {
2073
2073
  const parsedOutput = {
2074
2074
  ...output,
2075
- body: await parseBody(output.body, context),
2075
+ body: await parseErrorBody(output.body, context),
2076
2076
  };
2077
2077
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2078
2078
  switch (errorCode) {
2079
- case "InvalidInputException":
2079
+ case "InvalidInput":
2080
2080
  case "com.amazonaws.iam#InvalidInputException":
2081
2081
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2082
- case "LimitExceededException":
2082
+ case "LimitExceeded":
2083
2083
  case "com.amazonaws.iam#LimitExceededException":
2084
2084
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2085
- case "NoSuchEntityException":
2085
+ case "NoSuchEntity":
2086
2086
  case "com.amazonaws.iam#NoSuchEntityException":
2087
2087
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2088
- case "ServiceFailureException":
2088
+ case "ServiceFailure":
2089
2089
  case "com.amazonaws.iam#ServiceFailureException":
2090
2090
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2091
2091
  default:
@@ -2112,23 +2112,23 @@ exports.deserializeAws_queryAddRoleToInstanceProfileCommand = deserializeAws_que
2112
2112
  const deserializeAws_queryAddRoleToInstanceProfileCommandError = async (output, context) => {
2113
2113
  const parsedOutput = {
2114
2114
  ...output,
2115
- body: await parseBody(output.body, context),
2115
+ body: await parseErrorBody(output.body, context),
2116
2116
  };
2117
2117
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2118
2118
  switch (errorCode) {
2119
- case "EntityAlreadyExistsException":
2119
+ case "EntityAlreadyExists":
2120
2120
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2121
2121
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2122
- case "LimitExceededException":
2122
+ case "LimitExceeded":
2123
2123
  case "com.amazonaws.iam#LimitExceededException":
2124
2124
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2125
- case "NoSuchEntityException":
2125
+ case "NoSuchEntity":
2126
2126
  case "com.amazonaws.iam#NoSuchEntityException":
2127
2127
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2128
- case "ServiceFailureException":
2128
+ case "ServiceFailure":
2129
2129
  case "com.amazonaws.iam#ServiceFailureException":
2130
2130
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2131
- case "UnmodifiableEntityException":
2131
+ case "UnmodifiableEntity":
2132
2132
  case "com.amazonaws.iam#UnmodifiableEntityException":
2133
2133
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
2134
2134
  default:
@@ -2155,17 +2155,17 @@ exports.deserializeAws_queryAddUserToGroupCommand = deserializeAws_queryAddUserT
2155
2155
  const deserializeAws_queryAddUserToGroupCommandError = async (output, context) => {
2156
2156
  const parsedOutput = {
2157
2157
  ...output,
2158
- body: await parseBody(output.body, context),
2158
+ body: await parseErrorBody(output.body, context),
2159
2159
  };
2160
2160
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2161
2161
  switch (errorCode) {
2162
- case "LimitExceededException":
2162
+ case "LimitExceeded":
2163
2163
  case "com.amazonaws.iam#LimitExceededException":
2164
2164
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2165
- case "NoSuchEntityException":
2165
+ case "NoSuchEntity":
2166
2166
  case "com.amazonaws.iam#NoSuchEntityException":
2167
2167
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2168
- case "ServiceFailureException":
2168
+ case "ServiceFailure":
2169
2169
  case "com.amazonaws.iam#ServiceFailureException":
2170
2170
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2171
2171
  default:
@@ -2192,23 +2192,23 @@ exports.deserializeAws_queryAttachGroupPolicyCommand = deserializeAws_queryAttac
2192
2192
  const deserializeAws_queryAttachGroupPolicyCommandError = async (output, context) => {
2193
2193
  const parsedOutput = {
2194
2194
  ...output,
2195
- body: await parseBody(output.body, context),
2195
+ body: await parseErrorBody(output.body, context),
2196
2196
  };
2197
2197
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2198
2198
  switch (errorCode) {
2199
- case "InvalidInputException":
2199
+ case "InvalidInput":
2200
2200
  case "com.amazonaws.iam#InvalidInputException":
2201
2201
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2202
- case "LimitExceededException":
2202
+ case "LimitExceeded":
2203
2203
  case "com.amazonaws.iam#LimitExceededException":
2204
2204
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2205
- case "NoSuchEntityException":
2205
+ case "NoSuchEntity":
2206
2206
  case "com.amazonaws.iam#NoSuchEntityException":
2207
2207
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2208
- case "PolicyNotAttachableException":
2208
+ case "PolicyNotAttachable":
2209
2209
  case "com.amazonaws.iam#PolicyNotAttachableException":
2210
2210
  throw await deserializeAws_queryPolicyNotAttachableExceptionResponse(parsedOutput, context);
2211
- case "ServiceFailureException":
2211
+ case "ServiceFailure":
2212
2212
  case "com.amazonaws.iam#ServiceFailureException":
2213
2213
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2214
2214
  default:
@@ -2235,26 +2235,26 @@ exports.deserializeAws_queryAttachRolePolicyCommand = deserializeAws_queryAttach
2235
2235
  const deserializeAws_queryAttachRolePolicyCommandError = async (output, context) => {
2236
2236
  const parsedOutput = {
2237
2237
  ...output,
2238
- body: await parseBody(output.body, context),
2238
+ body: await parseErrorBody(output.body, context),
2239
2239
  };
2240
2240
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2241
2241
  switch (errorCode) {
2242
- case "InvalidInputException":
2242
+ case "InvalidInput":
2243
2243
  case "com.amazonaws.iam#InvalidInputException":
2244
2244
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2245
- case "LimitExceededException":
2245
+ case "LimitExceeded":
2246
2246
  case "com.amazonaws.iam#LimitExceededException":
2247
2247
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2248
- case "NoSuchEntityException":
2248
+ case "NoSuchEntity":
2249
2249
  case "com.amazonaws.iam#NoSuchEntityException":
2250
2250
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2251
- case "PolicyNotAttachableException":
2251
+ case "PolicyNotAttachable":
2252
2252
  case "com.amazonaws.iam#PolicyNotAttachableException":
2253
2253
  throw await deserializeAws_queryPolicyNotAttachableExceptionResponse(parsedOutput, context);
2254
- case "ServiceFailureException":
2254
+ case "ServiceFailure":
2255
2255
  case "com.amazonaws.iam#ServiceFailureException":
2256
2256
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2257
- case "UnmodifiableEntityException":
2257
+ case "UnmodifiableEntity":
2258
2258
  case "com.amazonaws.iam#UnmodifiableEntityException":
2259
2259
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
2260
2260
  default:
@@ -2281,23 +2281,23 @@ exports.deserializeAws_queryAttachUserPolicyCommand = deserializeAws_queryAttach
2281
2281
  const deserializeAws_queryAttachUserPolicyCommandError = async (output, context) => {
2282
2282
  const parsedOutput = {
2283
2283
  ...output,
2284
- body: await parseBody(output.body, context),
2284
+ body: await parseErrorBody(output.body, context),
2285
2285
  };
2286
2286
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2287
2287
  switch (errorCode) {
2288
- case "InvalidInputException":
2288
+ case "InvalidInput":
2289
2289
  case "com.amazonaws.iam#InvalidInputException":
2290
2290
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2291
- case "LimitExceededException":
2291
+ case "LimitExceeded":
2292
2292
  case "com.amazonaws.iam#LimitExceededException":
2293
2293
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2294
- case "NoSuchEntityException":
2294
+ case "NoSuchEntity":
2295
2295
  case "com.amazonaws.iam#NoSuchEntityException":
2296
2296
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2297
- case "PolicyNotAttachableException":
2297
+ case "PolicyNotAttachable":
2298
2298
  case "com.amazonaws.iam#PolicyNotAttachableException":
2299
2299
  throw await deserializeAws_queryPolicyNotAttachableExceptionResponse(parsedOutput, context);
2300
- case "ServiceFailureException":
2300
+ case "ServiceFailure":
2301
2301
  case "com.amazonaws.iam#ServiceFailureException":
2302
2302
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2303
2303
  default:
@@ -2324,26 +2324,26 @@ exports.deserializeAws_queryChangePasswordCommand = deserializeAws_queryChangePa
2324
2324
  const deserializeAws_queryChangePasswordCommandError = async (output, context) => {
2325
2325
  const parsedOutput = {
2326
2326
  ...output,
2327
- body: await parseBody(output.body, context),
2327
+ body: await parseErrorBody(output.body, context),
2328
2328
  };
2329
2329
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2330
2330
  switch (errorCode) {
2331
- case "EntityTemporarilyUnmodifiableException":
2331
+ case "EntityTemporarilyUnmodifiable":
2332
2332
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
2333
2333
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
2334
- case "InvalidUserTypeException":
2334
+ case "InvalidUserType":
2335
2335
  case "com.amazonaws.iam#InvalidUserTypeException":
2336
2336
  throw await deserializeAws_queryInvalidUserTypeExceptionResponse(parsedOutput, context);
2337
- case "LimitExceededException":
2337
+ case "LimitExceeded":
2338
2338
  case "com.amazonaws.iam#LimitExceededException":
2339
2339
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2340
- case "NoSuchEntityException":
2340
+ case "NoSuchEntity":
2341
2341
  case "com.amazonaws.iam#NoSuchEntityException":
2342
2342
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2343
- case "PasswordPolicyViolationException":
2343
+ case "PasswordPolicyViolation":
2344
2344
  case "com.amazonaws.iam#PasswordPolicyViolationException":
2345
2345
  throw await deserializeAws_queryPasswordPolicyViolationExceptionResponse(parsedOutput, context);
2346
- case "ServiceFailureException":
2346
+ case "ServiceFailure":
2347
2347
  case "com.amazonaws.iam#ServiceFailureException":
2348
2348
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2349
2349
  default:
@@ -2373,17 +2373,17 @@ exports.deserializeAws_queryCreateAccessKeyCommand = deserializeAws_queryCreateA
2373
2373
  const deserializeAws_queryCreateAccessKeyCommandError = async (output, context) => {
2374
2374
  const parsedOutput = {
2375
2375
  ...output,
2376
- body: await parseBody(output.body, context),
2376
+ body: await parseErrorBody(output.body, context),
2377
2377
  };
2378
2378
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2379
2379
  switch (errorCode) {
2380
- case "LimitExceededException":
2380
+ case "LimitExceeded":
2381
2381
  case "com.amazonaws.iam#LimitExceededException":
2382
2382
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2383
- case "NoSuchEntityException":
2383
+ case "NoSuchEntity":
2384
2384
  case "com.amazonaws.iam#NoSuchEntityException":
2385
2385
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2386
- case "ServiceFailureException":
2386
+ case "ServiceFailure":
2387
2387
  case "com.amazonaws.iam#ServiceFailureException":
2388
2388
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2389
2389
  default:
@@ -2410,17 +2410,17 @@ exports.deserializeAws_queryCreateAccountAliasCommand = deserializeAws_queryCrea
2410
2410
  const deserializeAws_queryCreateAccountAliasCommandError = async (output, context) => {
2411
2411
  const parsedOutput = {
2412
2412
  ...output,
2413
- body: await parseBody(output.body, context),
2413
+ body: await parseErrorBody(output.body, context),
2414
2414
  };
2415
2415
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2416
2416
  switch (errorCode) {
2417
- case "EntityAlreadyExistsException":
2417
+ case "EntityAlreadyExists":
2418
2418
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2419
2419
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2420
- case "LimitExceededException":
2420
+ case "LimitExceeded":
2421
2421
  case "com.amazonaws.iam#LimitExceededException":
2422
2422
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2423
- case "ServiceFailureException":
2423
+ case "ServiceFailure":
2424
2424
  case "com.amazonaws.iam#ServiceFailureException":
2425
2425
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2426
2426
  default:
@@ -2450,20 +2450,20 @@ exports.deserializeAws_queryCreateGroupCommand = deserializeAws_queryCreateGroup
2450
2450
  const deserializeAws_queryCreateGroupCommandError = async (output, context) => {
2451
2451
  const parsedOutput = {
2452
2452
  ...output,
2453
- body: await parseBody(output.body, context),
2453
+ body: await parseErrorBody(output.body, context),
2454
2454
  };
2455
2455
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2456
2456
  switch (errorCode) {
2457
- case "EntityAlreadyExistsException":
2457
+ case "EntityAlreadyExists":
2458
2458
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2459
2459
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2460
- case "LimitExceededException":
2460
+ case "LimitExceeded":
2461
2461
  case "com.amazonaws.iam#LimitExceededException":
2462
2462
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2463
- case "NoSuchEntityException":
2463
+ case "NoSuchEntity":
2464
2464
  case "com.amazonaws.iam#NoSuchEntityException":
2465
2465
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2466
- case "ServiceFailureException":
2466
+ case "ServiceFailure":
2467
2467
  case "com.amazonaws.iam#ServiceFailureException":
2468
2468
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2469
2469
  default:
@@ -2493,23 +2493,23 @@ exports.deserializeAws_queryCreateInstanceProfileCommand = deserializeAws_queryC
2493
2493
  const deserializeAws_queryCreateInstanceProfileCommandError = async (output, context) => {
2494
2494
  const parsedOutput = {
2495
2495
  ...output,
2496
- body: await parseBody(output.body, context),
2496
+ body: await parseErrorBody(output.body, context),
2497
2497
  };
2498
2498
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2499
2499
  switch (errorCode) {
2500
- case "ConcurrentModificationException":
2500
+ case "ConcurrentModification":
2501
2501
  case "com.amazonaws.iam#ConcurrentModificationException":
2502
2502
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2503
- case "EntityAlreadyExistsException":
2503
+ case "EntityAlreadyExists":
2504
2504
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2505
2505
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2506
- case "InvalidInputException":
2506
+ case "InvalidInput":
2507
2507
  case "com.amazonaws.iam#InvalidInputException":
2508
2508
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2509
- case "LimitExceededException":
2509
+ case "LimitExceeded":
2510
2510
  case "com.amazonaws.iam#LimitExceededException":
2511
2511
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2512
- case "ServiceFailureException":
2512
+ case "ServiceFailure":
2513
2513
  case "com.amazonaws.iam#ServiceFailureException":
2514
2514
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2515
2515
  default:
@@ -2539,23 +2539,23 @@ exports.deserializeAws_queryCreateLoginProfileCommand = deserializeAws_queryCrea
2539
2539
  const deserializeAws_queryCreateLoginProfileCommandError = async (output, context) => {
2540
2540
  const parsedOutput = {
2541
2541
  ...output,
2542
- body: await parseBody(output.body, context),
2542
+ body: await parseErrorBody(output.body, context),
2543
2543
  };
2544
2544
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2545
2545
  switch (errorCode) {
2546
- case "EntityAlreadyExistsException":
2546
+ case "EntityAlreadyExists":
2547
2547
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2548
2548
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2549
- case "LimitExceededException":
2549
+ case "LimitExceeded":
2550
2550
  case "com.amazonaws.iam#LimitExceededException":
2551
2551
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2552
- case "NoSuchEntityException":
2552
+ case "NoSuchEntity":
2553
2553
  case "com.amazonaws.iam#NoSuchEntityException":
2554
2554
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2555
- case "PasswordPolicyViolationException":
2555
+ case "PasswordPolicyViolation":
2556
2556
  case "com.amazonaws.iam#PasswordPolicyViolationException":
2557
2557
  throw await deserializeAws_queryPasswordPolicyViolationExceptionResponse(parsedOutput, context);
2558
- case "ServiceFailureException":
2558
+ case "ServiceFailure":
2559
2559
  case "com.amazonaws.iam#ServiceFailureException":
2560
2560
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2561
2561
  default:
@@ -2585,23 +2585,23 @@ exports.deserializeAws_queryCreateOpenIDConnectProviderCommand = deserializeAws_
2585
2585
  const deserializeAws_queryCreateOpenIDConnectProviderCommandError = async (output, context) => {
2586
2586
  const parsedOutput = {
2587
2587
  ...output,
2588
- body: await parseBody(output.body, context),
2588
+ body: await parseErrorBody(output.body, context),
2589
2589
  };
2590
2590
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2591
2591
  switch (errorCode) {
2592
- case "ConcurrentModificationException":
2592
+ case "ConcurrentModification":
2593
2593
  case "com.amazonaws.iam#ConcurrentModificationException":
2594
2594
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2595
- case "EntityAlreadyExistsException":
2595
+ case "EntityAlreadyExists":
2596
2596
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2597
2597
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2598
- case "InvalidInputException":
2598
+ case "InvalidInput":
2599
2599
  case "com.amazonaws.iam#InvalidInputException":
2600
2600
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2601
- case "LimitExceededException":
2601
+ case "LimitExceeded":
2602
2602
  case "com.amazonaws.iam#LimitExceededException":
2603
2603
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2604
- case "ServiceFailureException":
2604
+ case "ServiceFailure":
2605
2605
  case "com.amazonaws.iam#ServiceFailureException":
2606
2606
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2607
2607
  default:
@@ -2631,26 +2631,26 @@ exports.deserializeAws_queryCreatePolicyCommand = deserializeAws_queryCreatePoli
2631
2631
  const deserializeAws_queryCreatePolicyCommandError = async (output, context) => {
2632
2632
  const parsedOutput = {
2633
2633
  ...output,
2634
- body: await parseBody(output.body, context),
2634
+ body: await parseErrorBody(output.body, context),
2635
2635
  };
2636
2636
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2637
2637
  switch (errorCode) {
2638
- case "ConcurrentModificationException":
2638
+ case "ConcurrentModification":
2639
2639
  case "com.amazonaws.iam#ConcurrentModificationException":
2640
2640
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2641
- case "EntityAlreadyExistsException":
2641
+ case "EntityAlreadyExists":
2642
2642
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2643
2643
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2644
- case "InvalidInputException":
2644
+ case "InvalidInput":
2645
2645
  case "com.amazonaws.iam#InvalidInputException":
2646
2646
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2647
- case "LimitExceededException":
2647
+ case "LimitExceeded":
2648
2648
  case "com.amazonaws.iam#LimitExceededException":
2649
2649
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2650
- case "MalformedPolicyDocumentException":
2650
+ case "MalformedPolicyDocument":
2651
2651
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
2652
2652
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
2653
- case "ServiceFailureException":
2653
+ case "ServiceFailure":
2654
2654
  case "com.amazonaws.iam#ServiceFailureException":
2655
2655
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2656
2656
  default:
@@ -2680,23 +2680,23 @@ exports.deserializeAws_queryCreatePolicyVersionCommand = deserializeAws_queryCre
2680
2680
  const deserializeAws_queryCreatePolicyVersionCommandError = async (output, context) => {
2681
2681
  const parsedOutput = {
2682
2682
  ...output,
2683
- body: await parseBody(output.body, context),
2683
+ body: await parseErrorBody(output.body, context),
2684
2684
  };
2685
2685
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2686
2686
  switch (errorCode) {
2687
- case "InvalidInputException":
2687
+ case "InvalidInput":
2688
2688
  case "com.amazonaws.iam#InvalidInputException":
2689
2689
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2690
- case "LimitExceededException":
2690
+ case "LimitExceeded":
2691
2691
  case "com.amazonaws.iam#LimitExceededException":
2692
2692
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2693
- case "MalformedPolicyDocumentException":
2693
+ case "MalformedPolicyDocument":
2694
2694
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
2695
2695
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
2696
- case "NoSuchEntityException":
2696
+ case "NoSuchEntity":
2697
2697
  case "com.amazonaws.iam#NoSuchEntityException":
2698
2698
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2699
- case "ServiceFailureException":
2699
+ case "ServiceFailure":
2700
2700
  case "com.amazonaws.iam#ServiceFailureException":
2701
2701
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2702
2702
  default:
@@ -2726,26 +2726,26 @@ exports.deserializeAws_queryCreateRoleCommand = deserializeAws_queryCreateRoleCo
2726
2726
  const deserializeAws_queryCreateRoleCommandError = async (output, context) => {
2727
2727
  const parsedOutput = {
2728
2728
  ...output,
2729
- body: await parseBody(output.body, context),
2729
+ body: await parseErrorBody(output.body, context),
2730
2730
  };
2731
2731
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2732
2732
  switch (errorCode) {
2733
- case "ConcurrentModificationException":
2733
+ case "ConcurrentModification":
2734
2734
  case "com.amazonaws.iam#ConcurrentModificationException":
2735
2735
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2736
- case "EntityAlreadyExistsException":
2736
+ case "EntityAlreadyExists":
2737
2737
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2738
2738
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2739
- case "InvalidInputException":
2739
+ case "InvalidInput":
2740
2740
  case "com.amazonaws.iam#InvalidInputException":
2741
2741
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2742
- case "LimitExceededException":
2742
+ case "LimitExceeded":
2743
2743
  case "com.amazonaws.iam#LimitExceededException":
2744
2744
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2745
- case "MalformedPolicyDocumentException":
2745
+ case "MalformedPolicyDocument":
2746
2746
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
2747
2747
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
2748
- case "ServiceFailureException":
2748
+ case "ServiceFailure":
2749
2749
  case "com.amazonaws.iam#ServiceFailureException":
2750
2750
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2751
2751
  default:
@@ -2775,23 +2775,23 @@ exports.deserializeAws_queryCreateSAMLProviderCommand = deserializeAws_queryCrea
2775
2775
  const deserializeAws_queryCreateSAMLProviderCommandError = async (output, context) => {
2776
2776
  const parsedOutput = {
2777
2777
  ...output,
2778
- body: await parseBody(output.body, context),
2778
+ body: await parseErrorBody(output.body, context),
2779
2779
  };
2780
2780
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2781
2781
  switch (errorCode) {
2782
- case "ConcurrentModificationException":
2782
+ case "ConcurrentModification":
2783
2783
  case "com.amazonaws.iam#ConcurrentModificationException":
2784
2784
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2785
- case "EntityAlreadyExistsException":
2785
+ case "EntityAlreadyExists":
2786
2786
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2787
2787
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2788
- case "InvalidInputException":
2788
+ case "InvalidInput":
2789
2789
  case "com.amazonaws.iam#InvalidInputException":
2790
2790
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2791
- case "LimitExceededException":
2791
+ case "LimitExceeded":
2792
2792
  case "com.amazonaws.iam#LimitExceededException":
2793
2793
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2794
- case "ServiceFailureException":
2794
+ case "ServiceFailure":
2795
2795
  case "com.amazonaws.iam#ServiceFailureException":
2796
2796
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2797
2797
  default:
@@ -2821,20 +2821,20 @@ exports.deserializeAws_queryCreateServiceLinkedRoleCommand = deserializeAws_quer
2821
2821
  const deserializeAws_queryCreateServiceLinkedRoleCommandError = async (output, context) => {
2822
2822
  const parsedOutput = {
2823
2823
  ...output,
2824
- body: await parseBody(output.body, context),
2824
+ body: await parseErrorBody(output.body, context),
2825
2825
  };
2826
2826
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2827
2827
  switch (errorCode) {
2828
- case "InvalidInputException":
2828
+ case "InvalidInput":
2829
2829
  case "com.amazonaws.iam#InvalidInputException":
2830
2830
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2831
- case "LimitExceededException":
2831
+ case "LimitExceeded":
2832
2832
  case "com.amazonaws.iam#LimitExceededException":
2833
2833
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2834
- case "NoSuchEntityException":
2834
+ case "NoSuchEntity":
2835
2835
  case "com.amazonaws.iam#NoSuchEntityException":
2836
2836
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2837
- case "ServiceFailureException":
2837
+ case "ServiceFailure":
2838
2838
  case "com.amazonaws.iam#ServiceFailureException":
2839
2839
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2840
2840
  default:
@@ -2864,17 +2864,17 @@ exports.deserializeAws_queryCreateServiceSpecificCredentialCommand = deserialize
2864
2864
  const deserializeAws_queryCreateServiceSpecificCredentialCommandError = async (output, context) => {
2865
2865
  const parsedOutput = {
2866
2866
  ...output,
2867
- body: await parseBody(output.body, context),
2867
+ body: await parseErrorBody(output.body, context),
2868
2868
  };
2869
2869
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2870
2870
  switch (errorCode) {
2871
- case "LimitExceededException":
2871
+ case "LimitExceeded":
2872
2872
  case "com.amazonaws.iam#LimitExceededException":
2873
2873
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2874
- case "NoSuchEntityException":
2874
+ case "NoSuchEntity":
2875
2875
  case "com.amazonaws.iam#NoSuchEntityException":
2876
2876
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2877
- case "ServiceNotSupportedException":
2877
+ case "NotSupportedService":
2878
2878
  case "com.amazonaws.iam#ServiceNotSupportedException":
2879
2879
  throw await deserializeAws_queryServiceNotSupportedExceptionResponse(parsedOutput, context);
2880
2880
  default:
@@ -2904,26 +2904,26 @@ exports.deserializeAws_queryCreateUserCommand = deserializeAws_queryCreateUserCo
2904
2904
  const deserializeAws_queryCreateUserCommandError = async (output, context) => {
2905
2905
  const parsedOutput = {
2906
2906
  ...output,
2907
- body: await parseBody(output.body, context),
2907
+ body: await parseErrorBody(output.body, context),
2908
2908
  };
2909
2909
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2910
2910
  switch (errorCode) {
2911
- case "ConcurrentModificationException":
2911
+ case "ConcurrentModification":
2912
2912
  case "com.amazonaws.iam#ConcurrentModificationException":
2913
2913
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2914
- case "EntityAlreadyExistsException":
2914
+ case "EntityAlreadyExists":
2915
2915
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2916
2916
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2917
- case "InvalidInputException":
2917
+ case "InvalidInput":
2918
2918
  case "com.amazonaws.iam#InvalidInputException":
2919
2919
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2920
- case "LimitExceededException":
2920
+ case "LimitExceeded":
2921
2921
  case "com.amazonaws.iam#LimitExceededException":
2922
2922
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2923
- case "NoSuchEntityException":
2923
+ case "NoSuchEntity":
2924
2924
  case "com.amazonaws.iam#NoSuchEntityException":
2925
2925
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
2926
- case "ServiceFailureException":
2926
+ case "ServiceFailure":
2927
2927
  case "com.amazonaws.iam#ServiceFailureException":
2928
2928
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2929
2929
  default:
@@ -2953,23 +2953,23 @@ exports.deserializeAws_queryCreateVirtualMFADeviceCommand = deserializeAws_query
2953
2953
  const deserializeAws_queryCreateVirtualMFADeviceCommandError = async (output, context) => {
2954
2954
  const parsedOutput = {
2955
2955
  ...output,
2956
- body: await parseBody(output.body, context),
2956
+ body: await parseErrorBody(output.body, context),
2957
2957
  };
2958
2958
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2959
2959
  switch (errorCode) {
2960
- case "ConcurrentModificationException":
2960
+ case "ConcurrentModification":
2961
2961
  case "com.amazonaws.iam#ConcurrentModificationException":
2962
2962
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
2963
- case "EntityAlreadyExistsException":
2963
+ case "EntityAlreadyExists":
2964
2964
  case "com.amazonaws.iam#EntityAlreadyExistsException":
2965
2965
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
2966
- case "InvalidInputException":
2966
+ case "InvalidInput":
2967
2967
  case "com.amazonaws.iam#InvalidInputException":
2968
2968
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
2969
- case "LimitExceededException":
2969
+ case "LimitExceeded":
2970
2970
  case "com.amazonaws.iam#LimitExceededException":
2971
2971
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
2972
- case "ServiceFailureException":
2972
+ case "ServiceFailure":
2973
2973
  case "com.amazonaws.iam#ServiceFailureException":
2974
2974
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
2975
2975
  default:
@@ -2996,20 +2996,20 @@ exports.deserializeAws_queryDeactivateMFADeviceCommand = deserializeAws_queryDea
2996
2996
  const deserializeAws_queryDeactivateMFADeviceCommandError = async (output, context) => {
2997
2997
  const parsedOutput = {
2998
2998
  ...output,
2999
- body: await parseBody(output.body, context),
2999
+ body: await parseErrorBody(output.body, context),
3000
3000
  };
3001
3001
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3002
3002
  switch (errorCode) {
3003
- case "EntityTemporarilyUnmodifiableException":
3003
+ case "EntityTemporarilyUnmodifiable":
3004
3004
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
3005
3005
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
3006
- case "LimitExceededException":
3006
+ case "LimitExceeded":
3007
3007
  case "com.amazonaws.iam#LimitExceededException":
3008
3008
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3009
- case "NoSuchEntityException":
3009
+ case "NoSuchEntity":
3010
3010
  case "com.amazonaws.iam#NoSuchEntityException":
3011
3011
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3012
- case "ServiceFailureException":
3012
+ case "ServiceFailure":
3013
3013
  case "com.amazonaws.iam#ServiceFailureException":
3014
3014
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3015
3015
  default:
@@ -3036,17 +3036,17 @@ exports.deserializeAws_queryDeleteAccessKeyCommand = deserializeAws_queryDeleteA
3036
3036
  const deserializeAws_queryDeleteAccessKeyCommandError = async (output, context) => {
3037
3037
  const parsedOutput = {
3038
3038
  ...output,
3039
- body: await parseBody(output.body, context),
3039
+ body: await parseErrorBody(output.body, context),
3040
3040
  };
3041
3041
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3042
3042
  switch (errorCode) {
3043
- case "LimitExceededException":
3043
+ case "LimitExceeded":
3044
3044
  case "com.amazonaws.iam#LimitExceededException":
3045
3045
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3046
- case "NoSuchEntityException":
3046
+ case "NoSuchEntity":
3047
3047
  case "com.amazonaws.iam#NoSuchEntityException":
3048
3048
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3049
- case "ServiceFailureException":
3049
+ case "ServiceFailure":
3050
3050
  case "com.amazonaws.iam#ServiceFailureException":
3051
3051
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3052
3052
  default:
@@ -3073,17 +3073,17 @@ exports.deserializeAws_queryDeleteAccountAliasCommand = deserializeAws_queryDele
3073
3073
  const deserializeAws_queryDeleteAccountAliasCommandError = async (output, context) => {
3074
3074
  const parsedOutput = {
3075
3075
  ...output,
3076
- body: await parseBody(output.body, context),
3076
+ body: await parseErrorBody(output.body, context),
3077
3077
  };
3078
3078
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3079
3079
  switch (errorCode) {
3080
- case "LimitExceededException":
3080
+ case "LimitExceeded":
3081
3081
  case "com.amazonaws.iam#LimitExceededException":
3082
3082
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3083
- case "NoSuchEntityException":
3083
+ case "NoSuchEntity":
3084
3084
  case "com.amazonaws.iam#NoSuchEntityException":
3085
3085
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3086
- case "ServiceFailureException":
3086
+ case "ServiceFailure":
3087
3087
  case "com.amazonaws.iam#ServiceFailureException":
3088
3088
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3089
3089
  default:
@@ -3110,17 +3110,17 @@ exports.deserializeAws_queryDeleteAccountPasswordPolicyCommand = deserializeAws_
3110
3110
  const deserializeAws_queryDeleteAccountPasswordPolicyCommandError = async (output, context) => {
3111
3111
  const parsedOutput = {
3112
3112
  ...output,
3113
- body: await parseBody(output.body, context),
3113
+ body: await parseErrorBody(output.body, context),
3114
3114
  };
3115
3115
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3116
3116
  switch (errorCode) {
3117
- case "LimitExceededException":
3117
+ case "LimitExceeded":
3118
3118
  case "com.amazonaws.iam#LimitExceededException":
3119
3119
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3120
- case "NoSuchEntityException":
3120
+ case "NoSuchEntity":
3121
3121
  case "com.amazonaws.iam#NoSuchEntityException":
3122
3122
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3123
- case "ServiceFailureException":
3123
+ case "ServiceFailure":
3124
3124
  case "com.amazonaws.iam#ServiceFailureException":
3125
3125
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3126
3126
  default:
@@ -3147,20 +3147,20 @@ exports.deserializeAws_queryDeleteGroupCommand = deserializeAws_queryDeleteGroup
3147
3147
  const deserializeAws_queryDeleteGroupCommandError = async (output, context) => {
3148
3148
  const parsedOutput = {
3149
3149
  ...output,
3150
- body: await parseBody(output.body, context),
3150
+ body: await parseErrorBody(output.body, context),
3151
3151
  };
3152
3152
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3153
3153
  switch (errorCode) {
3154
- case "DeleteConflictException":
3154
+ case "DeleteConflict":
3155
3155
  case "com.amazonaws.iam#DeleteConflictException":
3156
3156
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3157
- case "LimitExceededException":
3157
+ case "LimitExceeded":
3158
3158
  case "com.amazonaws.iam#LimitExceededException":
3159
3159
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3160
- case "NoSuchEntityException":
3160
+ case "NoSuchEntity":
3161
3161
  case "com.amazonaws.iam#NoSuchEntityException":
3162
3162
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3163
- case "ServiceFailureException":
3163
+ case "ServiceFailure":
3164
3164
  case "com.amazonaws.iam#ServiceFailureException":
3165
3165
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3166
3166
  default:
@@ -3187,17 +3187,17 @@ exports.deserializeAws_queryDeleteGroupPolicyCommand = deserializeAws_queryDelet
3187
3187
  const deserializeAws_queryDeleteGroupPolicyCommandError = async (output, context) => {
3188
3188
  const parsedOutput = {
3189
3189
  ...output,
3190
- body: await parseBody(output.body, context),
3190
+ body: await parseErrorBody(output.body, context),
3191
3191
  };
3192
3192
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3193
3193
  switch (errorCode) {
3194
- case "LimitExceededException":
3194
+ case "LimitExceeded":
3195
3195
  case "com.amazonaws.iam#LimitExceededException":
3196
3196
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3197
- case "NoSuchEntityException":
3197
+ case "NoSuchEntity":
3198
3198
  case "com.amazonaws.iam#NoSuchEntityException":
3199
3199
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3200
- case "ServiceFailureException":
3200
+ case "ServiceFailure":
3201
3201
  case "com.amazonaws.iam#ServiceFailureException":
3202
3202
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3203
3203
  default:
@@ -3224,20 +3224,20 @@ exports.deserializeAws_queryDeleteInstanceProfileCommand = deserializeAws_queryD
3224
3224
  const deserializeAws_queryDeleteInstanceProfileCommandError = async (output, context) => {
3225
3225
  const parsedOutput = {
3226
3226
  ...output,
3227
- body: await parseBody(output.body, context),
3227
+ body: await parseErrorBody(output.body, context),
3228
3228
  };
3229
3229
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3230
3230
  switch (errorCode) {
3231
- case "DeleteConflictException":
3231
+ case "DeleteConflict":
3232
3232
  case "com.amazonaws.iam#DeleteConflictException":
3233
3233
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3234
- case "LimitExceededException":
3234
+ case "LimitExceeded":
3235
3235
  case "com.amazonaws.iam#LimitExceededException":
3236
3236
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3237
- case "NoSuchEntityException":
3237
+ case "NoSuchEntity":
3238
3238
  case "com.amazonaws.iam#NoSuchEntityException":
3239
3239
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3240
- case "ServiceFailureException":
3240
+ case "ServiceFailure":
3241
3241
  case "com.amazonaws.iam#ServiceFailureException":
3242
3242
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3243
3243
  default:
@@ -3264,20 +3264,20 @@ exports.deserializeAws_queryDeleteLoginProfileCommand = deserializeAws_queryDele
3264
3264
  const deserializeAws_queryDeleteLoginProfileCommandError = async (output, context) => {
3265
3265
  const parsedOutput = {
3266
3266
  ...output,
3267
- body: await parseBody(output.body, context),
3267
+ body: await parseErrorBody(output.body, context),
3268
3268
  };
3269
3269
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3270
3270
  switch (errorCode) {
3271
- case "EntityTemporarilyUnmodifiableException":
3271
+ case "EntityTemporarilyUnmodifiable":
3272
3272
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
3273
3273
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
3274
- case "LimitExceededException":
3274
+ case "LimitExceeded":
3275
3275
  case "com.amazonaws.iam#LimitExceededException":
3276
3276
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3277
- case "NoSuchEntityException":
3277
+ case "NoSuchEntity":
3278
3278
  case "com.amazonaws.iam#NoSuchEntityException":
3279
3279
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3280
- case "ServiceFailureException":
3280
+ case "ServiceFailure":
3281
3281
  case "com.amazonaws.iam#ServiceFailureException":
3282
3282
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3283
3283
  default:
@@ -3304,17 +3304,17 @@ exports.deserializeAws_queryDeleteOpenIDConnectProviderCommand = deserializeAws_
3304
3304
  const deserializeAws_queryDeleteOpenIDConnectProviderCommandError = async (output, context) => {
3305
3305
  const parsedOutput = {
3306
3306
  ...output,
3307
- body: await parseBody(output.body, context),
3307
+ body: await parseErrorBody(output.body, context),
3308
3308
  };
3309
3309
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3310
3310
  switch (errorCode) {
3311
- case "InvalidInputException":
3311
+ case "InvalidInput":
3312
3312
  case "com.amazonaws.iam#InvalidInputException":
3313
3313
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3314
- case "NoSuchEntityException":
3314
+ case "NoSuchEntity":
3315
3315
  case "com.amazonaws.iam#NoSuchEntityException":
3316
3316
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3317
- case "ServiceFailureException":
3317
+ case "ServiceFailure":
3318
3318
  case "com.amazonaws.iam#ServiceFailureException":
3319
3319
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3320
3320
  default:
@@ -3341,23 +3341,23 @@ exports.deserializeAws_queryDeletePolicyCommand = deserializeAws_queryDeletePoli
3341
3341
  const deserializeAws_queryDeletePolicyCommandError = async (output, context) => {
3342
3342
  const parsedOutput = {
3343
3343
  ...output,
3344
- body: await parseBody(output.body, context),
3344
+ body: await parseErrorBody(output.body, context),
3345
3345
  };
3346
3346
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3347
3347
  switch (errorCode) {
3348
- case "DeleteConflictException":
3348
+ case "DeleteConflict":
3349
3349
  case "com.amazonaws.iam#DeleteConflictException":
3350
3350
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3351
- case "InvalidInputException":
3351
+ case "InvalidInput":
3352
3352
  case "com.amazonaws.iam#InvalidInputException":
3353
3353
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3354
- case "LimitExceededException":
3354
+ case "LimitExceeded":
3355
3355
  case "com.amazonaws.iam#LimitExceededException":
3356
3356
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3357
- case "NoSuchEntityException":
3357
+ case "NoSuchEntity":
3358
3358
  case "com.amazonaws.iam#NoSuchEntityException":
3359
3359
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3360
- case "ServiceFailureException":
3360
+ case "ServiceFailure":
3361
3361
  case "com.amazonaws.iam#ServiceFailureException":
3362
3362
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3363
3363
  default:
@@ -3384,23 +3384,23 @@ exports.deserializeAws_queryDeletePolicyVersionCommand = deserializeAws_queryDel
3384
3384
  const deserializeAws_queryDeletePolicyVersionCommandError = async (output, context) => {
3385
3385
  const parsedOutput = {
3386
3386
  ...output,
3387
- body: await parseBody(output.body, context),
3387
+ body: await parseErrorBody(output.body, context),
3388
3388
  };
3389
3389
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3390
3390
  switch (errorCode) {
3391
- case "DeleteConflictException":
3391
+ case "DeleteConflict":
3392
3392
  case "com.amazonaws.iam#DeleteConflictException":
3393
3393
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3394
- case "InvalidInputException":
3394
+ case "InvalidInput":
3395
3395
  case "com.amazonaws.iam#InvalidInputException":
3396
3396
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3397
- case "LimitExceededException":
3397
+ case "LimitExceeded":
3398
3398
  case "com.amazonaws.iam#LimitExceededException":
3399
3399
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3400
- case "NoSuchEntityException":
3400
+ case "NoSuchEntity":
3401
3401
  case "com.amazonaws.iam#NoSuchEntityException":
3402
3402
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3403
- case "ServiceFailureException":
3403
+ case "ServiceFailure":
3404
3404
  case "com.amazonaws.iam#ServiceFailureException":
3405
3405
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3406
3406
  default:
@@ -3427,26 +3427,26 @@ exports.deserializeAws_queryDeleteRoleCommand = deserializeAws_queryDeleteRoleCo
3427
3427
  const deserializeAws_queryDeleteRoleCommandError = async (output, context) => {
3428
3428
  const parsedOutput = {
3429
3429
  ...output,
3430
- body: await parseBody(output.body, context),
3430
+ body: await parseErrorBody(output.body, context),
3431
3431
  };
3432
3432
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3433
3433
  switch (errorCode) {
3434
- case "ConcurrentModificationException":
3434
+ case "ConcurrentModification":
3435
3435
  case "com.amazonaws.iam#ConcurrentModificationException":
3436
3436
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
3437
- case "DeleteConflictException":
3437
+ case "DeleteConflict":
3438
3438
  case "com.amazonaws.iam#DeleteConflictException":
3439
3439
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3440
- case "LimitExceededException":
3440
+ case "LimitExceeded":
3441
3441
  case "com.amazonaws.iam#LimitExceededException":
3442
3442
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3443
- case "NoSuchEntityException":
3443
+ case "NoSuchEntity":
3444
3444
  case "com.amazonaws.iam#NoSuchEntityException":
3445
3445
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3446
- case "ServiceFailureException":
3446
+ case "ServiceFailure":
3447
3447
  case "com.amazonaws.iam#ServiceFailureException":
3448
3448
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3449
- case "UnmodifiableEntityException":
3449
+ case "UnmodifiableEntity":
3450
3450
  case "com.amazonaws.iam#UnmodifiableEntityException":
3451
3451
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
3452
3452
  default:
@@ -3473,17 +3473,17 @@ exports.deserializeAws_queryDeleteRolePermissionsBoundaryCommand = deserializeAw
3473
3473
  const deserializeAws_queryDeleteRolePermissionsBoundaryCommandError = async (output, context) => {
3474
3474
  const parsedOutput = {
3475
3475
  ...output,
3476
- body: await parseBody(output.body, context),
3476
+ body: await parseErrorBody(output.body, context),
3477
3477
  };
3478
3478
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3479
3479
  switch (errorCode) {
3480
- case "NoSuchEntityException":
3480
+ case "NoSuchEntity":
3481
3481
  case "com.amazonaws.iam#NoSuchEntityException":
3482
3482
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3483
- case "ServiceFailureException":
3483
+ case "ServiceFailure":
3484
3484
  case "com.amazonaws.iam#ServiceFailureException":
3485
3485
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3486
- case "UnmodifiableEntityException":
3486
+ case "UnmodifiableEntity":
3487
3487
  case "com.amazonaws.iam#UnmodifiableEntityException":
3488
3488
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
3489
3489
  default:
@@ -3510,20 +3510,20 @@ exports.deserializeAws_queryDeleteRolePolicyCommand = deserializeAws_queryDelete
3510
3510
  const deserializeAws_queryDeleteRolePolicyCommandError = async (output, context) => {
3511
3511
  const parsedOutput = {
3512
3512
  ...output,
3513
- body: await parseBody(output.body, context),
3513
+ body: await parseErrorBody(output.body, context),
3514
3514
  };
3515
3515
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3516
3516
  switch (errorCode) {
3517
- case "LimitExceededException":
3517
+ case "LimitExceeded":
3518
3518
  case "com.amazonaws.iam#LimitExceededException":
3519
3519
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3520
- case "NoSuchEntityException":
3520
+ case "NoSuchEntity":
3521
3521
  case "com.amazonaws.iam#NoSuchEntityException":
3522
3522
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3523
- case "ServiceFailureException":
3523
+ case "ServiceFailure":
3524
3524
  case "com.amazonaws.iam#ServiceFailureException":
3525
3525
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3526
- case "UnmodifiableEntityException":
3526
+ case "UnmodifiableEntity":
3527
3527
  case "com.amazonaws.iam#UnmodifiableEntityException":
3528
3528
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
3529
3529
  default:
@@ -3550,20 +3550,20 @@ exports.deserializeAws_queryDeleteSAMLProviderCommand = deserializeAws_queryDele
3550
3550
  const deserializeAws_queryDeleteSAMLProviderCommandError = async (output, context) => {
3551
3551
  const parsedOutput = {
3552
3552
  ...output,
3553
- body: await parseBody(output.body, context),
3553
+ body: await parseErrorBody(output.body, context),
3554
3554
  };
3555
3555
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3556
3556
  switch (errorCode) {
3557
- case "InvalidInputException":
3557
+ case "InvalidInput":
3558
3558
  case "com.amazonaws.iam#InvalidInputException":
3559
3559
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3560
- case "LimitExceededException":
3560
+ case "LimitExceeded":
3561
3561
  case "com.amazonaws.iam#LimitExceededException":
3562
3562
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3563
- case "NoSuchEntityException":
3563
+ case "NoSuchEntity":
3564
3564
  case "com.amazonaws.iam#NoSuchEntityException":
3565
3565
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3566
- case "ServiceFailureException":
3566
+ case "ServiceFailure":
3567
3567
  case "com.amazonaws.iam#ServiceFailureException":
3568
3568
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3569
3569
  default:
@@ -3590,20 +3590,20 @@ exports.deserializeAws_queryDeleteServerCertificateCommand = deserializeAws_quer
3590
3590
  const deserializeAws_queryDeleteServerCertificateCommandError = async (output, context) => {
3591
3591
  const parsedOutput = {
3592
3592
  ...output,
3593
- body: await parseBody(output.body, context),
3593
+ body: await parseErrorBody(output.body, context),
3594
3594
  };
3595
3595
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3596
3596
  switch (errorCode) {
3597
- case "DeleteConflictException":
3597
+ case "DeleteConflict":
3598
3598
  case "com.amazonaws.iam#DeleteConflictException":
3599
3599
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3600
- case "LimitExceededException":
3600
+ case "LimitExceeded":
3601
3601
  case "com.amazonaws.iam#LimitExceededException":
3602
3602
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3603
- case "NoSuchEntityException":
3603
+ case "NoSuchEntity":
3604
3604
  case "com.amazonaws.iam#NoSuchEntityException":
3605
3605
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3606
- case "ServiceFailureException":
3606
+ case "ServiceFailure":
3607
3607
  case "com.amazonaws.iam#ServiceFailureException":
3608
3608
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3609
3609
  default:
@@ -3633,17 +3633,17 @@ exports.deserializeAws_queryDeleteServiceLinkedRoleCommand = deserializeAws_quer
3633
3633
  const deserializeAws_queryDeleteServiceLinkedRoleCommandError = async (output, context) => {
3634
3634
  const parsedOutput = {
3635
3635
  ...output,
3636
- body: await parseBody(output.body, context),
3636
+ body: await parseErrorBody(output.body, context),
3637
3637
  };
3638
3638
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3639
3639
  switch (errorCode) {
3640
- case "LimitExceededException":
3640
+ case "LimitExceeded":
3641
3641
  case "com.amazonaws.iam#LimitExceededException":
3642
3642
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3643
- case "NoSuchEntityException":
3643
+ case "NoSuchEntity":
3644
3644
  case "com.amazonaws.iam#NoSuchEntityException":
3645
3645
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3646
- case "ServiceFailureException":
3646
+ case "ServiceFailure":
3647
3647
  case "com.amazonaws.iam#ServiceFailureException":
3648
3648
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3649
3649
  default:
@@ -3670,11 +3670,11 @@ exports.deserializeAws_queryDeleteServiceSpecificCredentialCommand = deserialize
3670
3670
  const deserializeAws_queryDeleteServiceSpecificCredentialCommandError = async (output, context) => {
3671
3671
  const parsedOutput = {
3672
3672
  ...output,
3673
- body: await parseBody(output.body, context),
3673
+ body: await parseErrorBody(output.body, context),
3674
3674
  };
3675
3675
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3676
3676
  switch (errorCode) {
3677
- case "NoSuchEntityException":
3677
+ case "NoSuchEntity":
3678
3678
  case "com.amazonaws.iam#NoSuchEntityException":
3679
3679
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3680
3680
  default:
@@ -3701,17 +3701,17 @@ exports.deserializeAws_queryDeleteSigningCertificateCommand = deserializeAws_que
3701
3701
  const deserializeAws_queryDeleteSigningCertificateCommandError = async (output, context) => {
3702
3702
  const parsedOutput = {
3703
3703
  ...output,
3704
- body: await parseBody(output.body, context),
3704
+ body: await parseErrorBody(output.body, context),
3705
3705
  };
3706
3706
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3707
3707
  switch (errorCode) {
3708
- case "LimitExceededException":
3708
+ case "LimitExceeded":
3709
3709
  case "com.amazonaws.iam#LimitExceededException":
3710
3710
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3711
- case "NoSuchEntityException":
3711
+ case "NoSuchEntity":
3712
3712
  case "com.amazonaws.iam#NoSuchEntityException":
3713
3713
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3714
- case "ServiceFailureException":
3714
+ case "ServiceFailure":
3715
3715
  case "com.amazonaws.iam#ServiceFailureException":
3716
3716
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3717
3717
  default:
@@ -3738,11 +3738,11 @@ exports.deserializeAws_queryDeleteSSHPublicKeyCommand = deserializeAws_queryDele
3738
3738
  const deserializeAws_queryDeleteSSHPublicKeyCommandError = async (output, context) => {
3739
3739
  const parsedOutput = {
3740
3740
  ...output,
3741
- body: await parseBody(output.body, context),
3741
+ body: await parseErrorBody(output.body, context),
3742
3742
  };
3743
3743
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3744
3744
  switch (errorCode) {
3745
- case "NoSuchEntityException":
3745
+ case "NoSuchEntity":
3746
3746
  case "com.amazonaws.iam#NoSuchEntityException":
3747
3747
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3748
3748
  default:
@@ -3769,23 +3769,23 @@ exports.deserializeAws_queryDeleteUserCommand = deserializeAws_queryDeleteUserCo
3769
3769
  const deserializeAws_queryDeleteUserCommandError = async (output, context) => {
3770
3770
  const parsedOutput = {
3771
3771
  ...output,
3772
- body: await parseBody(output.body, context),
3772
+ body: await parseErrorBody(output.body, context),
3773
3773
  };
3774
3774
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3775
3775
  switch (errorCode) {
3776
- case "ConcurrentModificationException":
3776
+ case "ConcurrentModification":
3777
3777
  case "com.amazonaws.iam#ConcurrentModificationException":
3778
3778
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
3779
- case "DeleteConflictException":
3779
+ case "DeleteConflict":
3780
3780
  case "com.amazonaws.iam#DeleteConflictException":
3781
3781
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3782
- case "LimitExceededException":
3782
+ case "LimitExceeded":
3783
3783
  case "com.amazonaws.iam#LimitExceededException":
3784
3784
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3785
- case "NoSuchEntityException":
3785
+ case "NoSuchEntity":
3786
3786
  case "com.amazonaws.iam#NoSuchEntityException":
3787
3787
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3788
- case "ServiceFailureException":
3788
+ case "ServiceFailure":
3789
3789
  case "com.amazonaws.iam#ServiceFailureException":
3790
3790
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3791
3791
  default:
@@ -3812,14 +3812,14 @@ exports.deserializeAws_queryDeleteUserPermissionsBoundaryCommand = deserializeAw
3812
3812
  const deserializeAws_queryDeleteUserPermissionsBoundaryCommandError = async (output, context) => {
3813
3813
  const parsedOutput = {
3814
3814
  ...output,
3815
- body: await parseBody(output.body, context),
3815
+ body: await parseErrorBody(output.body, context),
3816
3816
  };
3817
3817
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3818
3818
  switch (errorCode) {
3819
- case "NoSuchEntityException":
3819
+ case "NoSuchEntity":
3820
3820
  case "com.amazonaws.iam#NoSuchEntityException":
3821
3821
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3822
- case "ServiceFailureException":
3822
+ case "ServiceFailure":
3823
3823
  case "com.amazonaws.iam#ServiceFailureException":
3824
3824
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3825
3825
  default:
@@ -3846,17 +3846,17 @@ exports.deserializeAws_queryDeleteUserPolicyCommand = deserializeAws_queryDelete
3846
3846
  const deserializeAws_queryDeleteUserPolicyCommandError = async (output, context) => {
3847
3847
  const parsedOutput = {
3848
3848
  ...output,
3849
- body: await parseBody(output.body, context),
3849
+ body: await parseErrorBody(output.body, context),
3850
3850
  };
3851
3851
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3852
3852
  switch (errorCode) {
3853
- case "LimitExceededException":
3853
+ case "LimitExceeded":
3854
3854
  case "com.amazonaws.iam#LimitExceededException":
3855
3855
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3856
- case "NoSuchEntityException":
3856
+ case "NoSuchEntity":
3857
3857
  case "com.amazonaws.iam#NoSuchEntityException":
3858
3858
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3859
- case "ServiceFailureException":
3859
+ case "ServiceFailure":
3860
3860
  case "com.amazonaws.iam#ServiceFailureException":
3861
3861
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3862
3862
  default:
@@ -3883,20 +3883,20 @@ exports.deserializeAws_queryDeleteVirtualMFADeviceCommand = deserializeAws_query
3883
3883
  const deserializeAws_queryDeleteVirtualMFADeviceCommandError = async (output, context) => {
3884
3884
  const parsedOutput = {
3885
3885
  ...output,
3886
- body: await parseBody(output.body, context),
3886
+ body: await parseErrorBody(output.body, context),
3887
3887
  };
3888
3888
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3889
3889
  switch (errorCode) {
3890
- case "DeleteConflictException":
3890
+ case "DeleteConflict":
3891
3891
  case "com.amazonaws.iam#DeleteConflictException":
3892
3892
  throw await deserializeAws_queryDeleteConflictExceptionResponse(parsedOutput, context);
3893
- case "LimitExceededException":
3893
+ case "LimitExceeded":
3894
3894
  case "com.amazonaws.iam#LimitExceededException":
3895
3895
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3896
- case "NoSuchEntityException":
3896
+ case "NoSuchEntity":
3897
3897
  case "com.amazonaws.iam#NoSuchEntityException":
3898
3898
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3899
- case "ServiceFailureException":
3899
+ case "ServiceFailure":
3900
3900
  case "com.amazonaws.iam#ServiceFailureException":
3901
3901
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3902
3902
  default:
@@ -3923,20 +3923,20 @@ exports.deserializeAws_queryDetachGroupPolicyCommand = deserializeAws_queryDetac
3923
3923
  const deserializeAws_queryDetachGroupPolicyCommandError = async (output, context) => {
3924
3924
  const parsedOutput = {
3925
3925
  ...output,
3926
- body: await parseBody(output.body, context),
3926
+ body: await parseErrorBody(output.body, context),
3927
3927
  };
3928
3928
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3929
3929
  switch (errorCode) {
3930
- case "InvalidInputException":
3930
+ case "InvalidInput":
3931
3931
  case "com.amazonaws.iam#InvalidInputException":
3932
3932
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3933
- case "LimitExceededException":
3933
+ case "LimitExceeded":
3934
3934
  case "com.amazonaws.iam#LimitExceededException":
3935
3935
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3936
- case "NoSuchEntityException":
3936
+ case "NoSuchEntity":
3937
3937
  case "com.amazonaws.iam#NoSuchEntityException":
3938
3938
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3939
- case "ServiceFailureException":
3939
+ case "ServiceFailure":
3940
3940
  case "com.amazonaws.iam#ServiceFailureException":
3941
3941
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3942
3942
  default:
@@ -3963,23 +3963,23 @@ exports.deserializeAws_queryDetachRolePolicyCommand = deserializeAws_queryDetach
3963
3963
  const deserializeAws_queryDetachRolePolicyCommandError = async (output, context) => {
3964
3964
  const parsedOutput = {
3965
3965
  ...output,
3966
- body: await parseBody(output.body, context),
3966
+ body: await parseErrorBody(output.body, context),
3967
3967
  };
3968
3968
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3969
3969
  switch (errorCode) {
3970
- case "InvalidInputException":
3970
+ case "InvalidInput":
3971
3971
  case "com.amazonaws.iam#InvalidInputException":
3972
3972
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
3973
- case "LimitExceededException":
3973
+ case "LimitExceeded":
3974
3974
  case "com.amazonaws.iam#LimitExceededException":
3975
3975
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
3976
- case "NoSuchEntityException":
3976
+ case "NoSuchEntity":
3977
3977
  case "com.amazonaws.iam#NoSuchEntityException":
3978
3978
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
3979
- case "ServiceFailureException":
3979
+ case "ServiceFailure":
3980
3980
  case "com.amazonaws.iam#ServiceFailureException":
3981
3981
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
3982
- case "UnmodifiableEntityException":
3982
+ case "UnmodifiableEntity":
3983
3983
  case "com.amazonaws.iam#UnmodifiableEntityException":
3984
3984
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
3985
3985
  default:
@@ -4006,20 +4006,20 @@ exports.deserializeAws_queryDetachUserPolicyCommand = deserializeAws_queryDetach
4006
4006
  const deserializeAws_queryDetachUserPolicyCommandError = async (output, context) => {
4007
4007
  const parsedOutput = {
4008
4008
  ...output,
4009
- body: await parseBody(output.body, context),
4009
+ body: await parseErrorBody(output.body, context),
4010
4010
  };
4011
4011
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4012
4012
  switch (errorCode) {
4013
- case "InvalidInputException":
4013
+ case "InvalidInput":
4014
4014
  case "com.amazonaws.iam#InvalidInputException":
4015
4015
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4016
- case "LimitExceededException":
4016
+ case "LimitExceeded":
4017
4017
  case "com.amazonaws.iam#LimitExceededException":
4018
4018
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
4019
- case "NoSuchEntityException":
4019
+ case "NoSuchEntity":
4020
4020
  case "com.amazonaws.iam#NoSuchEntityException":
4021
4021
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4022
- case "ServiceFailureException":
4022
+ case "ServiceFailure":
4023
4023
  case "com.amazonaws.iam#ServiceFailureException":
4024
4024
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4025
4025
  default:
@@ -4046,26 +4046,26 @@ exports.deserializeAws_queryEnableMFADeviceCommand = deserializeAws_queryEnableM
4046
4046
  const deserializeAws_queryEnableMFADeviceCommandError = async (output, context) => {
4047
4047
  const parsedOutput = {
4048
4048
  ...output,
4049
- body: await parseBody(output.body, context),
4049
+ body: await parseErrorBody(output.body, context),
4050
4050
  };
4051
4051
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4052
4052
  switch (errorCode) {
4053
- case "EntityAlreadyExistsException":
4053
+ case "EntityAlreadyExists":
4054
4054
  case "com.amazonaws.iam#EntityAlreadyExistsException":
4055
4055
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
4056
- case "EntityTemporarilyUnmodifiableException":
4056
+ case "EntityTemporarilyUnmodifiable":
4057
4057
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
4058
4058
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
4059
- case "InvalidAuthenticationCodeException":
4059
+ case "InvalidAuthenticationCode":
4060
4060
  case "com.amazonaws.iam#InvalidAuthenticationCodeException":
4061
4061
  throw await deserializeAws_queryInvalidAuthenticationCodeExceptionResponse(parsedOutput, context);
4062
- case "LimitExceededException":
4062
+ case "LimitExceeded":
4063
4063
  case "com.amazonaws.iam#LimitExceededException":
4064
4064
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
4065
- case "NoSuchEntityException":
4065
+ case "NoSuchEntity":
4066
4066
  case "com.amazonaws.iam#NoSuchEntityException":
4067
4067
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4068
- case "ServiceFailureException":
4068
+ case "ServiceFailure":
4069
4069
  case "com.amazonaws.iam#ServiceFailureException":
4070
4070
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4071
4071
  default:
@@ -4095,14 +4095,14 @@ exports.deserializeAws_queryGenerateCredentialReportCommand = deserializeAws_que
4095
4095
  const deserializeAws_queryGenerateCredentialReportCommandError = async (output, context) => {
4096
4096
  const parsedOutput = {
4097
4097
  ...output,
4098
- body: await parseBody(output.body, context),
4098
+ body: await parseErrorBody(output.body, context),
4099
4099
  };
4100
4100
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4101
4101
  switch (errorCode) {
4102
- case "LimitExceededException":
4102
+ case "LimitExceeded":
4103
4103
  case "com.amazonaws.iam#LimitExceededException":
4104
4104
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
4105
- case "ServiceFailureException":
4105
+ case "ServiceFailure":
4106
4106
  case "com.amazonaws.iam#ServiceFailureException":
4107
4107
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4108
4108
  default:
@@ -4132,11 +4132,11 @@ exports.deserializeAws_queryGenerateOrganizationsAccessReportCommand = deseriali
4132
4132
  const deserializeAws_queryGenerateOrganizationsAccessReportCommandError = async (output, context) => {
4133
4133
  const parsedOutput = {
4134
4134
  ...output,
4135
- body: await parseBody(output.body, context),
4135
+ body: await parseErrorBody(output.body, context),
4136
4136
  };
4137
4137
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4138
4138
  switch (errorCode) {
4139
- case "ReportGenerationLimitExceededException":
4139
+ case "ReportGenerationLimitExceeded":
4140
4140
  case "com.amazonaws.iam#ReportGenerationLimitExceededException":
4141
4141
  throw await deserializeAws_queryReportGenerationLimitExceededExceptionResponse(parsedOutput, context);
4142
4142
  default:
@@ -4166,14 +4166,14 @@ exports.deserializeAws_queryGenerateServiceLastAccessedDetailsCommand = deserial
4166
4166
  const deserializeAws_queryGenerateServiceLastAccessedDetailsCommandError = async (output, context) => {
4167
4167
  const parsedOutput = {
4168
4168
  ...output,
4169
- body: await parseBody(output.body, context),
4169
+ body: await parseErrorBody(output.body, context),
4170
4170
  };
4171
4171
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4172
4172
  switch (errorCode) {
4173
- case "InvalidInputException":
4173
+ case "InvalidInput":
4174
4174
  case "com.amazonaws.iam#InvalidInputException":
4175
4175
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4176
- case "NoSuchEntityException":
4176
+ case "NoSuchEntity":
4177
4177
  case "com.amazonaws.iam#NoSuchEntityException":
4178
4178
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4179
4179
  default:
@@ -4203,11 +4203,11 @@ exports.deserializeAws_queryGetAccessKeyLastUsedCommand = deserializeAws_queryGe
4203
4203
  const deserializeAws_queryGetAccessKeyLastUsedCommandError = async (output, context) => {
4204
4204
  const parsedOutput = {
4205
4205
  ...output,
4206
- body: await parseBody(output.body, context),
4206
+ body: await parseErrorBody(output.body, context),
4207
4207
  };
4208
4208
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4209
4209
  switch (errorCode) {
4210
- case "NoSuchEntityException":
4210
+ case "NoSuchEntity":
4211
4211
  case "com.amazonaws.iam#NoSuchEntityException":
4212
4212
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4213
4213
  default:
@@ -4237,11 +4237,11 @@ exports.deserializeAws_queryGetAccountAuthorizationDetailsCommand = deserializeA
4237
4237
  const deserializeAws_queryGetAccountAuthorizationDetailsCommandError = async (output, context) => {
4238
4238
  const parsedOutput = {
4239
4239
  ...output,
4240
- body: await parseBody(output.body, context),
4240
+ body: await parseErrorBody(output.body, context),
4241
4241
  };
4242
4242
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4243
4243
  switch (errorCode) {
4244
- case "ServiceFailureException":
4244
+ case "ServiceFailure":
4245
4245
  case "com.amazonaws.iam#ServiceFailureException":
4246
4246
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4247
4247
  default:
@@ -4271,14 +4271,14 @@ exports.deserializeAws_queryGetAccountPasswordPolicyCommand = deserializeAws_que
4271
4271
  const deserializeAws_queryGetAccountPasswordPolicyCommandError = async (output, context) => {
4272
4272
  const parsedOutput = {
4273
4273
  ...output,
4274
- body: await parseBody(output.body, context),
4274
+ body: await parseErrorBody(output.body, context),
4275
4275
  };
4276
4276
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4277
4277
  switch (errorCode) {
4278
- case "NoSuchEntityException":
4278
+ case "NoSuchEntity":
4279
4279
  case "com.amazonaws.iam#NoSuchEntityException":
4280
4280
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4281
- case "ServiceFailureException":
4281
+ case "ServiceFailure":
4282
4282
  case "com.amazonaws.iam#ServiceFailureException":
4283
4283
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4284
4284
  default:
@@ -4308,11 +4308,11 @@ exports.deserializeAws_queryGetAccountSummaryCommand = deserializeAws_queryGetAc
4308
4308
  const deserializeAws_queryGetAccountSummaryCommandError = async (output, context) => {
4309
4309
  const parsedOutput = {
4310
4310
  ...output,
4311
- body: await parseBody(output.body, context),
4311
+ body: await parseErrorBody(output.body, context),
4312
4312
  };
4313
4313
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4314
4314
  switch (errorCode) {
4315
- case "ServiceFailureException":
4315
+ case "ServiceFailure":
4316
4316
  case "com.amazonaws.iam#ServiceFailureException":
4317
4317
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4318
4318
  default:
@@ -4342,11 +4342,11 @@ exports.deserializeAws_queryGetContextKeysForCustomPolicyCommand = deserializeAw
4342
4342
  const deserializeAws_queryGetContextKeysForCustomPolicyCommandError = async (output, context) => {
4343
4343
  const parsedOutput = {
4344
4344
  ...output,
4345
- body: await parseBody(output.body, context),
4345
+ body: await parseErrorBody(output.body, context),
4346
4346
  };
4347
4347
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4348
4348
  switch (errorCode) {
4349
- case "InvalidInputException":
4349
+ case "InvalidInput":
4350
4350
  case "com.amazonaws.iam#InvalidInputException":
4351
4351
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4352
4352
  default:
@@ -4376,14 +4376,14 @@ exports.deserializeAws_queryGetContextKeysForPrincipalPolicyCommand = deserializ
4376
4376
  const deserializeAws_queryGetContextKeysForPrincipalPolicyCommandError = async (output, context) => {
4377
4377
  const parsedOutput = {
4378
4378
  ...output,
4379
- body: await parseBody(output.body, context),
4379
+ body: await parseErrorBody(output.body, context),
4380
4380
  };
4381
4381
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4382
4382
  switch (errorCode) {
4383
- case "InvalidInputException":
4383
+ case "InvalidInput":
4384
4384
  case "com.amazonaws.iam#InvalidInputException":
4385
4385
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4386
- case "NoSuchEntityException":
4386
+ case "NoSuchEntity":
4387
4387
  case "com.amazonaws.iam#NoSuchEntityException":
4388
4388
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4389
4389
  default:
@@ -4413,20 +4413,20 @@ exports.deserializeAws_queryGetCredentialReportCommand = deserializeAws_queryGet
4413
4413
  const deserializeAws_queryGetCredentialReportCommandError = async (output, context) => {
4414
4414
  const parsedOutput = {
4415
4415
  ...output,
4416
- body: await parseBody(output.body, context),
4416
+ body: await parseErrorBody(output.body, context),
4417
4417
  };
4418
4418
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4419
4419
  switch (errorCode) {
4420
- case "CredentialReportExpiredException":
4420
+ case "ReportExpired":
4421
4421
  case "com.amazonaws.iam#CredentialReportExpiredException":
4422
4422
  throw await deserializeAws_queryCredentialReportExpiredExceptionResponse(parsedOutput, context);
4423
- case "CredentialReportNotPresentException":
4424
- case "com.amazonaws.iam#CredentialReportNotPresentException":
4425
- throw await deserializeAws_queryCredentialReportNotPresentExceptionResponse(parsedOutput, context);
4426
- case "CredentialReportNotReadyException":
4423
+ case "ReportInProgress":
4427
4424
  case "com.amazonaws.iam#CredentialReportNotReadyException":
4428
4425
  throw await deserializeAws_queryCredentialReportNotReadyExceptionResponse(parsedOutput, context);
4429
- case "ServiceFailureException":
4426
+ case "ReportNotPresent":
4427
+ case "com.amazonaws.iam#CredentialReportNotPresentException":
4428
+ throw await deserializeAws_queryCredentialReportNotPresentExceptionResponse(parsedOutput, context);
4429
+ case "ServiceFailure":
4430
4430
  case "com.amazonaws.iam#ServiceFailureException":
4431
4431
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4432
4432
  default:
@@ -4456,14 +4456,14 @@ exports.deserializeAws_queryGetGroupCommand = deserializeAws_queryGetGroupComman
4456
4456
  const deserializeAws_queryGetGroupCommandError = async (output, context) => {
4457
4457
  const parsedOutput = {
4458
4458
  ...output,
4459
- body: await parseBody(output.body, context),
4459
+ body: await parseErrorBody(output.body, context),
4460
4460
  };
4461
4461
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4462
4462
  switch (errorCode) {
4463
- case "NoSuchEntityException":
4463
+ case "NoSuchEntity":
4464
4464
  case "com.amazonaws.iam#NoSuchEntityException":
4465
4465
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4466
- case "ServiceFailureException":
4466
+ case "ServiceFailure":
4467
4467
  case "com.amazonaws.iam#ServiceFailureException":
4468
4468
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4469
4469
  default:
@@ -4493,14 +4493,14 @@ exports.deserializeAws_queryGetGroupPolicyCommand = deserializeAws_queryGetGroup
4493
4493
  const deserializeAws_queryGetGroupPolicyCommandError = async (output, context) => {
4494
4494
  const parsedOutput = {
4495
4495
  ...output,
4496
- body: await parseBody(output.body, context),
4496
+ body: await parseErrorBody(output.body, context),
4497
4497
  };
4498
4498
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4499
4499
  switch (errorCode) {
4500
- case "NoSuchEntityException":
4500
+ case "NoSuchEntity":
4501
4501
  case "com.amazonaws.iam#NoSuchEntityException":
4502
4502
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4503
- case "ServiceFailureException":
4503
+ case "ServiceFailure":
4504
4504
  case "com.amazonaws.iam#ServiceFailureException":
4505
4505
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4506
4506
  default:
@@ -4530,14 +4530,14 @@ exports.deserializeAws_queryGetInstanceProfileCommand = deserializeAws_queryGetI
4530
4530
  const deserializeAws_queryGetInstanceProfileCommandError = async (output, context) => {
4531
4531
  const parsedOutput = {
4532
4532
  ...output,
4533
- body: await parseBody(output.body, context),
4533
+ body: await parseErrorBody(output.body, context),
4534
4534
  };
4535
4535
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4536
4536
  switch (errorCode) {
4537
- case "NoSuchEntityException":
4537
+ case "NoSuchEntity":
4538
4538
  case "com.amazonaws.iam#NoSuchEntityException":
4539
4539
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4540
- case "ServiceFailureException":
4540
+ case "ServiceFailure":
4541
4541
  case "com.amazonaws.iam#ServiceFailureException":
4542
4542
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4543
4543
  default:
@@ -4567,14 +4567,14 @@ exports.deserializeAws_queryGetLoginProfileCommand = deserializeAws_queryGetLogi
4567
4567
  const deserializeAws_queryGetLoginProfileCommandError = async (output, context) => {
4568
4568
  const parsedOutput = {
4569
4569
  ...output,
4570
- body: await parseBody(output.body, context),
4570
+ body: await parseErrorBody(output.body, context),
4571
4571
  };
4572
4572
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4573
4573
  switch (errorCode) {
4574
- case "NoSuchEntityException":
4574
+ case "NoSuchEntity":
4575
4575
  case "com.amazonaws.iam#NoSuchEntityException":
4576
4576
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4577
- case "ServiceFailureException":
4577
+ case "ServiceFailure":
4578
4578
  case "com.amazonaws.iam#ServiceFailureException":
4579
4579
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4580
4580
  default:
@@ -4604,17 +4604,17 @@ exports.deserializeAws_queryGetOpenIDConnectProviderCommand = deserializeAws_que
4604
4604
  const deserializeAws_queryGetOpenIDConnectProviderCommandError = async (output, context) => {
4605
4605
  const parsedOutput = {
4606
4606
  ...output,
4607
- body: await parseBody(output.body, context),
4607
+ body: await parseErrorBody(output.body, context),
4608
4608
  };
4609
4609
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4610
4610
  switch (errorCode) {
4611
- case "InvalidInputException":
4611
+ case "InvalidInput":
4612
4612
  case "com.amazonaws.iam#InvalidInputException":
4613
4613
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4614
- case "NoSuchEntityException":
4614
+ case "NoSuchEntity":
4615
4615
  case "com.amazonaws.iam#NoSuchEntityException":
4616
4616
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4617
- case "ServiceFailureException":
4617
+ case "ServiceFailure":
4618
4618
  case "com.amazonaws.iam#ServiceFailureException":
4619
4619
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4620
4620
  default:
@@ -4644,11 +4644,11 @@ exports.deserializeAws_queryGetOrganizationsAccessReportCommand = deserializeAws
4644
4644
  const deserializeAws_queryGetOrganizationsAccessReportCommandError = async (output, context) => {
4645
4645
  const parsedOutput = {
4646
4646
  ...output,
4647
- body: await parseBody(output.body, context),
4647
+ body: await parseErrorBody(output.body, context),
4648
4648
  };
4649
4649
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4650
4650
  switch (errorCode) {
4651
- case "NoSuchEntityException":
4651
+ case "NoSuchEntity":
4652
4652
  case "com.amazonaws.iam#NoSuchEntityException":
4653
4653
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4654
4654
  default:
@@ -4678,17 +4678,17 @@ exports.deserializeAws_queryGetPolicyCommand = deserializeAws_queryGetPolicyComm
4678
4678
  const deserializeAws_queryGetPolicyCommandError = async (output, context) => {
4679
4679
  const parsedOutput = {
4680
4680
  ...output,
4681
- body: await parseBody(output.body, context),
4681
+ body: await parseErrorBody(output.body, context),
4682
4682
  };
4683
4683
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4684
4684
  switch (errorCode) {
4685
- case "InvalidInputException":
4685
+ case "InvalidInput":
4686
4686
  case "com.amazonaws.iam#InvalidInputException":
4687
4687
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4688
- case "NoSuchEntityException":
4688
+ case "NoSuchEntity":
4689
4689
  case "com.amazonaws.iam#NoSuchEntityException":
4690
4690
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4691
- case "ServiceFailureException":
4691
+ case "ServiceFailure":
4692
4692
  case "com.amazonaws.iam#ServiceFailureException":
4693
4693
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4694
4694
  default:
@@ -4718,17 +4718,17 @@ exports.deserializeAws_queryGetPolicyVersionCommand = deserializeAws_queryGetPol
4718
4718
  const deserializeAws_queryGetPolicyVersionCommandError = async (output, context) => {
4719
4719
  const parsedOutput = {
4720
4720
  ...output,
4721
- body: await parseBody(output.body, context),
4721
+ body: await parseErrorBody(output.body, context),
4722
4722
  };
4723
4723
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4724
4724
  switch (errorCode) {
4725
- case "InvalidInputException":
4725
+ case "InvalidInput":
4726
4726
  case "com.amazonaws.iam#InvalidInputException":
4727
4727
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4728
- case "NoSuchEntityException":
4728
+ case "NoSuchEntity":
4729
4729
  case "com.amazonaws.iam#NoSuchEntityException":
4730
4730
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4731
- case "ServiceFailureException":
4731
+ case "ServiceFailure":
4732
4732
  case "com.amazonaws.iam#ServiceFailureException":
4733
4733
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4734
4734
  default:
@@ -4758,14 +4758,14 @@ exports.deserializeAws_queryGetRoleCommand = deserializeAws_queryGetRoleCommand;
4758
4758
  const deserializeAws_queryGetRoleCommandError = async (output, context) => {
4759
4759
  const parsedOutput = {
4760
4760
  ...output,
4761
- body: await parseBody(output.body, context),
4761
+ body: await parseErrorBody(output.body, context),
4762
4762
  };
4763
4763
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4764
4764
  switch (errorCode) {
4765
- case "NoSuchEntityException":
4765
+ case "NoSuchEntity":
4766
4766
  case "com.amazonaws.iam#NoSuchEntityException":
4767
4767
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4768
- case "ServiceFailureException":
4768
+ case "ServiceFailure":
4769
4769
  case "com.amazonaws.iam#ServiceFailureException":
4770
4770
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4771
4771
  default:
@@ -4795,14 +4795,14 @@ exports.deserializeAws_queryGetRolePolicyCommand = deserializeAws_queryGetRolePo
4795
4795
  const deserializeAws_queryGetRolePolicyCommandError = async (output, context) => {
4796
4796
  const parsedOutput = {
4797
4797
  ...output,
4798
- body: await parseBody(output.body, context),
4798
+ body: await parseErrorBody(output.body, context),
4799
4799
  };
4800
4800
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4801
4801
  switch (errorCode) {
4802
- case "NoSuchEntityException":
4802
+ case "NoSuchEntity":
4803
4803
  case "com.amazonaws.iam#NoSuchEntityException":
4804
4804
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4805
- case "ServiceFailureException":
4805
+ case "ServiceFailure":
4806
4806
  case "com.amazonaws.iam#ServiceFailureException":
4807
4807
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4808
4808
  default:
@@ -4832,17 +4832,17 @@ exports.deserializeAws_queryGetSAMLProviderCommand = deserializeAws_queryGetSAML
4832
4832
  const deserializeAws_queryGetSAMLProviderCommandError = async (output, context) => {
4833
4833
  const parsedOutput = {
4834
4834
  ...output,
4835
- body: await parseBody(output.body, context),
4835
+ body: await parseErrorBody(output.body, context),
4836
4836
  };
4837
4837
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4838
4838
  switch (errorCode) {
4839
- case "InvalidInputException":
4839
+ case "InvalidInput":
4840
4840
  case "com.amazonaws.iam#InvalidInputException":
4841
4841
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4842
- case "NoSuchEntityException":
4842
+ case "NoSuchEntity":
4843
4843
  case "com.amazonaws.iam#NoSuchEntityException":
4844
4844
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4845
- case "ServiceFailureException":
4845
+ case "ServiceFailure":
4846
4846
  case "com.amazonaws.iam#ServiceFailureException":
4847
4847
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4848
4848
  default:
@@ -4872,14 +4872,14 @@ exports.deserializeAws_queryGetServerCertificateCommand = deserializeAws_queryGe
4872
4872
  const deserializeAws_queryGetServerCertificateCommandError = async (output, context) => {
4873
4873
  const parsedOutput = {
4874
4874
  ...output,
4875
- body: await parseBody(output.body, context),
4875
+ body: await parseErrorBody(output.body, context),
4876
4876
  };
4877
4877
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4878
4878
  switch (errorCode) {
4879
- case "NoSuchEntityException":
4879
+ case "NoSuchEntity":
4880
4880
  case "com.amazonaws.iam#NoSuchEntityException":
4881
4881
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4882
- case "ServiceFailureException":
4882
+ case "ServiceFailure":
4883
4883
  case "com.amazonaws.iam#ServiceFailureException":
4884
4884
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4885
4885
  default:
@@ -4909,14 +4909,14 @@ exports.deserializeAws_queryGetServiceLastAccessedDetailsCommand = deserializeAw
4909
4909
  const deserializeAws_queryGetServiceLastAccessedDetailsCommandError = async (output, context) => {
4910
4910
  const parsedOutput = {
4911
4911
  ...output,
4912
- body: await parseBody(output.body, context),
4912
+ body: await parseErrorBody(output.body, context),
4913
4913
  };
4914
4914
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4915
4915
  switch (errorCode) {
4916
- case "InvalidInputException":
4916
+ case "InvalidInput":
4917
4917
  case "com.amazonaws.iam#InvalidInputException":
4918
4918
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4919
- case "NoSuchEntityException":
4919
+ case "NoSuchEntity":
4920
4920
  case "com.amazonaws.iam#NoSuchEntityException":
4921
4921
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4922
4922
  default:
@@ -4946,14 +4946,14 @@ exports.deserializeAws_queryGetServiceLastAccessedDetailsWithEntitiesCommand = d
4946
4946
  const deserializeAws_queryGetServiceLastAccessedDetailsWithEntitiesCommandError = async (output, context) => {
4947
4947
  const parsedOutput = {
4948
4948
  ...output,
4949
- body: await parseBody(output.body, context),
4949
+ body: await parseErrorBody(output.body, context),
4950
4950
  };
4951
4951
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4952
4952
  switch (errorCode) {
4953
- case "InvalidInputException":
4953
+ case "InvalidInput":
4954
4954
  case "com.amazonaws.iam#InvalidInputException":
4955
4955
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4956
- case "NoSuchEntityException":
4956
+ case "NoSuchEntity":
4957
4957
  case "com.amazonaws.iam#NoSuchEntityException":
4958
4958
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4959
4959
  default:
@@ -4983,17 +4983,17 @@ exports.deserializeAws_queryGetServiceLinkedRoleDeletionStatusCommand = deserial
4983
4983
  const deserializeAws_queryGetServiceLinkedRoleDeletionStatusCommandError = async (output, context) => {
4984
4984
  const parsedOutput = {
4985
4985
  ...output,
4986
- body: await parseBody(output.body, context),
4986
+ body: await parseErrorBody(output.body, context),
4987
4987
  };
4988
4988
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4989
4989
  switch (errorCode) {
4990
- case "InvalidInputException":
4990
+ case "InvalidInput":
4991
4991
  case "com.amazonaws.iam#InvalidInputException":
4992
4992
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
4993
- case "NoSuchEntityException":
4993
+ case "NoSuchEntity":
4994
4994
  case "com.amazonaws.iam#NoSuchEntityException":
4995
4995
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
4996
- case "ServiceFailureException":
4996
+ case "ServiceFailure":
4997
4997
  case "com.amazonaws.iam#ServiceFailureException":
4998
4998
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
4999
4999
  default:
@@ -5023,14 +5023,14 @@ exports.deserializeAws_queryGetSSHPublicKeyCommand = deserializeAws_queryGetSSHP
5023
5023
  const deserializeAws_queryGetSSHPublicKeyCommandError = async (output, context) => {
5024
5024
  const parsedOutput = {
5025
5025
  ...output,
5026
- body: await parseBody(output.body, context),
5026
+ body: await parseErrorBody(output.body, context),
5027
5027
  };
5028
5028
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5029
5029
  switch (errorCode) {
5030
- case "NoSuchEntityException":
5030
+ case "NoSuchEntity":
5031
5031
  case "com.amazonaws.iam#NoSuchEntityException":
5032
5032
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5033
- case "UnrecognizedPublicKeyEncodingException":
5033
+ case "UnrecognizedPublicKeyEncoding":
5034
5034
  case "com.amazonaws.iam#UnrecognizedPublicKeyEncodingException":
5035
5035
  throw await deserializeAws_queryUnrecognizedPublicKeyEncodingExceptionResponse(parsedOutput, context);
5036
5036
  default:
@@ -5060,14 +5060,14 @@ exports.deserializeAws_queryGetUserCommand = deserializeAws_queryGetUserCommand;
5060
5060
  const deserializeAws_queryGetUserCommandError = async (output, context) => {
5061
5061
  const parsedOutput = {
5062
5062
  ...output,
5063
- body: await parseBody(output.body, context),
5063
+ body: await parseErrorBody(output.body, context),
5064
5064
  };
5065
5065
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5066
5066
  switch (errorCode) {
5067
- case "NoSuchEntityException":
5067
+ case "NoSuchEntity":
5068
5068
  case "com.amazonaws.iam#NoSuchEntityException":
5069
5069
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5070
- case "ServiceFailureException":
5070
+ case "ServiceFailure":
5071
5071
  case "com.amazonaws.iam#ServiceFailureException":
5072
5072
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5073
5073
  default:
@@ -5097,14 +5097,14 @@ exports.deserializeAws_queryGetUserPolicyCommand = deserializeAws_queryGetUserPo
5097
5097
  const deserializeAws_queryGetUserPolicyCommandError = async (output, context) => {
5098
5098
  const parsedOutput = {
5099
5099
  ...output,
5100
- body: await parseBody(output.body, context),
5100
+ body: await parseErrorBody(output.body, context),
5101
5101
  };
5102
5102
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5103
5103
  switch (errorCode) {
5104
- case "NoSuchEntityException":
5104
+ case "NoSuchEntity":
5105
5105
  case "com.amazonaws.iam#NoSuchEntityException":
5106
5106
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5107
- case "ServiceFailureException":
5107
+ case "ServiceFailure":
5108
5108
  case "com.amazonaws.iam#ServiceFailureException":
5109
5109
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5110
5110
  default:
@@ -5134,14 +5134,14 @@ exports.deserializeAws_queryListAccessKeysCommand = deserializeAws_queryListAcce
5134
5134
  const deserializeAws_queryListAccessKeysCommandError = async (output, context) => {
5135
5135
  const parsedOutput = {
5136
5136
  ...output,
5137
- body: await parseBody(output.body, context),
5137
+ body: await parseErrorBody(output.body, context),
5138
5138
  };
5139
5139
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5140
5140
  switch (errorCode) {
5141
- case "NoSuchEntityException":
5141
+ case "NoSuchEntity":
5142
5142
  case "com.amazonaws.iam#NoSuchEntityException":
5143
5143
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5144
- case "ServiceFailureException":
5144
+ case "ServiceFailure":
5145
5145
  case "com.amazonaws.iam#ServiceFailureException":
5146
5146
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5147
5147
  default:
@@ -5171,11 +5171,11 @@ exports.deserializeAws_queryListAccountAliasesCommand = deserializeAws_queryList
5171
5171
  const deserializeAws_queryListAccountAliasesCommandError = async (output, context) => {
5172
5172
  const parsedOutput = {
5173
5173
  ...output,
5174
- body: await parseBody(output.body, context),
5174
+ body: await parseErrorBody(output.body, context),
5175
5175
  };
5176
5176
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5177
5177
  switch (errorCode) {
5178
- case "ServiceFailureException":
5178
+ case "ServiceFailure":
5179
5179
  case "com.amazonaws.iam#ServiceFailureException":
5180
5180
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5181
5181
  default:
@@ -5205,17 +5205,17 @@ exports.deserializeAws_queryListAttachedGroupPoliciesCommand = deserializeAws_qu
5205
5205
  const deserializeAws_queryListAttachedGroupPoliciesCommandError = async (output, context) => {
5206
5206
  const parsedOutput = {
5207
5207
  ...output,
5208
- body: await parseBody(output.body, context),
5208
+ body: await parseErrorBody(output.body, context),
5209
5209
  };
5210
5210
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5211
5211
  switch (errorCode) {
5212
- case "InvalidInputException":
5212
+ case "InvalidInput":
5213
5213
  case "com.amazonaws.iam#InvalidInputException":
5214
5214
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5215
- case "NoSuchEntityException":
5215
+ case "NoSuchEntity":
5216
5216
  case "com.amazonaws.iam#NoSuchEntityException":
5217
5217
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5218
- case "ServiceFailureException":
5218
+ case "ServiceFailure":
5219
5219
  case "com.amazonaws.iam#ServiceFailureException":
5220
5220
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5221
5221
  default:
@@ -5245,17 +5245,17 @@ exports.deserializeAws_queryListAttachedRolePoliciesCommand = deserializeAws_que
5245
5245
  const deserializeAws_queryListAttachedRolePoliciesCommandError = async (output, context) => {
5246
5246
  const parsedOutput = {
5247
5247
  ...output,
5248
- body: await parseBody(output.body, context),
5248
+ body: await parseErrorBody(output.body, context),
5249
5249
  };
5250
5250
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5251
5251
  switch (errorCode) {
5252
- case "InvalidInputException":
5252
+ case "InvalidInput":
5253
5253
  case "com.amazonaws.iam#InvalidInputException":
5254
5254
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5255
- case "NoSuchEntityException":
5255
+ case "NoSuchEntity":
5256
5256
  case "com.amazonaws.iam#NoSuchEntityException":
5257
5257
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5258
- case "ServiceFailureException":
5258
+ case "ServiceFailure":
5259
5259
  case "com.amazonaws.iam#ServiceFailureException":
5260
5260
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5261
5261
  default:
@@ -5285,17 +5285,17 @@ exports.deserializeAws_queryListAttachedUserPoliciesCommand = deserializeAws_que
5285
5285
  const deserializeAws_queryListAttachedUserPoliciesCommandError = async (output, context) => {
5286
5286
  const parsedOutput = {
5287
5287
  ...output,
5288
- body: await parseBody(output.body, context),
5288
+ body: await parseErrorBody(output.body, context),
5289
5289
  };
5290
5290
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5291
5291
  switch (errorCode) {
5292
- case "InvalidInputException":
5292
+ case "InvalidInput":
5293
5293
  case "com.amazonaws.iam#InvalidInputException":
5294
5294
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5295
- case "NoSuchEntityException":
5295
+ case "NoSuchEntity":
5296
5296
  case "com.amazonaws.iam#NoSuchEntityException":
5297
5297
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5298
- case "ServiceFailureException":
5298
+ case "ServiceFailure":
5299
5299
  case "com.amazonaws.iam#ServiceFailureException":
5300
5300
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5301
5301
  default:
@@ -5325,17 +5325,17 @@ exports.deserializeAws_queryListEntitiesForPolicyCommand = deserializeAws_queryL
5325
5325
  const deserializeAws_queryListEntitiesForPolicyCommandError = async (output, context) => {
5326
5326
  const parsedOutput = {
5327
5327
  ...output,
5328
- body: await parseBody(output.body, context),
5328
+ body: await parseErrorBody(output.body, context),
5329
5329
  };
5330
5330
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5331
5331
  switch (errorCode) {
5332
- case "InvalidInputException":
5332
+ case "InvalidInput":
5333
5333
  case "com.amazonaws.iam#InvalidInputException":
5334
5334
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5335
- case "NoSuchEntityException":
5335
+ case "NoSuchEntity":
5336
5336
  case "com.amazonaws.iam#NoSuchEntityException":
5337
5337
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5338
- case "ServiceFailureException":
5338
+ case "ServiceFailure":
5339
5339
  case "com.amazonaws.iam#ServiceFailureException":
5340
5340
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5341
5341
  default:
@@ -5365,14 +5365,14 @@ exports.deserializeAws_queryListGroupPoliciesCommand = deserializeAws_queryListG
5365
5365
  const deserializeAws_queryListGroupPoliciesCommandError = async (output, context) => {
5366
5366
  const parsedOutput = {
5367
5367
  ...output,
5368
- body: await parseBody(output.body, context),
5368
+ body: await parseErrorBody(output.body, context),
5369
5369
  };
5370
5370
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5371
5371
  switch (errorCode) {
5372
- case "NoSuchEntityException":
5372
+ case "NoSuchEntity":
5373
5373
  case "com.amazonaws.iam#NoSuchEntityException":
5374
5374
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5375
- case "ServiceFailureException":
5375
+ case "ServiceFailure":
5376
5376
  case "com.amazonaws.iam#ServiceFailureException":
5377
5377
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5378
5378
  default:
@@ -5402,11 +5402,11 @@ exports.deserializeAws_queryListGroupsCommand = deserializeAws_queryListGroupsCo
5402
5402
  const deserializeAws_queryListGroupsCommandError = async (output, context) => {
5403
5403
  const parsedOutput = {
5404
5404
  ...output,
5405
- body: await parseBody(output.body, context),
5405
+ body: await parseErrorBody(output.body, context),
5406
5406
  };
5407
5407
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5408
5408
  switch (errorCode) {
5409
- case "ServiceFailureException":
5409
+ case "ServiceFailure":
5410
5410
  case "com.amazonaws.iam#ServiceFailureException":
5411
5411
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5412
5412
  default:
@@ -5436,14 +5436,14 @@ exports.deserializeAws_queryListGroupsForUserCommand = deserializeAws_queryListG
5436
5436
  const deserializeAws_queryListGroupsForUserCommandError = async (output, context) => {
5437
5437
  const parsedOutput = {
5438
5438
  ...output,
5439
- body: await parseBody(output.body, context),
5439
+ body: await parseErrorBody(output.body, context),
5440
5440
  };
5441
5441
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5442
5442
  switch (errorCode) {
5443
- case "NoSuchEntityException":
5443
+ case "NoSuchEntity":
5444
5444
  case "com.amazonaws.iam#NoSuchEntityException":
5445
5445
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5446
- case "ServiceFailureException":
5446
+ case "ServiceFailure":
5447
5447
  case "com.amazonaws.iam#ServiceFailureException":
5448
5448
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5449
5449
  default:
@@ -5473,11 +5473,11 @@ exports.deserializeAws_queryListInstanceProfilesCommand = deserializeAws_queryLi
5473
5473
  const deserializeAws_queryListInstanceProfilesCommandError = async (output, context) => {
5474
5474
  const parsedOutput = {
5475
5475
  ...output,
5476
- body: await parseBody(output.body, context),
5476
+ body: await parseErrorBody(output.body, context),
5477
5477
  };
5478
5478
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5479
5479
  switch (errorCode) {
5480
- case "ServiceFailureException":
5480
+ case "ServiceFailure":
5481
5481
  case "com.amazonaws.iam#ServiceFailureException":
5482
5482
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5483
5483
  default:
@@ -5507,14 +5507,14 @@ exports.deserializeAws_queryListInstanceProfilesForRoleCommand = deserializeAws_
5507
5507
  const deserializeAws_queryListInstanceProfilesForRoleCommandError = async (output, context) => {
5508
5508
  const parsedOutput = {
5509
5509
  ...output,
5510
- body: await parseBody(output.body, context),
5510
+ body: await parseErrorBody(output.body, context),
5511
5511
  };
5512
5512
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5513
5513
  switch (errorCode) {
5514
- case "NoSuchEntityException":
5514
+ case "NoSuchEntity":
5515
5515
  case "com.amazonaws.iam#NoSuchEntityException":
5516
5516
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5517
- case "ServiceFailureException":
5517
+ case "ServiceFailure":
5518
5518
  case "com.amazonaws.iam#ServiceFailureException":
5519
5519
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5520
5520
  default:
@@ -5544,14 +5544,14 @@ exports.deserializeAws_queryListInstanceProfileTagsCommand = deserializeAws_quer
5544
5544
  const deserializeAws_queryListInstanceProfileTagsCommandError = async (output, context) => {
5545
5545
  const parsedOutput = {
5546
5546
  ...output,
5547
- body: await parseBody(output.body, context),
5547
+ body: await parseErrorBody(output.body, context),
5548
5548
  };
5549
5549
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5550
5550
  switch (errorCode) {
5551
- case "NoSuchEntityException":
5551
+ case "NoSuchEntity":
5552
5552
  case "com.amazonaws.iam#NoSuchEntityException":
5553
5553
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5554
- case "ServiceFailureException":
5554
+ case "ServiceFailure":
5555
5555
  case "com.amazonaws.iam#ServiceFailureException":
5556
5556
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5557
5557
  default:
@@ -5581,14 +5581,14 @@ exports.deserializeAws_queryListMFADevicesCommand = deserializeAws_queryListMFAD
5581
5581
  const deserializeAws_queryListMFADevicesCommandError = async (output, context) => {
5582
5582
  const parsedOutput = {
5583
5583
  ...output,
5584
- body: await parseBody(output.body, context),
5584
+ body: await parseErrorBody(output.body, context),
5585
5585
  };
5586
5586
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5587
5587
  switch (errorCode) {
5588
- case "NoSuchEntityException":
5588
+ case "NoSuchEntity":
5589
5589
  case "com.amazonaws.iam#NoSuchEntityException":
5590
5590
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5591
- case "ServiceFailureException":
5591
+ case "ServiceFailure":
5592
5592
  case "com.amazonaws.iam#ServiceFailureException":
5593
5593
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5594
5594
  default:
@@ -5618,17 +5618,17 @@ exports.deserializeAws_queryListMFADeviceTagsCommand = deserializeAws_queryListM
5618
5618
  const deserializeAws_queryListMFADeviceTagsCommandError = async (output, context) => {
5619
5619
  const parsedOutput = {
5620
5620
  ...output,
5621
- body: await parseBody(output.body, context),
5621
+ body: await parseErrorBody(output.body, context),
5622
5622
  };
5623
5623
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5624
5624
  switch (errorCode) {
5625
- case "InvalidInputException":
5625
+ case "InvalidInput":
5626
5626
  case "com.amazonaws.iam#InvalidInputException":
5627
5627
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5628
- case "NoSuchEntityException":
5628
+ case "NoSuchEntity":
5629
5629
  case "com.amazonaws.iam#NoSuchEntityException":
5630
5630
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5631
- case "ServiceFailureException":
5631
+ case "ServiceFailure":
5632
5632
  case "com.amazonaws.iam#ServiceFailureException":
5633
5633
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5634
5634
  default:
@@ -5658,11 +5658,11 @@ exports.deserializeAws_queryListOpenIDConnectProvidersCommand = deserializeAws_q
5658
5658
  const deserializeAws_queryListOpenIDConnectProvidersCommandError = async (output, context) => {
5659
5659
  const parsedOutput = {
5660
5660
  ...output,
5661
- body: await parseBody(output.body, context),
5661
+ body: await parseErrorBody(output.body, context),
5662
5662
  };
5663
5663
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5664
5664
  switch (errorCode) {
5665
- case "ServiceFailureException":
5665
+ case "ServiceFailure":
5666
5666
  case "com.amazonaws.iam#ServiceFailureException":
5667
5667
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5668
5668
  default:
@@ -5692,17 +5692,17 @@ exports.deserializeAws_queryListOpenIDConnectProviderTagsCommand = deserializeAw
5692
5692
  const deserializeAws_queryListOpenIDConnectProviderTagsCommandError = async (output, context) => {
5693
5693
  const parsedOutput = {
5694
5694
  ...output,
5695
- body: await parseBody(output.body, context),
5695
+ body: await parseErrorBody(output.body, context),
5696
5696
  };
5697
5697
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5698
5698
  switch (errorCode) {
5699
- case "InvalidInputException":
5699
+ case "InvalidInput":
5700
5700
  case "com.amazonaws.iam#InvalidInputException":
5701
5701
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5702
- case "NoSuchEntityException":
5702
+ case "NoSuchEntity":
5703
5703
  case "com.amazonaws.iam#NoSuchEntityException":
5704
5704
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5705
- case "ServiceFailureException":
5705
+ case "ServiceFailure":
5706
5706
  case "com.amazonaws.iam#ServiceFailureException":
5707
5707
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5708
5708
  default:
@@ -5732,11 +5732,11 @@ exports.deserializeAws_queryListPoliciesCommand = deserializeAws_queryListPolici
5732
5732
  const deserializeAws_queryListPoliciesCommandError = async (output, context) => {
5733
5733
  const parsedOutput = {
5734
5734
  ...output,
5735
- body: await parseBody(output.body, context),
5735
+ body: await parseErrorBody(output.body, context),
5736
5736
  };
5737
5737
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5738
5738
  switch (errorCode) {
5739
- case "ServiceFailureException":
5739
+ case "ServiceFailure":
5740
5740
  case "com.amazonaws.iam#ServiceFailureException":
5741
5741
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5742
5742
  default:
@@ -5766,14 +5766,14 @@ exports.deserializeAws_queryListPoliciesGrantingServiceAccessCommand = deseriali
5766
5766
  const deserializeAws_queryListPoliciesGrantingServiceAccessCommandError = async (output, context) => {
5767
5767
  const parsedOutput = {
5768
5768
  ...output,
5769
- body: await parseBody(output.body, context),
5769
+ body: await parseErrorBody(output.body, context),
5770
5770
  };
5771
5771
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5772
5772
  switch (errorCode) {
5773
- case "InvalidInputException":
5773
+ case "InvalidInput":
5774
5774
  case "com.amazonaws.iam#InvalidInputException":
5775
5775
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5776
- case "NoSuchEntityException":
5776
+ case "NoSuchEntity":
5777
5777
  case "com.amazonaws.iam#NoSuchEntityException":
5778
5778
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5779
5779
  default:
@@ -5803,17 +5803,17 @@ exports.deserializeAws_queryListPolicyTagsCommand = deserializeAws_queryListPoli
5803
5803
  const deserializeAws_queryListPolicyTagsCommandError = async (output, context) => {
5804
5804
  const parsedOutput = {
5805
5805
  ...output,
5806
- body: await parseBody(output.body, context),
5806
+ body: await parseErrorBody(output.body, context),
5807
5807
  };
5808
5808
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5809
5809
  switch (errorCode) {
5810
- case "InvalidInputException":
5810
+ case "InvalidInput":
5811
5811
  case "com.amazonaws.iam#InvalidInputException":
5812
5812
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5813
- case "NoSuchEntityException":
5813
+ case "NoSuchEntity":
5814
5814
  case "com.amazonaws.iam#NoSuchEntityException":
5815
5815
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5816
- case "ServiceFailureException":
5816
+ case "ServiceFailure":
5817
5817
  case "com.amazonaws.iam#ServiceFailureException":
5818
5818
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5819
5819
  default:
@@ -5843,17 +5843,17 @@ exports.deserializeAws_queryListPolicyVersionsCommand = deserializeAws_queryList
5843
5843
  const deserializeAws_queryListPolicyVersionsCommandError = async (output, context) => {
5844
5844
  const parsedOutput = {
5845
5845
  ...output,
5846
- body: await parseBody(output.body, context),
5846
+ body: await parseErrorBody(output.body, context),
5847
5847
  };
5848
5848
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5849
5849
  switch (errorCode) {
5850
- case "InvalidInputException":
5850
+ case "InvalidInput":
5851
5851
  case "com.amazonaws.iam#InvalidInputException":
5852
5852
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
5853
- case "NoSuchEntityException":
5853
+ case "NoSuchEntity":
5854
5854
  case "com.amazonaws.iam#NoSuchEntityException":
5855
5855
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5856
- case "ServiceFailureException":
5856
+ case "ServiceFailure":
5857
5857
  case "com.amazonaws.iam#ServiceFailureException":
5858
5858
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5859
5859
  default:
@@ -5883,14 +5883,14 @@ exports.deserializeAws_queryListRolePoliciesCommand = deserializeAws_queryListRo
5883
5883
  const deserializeAws_queryListRolePoliciesCommandError = async (output, context) => {
5884
5884
  const parsedOutput = {
5885
5885
  ...output,
5886
- body: await parseBody(output.body, context),
5886
+ body: await parseErrorBody(output.body, context),
5887
5887
  };
5888
5888
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5889
5889
  switch (errorCode) {
5890
- case "NoSuchEntityException":
5890
+ case "NoSuchEntity":
5891
5891
  case "com.amazonaws.iam#NoSuchEntityException":
5892
5892
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5893
- case "ServiceFailureException":
5893
+ case "ServiceFailure":
5894
5894
  case "com.amazonaws.iam#ServiceFailureException":
5895
5895
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5896
5896
  default:
@@ -5920,11 +5920,11 @@ exports.deserializeAws_queryListRolesCommand = deserializeAws_queryListRolesComm
5920
5920
  const deserializeAws_queryListRolesCommandError = async (output, context) => {
5921
5921
  const parsedOutput = {
5922
5922
  ...output,
5923
- body: await parseBody(output.body, context),
5923
+ body: await parseErrorBody(output.body, context),
5924
5924
  };
5925
5925
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5926
5926
  switch (errorCode) {
5927
- case "ServiceFailureException":
5927
+ case "ServiceFailure":
5928
5928
  case "com.amazonaws.iam#ServiceFailureException":
5929
5929
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5930
5930
  default:
@@ -5954,14 +5954,14 @@ exports.deserializeAws_queryListRoleTagsCommand = deserializeAws_queryListRoleTa
5954
5954
  const deserializeAws_queryListRoleTagsCommandError = async (output, context) => {
5955
5955
  const parsedOutput = {
5956
5956
  ...output,
5957
- body: await parseBody(output.body, context),
5957
+ body: await parseErrorBody(output.body, context),
5958
5958
  };
5959
5959
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5960
5960
  switch (errorCode) {
5961
- case "NoSuchEntityException":
5961
+ case "NoSuchEntity":
5962
5962
  case "com.amazonaws.iam#NoSuchEntityException":
5963
5963
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
5964
- case "ServiceFailureException":
5964
+ case "ServiceFailure":
5965
5965
  case "com.amazonaws.iam#ServiceFailureException":
5966
5966
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
5967
5967
  default:
@@ -5991,11 +5991,11 @@ exports.deserializeAws_queryListSAMLProvidersCommand = deserializeAws_queryListS
5991
5991
  const deserializeAws_queryListSAMLProvidersCommandError = async (output, context) => {
5992
5992
  const parsedOutput = {
5993
5993
  ...output,
5994
- body: await parseBody(output.body, context),
5994
+ body: await parseErrorBody(output.body, context),
5995
5995
  };
5996
5996
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5997
5997
  switch (errorCode) {
5998
- case "ServiceFailureException":
5998
+ case "ServiceFailure":
5999
5999
  case "com.amazonaws.iam#ServiceFailureException":
6000
6000
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6001
6001
  default:
@@ -6025,17 +6025,17 @@ exports.deserializeAws_queryListSAMLProviderTagsCommand = deserializeAws_queryLi
6025
6025
  const deserializeAws_queryListSAMLProviderTagsCommandError = async (output, context) => {
6026
6026
  const parsedOutput = {
6027
6027
  ...output,
6028
- body: await parseBody(output.body, context),
6028
+ body: await parseErrorBody(output.body, context),
6029
6029
  };
6030
6030
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6031
6031
  switch (errorCode) {
6032
- case "InvalidInputException":
6032
+ case "InvalidInput":
6033
6033
  case "com.amazonaws.iam#InvalidInputException":
6034
6034
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6035
- case "NoSuchEntityException":
6035
+ case "NoSuchEntity":
6036
6036
  case "com.amazonaws.iam#NoSuchEntityException":
6037
6037
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6038
- case "ServiceFailureException":
6038
+ case "ServiceFailure":
6039
6039
  case "com.amazonaws.iam#ServiceFailureException":
6040
6040
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6041
6041
  default:
@@ -6065,11 +6065,11 @@ exports.deserializeAws_queryListServerCertificatesCommand = deserializeAws_query
6065
6065
  const deserializeAws_queryListServerCertificatesCommandError = async (output, context) => {
6066
6066
  const parsedOutput = {
6067
6067
  ...output,
6068
- body: await parseBody(output.body, context),
6068
+ body: await parseErrorBody(output.body, context),
6069
6069
  };
6070
6070
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6071
6071
  switch (errorCode) {
6072
- case "ServiceFailureException":
6072
+ case "ServiceFailure":
6073
6073
  case "com.amazonaws.iam#ServiceFailureException":
6074
6074
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6075
6075
  default:
@@ -6099,14 +6099,14 @@ exports.deserializeAws_queryListServerCertificateTagsCommand = deserializeAws_qu
6099
6099
  const deserializeAws_queryListServerCertificateTagsCommandError = async (output, context) => {
6100
6100
  const parsedOutput = {
6101
6101
  ...output,
6102
- body: await parseBody(output.body, context),
6102
+ body: await parseErrorBody(output.body, context),
6103
6103
  };
6104
6104
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6105
6105
  switch (errorCode) {
6106
- case "NoSuchEntityException":
6106
+ case "NoSuchEntity":
6107
6107
  case "com.amazonaws.iam#NoSuchEntityException":
6108
6108
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6109
- case "ServiceFailureException":
6109
+ case "ServiceFailure":
6110
6110
  case "com.amazonaws.iam#ServiceFailureException":
6111
6111
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6112
6112
  default:
@@ -6136,14 +6136,14 @@ exports.deserializeAws_queryListServiceSpecificCredentialsCommand = deserializeA
6136
6136
  const deserializeAws_queryListServiceSpecificCredentialsCommandError = async (output, context) => {
6137
6137
  const parsedOutput = {
6138
6138
  ...output,
6139
- body: await parseBody(output.body, context),
6139
+ body: await parseErrorBody(output.body, context),
6140
6140
  };
6141
6141
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6142
6142
  switch (errorCode) {
6143
- case "NoSuchEntityException":
6143
+ case "NoSuchEntity":
6144
6144
  case "com.amazonaws.iam#NoSuchEntityException":
6145
6145
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6146
- case "ServiceNotSupportedException":
6146
+ case "NotSupportedService":
6147
6147
  case "com.amazonaws.iam#ServiceNotSupportedException":
6148
6148
  throw await deserializeAws_queryServiceNotSupportedExceptionResponse(parsedOutput, context);
6149
6149
  default:
@@ -6173,14 +6173,14 @@ exports.deserializeAws_queryListSigningCertificatesCommand = deserializeAws_quer
6173
6173
  const deserializeAws_queryListSigningCertificatesCommandError = async (output, context) => {
6174
6174
  const parsedOutput = {
6175
6175
  ...output,
6176
- body: await parseBody(output.body, context),
6176
+ body: await parseErrorBody(output.body, context),
6177
6177
  };
6178
6178
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6179
6179
  switch (errorCode) {
6180
- case "NoSuchEntityException":
6180
+ case "NoSuchEntity":
6181
6181
  case "com.amazonaws.iam#NoSuchEntityException":
6182
6182
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6183
- case "ServiceFailureException":
6183
+ case "ServiceFailure":
6184
6184
  case "com.amazonaws.iam#ServiceFailureException":
6185
6185
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6186
6186
  default:
@@ -6210,11 +6210,11 @@ exports.deserializeAws_queryListSSHPublicKeysCommand = deserializeAws_queryListS
6210
6210
  const deserializeAws_queryListSSHPublicKeysCommandError = async (output, context) => {
6211
6211
  const parsedOutput = {
6212
6212
  ...output,
6213
- body: await parseBody(output.body, context),
6213
+ body: await parseErrorBody(output.body, context),
6214
6214
  };
6215
6215
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6216
6216
  switch (errorCode) {
6217
- case "NoSuchEntityException":
6217
+ case "NoSuchEntity":
6218
6218
  case "com.amazonaws.iam#NoSuchEntityException":
6219
6219
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6220
6220
  default:
@@ -6244,14 +6244,14 @@ exports.deserializeAws_queryListUserPoliciesCommand = deserializeAws_queryListUs
6244
6244
  const deserializeAws_queryListUserPoliciesCommandError = async (output, context) => {
6245
6245
  const parsedOutput = {
6246
6246
  ...output,
6247
- body: await parseBody(output.body, context),
6247
+ body: await parseErrorBody(output.body, context),
6248
6248
  };
6249
6249
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6250
6250
  switch (errorCode) {
6251
- case "NoSuchEntityException":
6251
+ case "NoSuchEntity":
6252
6252
  case "com.amazonaws.iam#NoSuchEntityException":
6253
6253
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6254
- case "ServiceFailureException":
6254
+ case "ServiceFailure":
6255
6255
  case "com.amazonaws.iam#ServiceFailureException":
6256
6256
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6257
6257
  default:
@@ -6281,11 +6281,11 @@ exports.deserializeAws_queryListUsersCommand = deserializeAws_queryListUsersComm
6281
6281
  const deserializeAws_queryListUsersCommandError = async (output, context) => {
6282
6282
  const parsedOutput = {
6283
6283
  ...output,
6284
- body: await parseBody(output.body, context),
6284
+ body: await parseErrorBody(output.body, context),
6285
6285
  };
6286
6286
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6287
6287
  switch (errorCode) {
6288
- case "ServiceFailureException":
6288
+ case "ServiceFailure":
6289
6289
  case "com.amazonaws.iam#ServiceFailureException":
6290
6290
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6291
6291
  default:
@@ -6315,14 +6315,14 @@ exports.deserializeAws_queryListUserTagsCommand = deserializeAws_queryListUserTa
6315
6315
  const deserializeAws_queryListUserTagsCommandError = async (output, context) => {
6316
6316
  const parsedOutput = {
6317
6317
  ...output,
6318
- body: await parseBody(output.body, context),
6318
+ body: await parseErrorBody(output.body, context),
6319
6319
  };
6320
6320
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6321
6321
  switch (errorCode) {
6322
- case "NoSuchEntityException":
6322
+ case "NoSuchEntity":
6323
6323
  case "com.amazonaws.iam#NoSuchEntityException":
6324
6324
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6325
- case "ServiceFailureException":
6325
+ case "ServiceFailure":
6326
6326
  case "com.amazonaws.iam#ServiceFailureException":
6327
6327
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6328
6328
  default:
@@ -6352,7 +6352,7 @@ exports.deserializeAws_queryListVirtualMFADevicesCommand = deserializeAws_queryL
6352
6352
  const deserializeAws_queryListVirtualMFADevicesCommandError = async (output, context) => {
6353
6353
  const parsedOutput = {
6354
6354
  ...output,
6355
- body: await parseBody(output.body, context),
6355
+ body: await parseErrorBody(output.body, context),
6356
6356
  };
6357
6357
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6358
6358
  const parsedBody = parsedOutput.body;
@@ -6377,20 +6377,20 @@ exports.deserializeAws_queryPutGroupPolicyCommand = deserializeAws_queryPutGroup
6377
6377
  const deserializeAws_queryPutGroupPolicyCommandError = async (output, context) => {
6378
6378
  const parsedOutput = {
6379
6379
  ...output,
6380
- body: await parseBody(output.body, context),
6380
+ body: await parseErrorBody(output.body, context),
6381
6381
  };
6382
6382
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6383
6383
  switch (errorCode) {
6384
- case "LimitExceededException":
6384
+ case "LimitExceeded":
6385
6385
  case "com.amazonaws.iam#LimitExceededException":
6386
6386
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6387
- case "MalformedPolicyDocumentException":
6387
+ case "MalformedPolicyDocument":
6388
6388
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
6389
6389
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
6390
- case "NoSuchEntityException":
6390
+ case "NoSuchEntity":
6391
6391
  case "com.amazonaws.iam#NoSuchEntityException":
6392
6392
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6393
- case "ServiceFailureException":
6393
+ case "ServiceFailure":
6394
6394
  case "com.amazonaws.iam#ServiceFailureException":
6395
6395
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6396
6396
  default:
@@ -6417,23 +6417,23 @@ exports.deserializeAws_queryPutRolePermissionsBoundaryCommand = deserializeAws_q
6417
6417
  const deserializeAws_queryPutRolePermissionsBoundaryCommandError = async (output, context) => {
6418
6418
  const parsedOutput = {
6419
6419
  ...output,
6420
- body: await parseBody(output.body, context),
6420
+ body: await parseErrorBody(output.body, context),
6421
6421
  };
6422
6422
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6423
6423
  switch (errorCode) {
6424
- case "InvalidInputException":
6424
+ case "InvalidInput":
6425
6425
  case "com.amazonaws.iam#InvalidInputException":
6426
6426
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6427
- case "NoSuchEntityException":
6427
+ case "NoSuchEntity":
6428
6428
  case "com.amazonaws.iam#NoSuchEntityException":
6429
6429
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6430
- case "PolicyNotAttachableException":
6430
+ case "PolicyNotAttachable":
6431
6431
  case "com.amazonaws.iam#PolicyNotAttachableException":
6432
6432
  throw await deserializeAws_queryPolicyNotAttachableExceptionResponse(parsedOutput, context);
6433
- case "ServiceFailureException":
6433
+ case "ServiceFailure":
6434
6434
  case "com.amazonaws.iam#ServiceFailureException":
6435
6435
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6436
- case "UnmodifiableEntityException":
6436
+ case "UnmodifiableEntity":
6437
6437
  case "com.amazonaws.iam#UnmodifiableEntityException":
6438
6438
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
6439
6439
  default:
@@ -6460,23 +6460,23 @@ exports.deserializeAws_queryPutRolePolicyCommand = deserializeAws_queryPutRolePo
6460
6460
  const deserializeAws_queryPutRolePolicyCommandError = async (output, context) => {
6461
6461
  const parsedOutput = {
6462
6462
  ...output,
6463
- body: await parseBody(output.body, context),
6463
+ body: await parseErrorBody(output.body, context),
6464
6464
  };
6465
6465
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6466
6466
  switch (errorCode) {
6467
- case "LimitExceededException":
6467
+ case "LimitExceeded":
6468
6468
  case "com.amazonaws.iam#LimitExceededException":
6469
6469
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6470
- case "MalformedPolicyDocumentException":
6470
+ case "MalformedPolicyDocument":
6471
6471
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
6472
6472
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
6473
- case "NoSuchEntityException":
6473
+ case "NoSuchEntity":
6474
6474
  case "com.amazonaws.iam#NoSuchEntityException":
6475
6475
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6476
- case "ServiceFailureException":
6476
+ case "ServiceFailure":
6477
6477
  case "com.amazonaws.iam#ServiceFailureException":
6478
6478
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6479
- case "UnmodifiableEntityException":
6479
+ case "UnmodifiableEntity":
6480
6480
  case "com.amazonaws.iam#UnmodifiableEntityException":
6481
6481
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
6482
6482
  default:
@@ -6503,20 +6503,20 @@ exports.deserializeAws_queryPutUserPermissionsBoundaryCommand = deserializeAws_q
6503
6503
  const deserializeAws_queryPutUserPermissionsBoundaryCommandError = async (output, context) => {
6504
6504
  const parsedOutput = {
6505
6505
  ...output,
6506
- body: await parseBody(output.body, context),
6506
+ body: await parseErrorBody(output.body, context),
6507
6507
  };
6508
6508
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6509
6509
  switch (errorCode) {
6510
- case "InvalidInputException":
6510
+ case "InvalidInput":
6511
6511
  case "com.amazonaws.iam#InvalidInputException":
6512
6512
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6513
- case "NoSuchEntityException":
6513
+ case "NoSuchEntity":
6514
6514
  case "com.amazonaws.iam#NoSuchEntityException":
6515
6515
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6516
- case "PolicyNotAttachableException":
6516
+ case "PolicyNotAttachable":
6517
6517
  case "com.amazonaws.iam#PolicyNotAttachableException":
6518
6518
  throw await deserializeAws_queryPolicyNotAttachableExceptionResponse(parsedOutput, context);
6519
- case "ServiceFailureException":
6519
+ case "ServiceFailure":
6520
6520
  case "com.amazonaws.iam#ServiceFailureException":
6521
6521
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6522
6522
  default:
@@ -6543,20 +6543,20 @@ exports.deserializeAws_queryPutUserPolicyCommand = deserializeAws_queryPutUserPo
6543
6543
  const deserializeAws_queryPutUserPolicyCommandError = async (output, context) => {
6544
6544
  const parsedOutput = {
6545
6545
  ...output,
6546
- body: await parseBody(output.body, context),
6546
+ body: await parseErrorBody(output.body, context),
6547
6547
  };
6548
6548
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6549
6549
  switch (errorCode) {
6550
- case "LimitExceededException":
6550
+ case "LimitExceeded":
6551
6551
  case "com.amazonaws.iam#LimitExceededException":
6552
6552
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6553
- case "MalformedPolicyDocumentException":
6553
+ case "MalformedPolicyDocument":
6554
6554
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
6555
6555
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
6556
- case "NoSuchEntityException":
6556
+ case "NoSuchEntity":
6557
6557
  case "com.amazonaws.iam#NoSuchEntityException":
6558
6558
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6559
- case "ServiceFailureException":
6559
+ case "ServiceFailure":
6560
6560
  case "com.amazonaws.iam#ServiceFailureException":
6561
6561
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6562
6562
  default:
@@ -6583,17 +6583,17 @@ exports.deserializeAws_queryRemoveClientIDFromOpenIDConnectProviderCommand = des
6583
6583
  const deserializeAws_queryRemoveClientIDFromOpenIDConnectProviderCommandError = async (output, context) => {
6584
6584
  const parsedOutput = {
6585
6585
  ...output,
6586
- body: await parseBody(output.body, context),
6586
+ body: await parseErrorBody(output.body, context),
6587
6587
  };
6588
6588
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6589
6589
  switch (errorCode) {
6590
- case "InvalidInputException":
6590
+ case "InvalidInput":
6591
6591
  case "com.amazonaws.iam#InvalidInputException":
6592
6592
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6593
- case "NoSuchEntityException":
6593
+ case "NoSuchEntity":
6594
6594
  case "com.amazonaws.iam#NoSuchEntityException":
6595
6595
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6596
- case "ServiceFailureException":
6596
+ case "ServiceFailure":
6597
6597
  case "com.amazonaws.iam#ServiceFailureException":
6598
6598
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6599
6599
  default:
@@ -6620,20 +6620,20 @@ exports.deserializeAws_queryRemoveRoleFromInstanceProfileCommand = deserializeAw
6620
6620
  const deserializeAws_queryRemoveRoleFromInstanceProfileCommandError = async (output, context) => {
6621
6621
  const parsedOutput = {
6622
6622
  ...output,
6623
- body: await parseBody(output.body, context),
6623
+ body: await parseErrorBody(output.body, context),
6624
6624
  };
6625
6625
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6626
6626
  switch (errorCode) {
6627
- case "LimitExceededException":
6627
+ case "LimitExceeded":
6628
6628
  case "com.amazonaws.iam#LimitExceededException":
6629
6629
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6630
- case "NoSuchEntityException":
6630
+ case "NoSuchEntity":
6631
6631
  case "com.amazonaws.iam#NoSuchEntityException":
6632
6632
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6633
- case "ServiceFailureException":
6633
+ case "ServiceFailure":
6634
6634
  case "com.amazonaws.iam#ServiceFailureException":
6635
6635
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6636
- case "UnmodifiableEntityException":
6636
+ case "UnmodifiableEntity":
6637
6637
  case "com.amazonaws.iam#UnmodifiableEntityException":
6638
6638
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
6639
6639
  default:
@@ -6660,17 +6660,17 @@ exports.deserializeAws_queryRemoveUserFromGroupCommand = deserializeAws_queryRem
6660
6660
  const deserializeAws_queryRemoveUserFromGroupCommandError = async (output, context) => {
6661
6661
  const parsedOutput = {
6662
6662
  ...output,
6663
- body: await parseBody(output.body, context),
6663
+ body: await parseErrorBody(output.body, context),
6664
6664
  };
6665
6665
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6666
6666
  switch (errorCode) {
6667
- case "LimitExceededException":
6667
+ case "LimitExceeded":
6668
6668
  case "com.amazonaws.iam#LimitExceededException":
6669
6669
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6670
- case "NoSuchEntityException":
6670
+ case "NoSuchEntity":
6671
6671
  case "com.amazonaws.iam#NoSuchEntityException":
6672
6672
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6673
- case "ServiceFailureException":
6673
+ case "ServiceFailure":
6674
6674
  case "com.amazonaws.iam#ServiceFailureException":
6675
6675
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6676
6676
  default:
@@ -6700,11 +6700,11 @@ exports.deserializeAws_queryResetServiceSpecificCredentialCommand = deserializeA
6700
6700
  const deserializeAws_queryResetServiceSpecificCredentialCommandError = async (output, context) => {
6701
6701
  const parsedOutput = {
6702
6702
  ...output,
6703
- body: await parseBody(output.body, context),
6703
+ body: await parseErrorBody(output.body, context),
6704
6704
  };
6705
6705
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6706
6706
  switch (errorCode) {
6707
- case "NoSuchEntityException":
6707
+ case "NoSuchEntity":
6708
6708
  case "com.amazonaws.iam#NoSuchEntityException":
6709
6709
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6710
6710
  default:
@@ -6731,20 +6731,20 @@ exports.deserializeAws_queryResyncMFADeviceCommand = deserializeAws_queryResyncM
6731
6731
  const deserializeAws_queryResyncMFADeviceCommandError = async (output, context) => {
6732
6732
  const parsedOutput = {
6733
6733
  ...output,
6734
- body: await parseBody(output.body, context),
6734
+ body: await parseErrorBody(output.body, context),
6735
6735
  };
6736
6736
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6737
6737
  switch (errorCode) {
6738
- case "InvalidAuthenticationCodeException":
6738
+ case "InvalidAuthenticationCode":
6739
6739
  case "com.amazonaws.iam#InvalidAuthenticationCodeException":
6740
6740
  throw await deserializeAws_queryInvalidAuthenticationCodeExceptionResponse(parsedOutput, context);
6741
- case "LimitExceededException":
6741
+ case "LimitExceeded":
6742
6742
  case "com.amazonaws.iam#LimitExceededException":
6743
6743
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6744
- case "NoSuchEntityException":
6744
+ case "NoSuchEntity":
6745
6745
  case "com.amazonaws.iam#NoSuchEntityException":
6746
6746
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6747
- case "ServiceFailureException":
6747
+ case "ServiceFailure":
6748
6748
  case "com.amazonaws.iam#ServiceFailureException":
6749
6749
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6750
6750
  default:
@@ -6771,20 +6771,20 @@ exports.deserializeAws_querySetDefaultPolicyVersionCommand = deserializeAws_quer
6771
6771
  const deserializeAws_querySetDefaultPolicyVersionCommandError = async (output, context) => {
6772
6772
  const parsedOutput = {
6773
6773
  ...output,
6774
- body: await parseBody(output.body, context),
6774
+ body: await parseErrorBody(output.body, context),
6775
6775
  };
6776
6776
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6777
6777
  switch (errorCode) {
6778
- case "InvalidInputException":
6778
+ case "InvalidInput":
6779
6779
  case "com.amazonaws.iam#InvalidInputException":
6780
6780
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6781
- case "LimitExceededException":
6781
+ case "LimitExceeded":
6782
6782
  case "com.amazonaws.iam#LimitExceededException":
6783
6783
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6784
- case "NoSuchEntityException":
6784
+ case "NoSuchEntity":
6785
6785
  case "com.amazonaws.iam#NoSuchEntityException":
6786
6786
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6787
- case "ServiceFailureException":
6787
+ case "ServiceFailure":
6788
6788
  case "com.amazonaws.iam#ServiceFailureException":
6789
6789
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6790
6790
  default:
@@ -6811,11 +6811,11 @@ exports.deserializeAws_querySetSecurityTokenServicePreferencesCommand = deserial
6811
6811
  const deserializeAws_querySetSecurityTokenServicePreferencesCommandError = async (output, context) => {
6812
6812
  const parsedOutput = {
6813
6813
  ...output,
6814
- body: await parseBody(output.body, context),
6814
+ body: await parseErrorBody(output.body, context),
6815
6815
  };
6816
6816
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6817
6817
  switch (errorCode) {
6818
- case "ServiceFailureException":
6818
+ case "ServiceFailure":
6819
6819
  case "com.amazonaws.iam#ServiceFailureException":
6820
6820
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6821
6821
  default:
@@ -6845,14 +6845,14 @@ exports.deserializeAws_querySimulateCustomPolicyCommand = deserializeAws_querySi
6845
6845
  const deserializeAws_querySimulateCustomPolicyCommandError = async (output, context) => {
6846
6846
  const parsedOutput = {
6847
6847
  ...output,
6848
- body: await parseBody(output.body, context),
6848
+ body: await parseErrorBody(output.body, context),
6849
6849
  };
6850
6850
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6851
6851
  switch (errorCode) {
6852
- case "InvalidInputException":
6852
+ case "InvalidInput":
6853
6853
  case "com.amazonaws.iam#InvalidInputException":
6854
6854
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6855
- case "PolicyEvaluationException":
6855
+ case "PolicyEvaluation":
6856
6856
  case "com.amazonaws.iam#PolicyEvaluationException":
6857
6857
  throw await deserializeAws_queryPolicyEvaluationExceptionResponse(parsedOutput, context);
6858
6858
  default:
@@ -6882,17 +6882,17 @@ exports.deserializeAws_querySimulatePrincipalPolicyCommand = deserializeAws_quer
6882
6882
  const deserializeAws_querySimulatePrincipalPolicyCommandError = async (output, context) => {
6883
6883
  const parsedOutput = {
6884
6884
  ...output,
6885
- body: await parseBody(output.body, context),
6885
+ body: await parseErrorBody(output.body, context),
6886
6886
  };
6887
6887
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6888
6888
  switch (errorCode) {
6889
- case "InvalidInputException":
6889
+ case "InvalidInput":
6890
6890
  case "com.amazonaws.iam#InvalidInputException":
6891
6891
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6892
- case "NoSuchEntityException":
6892
+ case "NoSuchEntity":
6893
6893
  case "com.amazonaws.iam#NoSuchEntityException":
6894
6894
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6895
- case "PolicyEvaluationException":
6895
+ case "PolicyEvaluation":
6896
6896
  case "com.amazonaws.iam#PolicyEvaluationException":
6897
6897
  throw await deserializeAws_queryPolicyEvaluationExceptionResponse(parsedOutput, context);
6898
6898
  default:
@@ -6919,23 +6919,23 @@ exports.deserializeAws_queryTagInstanceProfileCommand = deserializeAws_queryTagI
6919
6919
  const deserializeAws_queryTagInstanceProfileCommandError = async (output, context) => {
6920
6920
  const parsedOutput = {
6921
6921
  ...output,
6922
- body: await parseBody(output.body, context),
6922
+ body: await parseErrorBody(output.body, context),
6923
6923
  };
6924
6924
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6925
6925
  switch (errorCode) {
6926
- case "ConcurrentModificationException":
6926
+ case "ConcurrentModification":
6927
6927
  case "com.amazonaws.iam#ConcurrentModificationException":
6928
6928
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
6929
- case "InvalidInputException":
6929
+ case "InvalidInput":
6930
6930
  case "com.amazonaws.iam#InvalidInputException":
6931
6931
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6932
- case "LimitExceededException":
6932
+ case "LimitExceeded":
6933
6933
  case "com.amazonaws.iam#LimitExceededException":
6934
6934
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6935
- case "NoSuchEntityException":
6935
+ case "NoSuchEntity":
6936
6936
  case "com.amazonaws.iam#NoSuchEntityException":
6937
6937
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6938
- case "ServiceFailureException":
6938
+ case "ServiceFailure":
6939
6939
  case "com.amazonaws.iam#ServiceFailureException":
6940
6940
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6941
6941
  default:
@@ -6962,23 +6962,23 @@ exports.deserializeAws_queryTagMFADeviceCommand = deserializeAws_queryTagMFADevi
6962
6962
  const deserializeAws_queryTagMFADeviceCommandError = async (output, context) => {
6963
6963
  const parsedOutput = {
6964
6964
  ...output,
6965
- body: await parseBody(output.body, context),
6965
+ body: await parseErrorBody(output.body, context),
6966
6966
  };
6967
6967
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6968
6968
  switch (errorCode) {
6969
- case "ConcurrentModificationException":
6969
+ case "ConcurrentModification":
6970
6970
  case "com.amazonaws.iam#ConcurrentModificationException":
6971
6971
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
6972
- case "InvalidInputException":
6972
+ case "InvalidInput":
6973
6973
  case "com.amazonaws.iam#InvalidInputException":
6974
6974
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
6975
- case "LimitExceededException":
6975
+ case "LimitExceeded":
6976
6976
  case "com.amazonaws.iam#LimitExceededException":
6977
6977
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
6978
- case "NoSuchEntityException":
6978
+ case "NoSuchEntity":
6979
6979
  case "com.amazonaws.iam#NoSuchEntityException":
6980
6980
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
6981
- case "ServiceFailureException":
6981
+ case "ServiceFailure":
6982
6982
  case "com.amazonaws.iam#ServiceFailureException":
6983
6983
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
6984
6984
  default:
@@ -7005,23 +7005,23 @@ exports.deserializeAws_queryTagOpenIDConnectProviderCommand = deserializeAws_que
7005
7005
  const deserializeAws_queryTagOpenIDConnectProviderCommandError = async (output, context) => {
7006
7006
  const parsedOutput = {
7007
7007
  ...output,
7008
- body: await parseBody(output.body, context),
7008
+ body: await parseErrorBody(output.body, context),
7009
7009
  };
7010
7010
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7011
7011
  switch (errorCode) {
7012
- case "ConcurrentModificationException":
7012
+ case "ConcurrentModification":
7013
7013
  case "com.amazonaws.iam#ConcurrentModificationException":
7014
7014
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7015
- case "InvalidInputException":
7015
+ case "InvalidInput":
7016
7016
  case "com.amazonaws.iam#InvalidInputException":
7017
7017
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7018
- case "LimitExceededException":
7018
+ case "LimitExceeded":
7019
7019
  case "com.amazonaws.iam#LimitExceededException":
7020
7020
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7021
- case "NoSuchEntityException":
7021
+ case "NoSuchEntity":
7022
7022
  case "com.amazonaws.iam#NoSuchEntityException":
7023
7023
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7024
- case "ServiceFailureException":
7024
+ case "ServiceFailure":
7025
7025
  case "com.amazonaws.iam#ServiceFailureException":
7026
7026
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7027
7027
  default:
@@ -7048,23 +7048,23 @@ exports.deserializeAws_queryTagPolicyCommand = deserializeAws_queryTagPolicyComm
7048
7048
  const deserializeAws_queryTagPolicyCommandError = async (output, context) => {
7049
7049
  const parsedOutput = {
7050
7050
  ...output,
7051
- body: await parseBody(output.body, context),
7051
+ body: await parseErrorBody(output.body, context),
7052
7052
  };
7053
7053
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7054
7054
  switch (errorCode) {
7055
- case "ConcurrentModificationException":
7055
+ case "ConcurrentModification":
7056
7056
  case "com.amazonaws.iam#ConcurrentModificationException":
7057
7057
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7058
- case "InvalidInputException":
7058
+ case "InvalidInput":
7059
7059
  case "com.amazonaws.iam#InvalidInputException":
7060
7060
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7061
- case "LimitExceededException":
7061
+ case "LimitExceeded":
7062
7062
  case "com.amazonaws.iam#LimitExceededException":
7063
7063
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7064
- case "NoSuchEntityException":
7064
+ case "NoSuchEntity":
7065
7065
  case "com.amazonaws.iam#NoSuchEntityException":
7066
7066
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7067
- case "ServiceFailureException":
7067
+ case "ServiceFailure":
7068
7068
  case "com.amazonaws.iam#ServiceFailureException":
7069
7069
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7070
7070
  default:
@@ -7091,23 +7091,23 @@ exports.deserializeAws_queryTagRoleCommand = deserializeAws_queryTagRoleCommand;
7091
7091
  const deserializeAws_queryTagRoleCommandError = async (output, context) => {
7092
7092
  const parsedOutput = {
7093
7093
  ...output,
7094
- body: await parseBody(output.body, context),
7094
+ body: await parseErrorBody(output.body, context),
7095
7095
  };
7096
7096
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7097
7097
  switch (errorCode) {
7098
- case "ConcurrentModificationException":
7098
+ case "ConcurrentModification":
7099
7099
  case "com.amazonaws.iam#ConcurrentModificationException":
7100
7100
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7101
- case "InvalidInputException":
7101
+ case "InvalidInput":
7102
7102
  case "com.amazonaws.iam#InvalidInputException":
7103
7103
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7104
- case "LimitExceededException":
7104
+ case "LimitExceeded":
7105
7105
  case "com.amazonaws.iam#LimitExceededException":
7106
7106
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7107
- case "NoSuchEntityException":
7107
+ case "NoSuchEntity":
7108
7108
  case "com.amazonaws.iam#NoSuchEntityException":
7109
7109
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7110
- case "ServiceFailureException":
7110
+ case "ServiceFailure":
7111
7111
  case "com.amazonaws.iam#ServiceFailureException":
7112
7112
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7113
7113
  default:
@@ -7134,23 +7134,23 @@ exports.deserializeAws_queryTagSAMLProviderCommand = deserializeAws_queryTagSAML
7134
7134
  const deserializeAws_queryTagSAMLProviderCommandError = async (output, context) => {
7135
7135
  const parsedOutput = {
7136
7136
  ...output,
7137
- body: await parseBody(output.body, context),
7137
+ body: await parseErrorBody(output.body, context),
7138
7138
  };
7139
7139
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7140
7140
  switch (errorCode) {
7141
- case "ConcurrentModificationException":
7141
+ case "ConcurrentModification":
7142
7142
  case "com.amazonaws.iam#ConcurrentModificationException":
7143
7143
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7144
- case "InvalidInputException":
7144
+ case "InvalidInput":
7145
7145
  case "com.amazonaws.iam#InvalidInputException":
7146
7146
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7147
- case "LimitExceededException":
7147
+ case "LimitExceeded":
7148
7148
  case "com.amazonaws.iam#LimitExceededException":
7149
7149
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7150
- case "NoSuchEntityException":
7150
+ case "NoSuchEntity":
7151
7151
  case "com.amazonaws.iam#NoSuchEntityException":
7152
7152
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7153
- case "ServiceFailureException":
7153
+ case "ServiceFailure":
7154
7154
  case "com.amazonaws.iam#ServiceFailureException":
7155
7155
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7156
7156
  default:
@@ -7177,23 +7177,23 @@ exports.deserializeAws_queryTagServerCertificateCommand = deserializeAws_queryTa
7177
7177
  const deserializeAws_queryTagServerCertificateCommandError = async (output, context) => {
7178
7178
  const parsedOutput = {
7179
7179
  ...output,
7180
- body: await parseBody(output.body, context),
7180
+ body: await parseErrorBody(output.body, context),
7181
7181
  };
7182
7182
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7183
7183
  switch (errorCode) {
7184
- case "ConcurrentModificationException":
7184
+ case "ConcurrentModification":
7185
7185
  case "com.amazonaws.iam#ConcurrentModificationException":
7186
7186
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7187
- case "InvalidInputException":
7187
+ case "InvalidInput":
7188
7188
  case "com.amazonaws.iam#InvalidInputException":
7189
7189
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7190
- case "LimitExceededException":
7190
+ case "LimitExceeded":
7191
7191
  case "com.amazonaws.iam#LimitExceededException":
7192
7192
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7193
- case "NoSuchEntityException":
7193
+ case "NoSuchEntity":
7194
7194
  case "com.amazonaws.iam#NoSuchEntityException":
7195
7195
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7196
- case "ServiceFailureException":
7196
+ case "ServiceFailure":
7197
7197
  case "com.amazonaws.iam#ServiceFailureException":
7198
7198
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7199
7199
  default:
@@ -7220,23 +7220,23 @@ exports.deserializeAws_queryTagUserCommand = deserializeAws_queryTagUserCommand;
7220
7220
  const deserializeAws_queryTagUserCommandError = async (output, context) => {
7221
7221
  const parsedOutput = {
7222
7222
  ...output,
7223
- body: await parseBody(output.body, context),
7223
+ body: await parseErrorBody(output.body, context),
7224
7224
  };
7225
7225
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7226
7226
  switch (errorCode) {
7227
- case "ConcurrentModificationException":
7227
+ case "ConcurrentModification":
7228
7228
  case "com.amazonaws.iam#ConcurrentModificationException":
7229
7229
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7230
- case "InvalidInputException":
7230
+ case "InvalidInput":
7231
7231
  case "com.amazonaws.iam#InvalidInputException":
7232
7232
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7233
- case "LimitExceededException":
7233
+ case "LimitExceeded":
7234
7234
  case "com.amazonaws.iam#LimitExceededException":
7235
7235
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7236
- case "NoSuchEntityException":
7236
+ case "NoSuchEntity":
7237
7237
  case "com.amazonaws.iam#NoSuchEntityException":
7238
7238
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7239
- case "ServiceFailureException":
7239
+ case "ServiceFailure":
7240
7240
  case "com.amazonaws.iam#ServiceFailureException":
7241
7241
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7242
7242
  default:
@@ -7263,20 +7263,20 @@ exports.deserializeAws_queryUntagInstanceProfileCommand = deserializeAws_queryUn
7263
7263
  const deserializeAws_queryUntagInstanceProfileCommandError = async (output, context) => {
7264
7264
  const parsedOutput = {
7265
7265
  ...output,
7266
- body: await parseBody(output.body, context),
7266
+ body: await parseErrorBody(output.body, context),
7267
7267
  };
7268
7268
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7269
7269
  switch (errorCode) {
7270
- case "ConcurrentModificationException":
7270
+ case "ConcurrentModification":
7271
7271
  case "com.amazonaws.iam#ConcurrentModificationException":
7272
7272
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7273
- case "InvalidInputException":
7273
+ case "InvalidInput":
7274
7274
  case "com.amazonaws.iam#InvalidInputException":
7275
7275
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7276
- case "NoSuchEntityException":
7276
+ case "NoSuchEntity":
7277
7277
  case "com.amazonaws.iam#NoSuchEntityException":
7278
7278
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7279
- case "ServiceFailureException":
7279
+ case "ServiceFailure":
7280
7280
  case "com.amazonaws.iam#ServiceFailureException":
7281
7281
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7282
7282
  default:
@@ -7303,20 +7303,20 @@ exports.deserializeAws_queryUntagMFADeviceCommand = deserializeAws_queryUntagMFA
7303
7303
  const deserializeAws_queryUntagMFADeviceCommandError = async (output, context) => {
7304
7304
  const parsedOutput = {
7305
7305
  ...output,
7306
- body: await parseBody(output.body, context),
7306
+ body: await parseErrorBody(output.body, context),
7307
7307
  };
7308
7308
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7309
7309
  switch (errorCode) {
7310
- case "ConcurrentModificationException":
7310
+ case "ConcurrentModification":
7311
7311
  case "com.amazonaws.iam#ConcurrentModificationException":
7312
7312
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7313
- case "InvalidInputException":
7313
+ case "InvalidInput":
7314
7314
  case "com.amazonaws.iam#InvalidInputException":
7315
7315
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7316
- case "NoSuchEntityException":
7316
+ case "NoSuchEntity":
7317
7317
  case "com.amazonaws.iam#NoSuchEntityException":
7318
7318
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7319
- case "ServiceFailureException":
7319
+ case "ServiceFailure":
7320
7320
  case "com.amazonaws.iam#ServiceFailureException":
7321
7321
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7322
7322
  default:
@@ -7343,20 +7343,20 @@ exports.deserializeAws_queryUntagOpenIDConnectProviderCommand = deserializeAws_q
7343
7343
  const deserializeAws_queryUntagOpenIDConnectProviderCommandError = async (output, context) => {
7344
7344
  const parsedOutput = {
7345
7345
  ...output,
7346
- body: await parseBody(output.body, context),
7346
+ body: await parseErrorBody(output.body, context),
7347
7347
  };
7348
7348
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7349
7349
  switch (errorCode) {
7350
- case "ConcurrentModificationException":
7350
+ case "ConcurrentModification":
7351
7351
  case "com.amazonaws.iam#ConcurrentModificationException":
7352
7352
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7353
- case "InvalidInputException":
7353
+ case "InvalidInput":
7354
7354
  case "com.amazonaws.iam#InvalidInputException":
7355
7355
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7356
- case "NoSuchEntityException":
7356
+ case "NoSuchEntity":
7357
7357
  case "com.amazonaws.iam#NoSuchEntityException":
7358
7358
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7359
- case "ServiceFailureException":
7359
+ case "ServiceFailure":
7360
7360
  case "com.amazonaws.iam#ServiceFailureException":
7361
7361
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7362
7362
  default:
@@ -7383,20 +7383,20 @@ exports.deserializeAws_queryUntagPolicyCommand = deserializeAws_queryUntagPolicy
7383
7383
  const deserializeAws_queryUntagPolicyCommandError = async (output, context) => {
7384
7384
  const parsedOutput = {
7385
7385
  ...output,
7386
- body: await parseBody(output.body, context),
7386
+ body: await parseErrorBody(output.body, context),
7387
7387
  };
7388
7388
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7389
7389
  switch (errorCode) {
7390
- case "ConcurrentModificationException":
7390
+ case "ConcurrentModification":
7391
7391
  case "com.amazonaws.iam#ConcurrentModificationException":
7392
7392
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7393
- case "InvalidInputException":
7393
+ case "InvalidInput":
7394
7394
  case "com.amazonaws.iam#InvalidInputException":
7395
7395
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7396
- case "NoSuchEntityException":
7396
+ case "NoSuchEntity":
7397
7397
  case "com.amazonaws.iam#NoSuchEntityException":
7398
7398
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7399
- case "ServiceFailureException":
7399
+ case "ServiceFailure":
7400
7400
  case "com.amazonaws.iam#ServiceFailureException":
7401
7401
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7402
7402
  default:
@@ -7423,17 +7423,17 @@ exports.deserializeAws_queryUntagRoleCommand = deserializeAws_queryUntagRoleComm
7423
7423
  const deserializeAws_queryUntagRoleCommandError = async (output, context) => {
7424
7424
  const parsedOutput = {
7425
7425
  ...output,
7426
- body: await parseBody(output.body, context),
7426
+ body: await parseErrorBody(output.body, context),
7427
7427
  };
7428
7428
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7429
7429
  switch (errorCode) {
7430
- case "ConcurrentModificationException":
7430
+ case "ConcurrentModification":
7431
7431
  case "com.amazonaws.iam#ConcurrentModificationException":
7432
7432
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7433
- case "NoSuchEntityException":
7433
+ case "NoSuchEntity":
7434
7434
  case "com.amazonaws.iam#NoSuchEntityException":
7435
7435
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7436
- case "ServiceFailureException":
7436
+ case "ServiceFailure":
7437
7437
  case "com.amazonaws.iam#ServiceFailureException":
7438
7438
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7439
7439
  default:
@@ -7460,20 +7460,20 @@ exports.deserializeAws_queryUntagSAMLProviderCommand = deserializeAws_queryUntag
7460
7460
  const deserializeAws_queryUntagSAMLProviderCommandError = async (output, context) => {
7461
7461
  const parsedOutput = {
7462
7462
  ...output,
7463
- body: await parseBody(output.body, context),
7463
+ body: await parseErrorBody(output.body, context),
7464
7464
  };
7465
7465
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7466
7466
  switch (errorCode) {
7467
- case "ConcurrentModificationException":
7467
+ case "ConcurrentModification":
7468
7468
  case "com.amazonaws.iam#ConcurrentModificationException":
7469
7469
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7470
- case "InvalidInputException":
7470
+ case "InvalidInput":
7471
7471
  case "com.amazonaws.iam#InvalidInputException":
7472
7472
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7473
- case "NoSuchEntityException":
7473
+ case "NoSuchEntity":
7474
7474
  case "com.amazonaws.iam#NoSuchEntityException":
7475
7475
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7476
- case "ServiceFailureException":
7476
+ case "ServiceFailure":
7477
7477
  case "com.amazonaws.iam#ServiceFailureException":
7478
7478
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7479
7479
  default:
@@ -7500,20 +7500,20 @@ exports.deserializeAws_queryUntagServerCertificateCommand = deserializeAws_query
7500
7500
  const deserializeAws_queryUntagServerCertificateCommandError = async (output, context) => {
7501
7501
  const parsedOutput = {
7502
7502
  ...output,
7503
- body: await parseBody(output.body, context),
7503
+ body: await parseErrorBody(output.body, context),
7504
7504
  };
7505
7505
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7506
7506
  switch (errorCode) {
7507
- case "ConcurrentModificationException":
7507
+ case "ConcurrentModification":
7508
7508
  case "com.amazonaws.iam#ConcurrentModificationException":
7509
7509
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7510
- case "InvalidInputException":
7510
+ case "InvalidInput":
7511
7511
  case "com.amazonaws.iam#InvalidInputException":
7512
7512
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7513
- case "NoSuchEntityException":
7513
+ case "NoSuchEntity":
7514
7514
  case "com.amazonaws.iam#NoSuchEntityException":
7515
7515
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7516
- case "ServiceFailureException":
7516
+ case "ServiceFailure":
7517
7517
  case "com.amazonaws.iam#ServiceFailureException":
7518
7518
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7519
7519
  default:
@@ -7540,17 +7540,17 @@ exports.deserializeAws_queryUntagUserCommand = deserializeAws_queryUntagUserComm
7540
7540
  const deserializeAws_queryUntagUserCommandError = async (output, context) => {
7541
7541
  const parsedOutput = {
7542
7542
  ...output,
7543
- body: await parseBody(output.body, context),
7543
+ body: await parseErrorBody(output.body, context),
7544
7544
  };
7545
7545
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7546
7546
  switch (errorCode) {
7547
- case "ConcurrentModificationException":
7547
+ case "ConcurrentModification":
7548
7548
  case "com.amazonaws.iam#ConcurrentModificationException":
7549
7549
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
7550
- case "NoSuchEntityException":
7550
+ case "NoSuchEntity":
7551
7551
  case "com.amazonaws.iam#NoSuchEntityException":
7552
7552
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7553
- case "ServiceFailureException":
7553
+ case "ServiceFailure":
7554
7554
  case "com.amazonaws.iam#ServiceFailureException":
7555
7555
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7556
7556
  default:
@@ -7577,17 +7577,17 @@ exports.deserializeAws_queryUpdateAccessKeyCommand = deserializeAws_queryUpdateA
7577
7577
  const deserializeAws_queryUpdateAccessKeyCommandError = async (output, context) => {
7578
7578
  const parsedOutput = {
7579
7579
  ...output,
7580
- body: await parseBody(output.body, context),
7580
+ body: await parseErrorBody(output.body, context),
7581
7581
  };
7582
7582
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7583
7583
  switch (errorCode) {
7584
- case "LimitExceededException":
7584
+ case "LimitExceeded":
7585
7585
  case "com.amazonaws.iam#LimitExceededException":
7586
7586
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7587
- case "NoSuchEntityException":
7587
+ case "NoSuchEntity":
7588
7588
  case "com.amazonaws.iam#NoSuchEntityException":
7589
7589
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7590
- case "ServiceFailureException":
7590
+ case "ServiceFailure":
7591
7591
  case "com.amazonaws.iam#ServiceFailureException":
7592
7592
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7593
7593
  default:
@@ -7614,20 +7614,20 @@ exports.deserializeAws_queryUpdateAccountPasswordPolicyCommand = deserializeAws_
7614
7614
  const deserializeAws_queryUpdateAccountPasswordPolicyCommandError = async (output, context) => {
7615
7615
  const parsedOutput = {
7616
7616
  ...output,
7617
- body: await parseBody(output.body, context),
7617
+ body: await parseErrorBody(output.body, context),
7618
7618
  };
7619
7619
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7620
7620
  switch (errorCode) {
7621
- case "LimitExceededException":
7621
+ case "LimitExceeded":
7622
7622
  case "com.amazonaws.iam#LimitExceededException":
7623
7623
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7624
- case "MalformedPolicyDocumentException":
7624
+ case "MalformedPolicyDocument":
7625
7625
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
7626
7626
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
7627
- case "NoSuchEntityException":
7627
+ case "NoSuchEntity":
7628
7628
  case "com.amazonaws.iam#NoSuchEntityException":
7629
7629
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7630
- case "ServiceFailureException":
7630
+ case "ServiceFailure":
7631
7631
  case "com.amazonaws.iam#ServiceFailureException":
7632
7632
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7633
7633
  default:
@@ -7654,23 +7654,23 @@ exports.deserializeAws_queryUpdateAssumeRolePolicyCommand = deserializeAws_query
7654
7654
  const deserializeAws_queryUpdateAssumeRolePolicyCommandError = async (output, context) => {
7655
7655
  const parsedOutput = {
7656
7656
  ...output,
7657
- body: await parseBody(output.body, context),
7657
+ body: await parseErrorBody(output.body, context),
7658
7658
  };
7659
7659
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7660
7660
  switch (errorCode) {
7661
- case "LimitExceededException":
7661
+ case "LimitExceeded":
7662
7662
  case "com.amazonaws.iam#LimitExceededException":
7663
7663
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7664
- case "MalformedPolicyDocumentException":
7664
+ case "MalformedPolicyDocument":
7665
7665
  case "com.amazonaws.iam#MalformedPolicyDocumentException":
7666
7666
  throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context);
7667
- case "NoSuchEntityException":
7667
+ case "NoSuchEntity":
7668
7668
  case "com.amazonaws.iam#NoSuchEntityException":
7669
7669
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7670
- case "ServiceFailureException":
7670
+ case "ServiceFailure":
7671
7671
  case "com.amazonaws.iam#ServiceFailureException":
7672
7672
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7673
- case "UnmodifiableEntityException":
7673
+ case "UnmodifiableEntity":
7674
7674
  case "com.amazonaws.iam#UnmodifiableEntityException":
7675
7675
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
7676
7676
  default:
@@ -7697,20 +7697,20 @@ exports.deserializeAws_queryUpdateGroupCommand = deserializeAws_queryUpdateGroup
7697
7697
  const deserializeAws_queryUpdateGroupCommandError = async (output, context) => {
7698
7698
  const parsedOutput = {
7699
7699
  ...output,
7700
- body: await parseBody(output.body, context),
7700
+ body: await parseErrorBody(output.body, context),
7701
7701
  };
7702
7702
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7703
7703
  switch (errorCode) {
7704
- case "EntityAlreadyExistsException":
7704
+ case "EntityAlreadyExists":
7705
7705
  case "com.amazonaws.iam#EntityAlreadyExistsException":
7706
7706
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
7707
- case "LimitExceededException":
7707
+ case "LimitExceeded":
7708
7708
  case "com.amazonaws.iam#LimitExceededException":
7709
7709
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7710
- case "NoSuchEntityException":
7710
+ case "NoSuchEntity":
7711
7711
  case "com.amazonaws.iam#NoSuchEntityException":
7712
7712
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7713
- case "ServiceFailureException":
7713
+ case "ServiceFailure":
7714
7714
  case "com.amazonaws.iam#ServiceFailureException":
7715
7715
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7716
7716
  default:
@@ -7737,23 +7737,23 @@ exports.deserializeAws_queryUpdateLoginProfileCommand = deserializeAws_queryUpda
7737
7737
  const deserializeAws_queryUpdateLoginProfileCommandError = async (output, context) => {
7738
7738
  const parsedOutput = {
7739
7739
  ...output,
7740
- body: await parseBody(output.body, context),
7740
+ body: await parseErrorBody(output.body, context),
7741
7741
  };
7742
7742
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7743
7743
  switch (errorCode) {
7744
- case "EntityTemporarilyUnmodifiableException":
7744
+ case "EntityTemporarilyUnmodifiable":
7745
7745
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
7746
7746
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
7747
- case "LimitExceededException":
7747
+ case "LimitExceeded":
7748
7748
  case "com.amazonaws.iam#LimitExceededException":
7749
7749
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7750
- case "NoSuchEntityException":
7750
+ case "NoSuchEntity":
7751
7751
  case "com.amazonaws.iam#NoSuchEntityException":
7752
7752
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7753
- case "PasswordPolicyViolationException":
7753
+ case "PasswordPolicyViolation":
7754
7754
  case "com.amazonaws.iam#PasswordPolicyViolationException":
7755
7755
  throw await deserializeAws_queryPasswordPolicyViolationExceptionResponse(parsedOutput, context);
7756
- case "ServiceFailureException":
7756
+ case "ServiceFailure":
7757
7757
  case "com.amazonaws.iam#ServiceFailureException":
7758
7758
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7759
7759
  default:
@@ -7780,17 +7780,17 @@ exports.deserializeAws_queryUpdateOpenIDConnectProviderThumbprintCommand = deser
7780
7780
  const deserializeAws_queryUpdateOpenIDConnectProviderThumbprintCommandError = async (output, context) => {
7781
7781
  const parsedOutput = {
7782
7782
  ...output,
7783
- body: await parseBody(output.body, context),
7783
+ body: await parseErrorBody(output.body, context),
7784
7784
  };
7785
7785
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7786
7786
  switch (errorCode) {
7787
- case "InvalidInputException":
7787
+ case "InvalidInput":
7788
7788
  case "com.amazonaws.iam#InvalidInputException":
7789
7789
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7790
- case "NoSuchEntityException":
7790
+ case "NoSuchEntity":
7791
7791
  case "com.amazonaws.iam#NoSuchEntityException":
7792
7792
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7793
- case "ServiceFailureException":
7793
+ case "ServiceFailure":
7794
7794
  case "com.amazonaws.iam#ServiceFailureException":
7795
7795
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7796
7796
  default:
@@ -7820,17 +7820,17 @@ exports.deserializeAws_queryUpdateRoleCommand = deserializeAws_queryUpdateRoleCo
7820
7820
  const deserializeAws_queryUpdateRoleCommandError = async (output, context) => {
7821
7821
  const parsedOutput = {
7822
7822
  ...output,
7823
- body: await parseBody(output.body, context),
7823
+ body: await parseErrorBody(output.body, context),
7824
7824
  };
7825
7825
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7826
7826
  switch (errorCode) {
7827
- case "NoSuchEntityException":
7827
+ case "NoSuchEntity":
7828
7828
  case "com.amazonaws.iam#NoSuchEntityException":
7829
7829
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7830
- case "ServiceFailureException":
7830
+ case "ServiceFailure":
7831
7831
  case "com.amazonaws.iam#ServiceFailureException":
7832
7832
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7833
- case "UnmodifiableEntityException":
7833
+ case "UnmodifiableEntity":
7834
7834
  case "com.amazonaws.iam#UnmodifiableEntityException":
7835
7835
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
7836
7836
  default:
@@ -7860,17 +7860,17 @@ exports.deserializeAws_queryUpdateRoleDescriptionCommand = deserializeAws_queryU
7860
7860
  const deserializeAws_queryUpdateRoleDescriptionCommandError = async (output, context) => {
7861
7861
  const parsedOutput = {
7862
7862
  ...output,
7863
- body: await parseBody(output.body, context),
7863
+ body: await parseErrorBody(output.body, context),
7864
7864
  };
7865
7865
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7866
7866
  switch (errorCode) {
7867
- case "NoSuchEntityException":
7867
+ case "NoSuchEntity":
7868
7868
  case "com.amazonaws.iam#NoSuchEntityException":
7869
7869
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7870
- case "ServiceFailureException":
7870
+ case "ServiceFailure":
7871
7871
  case "com.amazonaws.iam#ServiceFailureException":
7872
7872
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7873
- case "UnmodifiableEntityException":
7873
+ case "UnmodifiableEntity":
7874
7874
  case "com.amazonaws.iam#UnmodifiableEntityException":
7875
7875
  throw await deserializeAws_queryUnmodifiableEntityExceptionResponse(parsedOutput, context);
7876
7876
  default:
@@ -7900,20 +7900,20 @@ exports.deserializeAws_queryUpdateSAMLProviderCommand = deserializeAws_queryUpda
7900
7900
  const deserializeAws_queryUpdateSAMLProviderCommandError = async (output, context) => {
7901
7901
  const parsedOutput = {
7902
7902
  ...output,
7903
- body: await parseBody(output.body, context),
7903
+ body: await parseErrorBody(output.body, context),
7904
7904
  };
7905
7905
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7906
7906
  switch (errorCode) {
7907
- case "InvalidInputException":
7907
+ case "InvalidInput":
7908
7908
  case "com.amazonaws.iam#InvalidInputException":
7909
7909
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
7910
- case "LimitExceededException":
7910
+ case "LimitExceeded":
7911
7911
  case "com.amazonaws.iam#LimitExceededException":
7912
7912
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7913
- case "NoSuchEntityException":
7913
+ case "NoSuchEntity":
7914
7914
  case "com.amazonaws.iam#NoSuchEntityException":
7915
7915
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7916
- case "ServiceFailureException":
7916
+ case "ServiceFailure":
7917
7917
  case "com.amazonaws.iam#ServiceFailureException":
7918
7918
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7919
7919
  default:
@@ -7940,20 +7940,20 @@ exports.deserializeAws_queryUpdateServerCertificateCommand = deserializeAws_quer
7940
7940
  const deserializeAws_queryUpdateServerCertificateCommandError = async (output, context) => {
7941
7941
  const parsedOutput = {
7942
7942
  ...output,
7943
- body: await parseBody(output.body, context),
7943
+ body: await parseErrorBody(output.body, context),
7944
7944
  };
7945
7945
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7946
7946
  switch (errorCode) {
7947
- case "EntityAlreadyExistsException":
7947
+ case "EntityAlreadyExists":
7948
7948
  case "com.amazonaws.iam#EntityAlreadyExistsException":
7949
7949
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
7950
- case "LimitExceededException":
7950
+ case "LimitExceeded":
7951
7951
  case "com.amazonaws.iam#LimitExceededException":
7952
7952
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
7953
- case "NoSuchEntityException":
7953
+ case "NoSuchEntity":
7954
7954
  case "com.amazonaws.iam#NoSuchEntityException":
7955
7955
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7956
- case "ServiceFailureException":
7956
+ case "ServiceFailure":
7957
7957
  case "com.amazonaws.iam#ServiceFailureException":
7958
7958
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
7959
7959
  default:
@@ -7980,11 +7980,11 @@ exports.deserializeAws_queryUpdateServiceSpecificCredentialCommand = deserialize
7980
7980
  const deserializeAws_queryUpdateServiceSpecificCredentialCommandError = async (output, context) => {
7981
7981
  const parsedOutput = {
7982
7982
  ...output,
7983
- body: await parseBody(output.body, context),
7983
+ body: await parseErrorBody(output.body, context),
7984
7984
  };
7985
7985
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
7986
7986
  switch (errorCode) {
7987
- case "NoSuchEntityException":
7987
+ case "NoSuchEntity":
7988
7988
  case "com.amazonaws.iam#NoSuchEntityException":
7989
7989
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
7990
7990
  default:
@@ -8011,17 +8011,17 @@ exports.deserializeAws_queryUpdateSigningCertificateCommand = deserializeAws_que
8011
8011
  const deserializeAws_queryUpdateSigningCertificateCommandError = async (output, context) => {
8012
8012
  const parsedOutput = {
8013
8013
  ...output,
8014
- body: await parseBody(output.body, context),
8014
+ body: await parseErrorBody(output.body, context),
8015
8015
  };
8016
8016
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8017
8017
  switch (errorCode) {
8018
- case "LimitExceededException":
8018
+ case "LimitExceeded":
8019
8019
  case "com.amazonaws.iam#LimitExceededException":
8020
8020
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
8021
- case "NoSuchEntityException":
8021
+ case "NoSuchEntity":
8022
8022
  case "com.amazonaws.iam#NoSuchEntityException":
8023
8023
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
8024
- case "ServiceFailureException":
8024
+ case "ServiceFailure":
8025
8025
  case "com.amazonaws.iam#ServiceFailureException":
8026
8026
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
8027
8027
  default:
@@ -8048,11 +8048,11 @@ exports.deserializeAws_queryUpdateSSHPublicKeyCommand = deserializeAws_queryUpda
8048
8048
  const deserializeAws_queryUpdateSSHPublicKeyCommandError = async (output, context) => {
8049
8049
  const parsedOutput = {
8050
8050
  ...output,
8051
- body: await parseBody(output.body, context),
8051
+ body: await parseErrorBody(output.body, context),
8052
8052
  };
8053
8053
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8054
8054
  switch (errorCode) {
8055
- case "NoSuchEntityException":
8055
+ case "NoSuchEntity":
8056
8056
  case "com.amazonaws.iam#NoSuchEntityException":
8057
8057
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
8058
8058
  default:
@@ -8079,26 +8079,26 @@ exports.deserializeAws_queryUpdateUserCommand = deserializeAws_queryUpdateUserCo
8079
8079
  const deserializeAws_queryUpdateUserCommandError = async (output, context) => {
8080
8080
  const parsedOutput = {
8081
8081
  ...output,
8082
- body: await parseBody(output.body, context),
8082
+ body: await parseErrorBody(output.body, context),
8083
8083
  };
8084
8084
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8085
8085
  switch (errorCode) {
8086
- case "ConcurrentModificationException":
8086
+ case "ConcurrentModification":
8087
8087
  case "com.amazonaws.iam#ConcurrentModificationException":
8088
8088
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
8089
- case "EntityAlreadyExistsException":
8089
+ case "EntityAlreadyExists":
8090
8090
  case "com.amazonaws.iam#EntityAlreadyExistsException":
8091
8091
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
8092
- case "EntityTemporarilyUnmodifiableException":
8092
+ case "EntityTemporarilyUnmodifiable":
8093
8093
  case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
8094
8094
  throw await deserializeAws_queryEntityTemporarilyUnmodifiableExceptionResponse(parsedOutput, context);
8095
- case "LimitExceededException":
8095
+ case "LimitExceeded":
8096
8096
  case "com.amazonaws.iam#LimitExceededException":
8097
8097
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
8098
- case "NoSuchEntityException":
8098
+ case "NoSuchEntity":
8099
8099
  case "com.amazonaws.iam#NoSuchEntityException":
8100
8100
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
8101
- case "ServiceFailureException":
8101
+ case "ServiceFailure":
8102
8102
  case "com.amazonaws.iam#ServiceFailureException":
8103
8103
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
8104
8104
  default:
@@ -8128,29 +8128,29 @@ exports.deserializeAws_queryUploadServerCertificateCommand = deserializeAws_quer
8128
8128
  const deserializeAws_queryUploadServerCertificateCommandError = async (output, context) => {
8129
8129
  const parsedOutput = {
8130
8130
  ...output,
8131
- body: await parseBody(output.body, context),
8131
+ body: await parseErrorBody(output.body, context),
8132
8132
  };
8133
8133
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8134
8134
  switch (errorCode) {
8135
- case "ConcurrentModificationException":
8135
+ case "ConcurrentModification":
8136
8136
  case "com.amazonaws.iam#ConcurrentModificationException":
8137
8137
  throw await deserializeAws_queryConcurrentModificationExceptionResponse(parsedOutput, context);
8138
- case "EntityAlreadyExistsException":
8138
+ case "EntityAlreadyExists":
8139
8139
  case "com.amazonaws.iam#EntityAlreadyExistsException":
8140
8140
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
8141
- case "InvalidInputException":
8141
+ case "InvalidInput":
8142
8142
  case "com.amazonaws.iam#InvalidInputException":
8143
8143
  throw await deserializeAws_queryInvalidInputExceptionResponse(parsedOutput, context);
8144
- case "KeyPairMismatchException":
8144
+ case "KeyPairMismatch":
8145
8145
  case "com.amazonaws.iam#KeyPairMismatchException":
8146
8146
  throw await deserializeAws_queryKeyPairMismatchExceptionResponse(parsedOutput, context);
8147
- case "LimitExceededException":
8147
+ case "LimitExceeded":
8148
8148
  case "com.amazonaws.iam#LimitExceededException":
8149
8149
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
8150
- case "MalformedCertificateException":
8150
+ case "MalformedCertificate":
8151
8151
  case "com.amazonaws.iam#MalformedCertificateException":
8152
8152
  throw await deserializeAws_queryMalformedCertificateExceptionResponse(parsedOutput, context);
8153
- case "ServiceFailureException":
8153
+ case "ServiceFailure":
8154
8154
  case "com.amazonaws.iam#ServiceFailureException":
8155
8155
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
8156
8156
  default:
@@ -8180,29 +8180,29 @@ exports.deserializeAws_queryUploadSigningCertificateCommand = deserializeAws_que
8180
8180
  const deserializeAws_queryUploadSigningCertificateCommandError = async (output, context) => {
8181
8181
  const parsedOutput = {
8182
8182
  ...output,
8183
- body: await parseBody(output.body, context),
8183
+ body: await parseErrorBody(output.body, context),
8184
8184
  };
8185
8185
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8186
8186
  switch (errorCode) {
8187
- case "DuplicateCertificateException":
8187
+ case "DuplicateCertificate":
8188
8188
  case "com.amazonaws.iam#DuplicateCertificateException":
8189
8189
  throw await deserializeAws_queryDuplicateCertificateExceptionResponse(parsedOutput, context);
8190
- case "EntityAlreadyExistsException":
8190
+ case "EntityAlreadyExists":
8191
8191
  case "com.amazonaws.iam#EntityAlreadyExistsException":
8192
8192
  throw await deserializeAws_queryEntityAlreadyExistsExceptionResponse(parsedOutput, context);
8193
- case "InvalidCertificateException":
8193
+ case "InvalidCertificate":
8194
8194
  case "com.amazonaws.iam#InvalidCertificateException":
8195
8195
  throw await deserializeAws_queryInvalidCertificateExceptionResponse(parsedOutput, context);
8196
- case "LimitExceededException":
8196
+ case "LimitExceeded":
8197
8197
  case "com.amazonaws.iam#LimitExceededException":
8198
8198
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
8199
- case "MalformedCertificateException":
8199
+ case "MalformedCertificate":
8200
8200
  case "com.amazonaws.iam#MalformedCertificateException":
8201
8201
  throw await deserializeAws_queryMalformedCertificateExceptionResponse(parsedOutput, context);
8202
- case "NoSuchEntityException":
8202
+ case "NoSuchEntity":
8203
8203
  case "com.amazonaws.iam#NoSuchEntityException":
8204
8204
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
8205
- case "ServiceFailureException":
8205
+ case "ServiceFailure":
8206
8206
  case "com.amazonaws.iam#ServiceFailureException":
8207
8207
  throw await deserializeAws_queryServiceFailureExceptionResponse(parsedOutput, context);
8208
8208
  default:
@@ -8232,23 +8232,23 @@ exports.deserializeAws_queryUploadSSHPublicKeyCommand = deserializeAws_queryUplo
8232
8232
  const deserializeAws_queryUploadSSHPublicKeyCommandError = async (output, context) => {
8233
8233
  const parsedOutput = {
8234
8234
  ...output,
8235
- body: await parseBody(output.body, context),
8235
+ body: await parseErrorBody(output.body, context),
8236
8236
  };
8237
8237
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
8238
8238
  switch (errorCode) {
8239
- case "DuplicateSSHPublicKeyException":
8239
+ case "DuplicateSSHPublicKey":
8240
8240
  case "com.amazonaws.iam#DuplicateSSHPublicKeyException":
8241
8241
  throw await deserializeAws_queryDuplicateSSHPublicKeyExceptionResponse(parsedOutput, context);
8242
- case "InvalidPublicKeyException":
8242
+ case "InvalidPublicKey":
8243
8243
  case "com.amazonaws.iam#InvalidPublicKeyException":
8244
8244
  throw await deserializeAws_queryInvalidPublicKeyExceptionResponse(parsedOutput, context);
8245
- case "LimitExceededException":
8245
+ case "LimitExceeded":
8246
8246
  case "com.amazonaws.iam#LimitExceededException":
8247
8247
  throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
8248
- case "NoSuchEntityException":
8248
+ case "NoSuchEntity":
8249
8249
  case "com.amazonaws.iam#NoSuchEntityException":
8250
8250
  throw await deserializeAws_queryNoSuchEntityExceptionResponse(parsedOutput, context);
8251
- case "UnrecognizedPublicKeyEncodingException":
8251
+ case "UnrecognizedPublicKeyEncoding":
8252
8252
  case "com.amazonaws.iam#UnrecognizedPublicKeyEncodingException":
8253
8253
  throw await deserializeAws_queryUnrecognizedPublicKeyEncodingExceptionResponse(parsedOutput, context);
8254
8254
  default:
@@ -13887,6 +13887,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
13887
13887
  }
13888
13888
  return {};
13889
13889
  });
13890
+ const parseErrorBody = async (errorBody, context) => {
13891
+ var _a;
13892
+ const value = await parseBody(errorBody, context);
13893
+ if (value.Error) {
13894
+ value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
13895
+ }
13896
+ return value;
13897
+ };
13890
13898
  const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
13891
13899
  .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
13892
13900
  .join("&");