@aws-sdk/client-pinpoint-email 3.180.0 → 3.181.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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
+
6
18
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
19
 
8
20
  **Note:** Version bump only for package @aws-sdk/client-pinpoint-email
@@ -940,7 +940,7 @@ exports.deserializeAws_restJson1CreateConfigurationSetCommand = deserializeAws_r
940
940
  const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output, context) => {
941
941
  const parsedOutput = {
942
942
  ...output,
943
- body: await parseBody(output.body, context),
943
+ body: await parseErrorBody(output.body, context),
944
944
  };
945
945
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
946
  switch (errorCode) {
@@ -986,7 +986,7 @@ exports.deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
986
986
  const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
987
987
  const parsedOutput = {
988
988
  ...output,
989
- body: await parseBody(output.body, context),
989
+ body: await parseErrorBody(output.body, context),
990
990
  };
991
991
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
992
992
  switch (errorCode) {
@@ -1029,7 +1029,7 @@ exports.deserializeAws_restJson1CreateDedicatedIpPoolCommand = deserializeAws_re
1029
1029
  const deserializeAws_restJson1CreateDedicatedIpPoolCommandError = async (output, context) => {
1030
1030
  const parsedOutput = {
1031
1031
  ...output,
1032
- body: await parseBody(output.body, context),
1032
+ body: await parseErrorBody(output.body, context),
1033
1033
  };
1034
1034
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1035
1035
  switch (errorCode) {
@@ -1078,7 +1078,7 @@ exports.deserializeAws_restJson1CreateDeliverabilityTestReportCommand = deserial
1078
1078
  const deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = async (output, context) => {
1079
1079
  const parsedOutput = {
1080
1080
  ...output,
1081
- body: await parseBody(output.body, context),
1081
+ body: await parseErrorBody(output.body, context),
1082
1082
  };
1083
1083
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
1084
  switch (errorCode) {
@@ -1142,7 +1142,7 @@ exports.deserializeAws_restJson1CreateEmailIdentityCommand = deserializeAws_rest
1142
1142
  const deserializeAws_restJson1CreateEmailIdentityCommandError = async (output, context) => {
1143
1143
  const parsedOutput = {
1144
1144
  ...output,
1145
- body: await parseBody(output.body, context),
1145
+ body: await parseErrorBody(output.body, context),
1146
1146
  };
1147
1147
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
1148
  switch (errorCode) {
@@ -1182,7 +1182,7 @@ exports.deserializeAws_restJson1DeleteConfigurationSetCommand = deserializeAws_r
1182
1182
  const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output, context) => {
1183
1183
  const parsedOutput = {
1184
1184
  ...output,
1185
- body: await parseBody(output.body, context),
1185
+ body: await parseErrorBody(output.body, context),
1186
1186
  };
1187
1187
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
1188
  switch (errorCode) {
@@ -1222,7 +1222,7 @@ exports.deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand =
1222
1222
  const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
1223
1223
  const parsedOutput = {
1224
1224
  ...output,
1225
- body: await parseBody(output.body, context),
1225
+ body: await parseErrorBody(output.body, context),
1226
1226
  };
1227
1227
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
1228
  switch (errorCode) {
@@ -1259,7 +1259,7 @@ exports.deserializeAws_restJson1DeleteDedicatedIpPoolCommand = deserializeAws_re
1259
1259
  const deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = async (output, context) => {
1260
1260
  const parsedOutput = {
1261
1261
  ...output,
1262
- body: await parseBody(output.body, context),
1262
+ body: await parseErrorBody(output.body, context),
1263
1263
  };
1264
1264
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1265
1265
  switch (errorCode) {
@@ -1299,7 +1299,7 @@ exports.deserializeAws_restJson1DeleteEmailIdentityCommand = deserializeAws_rest
1299
1299
  const deserializeAws_restJson1DeleteEmailIdentityCommandError = async (output, context) => {
1300
1300
  const parsedOutput = {
1301
1301
  ...output,
1302
- body: await parseBody(output.body, context),
1302
+ body: await parseErrorBody(output.body, context),
1303
1303
  };
1304
1304
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1305
1305
  switch (errorCode) {
@@ -1354,7 +1354,7 @@ exports.deserializeAws_restJson1GetAccountCommand = deserializeAws_restJson1GetA
1354
1354
  const deserializeAws_restJson1GetAccountCommandError = async (output, context) => {
1355
1355
  const parsedOutput = {
1356
1356
  ...output,
1357
- body: await parseBody(output.body, context),
1357
+ body: await parseErrorBody(output.body, context),
1358
1358
  };
1359
1359
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1360
1360
  switch (errorCode) {
@@ -1391,7 +1391,7 @@ exports.deserializeAws_restJson1GetBlacklistReportsCommand = deserializeAws_rest
1391
1391
  const deserializeAws_restJson1GetBlacklistReportsCommandError = async (output, context) => {
1392
1392
  const parsedOutput = {
1393
1393
  ...output,
1394
- body: await parseBody(output.body, context),
1394
+ body: await parseErrorBody(output.body, context),
1395
1395
  };
1396
1396
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1397
1397
  switch (errorCode) {
@@ -1446,7 +1446,7 @@ exports.deserializeAws_restJson1GetConfigurationSetCommand = deserializeAws_rest
1446
1446
  const deserializeAws_restJson1GetConfigurationSetCommandError = async (output, context) => {
1447
1447
  const parsedOutput = {
1448
1448
  ...output,
1449
- body: await parseBody(output.body, context),
1449
+ body: await parseErrorBody(output.body, context),
1450
1450
  };
1451
1451
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1452
1452
  switch (errorCode) {
@@ -1486,7 +1486,7 @@ exports.deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = de
1486
1486
  const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = async (output, context) => {
1487
1487
  const parsedOutput = {
1488
1488
  ...output,
1489
- body: await parseBody(output.body, context),
1489
+ body: await parseErrorBody(output.body, context),
1490
1490
  };
1491
1491
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1492
1492
  switch (errorCode) {
@@ -1526,7 +1526,7 @@ exports.deserializeAws_restJson1GetDedicatedIpCommand = deserializeAws_restJson1
1526
1526
  const deserializeAws_restJson1GetDedicatedIpCommandError = async (output, context) => {
1527
1527
  const parsedOutput = {
1528
1528
  ...output,
1529
- body: await parseBody(output.body, context),
1529
+ body: await parseErrorBody(output.body, context),
1530
1530
  };
1531
1531
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1532
1532
  switch (errorCode) {
@@ -1569,7 +1569,7 @@ exports.deserializeAws_restJson1GetDedicatedIpsCommand = deserializeAws_restJson
1569
1569
  const deserializeAws_restJson1GetDedicatedIpsCommandError = async (output, context) => {
1570
1570
  const parsedOutput = {
1571
1571
  ...output,
1572
- body: await parseBody(output.body, context),
1572
+ body: await parseErrorBody(output.body, context),
1573
1573
  };
1574
1574
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1575
1575
  switch (errorCode) {
@@ -1621,7 +1621,7 @@ exports.deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = deser
1621
1621
  const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = async (output, context) => {
1622
1622
  const parsedOutput = {
1623
1623
  ...output,
1624
- body: await parseBody(output.body, context),
1624
+ body: await parseErrorBody(output.body, context),
1625
1625
  };
1626
1626
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1627
1627
  switch (errorCode) {
@@ -1673,7 +1673,7 @@ exports.deserializeAws_restJson1GetDeliverabilityTestReportCommand = deserialize
1673
1673
  const deserializeAws_restJson1GetDeliverabilityTestReportCommandError = async (output, context) => {
1674
1674
  const parsedOutput = {
1675
1675
  ...output,
1676
- body: await parseBody(output.body, context),
1676
+ body: await parseErrorBody(output.body, context),
1677
1677
  };
1678
1678
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1679
1679
  switch (errorCode) {
@@ -1713,7 +1713,7 @@ exports.deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = deseria
1713
1713
  const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = 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) {
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1GetDomainStatisticsReportCommand = deserializeAw
1756
1756
  const deserializeAws_restJson1GetDomainStatisticsReportCommandError = async (output, context) => {
1757
1757
  const parsedOutput = {
1758
1758
  ...output,
1759
- body: await parseBody(output.body, context),
1759
+ body: await parseErrorBody(output.body, context),
1760
1760
  };
1761
1761
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1762
1762
  switch (errorCode) {
@@ -1811,7 +1811,7 @@ exports.deserializeAws_restJson1GetEmailIdentityCommand = deserializeAws_restJso
1811
1811
  const deserializeAws_restJson1GetEmailIdentityCommandError = async (output, context) => {
1812
1812
  const parsedOutput = {
1813
1813
  ...output,
1814
- body: await parseBody(output.body, context),
1814
+ body: await parseErrorBody(output.body, context),
1815
1815
  };
1816
1816
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1817
1817
  switch (errorCode) {
@@ -1854,7 +1854,7 @@ exports.deserializeAws_restJson1ListConfigurationSetsCommand = deserializeAws_re
1854
1854
  const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output, context) => {
1855
1855
  const parsedOutput = {
1856
1856
  ...output,
1857
- body: await parseBody(output.body, context),
1857
+ body: await parseErrorBody(output.body, context),
1858
1858
  };
1859
1859
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1860
1860
  switch (errorCode) {
@@ -1894,7 +1894,7 @@ exports.deserializeAws_restJson1ListDedicatedIpPoolsCommand = deserializeAws_res
1894
1894
  const deserializeAws_restJson1ListDedicatedIpPoolsCommandError = async (output, context) => {
1895
1895
  const parsedOutput = {
1896
1896
  ...output,
1897
- body: await parseBody(output.body, context),
1897
+ body: await parseErrorBody(output.body, context),
1898
1898
  };
1899
1899
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1900
1900
  switch (errorCode) {
@@ -1934,7 +1934,7 @@ exports.deserializeAws_restJson1ListDeliverabilityTestReportsCommand = deseriali
1934
1934
  const deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = async (output, context) => {
1935
1935
  const parsedOutput = {
1936
1936
  ...output,
1937
- body: await parseBody(output.body, context),
1937
+ body: await parseErrorBody(output.body, context),
1938
1938
  };
1939
1939
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1940
1940
  switch (errorCode) {
@@ -1977,7 +1977,7 @@ exports.deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = deser
1977
1977
  const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = async (output, context) => {
1978
1978
  const parsedOutput = {
1979
1979
  ...output,
1980
- body: await parseBody(output.body, context),
1980
+ body: await parseErrorBody(output.body, context),
1981
1981
  };
1982
1982
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1983
1983
  switch (errorCode) {
@@ -2020,7 +2020,7 @@ exports.deserializeAws_restJson1ListEmailIdentitiesCommand = deserializeAws_rest
2020
2020
  const deserializeAws_restJson1ListEmailIdentitiesCommandError = async (output, context) => {
2021
2021
  const parsedOutput = {
2022
2022
  ...output,
2023
- body: await parseBody(output.body, context),
2023
+ body: await parseErrorBody(output.body, context),
2024
2024
  };
2025
2025
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2026
2026
  switch (errorCode) {
@@ -2057,7 +2057,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
2057
2057
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
2058
2058
  const parsedOutput = {
2059
2059
  ...output,
2060
- body: await parseBody(output.body, context),
2060
+ body: await parseErrorBody(output.body, context),
2061
2061
  };
2062
2062
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2063
2063
  switch (errorCode) {
@@ -2094,7 +2094,7 @@ exports.deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = d
2094
2094
  const deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError = async (output, context) => {
2095
2095
  const parsedOutput = {
2096
2096
  ...output,
2097
- body: await parseBody(output.body, context),
2097
+ body: await parseErrorBody(output.body, context),
2098
2098
  };
2099
2099
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2100
2100
  switch (errorCode) {
@@ -2128,7 +2128,7 @@ exports.deserializeAws_restJson1PutAccountSendingAttributesCommand = deserialize
2128
2128
  const deserializeAws_restJson1PutAccountSendingAttributesCommandError = async (output, context) => {
2129
2129
  const parsedOutput = {
2130
2130
  ...output,
2131
- body: await parseBody(output.body, context),
2131
+ body: await parseErrorBody(output.body, context),
2132
2132
  };
2133
2133
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2134
2134
  switch (errorCode) {
@@ -2162,7 +2162,7 @@ exports.deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = dese
2162
2162
  const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = async (output, context) => {
2163
2163
  const parsedOutput = {
2164
2164
  ...output,
2165
- body: await parseBody(output.body, context),
2165
+ body: await parseErrorBody(output.body, context),
2166
2166
  };
2167
2167
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2168
2168
  switch (errorCode) {
@@ -2199,7 +2199,7 @@ exports.deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand = de
2199
2199
  const deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = async (output, context) => {
2200
2200
  const parsedOutput = {
2201
2201
  ...output,
2202
- body: await parseBody(output.body, context),
2202
+ body: await parseErrorBody(output.body, context),
2203
2203
  };
2204
2204
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2205
2205
  switch (errorCode) {
@@ -2236,7 +2236,7 @@ exports.deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = deser
2236
2236
  const deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = async (output, context) => {
2237
2237
  const parsedOutput = {
2238
2238
  ...output,
2239
- body: await parseBody(output.body, context),
2239
+ body: await parseErrorBody(output.body, context),
2240
2240
  };
2241
2241
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2242
2242
  switch (errorCode) {
@@ -2273,7 +2273,7 @@ exports.deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = dese
2273
2273
  const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = async (output, context) => {
2274
2274
  const parsedOutput = {
2275
2275
  ...output,
2276
- body: await parseBody(output.body, context),
2276
+ body: await parseErrorBody(output.body, context),
2277
2277
  };
2278
2278
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
2279
  switch (errorCode) {
@@ -2310,7 +2310,7 @@ exports.deserializeAws_restJson1PutDedicatedIpInPoolCommand = deserializeAws_res
2310
2310
  const deserializeAws_restJson1PutDedicatedIpInPoolCommandError = 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) {
@@ -2347,7 +2347,7 @@ exports.deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = deserial
2347
2347
  const deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = async (output, context) => {
2348
2348
  const parsedOutput = {
2349
2349
  ...output,
2350
- body: await parseBody(output.body, context),
2350
+ body: await parseErrorBody(output.body, context),
2351
2351
  };
2352
2352
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2353
2353
  switch (errorCode) {
@@ -2384,7 +2384,7 @@ exports.deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = deseri
2384
2384
  const deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = async (output, context) => {
2385
2385
  const parsedOutput = {
2386
2386
  ...output,
2387
- body: await parseBody(output.body, context),
2387
+ body: await parseErrorBody(output.body, context),
2388
2388
  };
2389
2389
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2390
2390
  switch (errorCode) {
@@ -2427,7 +2427,7 @@ exports.deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = deserial
2427
2427
  const deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = async (output, context) => {
2428
2428
  const parsedOutput = {
2429
2429
  ...output,
2430
- body: await parseBody(output.body, context),
2430
+ body: await parseErrorBody(output.body, context),
2431
2431
  };
2432
2432
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2433
2433
  switch (errorCode) {
@@ -2464,7 +2464,7 @@ exports.deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = dese
2464
2464
  const deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = async (output, context) => {
2465
2465
  const parsedOutput = {
2466
2466
  ...output,
2467
- body: await parseBody(output.body, context),
2467
+ body: await parseErrorBody(output.body, context),
2468
2468
  };
2469
2469
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2470
2470
  switch (errorCode) {
@@ -2501,7 +2501,7 @@ exports.deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = dese
2501
2501
  const deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = async (output, context) => {
2502
2502
  const parsedOutput = {
2503
2503
  ...output,
2504
- body: await parseBody(output.body, context),
2504
+ body: await parseErrorBody(output.body, context),
2505
2505
  };
2506
2506
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2507
2507
  switch (errorCode) {
@@ -2541,7 +2541,7 @@ exports.deserializeAws_restJson1SendEmailCommand = deserializeAws_restJson1SendE
2541
2541
  const deserializeAws_restJson1SendEmailCommandError = async (output, context) => {
2542
2542
  const parsedOutput = {
2543
2543
  ...output,
2544
- body: await parseBody(output.body, context),
2544
+ body: await parseErrorBody(output.body, context),
2545
2545
  };
2546
2546
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2547
2547
  switch (errorCode) {
@@ -2593,7 +2593,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
2593
2593
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
2594
2594
  const parsedOutput = {
2595
2595
  ...output,
2596
- body: await parseBody(output.body, context),
2596
+ body: await parseErrorBody(output.body, context),
2597
2597
  };
2598
2598
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2599
2599
  switch (errorCode) {
@@ -2633,7 +2633,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
2633
2633
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
2634
2634
  const parsedOutput = {
2635
2635
  ...output,
2636
- body: await parseBody(output.body, context),
2636
+ body: await parseErrorBody(output.body, context),
2637
2637
  };
2638
2638
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2639
2639
  switch (errorCode) {
@@ -2673,7 +2673,7 @@ exports.deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
2673
2673
  const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
2674
2674
  const parsedOutput = {
2675
2675
  ...output,
2676
- body: await parseBody(output.body, context),
2676
+ body: await parseErrorBody(output.body, context),
2677
2677
  };
2678
2678
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2679
2679
  switch (errorCode) {
@@ -3494,6 +3494,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3494
3494
  }
3495
3495
  return {};
3496
3496
  });
3497
+ const parseErrorBody = async (errorBody, context) => {
3498
+ var _a;
3499
+ const value = await parseBody(errorBody, context);
3500
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3501
+ return value;
3502
+ };
3497
3503
  const loadRestJsonErrorCode = (output, data) => {
3498
3504
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3499
3505
  const sanitizeErrorCode = (rawValue) => {
@@ -1098,7 +1098,7 @@ var deserializeAws_restJson1CreateConfigurationSetCommandError = function (outpu
1098
1098
  case 0:
1099
1099
  _a = [__assign({}, output)];
1100
1100
  _c = {};
1101
- return [4, parseBody(output.body, context)];
1101
+ return [4, parseErrorBody(output.body, context)];
1102
1102
  case 1:
1103
1103
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1104
1104
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1169,7 +1169,7 @@ var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError =
1169
1169
  case 0:
1170
1170
  _a = [__assign({}, output)];
1171
1171
  _c = {};
1172
- return [4, parseBody(output.body, context)];
1172
+ return [4, parseErrorBody(output.body, context)];
1173
1173
  case 1:
1174
1174
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1175
1175
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1236,7 +1236,7 @@ var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output
1236
1236
  case 0:
1237
1237
  _a = [__assign({}, output)];
1238
1238
  _c = {};
1239
- return [4, parseBody(output.body, context)];
1239
+ return [4, parseErrorBody(output.body, context)];
1240
1240
  case 1:
1241
1241
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1242
1242
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1311,7 +1311,7 @@ var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = functio
1311
1311
  case 0:
1312
1312
  _a = [__assign({}, output)];
1313
1313
  _c = {};
1314
- return [4, parseBody(output.body, context)];
1314
+ return [4, parseErrorBody(output.body, context)];
1315
1315
  case 1:
1316
1316
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1317
1317
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1405,7 +1405,7 @@ var deserializeAws_restJson1CreateEmailIdentityCommandError = function (output,
1405
1405
  case 0:
1406
1406
  _a = [__assign({}, output)];
1407
1407
  _c = {};
1408
- return [4, parseBody(output.body, context)];
1408
+ return [4, parseErrorBody(output.body, context)];
1409
1409
  case 1:
1410
1410
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1411
1411
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1468,7 +1468,7 @@ var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (outpu
1468
1468
  case 0:
1469
1469
  _a = [__assign({}, output)];
1470
1470
  _c = {};
1471
- return [4, parseBody(output.body, context)];
1471
+ return [4, parseErrorBody(output.body, context)];
1472
1472
  case 1:
1473
1473
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1474
1474
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1531,7 +1531,7 @@ var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError =
1531
1531
  case 0:
1532
1532
  _a = [__assign({}, output)];
1533
1533
  _c = {};
1534
- return [4, parseBody(output.body, context)];
1534
+ return [4, parseErrorBody(output.body, context)];
1535
1535
  case 1:
1536
1536
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1537
1537
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1590,7 +1590,7 @@ var deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = function (output
1590
1590
  case 0:
1591
1591
  _a = [__assign({}, output)];
1592
1592
  _c = {};
1593
- return [4, parseBody(output.body, context)];
1593
+ return [4, parseErrorBody(output.body, context)];
1594
1594
  case 1:
1595
1595
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1596
1596
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1653,7 +1653,7 @@ var deserializeAws_restJson1DeleteEmailIdentityCommandError = function (output,
1653
1653
  case 0:
1654
1654
  _a = [__assign({}, output)];
1655
1655
  _c = {};
1656
- return [4, parseBody(output.body, context)];
1656
+ return [4, parseErrorBody(output.body, context)];
1657
1657
  case 1:
1658
1658
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1659
1659
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1733,7 +1733,7 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
1733
1733
  case 0:
1734
1734
  _a = [__assign({}, output)];
1735
1735
  _c = {};
1736
- return [4, parseBody(output.body, context)];
1736
+ return [4, parseErrorBody(output.body, context)];
1737
1737
  case 1:
1738
1738
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1739
1739
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1793,7 +1793,7 @@ var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output,
1793
1793
  case 0:
1794
1794
  _a = [__assign({}, output)];
1795
1795
  _c = {};
1796
- return [4, parseBody(output.body, context)];
1796
+ return [4, parseErrorBody(output.body, context)];
1797
1797
  case 1:
1798
1798
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1799
1799
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1872,7 +1872,7 @@ var deserializeAws_restJson1GetConfigurationSetCommandError = function (output,
1872
1872
  case 0:
1873
1873
  _a = [__assign({}, output)];
1874
1874
  _c = {};
1875
- return [4, parseBody(output.body, context)];
1875
+ return [4, parseErrorBody(output.body, context)];
1876
1876
  case 1:
1877
1877
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1878
1878
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1936,7 +1936,7 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
1936
1936
  case 0:
1937
1937
  _a = [__assign({}, output)];
1938
1938
  _c = {};
1939
- return [4, parseBody(output.body, context)];
1939
+ return [4, parseErrorBody(output.body, context)];
1940
1940
  case 1:
1941
1941
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1942
1942
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2000,7 +2000,7 @@ var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, conte
2000
2000
  case 0:
2001
2001
  _a = [__assign({}, output)];
2002
2002
  _c = {};
2003
- return [4, parseBody(output.body, context)];
2003
+ return [4, parseErrorBody(output.body, context)];
2004
2004
  case 1:
2005
2005
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2006
2006
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2067,7 +2067,7 @@ var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, cont
2067
2067
  case 0:
2068
2068
  _a = [__assign({}, output)];
2069
2069
  _c = {};
2070
- return [4, parseBody(output.body, context)];
2070
+ return [4, parseErrorBody(output.body, context)];
2071
2071
  case 1:
2072
2072
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2073
2073
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2143,7 +2143,7 @@ var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = func
2143
2143
  case 0:
2144
2144
  _a = [__assign({}, output)];
2145
2145
  _c = {};
2146
- return [4, parseBody(output.body, context)];
2146
+ return [4, parseErrorBody(output.body, context)];
2147
2147
  case 1:
2148
2148
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2149
2149
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2219,7 +2219,7 @@ var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (
2219
2219
  case 0:
2220
2220
  _a = [__assign({}, output)];
2221
2221
  _c = {};
2222
- return [4, parseBody(output.body, context)];
2222
+ return [4, parseErrorBody(output.body, context)];
2223
2223
  case 1:
2224
2224
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2225
2225
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2283,7 +2283,7 @@ var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = functi
2283
2283
  case 0:
2284
2284
  _a = [__assign({}, output)];
2285
2285
  _c = {};
2286
- return [4, parseBody(output.body, context)];
2286
+ return [4, parseErrorBody(output.body, context)];
2287
2287
  case 1:
2288
2288
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2289
2289
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2350,7 +2350,7 @@ var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (ou
2350
2350
  case 0:
2351
2351
  _a = [__assign({}, output)];
2352
2352
  _c = {};
2353
- return [4, parseBody(output.body, context)];
2353
+ return [4, parseErrorBody(output.body, context)];
2354
2354
  case 1:
2355
2355
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2356
2356
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2429,7 +2429,7 @@ var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, con
2429
2429
  case 0:
2430
2430
  _a = [__assign({}, output)];
2431
2431
  _c = {};
2432
- return [4, parseBody(output.body, context)];
2432
+ return [4, parseErrorBody(output.body, context)];
2433
2433
  case 1:
2434
2434
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2435
2435
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2496,7 +2496,7 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
2496
2496
  case 0:
2497
2497
  _a = [__assign({}, output)];
2498
2498
  _c = {};
2499
- return [4, parseBody(output.body, context)];
2499
+ return [4, parseErrorBody(output.body, context)];
2500
2500
  case 1:
2501
2501
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2502
2502
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2559,7 +2559,7 @@ var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output,
2559
2559
  case 0:
2560
2560
  _a = [__assign({}, output)];
2561
2561
  _c = {};
2562
- return [4, parseBody(output.body, context)];
2562
+ return [4, parseErrorBody(output.body, context)];
2563
2563
  case 1:
2564
2564
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2565
2565
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2622,7 +2622,7 @@ var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function
2622
2622
  case 0:
2623
2623
  _a = [__assign({}, output)];
2624
2624
  _c = {};
2625
- return [4, parseBody(output.body, context)];
2625
+ return [4, parseErrorBody(output.body, context)];
2626
2626
  case 1:
2627
2627
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2628
2628
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2689,7 +2689,7 @@ var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = func
2689
2689
  case 0:
2690
2690
  _a = [__assign({}, output)];
2691
2691
  _c = {};
2692
- return [4, parseBody(output.body, context)];
2692
+ return [4, parseErrorBody(output.body, context)];
2693
2693
  case 1:
2694
2694
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2695
2695
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2756,7 +2756,7 @@ var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output,
2756
2756
  case 0:
2757
2757
  _a = [__assign({}, output)];
2758
2758
  _c = {};
2759
- return [4, parseBody(output.body, context)];
2759
+ return [4, parseErrorBody(output.body, context)];
2760
2760
  case 1:
2761
2761
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2762
2762
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2816,7 +2816,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2816
2816
  case 0:
2817
2817
  _a = [__assign({}, output)];
2818
2818
  _c = {};
2819
- return [4, parseBody(output.body, context)];
2819
+ return [4, parseErrorBody(output.body, context)];
2820
2820
  case 1:
2821
2821
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2822
2822
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2875,7 +2875,7 @@ var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError =
2875
2875
  case 0:
2876
2876
  _a = [__assign({}, output)];
2877
2877
  _c = {};
2878
- return [4, parseBody(output.body, context)];
2878
+ return [4, parseErrorBody(output.body, context)];
2879
2879
  case 1:
2880
2880
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2881
2881
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2930,7 +2930,7 @@ var deserializeAws_restJson1PutAccountSendingAttributesCommandError = function (
2930
2930
  case 0:
2931
2931
  _a = [__assign({}, output)];
2932
2932
  _c = {};
2933
- return [4, parseBody(output.body, context)];
2933
+ return [4, parseErrorBody(output.body, context)];
2934
2934
  case 1:
2935
2935
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2936
2936
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2985,7 +2985,7 @@ var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = fun
2985
2985
  case 0:
2986
2986
  _a = [__assign({}, output)];
2987
2987
  _c = {};
2988
- return [4, parseBody(output.body, context)];
2988
+ return [4, parseErrorBody(output.body, context)];
2989
2989
  case 1:
2990
2990
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2991
2991
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3044,7 +3044,7 @@ var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = f
3044
3044
  case 0:
3045
3045
  _a = [__assign({}, output)];
3046
3046
  _c = {};
3047
- return [4, parseBody(output.body, context)];
3047
+ return [4, parseErrorBody(output.body, context)];
3048
3048
  case 1:
3049
3049
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3050
3050
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3103,7 +3103,7 @@ var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = func
3103
3103
  case 0:
3104
3104
  _a = [__assign({}, output)];
3105
3105
  _c = {};
3106
- return [4, parseBody(output.body, context)];
3106
+ return [4, parseErrorBody(output.body, context)];
3107
3107
  case 1:
3108
3108
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3109
3109
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3162,7 +3162,7 @@ var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = fun
3162
3162
  case 0:
3163
3163
  _a = [__assign({}, output)];
3164
3164
  _c = {};
3165
- return [4, parseBody(output.body, context)];
3165
+ return [4, parseErrorBody(output.body, context)];
3166
3166
  case 1:
3167
3167
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3168
3168
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3221,7 +3221,7 @@ var deserializeAws_restJson1PutDedicatedIpInPoolCommandError = function (output,
3221
3221
  case 0:
3222
3222
  _a = [__assign({}, output)];
3223
3223
  _c = {};
3224
- return [4, parseBody(output.body, context)];
3224
+ return [4, parseErrorBody(output.body, context)];
3225
3225
  case 1:
3226
3226
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3227
3227
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3280,7 +3280,7 @@ var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = functio
3280
3280
  case 0:
3281
3281
  _a = [__assign({}, output)];
3282
3282
  _c = {};
3283
- return [4, parseBody(output.body, context)];
3283
+ return [4, parseErrorBody(output.body, context)];
3284
3284
  case 1:
3285
3285
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3286
3286
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3339,7 +3339,7 @@ var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = funct
3339
3339
  case 0:
3340
3340
  _a = [__assign({}, output)];
3341
3341
  _c = {};
3342
- return [4, parseBody(output.body, context)];
3342
+ return [4, parseErrorBody(output.body, context)];
3343
3343
  case 1:
3344
3344
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3345
3345
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3406,7 +3406,7 @@ var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = functio
3406
3406
  case 0:
3407
3407
  _a = [__assign({}, output)];
3408
3408
  _c = {};
3409
- return [4, parseBody(output.body, context)];
3409
+ return [4, parseErrorBody(output.body, context)];
3410
3410
  case 1:
3411
3411
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3412
3412
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3465,7 +3465,7 @@ var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = fun
3465
3465
  case 0:
3466
3466
  _a = [__assign({}, output)];
3467
3467
  _c = {};
3468
- return [4, parseBody(output.body, context)];
3468
+ return [4, parseErrorBody(output.body, context)];
3469
3469
  case 1:
3470
3470
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3471
3471
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3524,7 +3524,7 @@ var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = fun
3524
3524
  case 0:
3525
3525
  _a = [__assign({}, output)];
3526
3526
  _c = {};
3527
- return [4, parseBody(output.body, context)];
3527
+ return [4, parseErrorBody(output.body, context)];
3528
3528
  case 1:
3529
3529
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3530
3530
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3588,7 +3588,7 @@ var deserializeAws_restJson1SendEmailCommandError = function (output, context) {
3588
3588
  case 0:
3589
3589
  _a = [__assign({}, output)];
3590
3590
  _c = {};
3591
- return [4, parseBody(output.body, context)];
3591
+ return [4, parseErrorBody(output.body, context)];
3592
3592
  case 1:
3593
3593
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3594
3594
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3667,7 +3667,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
3667
3667
  case 0:
3668
3668
  _a = [__assign({}, output)];
3669
3669
  _c = {};
3670
- return [4, parseBody(output.body, context)];
3670
+ return [4, parseErrorBody(output.body, context)];
3671
3671
  case 1:
3672
3672
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3673
3673
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3730,7 +3730,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
3730
3730
  case 0:
3731
3731
  _a = [__assign({}, output)];
3732
3732
  _c = {};
3733
- return [4, parseBody(output.body, context)];
3733
+ return [4, parseErrorBody(output.body, context)];
3734
3734
  case 1:
3735
3735
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3736
3736
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3793,7 +3793,7 @@ var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError =
3793
3793
  case 0:
3794
3794
  _a = [__assign({}, output)];
3795
3795
  _c = {};
3796
- return [4, parseBody(output.body, context)];
3796
+ return [4, parseErrorBody(output.body, context)];
3797
3797
  case 1:
3798
3798
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3799
3799
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4565,6 +4565,19 @@ var parseBody = function (streamBody, context) {
4565
4565
  return {};
4566
4566
  });
4567
4567
  };
4568
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
4569
+ var value;
4570
+ var _a;
4571
+ return __generator(this, function (_b) {
4572
+ switch (_b.label) {
4573
+ case 0: return [4, parseBody(errorBody, context)];
4574
+ case 1:
4575
+ value = _b.sent();
4576
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4577
+ return [2, value];
4578
+ }
4579
+ });
4580
+ }); };
4568
4581
  var loadRestJsonErrorCode = function (output, data) {
4569
4582
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4570
4583
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-email",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Email Client for Node.js, Browser and React Native",
4
- "version": "3.180.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.180.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.180.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",