@aws-sdk/client-iot-wireless 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.
@@ -2172,7 +2172,7 @@ exports.deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = d
2172
2172
  const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError = async (output, context) => {
2173
2173
  const parsedOutput = {
2174
2174
  ...output,
2175
- body: await parseBody(output.body, context),
2175
+ body: await parseErrorBody(output.body, context),
2176
2176
  };
2177
2177
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
2178
  switch (errorCode) {
@@ -2218,7 +2218,7 @@ exports.deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = de
2218
2218
  const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError = async (output, context) => {
2219
2219
  const parsedOutput = {
2220
2220
  ...output,
2221
- body: await parseBody(output.body, context),
2221
+ body: await parseErrorBody(output.body, context),
2222
2222
  };
2223
2223
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2224
2224
  switch (errorCode) {
@@ -2264,7 +2264,7 @@ exports.deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = de
2264
2264
  const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError = async (output, context) => {
2265
2265
  const parsedOutput = {
2266
2266
  ...output,
2267
- body: await parseBody(output.body, context),
2267
+ body: await parseErrorBody(output.body, context),
2268
2268
  };
2269
2269
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2270
2270
  switch (errorCode) {
@@ -2310,7 +2310,7 @@ exports.deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand
2310
2310
  const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandError = async (output, context) => {
2311
2311
  const parsedOutput = {
2312
2312
  ...output,
2313
- body: await parseBody(output.body, context),
2313
+ body: await parseErrorBody(output.body, context),
2314
2314
  };
2315
2315
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2316
2316
  switch (errorCode) {
@@ -2356,7 +2356,7 @@ exports.deserializeAws_restJson1AssociateWirelessDeviceWithThingCommand = deseri
2356
2356
  const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = async (output, context) => {
2357
2357
  const parsedOutput = {
2358
2358
  ...output,
2359
- body: await parseBody(output.body, context),
2359
+ body: await parseErrorBody(output.body, context),
2360
2360
  };
2361
2361
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2362
2362
  switch (errorCode) {
@@ -2405,7 +2405,7 @@ exports.deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand =
2405
2405
  const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandError = async (output, context) => {
2406
2406
  const parsedOutput = {
2407
2407
  ...output,
2408
- body: await parseBody(output.body, context),
2408
+ body: await parseErrorBody(output.body, context),
2409
2409
  };
2410
2410
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2411
2411
  switch (errorCode) {
@@ -2451,7 +2451,7 @@ exports.deserializeAws_restJson1AssociateWirelessGatewayWithThingCommand = deser
2451
2451
  const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = async (output, context) => {
2452
2452
  const parsedOutput = {
2453
2453
  ...output,
2454
- body: await parseBody(output.body, context),
2454
+ body: await parseErrorBody(output.body, context),
2455
2455
  };
2456
2456
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2457
2457
  switch (errorCode) {
@@ -2497,7 +2497,7 @@ exports.deserializeAws_restJson1CancelMulticastGroupSessionCommand = deserialize
2497
2497
  const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (output, context) => {
2498
2498
  const parsedOutput = {
2499
2499
  ...output,
2500
- body: await parseBody(output.body, context),
2500
+ body: await parseErrorBody(output.body, context),
2501
2501
  };
2502
2502
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2503
2503
  switch (errorCode) {
@@ -2549,7 +2549,7 @@ exports.deserializeAws_restJson1CreateDestinationCommand = deserializeAws_restJs
2549
2549
  const deserializeAws_restJson1CreateDestinationCommandError = async (output, context) => {
2550
2550
  const parsedOutput = {
2551
2551
  ...output,
2552
- body: await parseBody(output.body, context),
2552
+ body: await parseErrorBody(output.body, context),
2553
2553
  };
2554
2554
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2555
2555
  switch (errorCode) {
@@ -2601,7 +2601,7 @@ exports.deserializeAws_restJson1CreateDeviceProfileCommand = deserializeAws_rest
2601
2601
  const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, context) => {
2602
2602
  const parsedOutput = {
2603
2603
  ...output,
2604
- body: await parseBody(output.body, context),
2604
+ body: await parseErrorBody(output.body, context),
2605
2605
  };
2606
2606
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2607
2607
  switch (errorCode) {
@@ -2650,7 +2650,7 @@ exports.deserializeAws_restJson1CreateFuotaTaskCommand = deserializeAws_restJson
2650
2650
  const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, context) => {
2651
2651
  const parsedOutput = {
2652
2652
  ...output,
2653
- body: await parseBody(output.body, context),
2653
+ body: await parseErrorBody(output.body, context),
2654
2654
  };
2655
2655
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2656
2656
  switch (errorCode) {
@@ -2702,7 +2702,7 @@ exports.deserializeAws_restJson1CreateMulticastGroupCommand = deserializeAws_res
2702
2702
  const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output, context) => {
2703
2703
  const parsedOutput = {
2704
2704
  ...output,
2705
- body: await parseBody(output.body, context),
2705
+ body: await parseErrorBody(output.body, context),
2706
2706
  };
2707
2707
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2708
2708
  switch (errorCode) {
@@ -2754,7 +2754,7 @@ exports.deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = dese
2754
2754
  const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = async (output, context) => {
2755
2755
  const parsedOutput = {
2756
2756
  ...output,
2757
- body: await parseBody(output.body, context),
2757
+ body: await parseErrorBody(output.body, context),
2758
2758
  };
2759
2759
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2760
2760
  switch (errorCode) {
@@ -2806,7 +2806,7 @@ exports.deserializeAws_restJson1CreateServiceProfileCommand = deserializeAws_res
2806
2806
  const deserializeAws_restJson1CreateServiceProfileCommandError = async (output, context) => {
2807
2807
  const parsedOutput = {
2808
2808
  ...output,
2809
- body: await parseBody(output.body, context),
2809
+ body: await parseErrorBody(output.body, context),
2810
2810
  };
2811
2811
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2812
2812
  switch (errorCode) {
@@ -2855,7 +2855,7 @@ exports.deserializeAws_restJson1CreateWirelessDeviceCommand = deserializeAws_res
2855
2855
  const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output, context) => {
2856
2856
  const parsedOutput = {
2857
2857
  ...output,
2858
- body: await parseBody(output.body, context),
2858
+ body: await parseErrorBody(output.body, context),
2859
2859
  };
2860
2860
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2861
2861
  switch (errorCode) {
@@ -2907,7 +2907,7 @@ exports.deserializeAws_restJson1CreateWirelessGatewayCommand = deserializeAws_re
2907
2907
  const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output, context) => {
2908
2908
  const parsedOutput = {
2909
2909
  ...output,
2910
- body: await parseBody(output.body, context),
2910
+ body: await parseErrorBody(output.body, context),
2911
2911
  };
2912
2912
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2913
2913
  switch (errorCode) {
@@ -2956,7 +2956,7 @@ exports.deserializeAws_restJson1CreateWirelessGatewayTaskCommand = deserializeAw
2956
2956
  const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (output, context) => {
2957
2957
  const parsedOutput = {
2958
2958
  ...output,
2959
- body: await parseBody(output.body, context),
2959
+ body: await parseErrorBody(output.body, context),
2960
2960
  };
2961
2961
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2962
2962
  switch (errorCode) {
@@ -3008,7 +3008,7 @@ exports.deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = des
3008
3008
  const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError = async (output, context) => {
3009
3009
  const parsedOutput = {
3010
3010
  ...output,
3011
- body: await parseBody(output.body, context),
3011
+ body: await parseErrorBody(output.body, context),
3012
3012
  };
3013
3013
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3014
3014
  switch (errorCode) {
@@ -3054,7 +3054,7 @@ exports.deserializeAws_restJson1DeleteDestinationCommand = deserializeAws_restJs
3054
3054
  const deserializeAws_restJson1DeleteDestinationCommandError = async (output, context) => {
3055
3055
  const parsedOutput = {
3056
3056
  ...output,
3057
- body: await parseBody(output.body, context),
3057
+ body: await parseErrorBody(output.body, context),
3058
3058
  };
3059
3059
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3060
3060
  switch (errorCode) {
@@ -3100,7 +3100,7 @@ exports.deserializeAws_restJson1DeleteDeviceProfileCommand = deserializeAws_rest
3100
3100
  const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, context) => {
3101
3101
  const parsedOutput = {
3102
3102
  ...output,
3103
- body: await parseBody(output.body, context),
3103
+ body: await parseErrorBody(output.body, context),
3104
3104
  };
3105
3105
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3106
3106
  switch (errorCode) {
@@ -3146,7 +3146,7 @@ exports.deserializeAws_restJson1DeleteFuotaTaskCommand = deserializeAws_restJson
3146
3146
  const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, context) => {
3147
3147
  const parsedOutput = {
3148
3148
  ...output,
3149
- body: await parseBody(output.body, context),
3149
+ body: await parseErrorBody(output.body, context),
3150
3150
  };
3151
3151
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3152
3152
  switch (errorCode) {
@@ -3189,7 +3189,7 @@ exports.deserializeAws_restJson1DeleteMulticastGroupCommand = deserializeAws_res
3189
3189
  const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output, context) => {
3190
3190
  const parsedOutput = {
3191
3191
  ...output,
3192
- body: await parseBody(output.body, context),
3192
+ body: await parseErrorBody(output.body, context),
3193
3193
  };
3194
3194
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3195
3195
  switch (errorCode) {
@@ -3235,7 +3235,7 @@ exports.deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = dese
3235
3235
  const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = async (output, context) => {
3236
3236
  const parsedOutput = {
3237
3237
  ...output,
3238
- body: await parseBody(output.body, context),
3238
+ body: await parseErrorBody(output.body, context),
3239
3239
  };
3240
3240
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3241
3241
  switch (errorCode) {
@@ -3281,7 +3281,7 @@ exports.deserializeAws_restJson1DeleteQueuedMessagesCommand = deserializeAws_res
3281
3281
  const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output, context) => {
3282
3282
  const parsedOutput = {
3283
3283
  ...output,
3284
- body: await parseBody(output.body, context),
3284
+ body: await parseErrorBody(output.body, context),
3285
3285
  };
3286
3286
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3287
3287
  switch (errorCode) {
@@ -3324,7 +3324,7 @@ exports.deserializeAws_restJson1DeleteServiceProfileCommand = deserializeAws_res
3324
3324
  const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output, context) => {
3325
3325
  const parsedOutput = {
3326
3326
  ...output,
3327
- body: await parseBody(output.body, context),
3327
+ body: await parseErrorBody(output.body, context),
3328
3328
  };
3329
3329
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3330
3330
  switch (errorCode) {
@@ -3370,7 +3370,7 @@ exports.deserializeAws_restJson1DeleteWirelessDeviceCommand = deserializeAws_res
3370
3370
  const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output, context) => {
3371
3371
  const parsedOutput = {
3372
3372
  ...output,
3373
- body: await parseBody(output.body, context),
3373
+ body: await parseErrorBody(output.body, context),
3374
3374
  };
3375
3375
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3376
3376
  switch (errorCode) {
@@ -3413,7 +3413,7 @@ exports.deserializeAws_restJson1DeleteWirelessGatewayCommand = deserializeAws_re
3413
3413
  const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output, context) => {
3414
3414
  const parsedOutput = {
3415
3415
  ...output,
3416
- body: await parseBody(output.body, context),
3416
+ body: await parseErrorBody(output.body, context),
3417
3417
  };
3418
3418
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3419
3419
  switch (errorCode) {
@@ -3456,7 +3456,7 @@ exports.deserializeAws_restJson1DeleteWirelessGatewayTaskCommand = deserializeAw
3456
3456
  const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (output, context) => {
3457
3457
  const parsedOutput = {
3458
3458
  ...output,
3459
- body: await parseBody(output.body, context),
3459
+ body: await parseErrorBody(output.body, context),
3460
3460
  };
3461
3461
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3462
3462
  switch (errorCode) {
@@ -3499,7 +3499,7 @@ exports.deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = des
3499
3499
  const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError = async (output, context) => {
3500
3500
  const parsedOutput = {
3501
3501
  ...output,
3502
- body: await parseBody(output.body, context),
3502
+ body: await parseErrorBody(output.body, context),
3503
3503
  };
3504
3504
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3505
3505
  switch (errorCode) {
@@ -3542,7 +3542,7 @@ exports.deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand
3542
3542
  const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandError = async (output, context) => {
3543
3543
  const parsedOutput = {
3544
3544
  ...output,
3545
- body: await parseBody(output.body, context),
3545
+ body: await parseErrorBody(output.body, context),
3546
3546
  };
3547
3547
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3548
3548
  switch (errorCode) {
@@ -3582,7 +3582,7 @@ exports.deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand =
3582
3582
  const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandError = async (output, context) => {
3583
3583
  const parsedOutput = {
3584
3584
  ...output,
3585
- body: await parseBody(output.body, context),
3585
+ body: await parseErrorBody(output.body, context),
3586
3586
  };
3587
3587
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3588
3588
  switch (errorCode) {
@@ -3625,7 +3625,7 @@ exports.deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand =
3625
3625
  const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandError = async (output, context) => {
3626
3626
  const parsedOutput = {
3627
3627
  ...output,
3628
- body: await parseBody(output.body, context),
3628
+ body: await parseErrorBody(output.body, context),
3629
3629
  };
3630
3630
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3631
3631
  switch (errorCode) {
@@ -3671,7 +3671,7 @@ exports.deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComm
3671
3671
  const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommandError = async (output, context) => {
3672
3672
  const parsedOutput = {
3673
3673
  ...output,
3674
- body: await parseBody(output.body, context),
3674
+ body: await parseErrorBody(output.body, context),
3675
3675
  };
3676
3676
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3677
3677
  switch (errorCode) {
@@ -3714,7 +3714,7 @@ exports.deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = des
3714
3714
  const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError = async (output, context) => {
3715
3715
  const parsedOutput = {
3716
3716
  ...output,
3717
- body: await parseBody(output.body, context),
3717
+ body: await parseErrorBody(output.body, context),
3718
3718
  };
3719
3719
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3720
3720
  switch (errorCode) {
@@ -3760,7 +3760,7 @@ exports.deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateComman
3760
3760
  const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandError = async (output, context) => {
3761
3761
  const parsedOutput = {
3762
3762
  ...output,
3763
- body: await parseBody(output.body, context),
3763
+ body: await parseErrorBody(output.body, context),
3764
3764
  };
3765
3765
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3766
3766
  switch (errorCode) {
@@ -3803,7 +3803,7 @@ exports.deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = de
3803
3803
  const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError = async (output, context) => {
3804
3804
  const parsedOutput = {
3805
3805
  ...output,
3806
- body: await parseBody(output.body, context),
3806
+ body: await parseErrorBody(output.body, context),
3807
3807
  };
3808
3808
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3809
3809
  switch (errorCode) {
@@ -3867,7 +3867,7 @@ exports.deserializeAws_restJson1GetDestinationCommand = deserializeAws_restJson1
3867
3867
  const deserializeAws_restJson1GetDestinationCommandError = async (output, context) => {
3868
3868
  const parsedOutput = {
3869
3869
  ...output,
3870
- body: await parseBody(output.body, context),
3870
+ body: await parseErrorBody(output.body, context),
3871
3871
  };
3872
3872
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3873
3873
  switch (errorCode) {
@@ -3922,7 +3922,7 @@ exports.deserializeAws_restJson1GetDeviceProfileCommand = deserializeAws_restJso
3922
3922
  const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, context) => {
3923
3923
  const parsedOutput = {
3924
3924
  ...output,
3925
- body: await parseBody(output.body, context),
3925
+ body: await parseErrorBody(output.body, context),
3926
3926
  };
3927
3927
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3928
3928
  switch (errorCode) {
@@ -3980,7 +3980,7 @@ exports.deserializeAws_restJson1GetEventConfigurationByResourceTypesCommand = de
3980
3980
  const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError = async (output, context) => {
3981
3981
  const parsedOutput = {
3982
3982
  ...output,
3983
- body: await parseBody(output.body, context),
3983
+ body: await parseErrorBody(output.body, context),
3984
3984
  };
3985
3985
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3986
3986
  switch (errorCode) {
@@ -4044,7 +4044,7 @@ exports.deserializeAws_restJson1GetFuotaTaskCommand = deserializeAws_restJson1Ge
4044
4044
  const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context) => {
4045
4045
  const parsedOutput = {
4046
4046
  ...output,
4047
- body: await parseBody(output.body, context),
4047
+ body: await parseErrorBody(output.body, context),
4048
4048
  };
4049
4049
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4050
4050
  switch (errorCode) {
@@ -4096,7 +4096,7 @@ exports.deserializeAws_restJson1GetLogLevelsByResourceTypesCommand = deserialize
4096
4096
  const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (output, context) => {
4097
4097
  const parsedOutput = {
4098
4098
  ...output,
4099
- body: await parseBody(output.body, context),
4099
+ body: await parseErrorBody(output.body, context),
4100
4100
  };
4101
4101
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4102
4102
  switch (errorCode) {
@@ -4160,7 +4160,7 @@ exports.deserializeAws_restJson1GetMulticastGroupCommand = deserializeAws_restJs
4160
4160
  const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, context) => {
4161
4161
  const parsedOutput = {
4162
4162
  ...output,
4163
- body: await parseBody(output.body, context),
4163
+ body: await parseErrorBody(output.body, context),
4164
4164
  };
4165
4165
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4166
4166
  switch (errorCode) {
@@ -4206,7 +4206,7 @@ exports.deserializeAws_restJson1GetMulticastGroupSessionCommand = deserializeAws
4206
4206
  const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (output, context) => {
4207
4207
  const parsedOutput = {
4208
4208
  ...output,
4209
- body: await parseBody(output.body, context),
4209
+ body: await parseErrorBody(output.body, context),
4210
4210
  };
4211
4211
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4212
4212
  switch (errorCode) {
@@ -4267,7 +4267,7 @@ exports.deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = deseria
4267
4267
  const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = async (output, context) => {
4268
4268
  const parsedOutput = {
4269
4269
  ...output,
4270
- body: await parseBody(output.body, context),
4270
+ body: await parseErrorBody(output.body, context),
4271
4271
  };
4272
4272
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4273
4273
  switch (errorCode) {
@@ -4316,7 +4316,7 @@ exports.deserializeAws_restJson1GetPartnerAccountCommand = deserializeAws_restJs
4316
4316
  const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, context) => {
4317
4317
  const parsedOutput = {
4318
4318
  ...output,
4319
- body: await parseBody(output.body, context),
4319
+ body: await parseErrorBody(output.body, context),
4320
4320
  };
4321
4321
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4322
4322
  switch (errorCode) {
@@ -4374,7 +4374,7 @@ exports.deserializeAws_restJson1GetPositionCommand = deserializeAws_restJson1Get
4374
4374
  const deserializeAws_restJson1GetPositionCommandError = async (output, context) => {
4375
4375
  const parsedOutput = {
4376
4376
  ...output,
4377
- body: await parseBody(output.body, context),
4377
+ body: await parseErrorBody(output.body, context),
4378
4378
  };
4379
4379
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4380
4380
  switch (errorCode) {
@@ -4423,7 +4423,7 @@ exports.deserializeAws_restJson1GetPositionConfigurationCommand = deserializeAws
4423
4423
  const deserializeAws_restJson1GetPositionConfigurationCommandError = async (output, context) => {
4424
4424
  const parsedOutput = {
4425
4425
  ...output,
4426
- body: await parseBody(output.body, context),
4426
+ body: await parseErrorBody(output.body, context),
4427
4427
  };
4428
4428
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4429
4429
  switch (errorCode) {
@@ -4481,7 +4481,7 @@ exports.deserializeAws_restJson1GetResourceEventConfigurationCommand = deseriali
4481
4481
  const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async (output, context) => {
4482
4482
  const parsedOutput = {
4483
4483
  ...output,
4484
- body: await parseBody(output.body, context),
4484
+ body: await parseErrorBody(output.body, context),
4485
4485
  };
4486
4486
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4487
4487
  switch (errorCode) {
@@ -4527,7 +4527,7 @@ exports.deserializeAws_restJson1GetResourceLogLevelCommand = deserializeAws_rest
4527
4527
  const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, context) => {
4528
4528
  const parsedOutput = {
4529
4529
  ...output,
4530
- body: await parseBody(output.body, context),
4530
+ body: await parseErrorBody(output.body, context),
4531
4531
  };
4532
4532
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4533
4533
  switch (errorCode) {
@@ -4579,7 +4579,7 @@ exports.deserializeAws_restJson1GetServiceEndpointCommand = deserializeAws_restJ
4579
4579
  const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, context) => {
4580
4580
  const parsedOutput = {
4581
4581
  ...output,
4582
- body: await parseBody(output.body, context),
4582
+ body: await parseErrorBody(output.body, context),
4583
4583
  };
4584
4584
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4585
4585
  switch (errorCode) {
@@ -4631,7 +4631,7 @@ exports.deserializeAws_restJson1GetServiceProfileCommand = deserializeAws_restJs
4631
4631
  const deserializeAws_restJson1GetServiceProfileCommandError = 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) {
@@ -4704,7 +4704,7 @@ exports.deserializeAws_restJson1GetWirelessDeviceCommand = deserializeAws_restJs
4704
4704
  const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, context) => {
4705
4705
  const parsedOutput = {
4706
4706
  ...output,
4707
- body: await parseBody(output.body, context),
4707
+ body: await parseErrorBody(output.body, context),
4708
4708
  };
4709
4709
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4710
4710
  switch (errorCode) {
@@ -4759,7 +4759,7 @@ exports.deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = deserialize
4759
4759
  const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (output, context) => {
4760
4760
  const parsedOutput = {
4761
4761
  ...output,
4762
- body: await parseBody(output.body, context),
4762
+ body: await parseErrorBody(output.body, context),
4763
4763
  };
4764
4764
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4765
4765
  switch (errorCode) {
@@ -4823,7 +4823,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayCommand = deserializeAws_restJ
4823
4823
  const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, context) => {
4824
4824
  const parsedOutput = {
4825
4825
  ...output,
4826
- body: await parseBody(output.body, context),
4826
+ body: await parseErrorBody(output.body, context),
4827
4827
  };
4828
4828
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4829
4829
  switch (errorCode) {
@@ -4872,7 +4872,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayCertificateCommand = deseriali
4872
4872
  const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
4878
4878
  switch (errorCode) {
@@ -4918,7 +4918,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = d
4918
4918
  const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError = async (output, context) => {
4919
4919
  const parsedOutput = {
4920
4920
  ...output,
4921
- body: await parseBody(output.body, context),
4921
+ body: await parseErrorBody(output.body, context),
4922
4922
  };
4923
4923
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4924
4924
  switch (errorCode) {
@@ -4970,7 +4970,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayStatisticsCommand = deserializ
4970
4970
  const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (output, context) => {
4971
4971
  const parsedOutput = {
4972
4972
  ...output,
4973
- body: await parseBody(output.body, context),
4973
+ body: await parseErrorBody(output.body, context),
4974
4974
  };
4975
4975
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4976
4976
  switch (errorCode) {
@@ -5028,7 +5028,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayTaskCommand = deserializeAws_r
5028
5028
  const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output, context) => {
5029
5029
  const parsedOutput = {
5030
5030
  ...output,
5031
- body: await parseBody(output.body, context),
5031
+ body: await parseErrorBody(output.body, context),
5032
5032
  };
5033
5033
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5034
5034
  switch (errorCode) {
@@ -5083,7 +5083,7 @@ exports.deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = deseri
5083
5083
  const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = async (output, context) => {
5084
5084
  const parsedOutput = {
5085
5085
  ...output,
5086
- body: await parseBody(output.body, context),
5086
+ body: await parseErrorBody(output.body, context),
5087
5087
  };
5088
5088
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5089
5089
  switch (errorCode) {
@@ -5132,7 +5132,7 @@ exports.deserializeAws_restJson1ListDestinationsCommand = deserializeAws_restJso
5132
5132
  const deserializeAws_restJson1ListDestinationsCommandError = async (output, context) => {
5133
5133
  const parsedOutput = {
5134
5134
  ...output,
5135
- body: await parseBody(output.body, context),
5135
+ body: await parseErrorBody(output.body, context),
5136
5136
  };
5137
5137
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5138
5138
  switch (errorCode) {
@@ -5178,7 +5178,7 @@ exports.deserializeAws_restJson1ListDeviceProfilesCommand = deserializeAws_restJ
5178
5178
  const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, context) => {
5179
5179
  const parsedOutput = {
5180
5180
  ...output,
5181
- body: await parseBody(output.body, context),
5181
+ body: await parseErrorBody(output.body, context),
5182
5182
  };
5183
5183
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5184
5184
  switch (errorCode) {
@@ -5224,7 +5224,7 @@ exports.deserializeAws_restJson1ListEventConfigurationsCommand = deserializeAws_
5224
5224
  const deserializeAws_restJson1ListEventConfigurationsCommandError = async (output, context) => {
5225
5225
  const parsedOutput = {
5226
5226
  ...output,
5227
- body: await parseBody(output.body, context),
5227
+ body: await parseErrorBody(output.body, context),
5228
5228
  };
5229
5229
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5230
5230
  switch (errorCode) {
@@ -5270,7 +5270,7 @@ exports.deserializeAws_restJson1ListFuotaTasksCommand = deserializeAws_restJson1
5270
5270
  const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, context) => {
5271
5271
  const parsedOutput = {
5272
5272
  ...output,
5273
- body: await parseBody(output.body, context),
5273
+ body: await parseErrorBody(output.body, context),
5274
5274
  };
5275
5275
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5276
5276
  switch (errorCode) {
@@ -5316,7 +5316,7 @@ exports.deserializeAws_restJson1ListMulticastGroupsCommand = deserializeAws_rest
5316
5316
  const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, context) => {
5317
5317
  const parsedOutput = {
5318
5318
  ...output,
5319
- body: await parseBody(output.body, context),
5319
+ body: await parseErrorBody(output.body, context),
5320
5320
  };
5321
5321
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5322
5322
  switch (errorCode) {
@@ -5362,7 +5362,7 @@ exports.deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = deserial
5362
5362
  const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async (output, context) => {
5363
5363
  const parsedOutput = {
5364
5364
  ...output,
5365
- body: await parseBody(output.body, context),
5365
+ body: await parseErrorBody(output.body, context),
5366
5366
  };
5367
5367
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5368
5368
  switch (errorCode) {
@@ -5411,7 +5411,7 @@ exports.deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = deser
5411
5411
  const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = async (output, context) => {
5412
5412
  const parsedOutput = {
5413
5413
  ...output,
5414
- body: await parseBody(output.body, context),
5414
+ body: await parseErrorBody(output.body, context),
5415
5415
  };
5416
5416
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5417
5417
  switch (errorCode) {
@@ -5457,7 +5457,7 @@ exports.deserializeAws_restJson1ListPartnerAccountsCommand = deserializeAws_rest
5457
5457
  const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, context) => {
5458
5458
  const parsedOutput = {
5459
5459
  ...output,
5460
- body: await parseBody(output.body, context),
5460
+ body: await parseErrorBody(output.body, context),
5461
5461
  };
5462
5462
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5463
5463
  switch (errorCode) {
@@ -5503,7 +5503,7 @@ exports.deserializeAws_restJson1ListPositionConfigurationsCommand = deserializeA
5503
5503
  const deserializeAws_restJson1ListPositionConfigurationsCommandError = async (output, context) => {
5504
5504
  const parsedOutput = {
5505
5505
  ...output,
5506
- body: await parseBody(output.body, context),
5506
+ body: await parseErrorBody(output.body, context),
5507
5507
  };
5508
5508
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5509
5509
  switch (errorCode) {
@@ -5549,7 +5549,7 @@ exports.deserializeAws_restJson1ListQueuedMessagesCommand = deserializeAws_restJ
5549
5549
  const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, context) => {
5550
5550
  const parsedOutput = {
5551
5551
  ...output,
5552
- body: await parseBody(output.body, context),
5552
+ body: await parseErrorBody(output.body, context),
5553
5553
  };
5554
5554
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5555
5555
  switch (errorCode) {
@@ -5598,7 +5598,7 @@ exports.deserializeAws_restJson1ListServiceProfilesCommand = deserializeAws_rest
5598
5598
  const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, context) => {
5599
5599
  const parsedOutput = {
5600
5600
  ...output,
5601
- body: await parseBody(output.body, context),
5601
+ body: await parseErrorBody(output.body, context),
5602
5602
  };
5603
5603
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5604
5604
  switch (errorCode) {
@@ -5641,7 +5641,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
5641
5641
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
5642
5642
  const parsedOutput = {
5643
5643
  ...output,
5644
- body: await parseBody(output.body, context),
5644
+ body: await parseErrorBody(output.body, context),
5645
5645
  };
5646
5646
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5647
5647
  switch (errorCode) {
@@ -5690,7 +5690,7 @@ exports.deserializeAws_restJson1ListWirelessDevicesCommand = deserializeAws_rest
5690
5690
  const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, context) => {
5691
5691
  const parsedOutput = {
5692
5692
  ...output,
5693
- body: await parseBody(output.body, context),
5693
+ body: await parseErrorBody(output.body, context),
5694
5694
  };
5695
5695
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5696
5696
  switch (errorCode) {
@@ -5736,7 +5736,7 @@ exports.deserializeAws_restJson1ListWirelessGatewaysCommand = deserializeAws_res
5736
5736
  const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output, context) => {
5737
5737
  const parsedOutput = {
5738
5738
  ...output,
5739
- body: await parseBody(output.body, context),
5739
+ body: await parseErrorBody(output.body, context),
5740
5740
  };
5741
5741
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5742
5742
  switch (errorCode) {
@@ -5782,7 +5782,7 @@ exports.deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = dese
5782
5782
  const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = async (output, context) => {
5783
5783
  const parsedOutput = {
5784
5784
  ...output,
5785
- body: await parseBody(output.body, context),
5785
+ body: await parseErrorBody(output.body, context),
5786
5786
  };
5787
5787
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5788
5788
  switch (errorCode) {
@@ -5822,7 +5822,7 @@ exports.deserializeAws_restJson1PutPositionConfigurationCommand = deserializeAws
5822
5822
  const deserializeAws_restJson1PutPositionConfigurationCommandError = async (output, context) => {
5823
5823
  const parsedOutput = {
5824
5824
  ...output,
5825
- body: await parseBody(output.body, context),
5825
+ body: await parseErrorBody(output.body, context),
5826
5826
  };
5827
5827
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5828
5828
  switch (errorCode) {
@@ -5865,7 +5865,7 @@ exports.deserializeAws_restJson1PutResourceLogLevelCommand = deserializeAws_rest
5865
5865
  const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, context) => {
5866
5866
  const parsedOutput = {
5867
5867
  ...output,
5868
- body: await parseBody(output.body, context),
5868
+ body: await parseErrorBody(output.body, context),
5869
5869
  };
5870
5870
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5871
5871
  switch (errorCode) {
@@ -5908,7 +5908,7 @@ exports.deserializeAws_restJson1ResetAllResourceLogLevelsCommand = deserializeAw
5908
5908
  const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (output, context) => {
5909
5909
  const parsedOutput = {
5910
5910
  ...output,
5911
- body: await parseBody(output.body, context),
5911
+ body: await parseErrorBody(output.body, context),
5912
5912
  };
5913
5913
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5914
5914
  switch (errorCode) {
@@ -5951,7 +5951,7 @@ exports.deserializeAws_restJson1ResetResourceLogLevelCommand = deserializeAws_re
5951
5951
  const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output, context) => {
5952
5952
  const parsedOutput = {
5953
5953
  ...output,
5954
- body: await parseBody(output.body, context),
5954
+ body: await parseErrorBody(output.body, context),
5955
5955
  };
5956
5956
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5957
5957
  switch (errorCode) {
@@ -5997,7 +5997,7 @@ exports.deserializeAws_restJson1SendDataToMulticastGroupCommand = deserializeAws
5997
5997
  const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (output, context) => {
5998
5998
  const parsedOutput = {
5999
5999
  ...output,
6000
- body: await parseBody(output.body, context),
6000
+ body: await parseErrorBody(output.body, context),
6001
6001
  };
6002
6002
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6003
6003
  switch (errorCode) {
@@ -6046,7 +6046,7 @@ exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = deserializeAws
6046
6046
  const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (output, context) => {
6047
6047
  const parsedOutput = {
6048
6048
  ...output,
6049
- body: await parseBody(output.body, context),
6049
+ body: await parseErrorBody(output.body, context),
6050
6050
  };
6051
6051
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6052
6052
  switch (errorCode) {
@@ -6086,7 +6086,7 @@ exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGro
6086
6086
  const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommandError = async (output, context) => {
6087
6087
  const parsedOutput = {
6088
6088
  ...output,
6089
- body: await parseBody(output.body, context),
6089
+ body: await parseErrorBody(output.body, context),
6090
6090
  };
6091
6091
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6092
6092
  switch (errorCode) {
@@ -6129,7 +6129,7 @@ exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticast
6129
6129
  const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommandError = async (output, context) => {
6130
6130
  const parsedOutput = {
6131
6131
  ...output,
6132
- body: await parseBody(output.body, context),
6132
+ body: await parseErrorBody(output.body, context),
6133
6133
  };
6134
6134
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6135
6135
  switch (errorCode) {
@@ -6172,7 +6172,7 @@ exports.deserializeAws_restJson1StartFuotaTaskCommand = deserializeAws_restJson1
6172
6172
  const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, context) => {
6173
6173
  const parsedOutput = {
6174
6174
  ...output,
6175
- body: await parseBody(output.body, context),
6175
+ body: await parseErrorBody(output.body, context),
6176
6176
  };
6177
6177
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6178
6178
  switch (errorCode) {
@@ -6218,7 +6218,7 @@ exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = deserializeA
6218
6218
  const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (output, context) => {
6219
6219
  const parsedOutput = {
6220
6220
  ...output,
6221
- body: await parseBody(output.body, context),
6221
+ body: await parseErrorBody(output.body, context),
6222
6222
  };
6223
6223
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6224
6224
  switch (errorCode) {
@@ -6264,7 +6264,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
6264
6264
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
6265
6265
  const parsedOutput = {
6266
6266
  ...output,
6267
- body: await parseBody(output.body, context),
6267
+ body: await parseErrorBody(output.body, context),
6268
6268
  };
6269
6269
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6270
6270
  switch (errorCode) {
@@ -6313,7 +6313,7 @@ exports.deserializeAws_restJson1TestWirelessDeviceCommand = deserializeAws_restJ
6313
6313
  const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, context) => {
6314
6314
  const parsedOutput = {
6315
6315
  ...output,
6316
- body: await parseBody(output.body, context),
6316
+ body: await parseErrorBody(output.body, context),
6317
6317
  };
6318
6318
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6319
6319
  switch (errorCode) {
@@ -6353,7 +6353,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
6353
6353
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
6354
6354
  const parsedOutput = {
6355
6355
  ...output,
6356
- body: await parseBody(output.body, context),
6356
+ body: await parseErrorBody(output.body, context),
6357
6357
  };
6358
6358
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6359
6359
  switch (errorCode) {
@@ -6396,7 +6396,7 @@ exports.deserializeAws_restJson1UpdateDestinationCommand = deserializeAws_restJs
6396
6396
  const deserializeAws_restJson1UpdateDestinationCommandError = async (output, context) => {
6397
6397
  const parsedOutput = {
6398
6398
  ...output,
6399
- body: await parseBody(output.body, context),
6399
+ body: await parseErrorBody(output.body, context),
6400
6400
  };
6401
6401
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6402
6402
  switch (errorCode) {
@@ -6439,7 +6439,7 @@ exports.deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand =
6439
6439
  const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandError = async (output, context) => {
6440
6440
  const parsedOutput = {
6441
6441
  ...output,
6442
- body: await parseBody(output.body, context),
6442
+ body: await parseErrorBody(output.body, context),
6443
6443
  };
6444
6444
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6445
6445
  switch (errorCode) {
@@ -6479,7 +6479,7 @@ exports.deserializeAws_restJson1UpdateFuotaTaskCommand = deserializeAws_restJson
6479
6479
  const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, context) => {
6480
6480
  const parsedOutput = {
6481
6481
  ...output,
6482
- body: await parseBody(output.body, context),
6482
+ body: await parseErrorBody(output.body, context),
6483
6483
  };
6484
6484
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6485
6485
  switch (errorCode) {
@@ -6525,7 +6525,7 @@ exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = deserial
6525
6525
  const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async (output, context) => {
6526
6526
  const parsedOutput = {
6527
6527
  ...output,
6528
- body: await parseBody(output.body, context),
6528
+ body: await parseErrorBody(output.body, context),
6529
6529
  };
6530
6530
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6531
6531
  switch (errorCode) {
@@ -6571,7 +6571,7 @@ exports.deserializeAws_restJson1UpdateMulticastGroupCommand = deserializeAws_res
6571
6571
  const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output, context) => {
6572
6572
  const parsedOutput = {
6573
6573
  ...output,
6574
- body: await parseBody(output.body, context),
6574
+ body: await parseErrorBody(output.body, context),
6575
6575
  };
6576
6576
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6577
6577
  switch (errorCode) {
@@ -6617,7 +6617,7 @@ exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = dese
6617
6617
  const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = async (output, context) => {
6618
6618
  const parsedOutput = {
6619
6619
  ...output,
6620
- body: await parseBody(output.body, context),
6620
+ body: await parseErrorBody(output.body, context),
6621
6621
  };
6622
6622
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6623
6623
  switch (errorCode) {
@@ -6660,7 +6660,7 @@ exports.deserializeAws_restJson1UpdatePartnerAccountCommand = deserializeAws_res
6660
6660
  const deserializeAws_restJson1UpdatePartnerAccountCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
6666
6666
  switch (errorCode) {
@@ -6700,7 +6700,7 @@ exports.deserializeAws_restJson1UpdatePositionCommand = deserializeAws_restJson1
6700
6700
  const deserializeAws_restJson1UpdatePositionCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
6706
6706
  switch (errorCode) {
@@ -6743,7 +6743,7 @@ exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = deseri
6743
6743
  const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = async (output, context) => {
6744
6744
  const parsedOutput = {
6745
6745
  ...output,
6746
- body: await parseBody(output.body, context),
6746
+ body: await parseErrorBody(output.body, context),
6747
6747
  };
6748
6748
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6749
6749
  switch (errorCode) {
@@ -6789,7 +6789,7 @@ exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = deserializeAws_res
6789
6789
  const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output, context) => {
6790
6790
  const parsedOutput = {
6791
6791
  ...output,
6792
- body: await parseBody(output.body, context),
6792
+ body: await parseErrorBody(output.body, context),
6793
6793
  };
6794
6794
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6795
6795
  switch (errorCode) {
@@ -6832,7 +6832,7 @@ exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = deserializeAws_re
6832
6832
  const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output, context) => {
6833
6833
  const parsedOutput = {
6834
6834
  ...output,
6835
- body: await parseBody(output.body, context),
6835
+ body: await parseErrorBody(output.body, context),
6836
6836
  };
6837
6837
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6838
6838
  switch (errorCode) {
@@ -8448,6 +8448,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
8448
8448
  }
8449
8449
  return {};
8450
8450
  });
8451
+ const parseErrorBody = async (errorBody, context) => {
8452
+ var _a;
8453
+ const value = await parseBody(errorBody, context);
8454
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
8455
+ return value;
8456
+ };
8451
8457
  const loadRestJsonErrorCode = (output, data) => {
8452
8458
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
8453
8459
  const sanitizeErrorCode = (rawValue) => {