@aws-sdk/client-lambda 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
12
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
19
+
20
+ **Note:** Version bump only for package @aws-sdk/client-lambda
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-lambda
@@ -1594,7 +1594,7 @@ exports.deserializeAws_restJson1AddLayerVersionPermissionCommand = deserializeAw
1594
1594
  const deserializeAws_restJson1AddLayerVersionPermissionCommandError = async (output, context) => {
1595
1595
  const parsedOutput = {
1596
1596
  ...output,
1597
- body: await parseBody(output.body, context),
1597
+ body: await parseErrorBody(output.body, context),
1598
1598
  };
1599
1599
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1600
1600
  switch (errorCode) {
@@ -1646,7 +1646,7 @@ exports.deserializeAws_restJson1AddPermissionCommand = deserializeAws_restJson1A
1646
1646
  const deserializeAws_restJson1AddPermissionCommandError = async (output, context) => {
1647
1647
  const parsedOutput = {
1648
1648
  ...output,
1649
- body: await parseBody(output.body, context),
1649
+ body: await parseErrorBody(output.body, context),
1650
1650
  };
1651
1651
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
1652
  switch (errorCode) {
@@ -1713,7 +1713,7 @@ exports.deserializeAws_restJson1CreateAliasCommand = deserializeAws_restJson1Cre
1713
1713
  const deserializeAws_restJson1CreateAliasCommandError = async (output, context) => {
1714
1714
  const parsedOutput = {
1715
1715
  ...output,
1716
- body: await parseBody(output.body, context),
1716
+ body: await parseErrorBody(output.body, context),
1717
1717
  };
1718
1718
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1719
1719
  switch (errorCode) {
@@ -1759,7 +1759,7 @@ exports.deserializeAws_restJson1CreateCodeSigningConfigCommand = deserializeAws_
1759
1759
  const deserializeAws_restJson1CreateCodeSigningConfigCommandError = async (output, context) => {
1760
1760
  const parsedOutput = {
1761
1761
  ...output,
1762
- body: await parseBody(output.body, context),
1762
+ body: await parseErrorBody(output.body, context),
1763
1763
  };
1764
1764
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1765
1765
  switch (errorCode) {
@@ -1868,7 +1868,7 @@ exports.deserializeAws_restJson1CreateEventSourceMappingCommand = deserializeAws
1868
1868
  const deserializeAws_restJson1CreateEventSourceMappingCommandError = async (output, context) => {
1869
1869
  const parsedOutput = {
1870
1870
  ...output,
1871
- body: await parseBody(output.body, context),
1871
+ body: await parseErrorBody(output.body, context),
1872
1872
  };
1873
1873
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
1874
  switch (errorCode) {
@@ -2010,7 +2010,7 @@ exports.deserializeAws_restJson1CreateFunctionCommand = deserializeAws_restJson1
2010
2010
  const deserializeAws_restJson1CreateFunctionCommandError = async (output, context) => {
2011
2011
  const parsedOutput = {
2012
2012
  ...output,
2013
- body: await parseBody(output.body, context),
2013
+ body: await parseErrorBody(output.body, context),
2014
2014
  };
2015
2015
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2016
2016
  switch (errorCode) {
@@ -2080,7 +2080,7 @@ exports.deserializeAws_restJson1CreateFunctionUrlConfigCommand = deserializeAws_
2080
2080
  const deserializeAws_restJson1CreateFunctionUrlConfigCommandError = async (output, context) => {
2081
2081
  const parsedOutput = {
2082
2082
  ...output,
2083
- body: await parseBody(output.body, context),
2083
+ body: await parseErrorBody(output.body, context),
2084
2084
  };
2085
2085
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
2086
  switch (errorCode) {
@@ -2123,7 +2123,7 @@ exports.deserializeAws_restJson1DeleteAliasCommand = deserializeAws_restJson1Del
2123
2123
  const deserializeAws_restJson1DeleteAliasCommandError = async (output, context) => {
2124
2124
  const parsedOutput = {
2125
2125
  ...output,
2126
- body: await parseBody(output.body, context),
2126
+ body: await parseErrorBody(output.body, context),
2127
2127
  };
2128
2128
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2129
2129
  switch (errorCode) {
@@ -2163,7 +2163,7 @@ exports.deserializeAws_restJson1DeleteCodeSigningConfigCommand = deserializeAws_
2163
2163
  const deserializeAws_restJson1DeleteCodeSigningConfigCommandError = async (output, context) => {
2164
2164
  const parsedOutput = {
2165
2165
  ...output,
2166
- body: await parseBody(output.body, context),
2166
+ body: await parseErrorBody(output.body, context),
2167
2167
  };
2168
2168
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2169
2169
  switch (errorCode) {
@@ -2278,7 +2278,7 @@ exports.deserializeAws_restJson1DeleteEventSourceMappingCommand = deserializeAws
2278
2278
  const deserializeAws_restJson1DeleteEventSourceMappingCommandError = async (output, context) => {
2279
2279
  const parsedOutput = {
2280
2280
  ...output,
2281
- body: await parseBody(output.body, context),
2281
+ body: await parseErrorBody(output.body, context),
2282
2282
  };
2283
2283
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2284
2284
  switch (errorCode) {
@@ -2321,7 +2321,7 @@ exports.deserializeAws_restJson1DeleteFunctionCommand = deserializeAws_restJson1
2321
2321
  const deserializeAws_restJson1DeleteFunctionCommandError = async (output, context) => {
2322
2322
  const parsedOutput = {
2323
2323
  ...output,
2324
- body: await parseBody(output.body, context),
2324
+ body: await parseErrorBody(output.body, context),
2325
2325
  };
2326
2326
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2327
2327
  switch (errorCode) {
@@ -2364,7 +2364,7 @@ exports.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = deseria
2364
2364
  const deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommandError = async (output, context) => {
2365
2365
  const parsedOutput = {
2366
2366
  ...output,
2367
- body: await parseBody(output.body, context),
2367
+ body: await parseErrorBody(output.body, context),
2368
2368
  };
2369
2369
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2370
2370
  switch (errorCode) {
@@ -2410,7 +2410,7 @@ exports.deserializeAws_restJson1DeleteFunctionConcurrencyCommand = deserializeAw
2410
2410
  const deserializeAws_restJson1DeleteFunctionConcurrencyCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
2416
2416
  switch (errorCode) {
@@ -2453,7 +2453,7 @@ exports.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = deseria
2453
2453
  const deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = async (output, context) => {
2454
2454
  const parsedOutput = {
2455
2455
  ...output,
2456
- body: await parseBody(output.body, context),
2456
+ body: await parseErrorBody(output.body, context),
2457
2457
  };
2458
2458
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2459
2459
  switch (errorCode) {
@@ -2496,7 +2496,7 @@ exports.deserializeAws_restJson1DeleteFunctionUrlConfigCommand = deserializeAws_
2496
2496
  const deserializeAws_restJson1DeleteFunctionUrlConfigCommandError = async (output, context) => {
2497
2497
  const parsedOutput = {
2498
2498
  ...output,
2499
- body: await parseBody(output.body, context),
2499
+ body: await parseErrorBody(output.body, context),
2500
2500
  };
2501
2501
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2502
2502
  switch (errorCode) {
@@ -2536,7 +2536,7 @@ exports.deserializeAws_restJson1DeleteLayerVersionCommand = deserializeAws_restJ
2536
2536
  const deserializeAws_restJson1DeleteLayerVersionCommandError = async (output, context) => {
2537
2537
  const parsedOutput = {
2538
2538
  ...output,
2539
- body: await parseBody(output.body, context),
2539
+ body: await parseErrorBody(output.body, context),
2540
2540
  };
2541
2541
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2542
2542
  switch (errorCode) {
@@ -2570,7 +2570,7 @@ exports.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = dese
2570
2570
  const deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = async (output, context) => {
2571
2571
  const parsedOutput = {
2572
2572
  ...output,
2573
- body: await parseBody(output.body, context),
2573
+ body: await parseErrorBody(output.body, context),
2574
2574
  };
2575
2575
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2576
2576
  switch (errorCode) {
@@ -2619,7 +2619,7 @@ exports.deserializeAws_restJson1GetAccountSettingsCommand = deserializeAws_restJ
2619
2619
  const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, context) => {
2620
2620
  const parsedOutput = {
2621
2621
  ...output,
2622
- body: await parseBody(output.body, context),
2622
+ body: await parseErrorBody(output.body, context),
2623
2623
  };
2624
2624
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2625
2625
  switch (errorCode) {
@@ -2671,7 +2671,7 @@ exports.deserializeAws_restJson1GetAliasCommand = deserializeAws_restJson1GetAli
2671
2671
  const deserializeAws_restJson1GetAliasCommandError = async (output, context) => {
2672
2672
  const parsedOutput = {
2673
2673
  ...output,
2674
- body: await parseBody(output.body, context),
2674
+ body: await parseErrorBody(output.body, context),
2675
2675
  };
2676
2676
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2677
2677
  switch (errorCode) {
@@ -2714,7 +2714,7 @@ exports.deserializeAws_restJson1GetCodeSigningConfigCommand = deserializeAws_res
2714
2714
  const deserializeAws_restJson1GetCodeSigningConfigCommandError = async (output, context) => {
2715
2715
  const parsedOutput = {
2716
2716
  ...output,
2717
- body: await parseBody(output.body, context),
2717
+ body: await parseErrorBody(output.body, context),
2718
2718
  };
2719
2719
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2720
2720
  switch (errorCode) {
@@ -2826,7 +2826,7 @@ exports.deserializeAws_restJson1GetEventSourceMappingCommand = deserializeAws_re
2826
2826
  const deserializeAws_restJson1GetEventSourceMappingCommandError = async (output, context) => {
2827
2827
  const parsedOutput = {
2828
2828
  ...output,
2829
- body: await parseBody(output.body, context),
2829
+ body: await parseErrorBody(output.body, context),
2830
2830
  };
2831
2831
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2832
2832
  switch (errorCode) {
@@ -2878,7 +2878,7 @@ exports.deserializeAws_restJson1GetFunctionCommand = deserializeAws_restJson1Get
2878
2878
  const deserializeAws_restJson1GetFunctionCommandError = async (output, context) => {
2879
2879
  const parsedOutput = {
2880
2880
  ...output,
2881
- body: await parseBody(output.body, context),
2881
+ body: await parseErrorBody(output.body, context),
2882
2882
  };
2883
2883
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2884
2884
  switch (errorCode) {
@@ -2924,7 +2924,7 @@ exports.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = deserializ
2924
2924
  const deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = async (output, context) => {
2925
2925
  const parsedOutput = {
2926
2926
  ...output,
2927
- body: await parseBody(output.body, context),
2927
+ body: await parseErrorBody(output.body, context),
2928
2928
  };
2929
2929
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2930
2930
  switch (errorCode) {
@@ -2967,7 +2967,7 @@ exports.deserializeAws_restJson1GetFunctionConcurrencyCommand = deserializeAws_r
2967
2967
  const deserializeAws_restJson1GetFunctionConcurrencyCommandError = async (output, context) => {
2968
2968
  const parsedOutput = {
2969
2969
  ...output,
2970
- body: await parseBody(output.body, context),
2970
+ body: await parseErrorBody(output.body, context),
2971
2971
  };
2972
2972
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2973
2973
  switch (errorCode) {
@@ -3106,7 +3106,7 @@ exports.deserializeAws_restJson1GetFunctionConfigurationCommand = deserializeAws
3106
3106
  const deserializeAws_restJson1GetFunctionConfigurationCommandError = async (output, context) => {
3107
3107
  const parsedOutput = {
3108
3108
  ...output,
3109
- body: await parseBody(output.body, context),
3109
+ body: await parseErrorBody(output.body, context),
3110
3110
  };
3111
3111
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3112
3112
  switch (errorCode) {
@@ -3161,7 +3161,7 @@ exports.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = deserializ
3161
3161
  const deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = async (output, context) => {
3162
3162
  const parsedOutput = {
3163
3163
  ...output,
3164
- body: await parseBody(output.body, context),
3164
+ body: await parseErrorBody(output.body, context),
3165
3165
  };
3166
3166
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3167
3167
  switch (errorCode) {
@@ -3219,7 +3219,7 @@ exports.deserializeAws_restJson1GetFunctionUrlConfigCommand = deserializeAws_res
3219
3219
  const deserializeAws_restJson1GetFunctionUrlConfigCommandError = async (output, context) => {
3220
3220
  const parsedOutput = {
3221
3221
  ...output,
3222
- body: await parseBody(output.body, context),
3222
+ body: await parseErrorBody(output.body, context),
3223
3223
  };
3224
3224
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3225
3225
  switch (errorCode) {
@@ -3286,7 +3286,7 @@ exports.deserializeAws_restJson1GetLayerVersionCommand = deserializeAws_restJson
3286
3286
  const deserializeAws_restJson1GetLayerVersionCommandError = async (output, context) => {
3287
3287
  const parsedOutput = {
3288
3288
  ...output,
3289
- body: await parseBody(output.body, context),
3289
+ body: await parseErrorBody(output.body, context),
3290
3290
  };
3291
3291
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3292
3292
  switch (errorCode) {
@@ -3353,7 +3353,7 @@ exports.deserializeAws_restJson1GetLayerVersionByArnCommand = deserializeAws_res
3353
3353
  const deserializeAws_restJson1GetLayerVersionByArnCommandError = async (output, context) => {
3354
3354
  const parsedOutput = {
3355
3355
  ...output,
3356
- body: await parseBody(output.body, context),
3356
+ body: await parseErrorBody(output.body, context),
3357
3357
  };
3358
3358
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3359
3359
  switch (errorCode) {
@@ -3399,7 +3399,7 @@ exports.deserializeAws_restJson1GetLayerVersionPolicyCommand = deserializeAws_re
3399
3399
  const deserializeAws_restJson1GetLayerVersionPolicyCommandError = async (output, context) => {
3400
3400
  const parsedOutput = {
3401
3401
  ...output,
3402
- body: await parseBody(output.body, context),
3402
+ body: await parseErrorBody(output.body, context),
3403
3403
  };
3404
3404
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3405
3405
  switch (errorCode) {
@@ -3445,7 +3445,7 @@ exports.deserializeAws_restJson1GetPolicyCommand = deserializeAws_restJson1GetPo
3445
3445
  const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
3446
3446
  const parsedOutput = {
3447
3447
  ...output,
3448
- body: await parseBody(output.body, context),
3448
+ body: await parseErrorBody(output.body, context),
3449
3449
  };
3450
3450
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3451
3451
  switch (errorCode) {
@@ -3503,7 +3503,7 @@ exports.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = deseria
3503
3503
  const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = async (output, context) => {
3504
3504
  const parsedOutput = {
3505
3505
  ...output,
3506
- body: await parseBody(output.body, context),
3506
+ body: await parseErrorBody(output.body, context),
3507
3507
  };
3508
3508
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3509
3509
  switch (errorCode) {
@@ -3553,7 +3553,7 @@ exports.deserializeAws_restJson1InvokeCommand = deserializeAws_restJson1InvokeCo
3553
3553
  const deserializeAws_restJson1InvokeCommandError = async (output, context) => {
3554
3554
  const parsedOutput = {
3555
3555
  ...output,
3556
- body: await parseBody(output.body, context),
3556
+ body: await parseErrorBody(output.body, context),
3557
3557
  };
3558
3558
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3559
3559
  switch (errorCode) {
@@ -3662,7 +3662,7 @@ exports.deserializeAws_restJson1InvokeAsyncCommand = deserializeAws_restJson1Inv
3662
3662
  const deserializeAws_restJson1InvokeAsyncCommandError = async (output, context) => {
3663
3663
  const parsedOutput = {
3664
3664
  ...output,
3665
- body: await parseBody(output.body, context),
3665
+ body: await parseErrorBody(output.body, context),
3666
3666
  };
3667
3667
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3668
3668
  switch (errorCode) {
@@ -3711,7 +3711,7 @@ exports.deserializeAws_restJson1ListAliasesCommand = deserializeAws_restJson1Lis
3711
3711
  const deserializeAws_restJson1ListAliasesCommandError = async (output, context) => {
3712
3712
  const parsedOutput = {
3713
3713
  ...output,
3714
- body: await parseBody(output.body, context),
3714
+ body: await parseErrorBody(output.body, context),
3715
3715
  };
3716
3716
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3717
3717
  switch (errorCode) {
@@ -3757,7 +3757,7 @@ exports.deserializeAws_restJson1ListCodeSigningConfigsCommand = deserializeAws_r
3757
3757
  const deserializeAws_restJson1ListCodeSigningConfigsCommandError = async (output, context) => {
3758
3758
  const parsedOutput = {
3759
3759
  ...output,
3760
- body: await parseBody(output.body, context),
3760
+ body: await parseErrorBody(output.body, context),
3761
3761
  };
3762
3762
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3763
3763
  switch (errorCode) {
@@ -3797,7 +3797,7 @@ exports.deserializeAws_restJson1ListEventSourceMappingsCommand = deserializeAws_
3797
3797
  const deserializeAws_restJson1ListEventSourceMappingsCommandError = async (output, context) => {
3798
3798
  const parsedOutput = {
3799
3799
  ...output,
3800
- body: await parseBody(output.body, context),
3800
+ body: await parseErrorBody(output.body, context),
3801
3801
  };
3802
3802
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3803
3803
  switch (errorCode) {
@@ -3843,7 +3843,7 @@ exports.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = deserial
3843
3843
  const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = async (output, context) => {
3844
3844
  const parsedOutput = {
3845
3845
  ...output,
3846
- body: await parseBody(output.body, context),
3846
+ body: await parseErrorBody(output.body, context),
3847
3847
  };
3848
3848
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3849
3849
  switch (errorCode) {
@@ -3889,7 +3889,7 @@ exports.deserializeAws_restJson1ListFunctionsCommand = deserializeAws_restJson1L
3889
3889
  const deserializeAws_restJson1ListFunctionsCommandError = async (output, context) => {
3890
3890
  const parsedOutput = {
3891
3891
  ...output,
3892
- body: await parseBody(output.body, context),
3892
+ body: await parseErrorBody(output.body, context),
3893
3893
  };
3894
3894
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3895
3895
  switch (errorCode) {
@@ -3932,7 +3932,7 @@ exports.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = deseri
3932
3932
  const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = async (output, context) => {
3933
3933
  const parsedOutput = {
3934
3934
  ...output,
3935
- body: await parseBody(output.body, context),
3935
+ body: await parseErrorBody(output.body, context),
3936
3936
  };
3937
3937
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3938
3938
  switch (errorCode) {
@@ -3975,7 +3975,7 @@ exports.deserializeAws_restJson1ListFunctionUrlConfigsCommand = deserializeAws_r
3975
3975
  const deserializeAws_restJson1ListFunctionUrlConfigsCommandError = async (output, context) => {
3976
3976
  const parsedOutput = {
3977
3977
  ...output,
3978
- body: await parseBody(output.body, context),
3978
+ body: await parseErrorBody(output.body, context),
3979
3979
  };
3980
3980
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3981
3981
  switch (errorCode) {
@@ -4021,7 +4021,7 @@ exports.deserializeAws_restJson1ListLayersCommand = deserializeAws_restJson1List
4021
4021
  const deserializeAws_restJson1ListLayersCommandError = async (output, context) => {
4022
4022
  const parsedOutput = {
4023
4023
  ...output,
4024
- body: await parseBody(output.body, context),
4024
+ body: await parseErrorBody(output.body, context),
4025
4025
  };
4026
4026
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4027
4027
  switch (errorCode) {
@@ -4064,7 +4064,7 @@ exports.deserializeAws_restJson1ListLayerVersionsCommand = deserializeAws_restJs
4064
4064
  const deserializeAws_restJson1ListLayerVersionsCommandError = async (output, context) => {
4065
4065
  const parsedOutput = {
4066
4066
  ...output,
4067
- body: await parseBody(output.body, context),
4067
+ body: await parseErrorBody(output.body, context),
4068
4068
  };
4069
4069
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4070
4070
  switch (errorCode) {
@@ -4110,7 +4110,7 @@ exports.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = deser
4110
4110
  const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = async (output, context) => {
4111
4111
  const parsedOutput = {
4112
4112
  ...output,
4113
- body: await parseBody(output.body, context),
4113
+ body: await parseErrorBody(output.body, context),
4114
4114
  };
4115
4115
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4116
4116
  switch (errorCode) {
@@ -4153,7 +4153,7 @@ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTa
4153
4153
  const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
4154
4154
  const parsedOutput = {
4155
4155
  ...output,
4156
- body: await parseBody(output.body, context),
4156
+ body: await parseErrorBody(output.body, context),
4157
4157
  };
4158
4158
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4159
4159
  switch (errorCode) {
@@ -4199,7 +4199,7 @@ exports.deserializeAws_restJson1ListVersionsByFunctionCommand = deserializeAws_r
4199
4199
  const deserializeAws_restJson1ListVersionsByFunctionCommandError = async (output, context) => {
4200
4200
  const parsedOutput = {
4201
4201
  ...output,
4202
- body: await parseBody(output.body, context),
4202
+ body: await parseErrorBody(output.body, context),
4203
4203
  };
4204
4204
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4205
4205
  switch (errorCode) {
@@ -4266,7 +4266,7 @@ exports.deserializeAws_restJson1PublishLayerVersionCommand = deserializeAws_rest
4266
4266
  const deserializeAws_restJson1PublishLayerVersionCommandError = async (output, context) => {
4267
4267
  const parsedOutput = {
4268
4268
  ...output,
4269
- body: await parseBody(output.body, context),
4269
+ body: await parseErrorBody(output.body, context),
4270
4270
  };
4271
4271
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4272
4272
  switch (errorCode) {
@@ -4408,7 +4408,7 @@ exports.deserializeAws_restJson1PublishVersionCommand = deserializeAws_restJson1
4408
4408
  const deserializeAws_restJson1PublishVersionCommandError = async (output, context) => {
4409
4409
  const parsedOutput = {
4410
4410
  ...output,
4411
- body: await parseBody(output.body, context),
4411
+ body: await parseErrorBody(output.body, context),
4412
4412
  };
4413
4413
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4414
4414
  switch (errorCode) {
@@ -4463,7 +4463,7 @@ exports.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = deserializ
4463
4463
  const deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = async (output, context) => {
4464
4464
  const parsedOutput = {
4465
4465
  ...output,
4466
- body: await parseBody(output.body, context),
4466
+ body: await parseErrorBody(output.body, context),
4467
4467
  };
4468
4468
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4469
4469
  switch (errorCode) {
@@ -4512,7 +4512,7 @@ exports.deserializeAws_restJson1PutFunctionConcurrencyCommand = deserializeAws_r
4512
4512
  const deserializeAws_restJson1PutFunctionConcurrencyCommandError = async (output, context) => {
4513
4513
  const parsedOutput = {
4514
4514
  ...output,
4515
- body: await parseBody(output.body, context),
4515
+ body: await parseErrorBody(output.body, context),
4516
4516
  };
4517
4517
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4518
4518
  switch (errorCode) {
@@ -4570,7 +4570,7 @@ exports.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = deserializ
4570
4570
  const deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = async (output, context) => {
4571
4571
  const parsedOutput = {
4572
4572
  ...output,
4573
- body: await parseBody(output.body, context),
4573
+ body: await parseErrorBody(output.body, context),
4574
4574
  };
4575
4575
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4576
4576
  switch (errorCode) {
@@ -4631,7 +4631,7 @@ exports.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = deseria
4631
4631
  const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = async (output, context) => {
4632
4632
  const parsedOutput = {
4633
4633
  ...output,
4634
- body: await parseBody(output.body, context),
4634
+ body: await parseErrorBody(output.body, context),
4635
4635
  };
4636
4636
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4637
4637
  switch (errorCode) {
@@ -4674,7 +4674,7 @@ exports.deserializeAws_restJson1RemoveLayerVersionPermissionCommand = deserializ
4674
4674
  const deserializeAws_restJson1RemoveLayerVersionPermissionCommandError = async (output, context) => {
4675
4675
  const parsedOutput = {
4676
4676
  ...output,
4677
- body: await parseBody(output.body, context),
4677
+ body: await parseErrorBody(output.body, context),
4678
4678
  };
4679
4679
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4680
4680
  switch (errorCode) {
@@ -4717,7 +4717,7 @@ exports.deserializeAws_restJson1RemovePermissionCommand = deserializeAws_restJso
4717
4717
  const deserializeAws_restJson1RemovePermissionCommandError = async (output, context) => {
4718
4718
  const parsedOutput = {
4719
4719
  ...output,
4720
- body: await parseBody(output.body, context),
4720
+ body: await parseErrorBody(output.body, context),
4721
4721
  };
4722
4722
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4723
4723
  switch (errorCode) {
@@ -4760,7 +4760,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
4760
4760
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
4761
4761
  const parsedOutput = {
4762
4762
  ...output,
4763
- body: await parseBody(output.body, context),
4763
+ body: await parseErrorBody(output.body, context),
4764
4764
  };
4765
4765
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4766
4766
  switch (errorCode) {
@@ -4803,7 +4803,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
4803
4803
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
4804
4804
  const parsedOutput = {
4805
4805
  ...output,
4806
- body: await parseBody(output.body, context),
4806
+ body: await parseErrorBody(output.body, context),
4807
4807
  };
4808
4808
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4809
4809
  switch (errorCode) {
@@ -4864,7 +4864,7 @@ exports.deserializeAws_restJson1UpdateAliasCommand = deserializeAws_restJson1Upd
4864
4864
  const deserializeAws_restJson1UpdateAliasCommandError = async (output, context) => {
4865
4865
  const parsedOutput = {
4866
4866
  ...output,
4867
- body: await parseBody(output.body, context),
4867
+ body: await parseErrorBody(output.body, context),
4868
4868
  };
4869
4869
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4870
4870
  switch (errorCode) {
@@ -4913,7 +4913,7 @@ exports.deserializeAws_restJson1UpdateCodeSigningConfigCommand = deserializeAws_
4913
4913
  const deserializeAws_restJson1UpdateCodeSigningConfigCommandError = async (output, context) => {
4914
4914
  const parsedOutput = {
4915
4915
  ...output,
4916
- body: await parseBody(output.body, context),
4916
+ body: await parseErrorBody(output.body, context),
4917
4917
  };
4918
4918
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4919
4919
  switch (errorCode) {
@@ -5025,7 +5025,7 @@ exports.deserializeAws_restJson1UpdateEventSourceMappingCommand = deserializeAws
5025
5025
  const deserializeAws_restJson1UpdateEventSourceMappingCommandError = async (output, context) => {
5026
5026
  const parsedOutput = {
5027
5027
  ...output,
5028
- body: await parseBody(output.body, context),
5028
+ body: await parseErrorBody(output.body, context),
5029
5029
  };
5030
5030
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5031
5031
  switch (errorCode) {
@@ -5170,7 +5170,7 @@ exports.deserializeAws_restJson1UpdateFunctionCodeCommand = deserializeAws_restJ
5170
5170
  const deserializeAws_restJson1UpdateFunctionCodeCommandError = async (output, context) => {
5171
5171
  const parsedOutput = {
5172
5172
  ...output,
5173
- body: await parseBody(output.body, context),
5173
+ body: await parseErrorBody(output.body, context),
5174
5174
  };
5175
5175
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5176
5176
  switch (errorCode) {
@@ -5327,7 +5327,7 @@ exports.deserializeAws_restJson1UpdateFunctionConfigurationCommand = deserialize
5327
5327
  const deserializeAws_restJson1UpdateFunctionConfigurationCommandError = async (output, context) => {
5328
5328
  const parsedOutput = {
5329
5329
  ...output,
5330
- body: await parseBody(output.body, context),
5330
+ body: await parseErrorBody(output.body, context),
5331
5331
  };
5332
5332
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5333
5333
  switch (errorCode) {
@@ -5397,7 +5397,7 @@ exports.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = deseria
5397
5397
  const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = async (output, context) => {
5398
5398
  const parsedOutput = {
5399
5399
  ...output,
5400
- body: await parseBody(output.body, context),
5400
+ body: await parseErrorBody(output.body, context),
5401
5401
  };
5402
5402
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5403
5403
  switch (errorCode) {
@@ -5458,7 +5458,7 @@ exports.deserializeAws_restJson1UpdateFunctionUrlConfigCommand = deserializeAws_
5458
5458
  const deserializeAws_restJson1UpdateFunctionUrlConfigCommandError = async (output, context) => {
5459
5459
  const parsedOutput = {
5460
5460
  ...output,
5461
- body: await parseBody(output.body, context),
5461
+ body: await parseErrorBody(output.body, context),
5462
5462
  };
5463
5463
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5464
5464
  switch (errorCode) {
@@ -7059,6 +7059,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7059
7059
  }
7060
7060
  return {};
7061
7061
  });
7062
+ const parseErrorBody = async (errorBody, context) => {
7063
+ var _a;
7064
+ const value = await parseBody(errorBody, context);
7065
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
7066
+ return value;
7067
+ };
7062
7068
  const loadRestJsonErrorCode = (output, data) => {
7063
7069
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
7064
7070
  const sanitizeErrorCode = (rawValue) => {
@@ -1768,7 +1768,7 @@ var deserializeAws_restJson1AddLayerVersionPermissionCommandError = function (ou
1768
1768
  case 0:
1769
1769
  _a = [__assign({}, output)];
1770
1770
  _c = {};
1771
- return [4, parseBody(output.body, context)];
1771
+ return [4, parseErrorBody(output.body, context)];
1772
1772
  case 1:
1773
1773
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1774
1774
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1848,7 +1848,7 @@ var deserializeAws_restJson1AddPermissionCommandError = function (output, contex
1848
1848
  case 0:
1849
1849
  _a = [__assign({}, output)];
1850
1850
  _c = {};
1851
- return [4, parseBody(output.body, context)];
1851
+ return [4, parseErrorBody(output.body, context)];
1852
1852
  case 1:
1853
1853
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1854
1854
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1943,7 +1943,7 @@ var deserializeAws_restJson1CreateAliasCommandError = function (output, context)
1943
1943
  case 0:
1944
1944
  _a = [__assign({}, output)];
1945
1945
  _c = {};
1946
- return [4, parseBody(output.body, context)];
1946
+ return [4, parseErrorBody(output.body, context)];
1947
1947
  case 1:
1948
1948
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1949
1949
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2015,7 +2015,7 @@ var deserializeAws_restJson1CreateCodeSigningConfigCommandError = function (outp
2015
2015
  case 0:
2016
2016
  _a = [__assign({}, output)];
2017
2017
  _c = {};
2018
- return [4, parseBody(output.body, context)];
2018
+ return [4, parseErrorBody(output.body, context)];
2019
2019
  case 1:
2020
2020
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2021
2021
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2147,7 +2147,7 @@ var deserializeAws_restJson1CreateEventSourceMappingCommandError = function (out
2147
2147
  case 0:
2148
2148
  _a = [__assign({}, output)];
2149
2149
  _c = {};
2150
- return [4, parseBody(output.body, context)];
2150
+ return [4, parseErrorBody(output.body, context)];
2151
2151
  case 1:
2152
2152
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2153
2153
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2315,7 +2315,7 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
2315
2315
  case 0:
2316
2316
  _a = [__assign({}, output)];
2317
2317
  _c = {};
2318
- return [4, parseBody(output.body, context)];
2318
+ return [4, parseErrorBody(output.body, context)];
2319
2319
  case 1:
2320
2320
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2321
2321
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2415,7 +2415,7 @@ var deserializeAws_restJson1CreateFunctionUrlConfigCommandError = function (outp
2415
2415
  case 0:
2416
2416
  _a = [__assign({}, output)];
2417
2417
  _c = {};
2418
- return [4, parseBody(output.body, context)];
2418
+ return [4, parseErrorBody(output.body, context)];
2419
2419
  case 1:
2420
2420
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2421
2421
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2482,7 +2482,7 @@ var deserializeAws_restJson1DeleteAliasCommandError = function (output, context)
2482
2482
  case 0:
2483
2483
  _a = [__assign({}, output)];
2484
2484
  _c = {};
2485
- return [4, parseBody(output.body, context)];
2485
+ return [4, parseErrorBody(output.body, context)];
2486
2486
  case 1:
2487
2487
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2488
2488
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2545,7 +2545,7 @@ var deserializeAws_restJson1DeleteCodeSigningConfigCommandError = function (outp
2545
2545
  case 0:
2546
2546
  _a = [__assign({}, output)];
2547
2547
  _c = {};
2548
- return [4, parseBody(output.body, context)];
2548
+ return [4, parseErrorBody(output.body, context)];
2549
2549
  case 1:
2550
2550
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2551
2551
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2685,7 +2685,7 @@ var deserializeAws_restJson1DeleteEventSourceMappingCommandError = function (out
2685
2685
  case 0:
2686
2686
  _a = [__assign({}, output)];
2687
2687
  _c = {};
2688
- return [4, parseBody(output.body, context)];
2688
+ return [4, parseErrorBody(output.body, context)];
2689
2689
  case 1:
2690
2690
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2691
2691
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2752,7 +2752,7 @@ var deserializeAws_restJson1DeleteFunctionCommandError = function (output, conte
2752
2752
  case 0:
2753
2753
  _a = [__assign({}, output)];
2754
2754
  _c = {};
2755
- return [4, parseBody(output.body, context)];
2755
+ return [4, parseErrorBody(output.body, context)];
2756
2756
  case 1:
2757
2757
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2758
2758
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2819,7 +2819,7 @@ var deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommandError = functi
2819
2819
  case 0:
2820
2820
  _a = [__assign({}, output)];
2821
2821
  _c = {};
2822
- return [4, parseBody(output.body, context)];
2822
+ return [4, parseErrorBody(output.body, context)];
2823
2823
  case 1:
2824
2824
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2825
2825
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2890,7 +2890,7 @@ var deserializeAws_restJson1DeleteFunctionConcurrencyCommandError = function (ou
2890
2890
  case 0:
2891
2891
  _a = [__assign({}, output)];
2892
2892
  _c = {};
2893
- return [4, parseBody(output.body, context)];
2893
+ return [4, parseErrorBody(output.body, context)];
2894
2894
  case 1:
2895
2895
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2896
2896
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2957,7 +2957,7 @@ var deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = functi
2957
2957
  case 0:
2958
2958
  _a = [__assign({}, output)];
2959
2959
  _c = {};
2960
- return [4, parseBody(output.body, context)];
2960
+ return [4, parseErrorBody(output.body, context)];
2961
2961
  case 1:
2962
2962
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2963
2963
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3024,7 +3024,7 @@ var deserializeAws_restJson1DeleteFunctionUrlConfigCommandError = function (outp
3024
3024
  case 0:
3025
3025
  _a = [__assign({}, output)];
3026
3026
  _c = {};
3027
- return [4, parseBody(output.body, context)];
3027
+ return [4, parseErrorBody(output.body, context)];
3028
3028
  case 1:
3029
3029
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3030
3030
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3087,7 +3087,7 @@ var deserializeAws_restJson1DeleteLayerVersionCommandError = function (output, c
3087
3087
  case 0:
3088
3088
  _a = [__assign({}, output)];
3089
3089
  _c = {};
3090
- return [4, parseBody(output.body, context)];
3090
+ return [4, parseErrorBody(output.body, context)];
3091
3091
  case 1:
3092
3092
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3093
3093
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3142,7 +3142,7 @@ var deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = fun
3142
3142
  case 0:
3143
3143
  _a = [__assign({}, output)];
3144
3144
  _c = {};
3145
- return [4, parseBody(output.body, context)];
3145
+ return [4, parseErrorBody(output.body, context)];
3146
3146
  case 1:
3147
3147
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3148
3148
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3217,7 +3217,7 @@ var deserializeAws_restJson1GetAccountSettingsCommandError = function (output, c
3217
3217
  case 0:
3218
3218
  _a = [__assign({}, output)];
3219
3219
  _c = {};
3220
- return [4, parseBody(output.body, context)];
3220
+ return [4, parseErrorBody(output.body, context)];
3221
3221
  case 1:
3222
3222
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3223
3223
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3292,7 +3292,7 @@ var deserializeAws_restJson1GetAliasCommandError = function (output, context) {
3292
3292
  case 0:
3293
3293
  _a = [__assign({}, output)];
3294
3294
  _c = {};
3295
- return [4, parseBody(output.body, context)];
3295
+ return [4, parseErrorBody(output.body, context)];
3296
3296
  case 1:
3297
3297
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3298
3298
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3360,7 +3360,7 @@ var deserializeAws_restJson1GetCodeSigningConfigCommandError = function (output,
3360
3360
  case 0:
3361
3361
  _a = [__assign({}, output)];
3362
3362
  _c = {};
3363
- return [4, parseBody(output.body, context)];
3363
+ return [4, parseErrorBody(output.body, context)];
3364
3364
  case 1:
3365
3365
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3366
3366
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3496,7 +3496,7 @@ var deserializeAws_restJson1GetEventSourceMappingCommandError = function (output
3496
3496
  case 0:
3497
3497
  _a = [__assign({}, output)];
3498
3498
  _c = {};
3499
- return [4, parseBody(output.body, context)];
3499
+ return [4, parseErrorBody(output.body, context)];
3500
3500
  case 1:
3501
3501
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3502
3502
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3573,7 +3573,7 @@ var deserializeAws_restJson1GetFunctionCommandError = function (output, context)
3573
3573
  case 0:
3574
3574
  _a = [__assign({}, output)];
3575
3575
  _c = {};
3576
- return [4, parseBody(output.body, context)];
3576
+ return [4, parseErrorBody(output.body, context)];
3577
3577
  case 1:
3578
3578
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3579
3579
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3644,7 +3644,7 @@ var deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = function
3644
3644
  case 0:
3645
3645
  _a = [__assign({}, output)];
3646
3646
  _c = {};
3647
- return [4, parseBody(output.body, context)];
3647
+ return [4, parseErrorBody(output.body, context)];
3648
3648
  case 1:
3649
3649
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3650
3650
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3712,7 +3712,7 @@ var deserializeAws_restJson1GetFunctionConcurrencyCommandError = function (outpu
3712
3712
  case 0:
3713
3713
  _a = [__assign({}, output)];
3714
3714
  _c = {};
3715
- return [4, parseBody(output.body, context)];
3715
+ return [4, parseErrorBody(output.body, context)];
3716
3716
  case 1:
3717
3717
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3718
3718
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3876,7 +3876,7 @@ var deserializeAws_restJson1GetFunctionConfigurationCommandError = function (out
3876
3876
  case 0:
3877
3877
  _a = [__assign({}, output)];
3878
3878
  _c = {};
3879
- return [4, parseBody(output.body, context)];
3879
+ return [4, parseErrorBody(output.body, context)];
3880
3880
  case 1:
3881
3881
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3882
3882
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3956,7 +3956,7 @@ var deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = function
3956
3956
  case 0:
3957
3957
  _a = [__assign({}, output)];
3958
3958
  _c = {};
3959
- return [4, parseBody(output.body, context)];
3959
+ return [4, parseErrorBody(output.body, context)];
3960
3960
  case 1:
3961
3961
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3962
3962
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4039,7 +4039,7 @@ var deserializeAws_restJson1GetFunctionUrlConfigCommandError = function (output,
4039
4039
  case 0:
4040
4040
  _a = [__assign({}, output)];
4041
4041
  _c = {};
4042
- return [4, parseBody(output.body, context)];
4042
+ return [4, parseErrorBody(output.body, context)];
4043
4043
  case 1:
4044
4044
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4045
4045
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4131,7 +4131,7 @@ var deserializeAws_restJson1GetLayerVersionCommandError = function (output, cont
4131
4131
  case 0:
4132
4132
  _a = [__assign({}, output)];
4133
4133
  _c = {};
4134
- return [4, parseBody(output.body, context)];
4134
+ return [4, parseErrorBody(output.body, context)];
4135
4135
  case 1:
4136
4136
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4137
4137
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4223,7 +4223,7 @@ var deserializeAws_restJson1GetLayerVersionByArnCommandError = function (output,
4223
4223
  case 0:
4224
4224
  _a = [__assign({}, output)];
4225
4225
  _c = {};
4226
- return [4, parseBody(output.body, context)];
4226
+ return [4, parseErrorBody(output.body, context)];
4227
4227
  case 1:
4228
4228
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4229
4229
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4294,7 +4294,7 @@ var deserializeAws_restJson1GetLayerVersionPolicyCommandError = function (output
4294
4294
  case 0:
4295
4295
  _a = [__assign({}, output)];
4296
4296
  _c = {};
4297
- return [4, parseBody(output.body, context)];
4297
+ return [4, parseErrorBody(output.body, context)];
4298
4298
  case 1:
4299
4299
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4300
4300
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4365,7 +4365,7 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
4365
4365
  case 0:
4366
4366
  _a = [__assign({}, output)];
4367
4367
  _c = {};
4368
- return [4, parseBody(output.body, context)];
4368
+ return [4, parseErrorBody(output.body, context)];
4369
4369
  case 1:
4370
4370
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4371
4371
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4448,7 +4448,7 @@ var deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = functi
4448
4448
  case 0:
4449
4449
  _a = [__assign({}, output)];
4450
4450
  _c = {};
4451
- return [4, parseBody(output.body, context)];
4451
+ return [4, parseErrorBody(output.body, context)];
4452
4452
  case 1:
4453
4453
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4454
4454
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4522,7 +4522,7 @@ var deserializeAws_restJson1InvokeCommandError = function (output, context) { re
4522
4522
  case 0:
4523
4523
  _a = [__assign({}, output)];
4524
4524
  _c = {};
4525
- return [4, parseBody(output.body, context)];
4525
+ return [4, parseErrorBody(output.body, context)];
4526
4526
  case 1:
4527
4527
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4528
4528
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4676,7 +4676,7 @@ var deserializeAws_restJson1InvokeAsyncCommandError = function (output, context)
4676
4676
  case 0:
4677
4677
  _a = [__assign({}, output)];
4678
4678
  _c = {};
4679
- return [4, parseBody(output.body, context)];
4679
+ return [4, parseErrorBody(output.body, context)];
4680
4680
  case 1:
4681
4681
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4682
4682
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4751,7 +4751,7 @@ var deserializeAws_restJson1ListAliasesCommandError = function (output, context)
4751
4751
  case 0:
4752
4752
  _a = [__assign({}, output)];
4753
4753
  _c = {};
4754
- return [4, parseBody(output.body, context)];
4754
+ return [4, parseErrorBody(output.body, context)];
4755
4755
  case 1:
4756
4756
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4757
4757
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4822,7 +4822,7 @@ var deserializeAws_restJson1ListCodeSigningConfigsCommandError = function (outpu
4822
4822
  case 0:
4823
4823
  _a = [__assign({}, output)];
4824
4824
  _c = {};
4825
- return [4, parseBody(output.body, context)];
4825
+ return [4, parseErrorBody(output.body, context)];
4826
4826
  case 1:
4827
4827
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4828
4828
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4885,7 +4885,7 @@ var deserializeAws_restJson1ListEventSourceMappingsCommandError = function (outp
4885
4885
  case 0:
4886
4886
  _a = [__assign({}, output)];
4887
4887
  _c = {};
4888
- return [4, parseBody(output.body, context)];
4888
+ return [4, parseErrorBody(output.body, context)];
4889
4889
  case 1:
4890
4890
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4891
4891
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4956,7 +4956,7 @@ var deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = functio
4956
4956
  case 0:
4957
4957
  _a = [__assign({}, output)];
4958
4958
  _c = {};
4959
- return [4, parseBody(output.body, context)];
4959
+ return [4, parseErrorBody(output.body, context)];
4960
4960
  case 1:
4961
4961
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4962
4962
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5027,7 +5027,7 @@ var deserializeAws_restJson1ListFunctionsCommandError = function (output, contex
5027
5027
  case 0:
5028
5028
  _a = [__assign({}, output)];
5029
5029
  _c = {};
5030
- return [4, parseBody(output.body, context)];
5030
+ return [4, parseErrorBody(output.body, context)];
5031
5031
  case 1:
5032
5032
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5033
5033
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5094,7 +5094,7 @@ var deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = funct
5094
5094
  case 0:
5095
5095
  _a = [__assign({}, output)];
5096
5096
  _c = {};
5097
- return [4, parseBody(output.body, context)];
5097
+ return [4, parseErrorBody(output.body, context)];
5098
5098
  case 1:
5099
5099
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5100
5100
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5161,7 +5161,7 @@ var deserializeAws_restJson1ListFunctionUrlConfigsCommandError = function (outpu
5161
5161
  case 0:
5162
5162
  _a = [__assign({}, output)];
5163
5163
  _c = {};
5164
- return [4, parseBody(output.body, context)];
5164
+ return [4, parseErrorBody(output.body, context)];
5165
5165
  case 1:
5166
5166
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5167
5167
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5232,7 +5232,7 @@ var deserializeAws_restJson1ListLayersCommandError = function (output, context)
5232
5232
  case 0:
5233
5233
  _a = [__assign({}, output)];
5234
5234
  _c = {};
5235
- return [4, parseBody(output.body, context)];
5235
+ return [4, parseErrorBody(output.body, context)];
5236
5236
  case 1:
5237
5237
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5238
5238
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5299,7 +5299,7 @@ var deserializeAws_restJson1ListLayerVersionsCommandError = function (output, co
5299
5299
  case 0:
5300
5300
  _a = [__assign({}, output)];
5301
5301
  _c = {};
5302
- return [4, parseBody(output.body, context)];
5302
+ return [4, parseErrorBody(output.body, context)];
5303
5303
  case 1:
5304
5304
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5305
5305
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5370,7 +5370,7 @@ var deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = func
5370
5370
  case 0:
5371
5371
  _a = [__assign({}, output)];
5372
5372
  _c = {};
5373
- return [4, parseBody(output.body, context)];
5373
+ return [4, parseErrorBody(output.body, context)];
5374
5374
  case 1:
5375
5375
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5376
5376
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5438,7 +5438,7 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
5438
5438
  case 0:
5439
5439
  _a = [__assign({}, output)];
5440
5440
  _c = {};
5441
- return [4, parseBody(output.body, context)];
5441
+ return [4, parseErrorBody(output.body, context)];
5442
5442
  case 1:
5443
5443
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5444
5444
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5509,7 +5509,7 @@ var deserializeAws_restJson1ListVersionsByFunctionCommandError = function (outpu
5509
5509
  case 0:
5510
5510
  _a = [__assign({}, output)];
5511
5511
  _c = {};
5512
- return [4, parseBody(output.body, context)];
5512
+ return [4, parseErrorBody(output.body, context)];
5513
5513
  case 1:
5514
5514
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5515
5515
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5601,7 +5601,7 @@ var deserializeAws_restJson1PublishLayerVersionCommandError = function (output,
5601
5601
  case 0:
5602
5602
  _a = [__assign({}, output)];
5603
5603
  _c = {};
5604
- return [4, parseBody(output.body, context)];
5604
+ return [4, parseErrorBody(output.body, context)];
5605
5605
  case 1:
5606
5606
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5607
5607
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5769,7 +5769,7 @@ var deserializeAws_restJson1PublishVersionCommandError = function (output, conte
5769
5769
  case 0:
5770
5770
  _a = [__assign({}, output)];
5771
5771
  _c = {};
5772
- return [4, parseBody(output.body, context)];
5772
+ return [4, parseErrorBody(output.body, context)];
5773
5773
  case 1:
5774
5774
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5775
5775
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5852,7 +5852,7 @@ var deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = function
5852
5852
  case 0:
5853
5853
  _a = [__assign({}, output)];
5854
5854
  _c = {};
5855
- return [4, parseBody(output.body, context)];
5855
+ return [4, parseErrorBody(output.body, context)];
5856
5856
  case 1:
5857
5857
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5858
5858
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -5928,7 +5928,7 @@ var deserializeAws_restJson1PutFunctionConcurrencyCommandError = function (outpu
5928
5928
  case 0:
5929
5929
  _a = [__assign({}, output)];
5930
5930
  _c = {};
5931
- return [4, parseBody(output.body, context)];
5931
+ return [4, parseErrorBody(output.body, context)];
5932
5932
  case 1:
5933
5933
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5934
5934
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6012,7 +6012,7 @@ var deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = function
6012
6012
  case 0:
6013
6013
  _a = [__assign({}, output)];
6014
6014
  _c = {};
6015
- return [4, parseBody(output.body, context)];
6015
+ return [4, parseErrorBody(output.body, context)];
6016
6016
  case 1:
6017
6017
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6018
6018
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6099,7 +6099,7 @@ var deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = functi
6099
6099
  case 0:
6100
6100
  _a = [__assign({}, output)];
6101
6101
  _c = {};
6102
- return [4, parseBody(output.body, context)];
6102
+ return [4, parseErrorBody(output.body, context)];
6103
6103
  case 1:
6104
6104
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6105
6105
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6166,7 +6166,7 @@ var deserializeAws_restJson1RemoveLayerVersionPermissionCommandError = function
6166
6166
  case 0:
6167
6167
  _a = [__assign({}, output)];
6168
6168
  _c = {};
6169
- return [4, parseBody(output.body, context)];
6169
+ return [4, parseErrorBody(output.body, context)];
6170
6170
  case 1:
6171
6171
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6172
6172
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6233,7 +6233,7 @@ var deserializeAws_restJson1RemovePermissionCommandError = function (output, con
6233
6233
  case 0:
6234
6234
  _a = [__assign({}, output)];
6235
6235
  _c = {};
6236
- return [4, parseBody(output.body, context)];
6236
+ return [4, parseErrorBody(output.body, context)];
6237
6237
  case 1:
6238
6238
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6239
6239
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6300,7 +6300,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
6300
6300
  case 0:
6301
6301
  _a = [__assign({}, output)];
6302
6302
  _c = {};
6303
- return [4, parseBody(output.body, context)];
6303
+ return [4, parseErrorBody(output.body, context)];
6304
6304
  case 1:
6305
6305
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6306
6306
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6367,7 +6367,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
6367
6367
  case 0:
6368
6368
  _a = [__assign({}, output)];
6369
6369
  _c = {};
6370
- return [4, parseBody(output.body, context)];
6370
+ return [4, parseErrorBody(output.body, context)];
6371
6371
  case 1:
6372
6372
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6373
6373
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6454,7 +6454,7 @@ var deserializeAws_restJson1UpdateAliasCommandError = function (output, context)
6454
6454
  case 0:
6455
6455
  _a = [__assign({}, output)];
6456
6456
  _c = {};
6457
- return [4, parseBody(output.body, context)];
6457
+ return [4, parseErrorBody(output.body, context)];
6458
6458
  case 1:
6459
6459
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6460
6460
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6530,7 +6530,7 @@ var deserializeAws_restJson1UpdateCodeSigningConfigCommandError = function (outp
6530
6530
  case 0:
6531
6531
  _a = [__assign({}, output)];
6532
6532
  _c = {};
6533
- return [4, parseBody(output.body, context)];
6533
+ return [4, parseErrorBody(output.body, context)];
6534
6534
  case 1:
6535
6535
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6536
6536
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6666,7 +6666,7 @@ var deserializeAws_restJson1UpdateEventSourceMappingCommandError = function (out
6666
6666
  case 0:
6667
6667
  _a = [__assign({}, output)];
6668
6668
  _c = {};
6669
- return [4, parseBody(output.body, context)];
6669
+ return [4, parseErrorBody(output.body, context)];
6670
6670
  case 1:
6671
6671
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6672
6672
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6838,7 +6838,7 @@ var deserializeAws_restJson1UpdateFunctionCodeCommandError = function (output, c
6838
6838
  case 0:
6839
6839
  _a = [__assign({}, output)];
6840
6840
  _c = {};
6841
- return [4, parseBody(output.body, context)];
6841
+ return [4, parseErrorBody(output.body, context)];
6842
6842
  case 1:
6843
6843
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6844
6844
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -7026,7 +7026,7 @@ var deserializeAws_restJson1UpdateFunctionConfigurationCommandError = function (
7026
7026
  case 0:
7027
7027
  _a = [__assign({}, output)];
7028
7028
  _c = {};
7029
- return [4, parseBody(output.body, context)];
7029
+ return [4, parseErrorBody(output.body, context)];
7030
7030
  case 1:
7031
7031
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7032
7032
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -7126,7 +7126,7 @@ var deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = functi
7126
7126
  case 0:
7127
7127
  _a = [__assign({}, output)];
7128
7128
  _c = {};
7129
- return [4, parseBody(output.body, context)];
7129
+ return [4, parseErrorBody(output.body, context)];
7130
7130
  case 1:
7131
7131
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7132
7132
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -7213,7 +7213,7 @@ var deserializeAws_restJson1UpdateFunctionUrlConfigCommandError = function (outp
7213
7213
  case 0:
7214
7214
  _a = [__assign({}, output)];
7215
7215
  _c = {};
7216
- return [4, parseBody(output.body, context)];
7216
+ return [4, parseErrorBody(output.body, context)];
7217
7217
  case 1:
7218
7218
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7219
7219
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -8763,6 +8763,19 @@ var parseBody = function (streamBody, context) {
8763
8763
  return {};
8764
8764
  });
8765
8765
  };
8766
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
8767
+ var value;
8768
+ var _a;
8769
+ return __generator(this, function (_b) {
8770
+ switch (_b.label) {
8771
+ case 0: return [4, parseBody(errorBody, context)];
8772
+ case 1:
8773
+ value = _b.sent();
8774
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
8775
+ return [2, value];
8776
+ }
8777
+ });
8778
+ }); };
8766
8779
  var loadRestJsonErrorCode = function (output, data) {
8767
8780
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
8768
8781
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.179.0",
4
+ "version": "3.181.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.179.0",
22
+ "@aws-sdk/client-sts": "3.181.0",
23
23
  "@aws-sdk/config-resolver": "3.178.0",
24
- "@aws-sdk/credential-provider-node": "3.178.0",
24
+ "@aws-sdk/credential-provider-node": "3.181.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.178.0",
26
26
  "@aws-sdk/hash-node": "3.178.0",
27
27
  "@aws-sdk/invalid-dependency": "3.178.0",
@@ -37,20 +37,20 @@
37
37
  "@aws-sdk/node-config-provider": "3.178.0",
38
38
  "@aws-sdk/node-http-handler": "3.178.0",
39
39
  "@aws-sdk/protocol-http": "3.178.0",
40
- "@aws-sdk/smithy-client": "3.178.0",
40
+ "@aws-sdk/smithy-client": "3.180.0",
41
41
  "@aws-sdk/types": "3.178.0",
42
42
  "@aws-sdk/url-parser": "3.178.0",
43
43
  "@aws-sdk/util-base64-browser": "3.170.0",
44
44
  "@aws-sdk/util-base64-node": "3.170.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.170.0",
46
46
  "@aws-sdk/util-body-length-node": "3.170.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.178.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.178.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.180.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.180.0",
49
49
  "@aws-sdk/util-user-agent-browser": "3.178.0",
50
50
  "@aws-sdk/util-user-agent-node": "3.178.0",
51
51
  "@aws-sdk/util-utf8-browser": "3.170.0",
52
52
  "@aws-sdk/util-utf8-node": "3.170.0",
53
- "@aws-sdk/util-waiter": "3.178.0",
53
+ "@aws-sdk/util-waiter": "3.180.0",
54
54
  "tslib": "^2.3.1"
55
55
  },
56
56
  "devDependencies": {