@aws-sdk/client-pinpoint-email 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +48 -42
- package/dist-es/PinpointEmail.js +170 -177
- package/dist-es/PinpointEmailClient.js +22 -28
- package/dist-es/commands/CreateConfigurationSetCommand.js +21 -28
- package/dist-es/commands/CreateConfigurationSetEventDestinationCommand.js +21 -28
- package/dist-es/commands/CreateDedicatedIpPoolCommand.js +21 -28
- package/dist-es/commands/CreateDeliverabilityTestReportCommand.js +21 -28
- package/dist-es/commands/CreateEmailIdentityCommand.js +21 -28
- package/dist-es/commands/DeleteConfigurationSetCommand.js +21 -28
- package/dist-es/commands/DeleteConfigurationSetEventDestinationCommand.js +21 -28
- package/dist-es/commands/DeleteDedicatedIpPoolCommand.js +21 -28
- package/dist-es/commands/DeleteEmailIdentityCommand.js +21 -28
- package/dist-es/commands/GetAccountCommand.js +21 -28
- package/dist-es/commands/GetBlacklistReportsCommand.js +21 -28
- package/dist-es/commands/GetConfigurationSetCommand.js +21 -28
- package/dist-es/commands/GetConfigurationSetEventDestinationsCommand.js +21 -28
- package/dist-es/commands/GetDedicatedIpCommand.js +21 -28
- package/dist-es/commands/GetDedicatedIpsCommand.js +21 -28
- package/dist-es/commands/GetDeliverabilityDashboardOptionsCommand.js +21 -28
- package/dist-es/commands/GetDeliverabilityTestReportCommand.js +21 -28
- package/dist-es/commands/GetDomainDeliverabilityCampaignCommand.js +21 -28
- package/dist-es/commands/GetDomainStatisticsReportCommand.js +21 -28
- package/dist-es/commands/GetEmailIdentityCommand.js +21 -28
- package/dist-es/commands/ListConfigurationSetsCommand.js +21 -28
- package/dist-es/commands/ListDedicatedIpPoolsCommand.js +21 -28
- package/dist-es/commands/ListDeliverabilityTestReportsCommand.js +21 -28
- package/dist-es/commands/ListDomainDeliverabilityCampaignsCommand.js +21 -28
- package/dist-es/commands/ListEmailIdentitiesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +21 -28
- package/dist-es/commands/PutAccountSendingAttributesCommand.js +21 -28
- package/dist-es/commands/PutConfigurationSetDeliveryOptionsCommand.js +21 -28
- package/dist-es/commands/PutConfigurationSetReputationOptionsCommand.js +21 -28
- package/dist-es/commands/PutConfigurationSetSendingOptionsCommand.js +21 -28
- package/dist-es/commands/PutConfigurationSetTrackingOptionsCommand.js +21 -28
- package/dist-es/commands/PutDedicatedIpInPoolCommand.js +21 -28
- package/dist-es/commands/PutDedicatedIpWarmupAttributesCommand.js +21 -28
- package/dist-es/commands/PutDeliverabilityDashboardOptionCommand.js +21 -28
- package/dist-es/commands/PutEmailIdentityDkimAttributesCommand.js +21 -28
- package/dist-es/commands/PutEmailIdentityFeedbackAttributesCommand.js +21 -28
- package/dist-es/commands/PutEmailIdentityMailFromAttributesCommand.js +21 -28
- package/dist-es/commands/SendEmailCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateConfigurationSetEventDestinationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/PinpointEmailServiceException.js +5 -10
- package/dist-es/models/models_0.js +470 -231
- package/dist-es/pagination/GetDedicatedIpsPaginator.js +25 -68
- package/dist-es/pagination/ListConfigurationSetsPaginator.js +25 -68
- package/dist-es/pagination/ListDedicatedIpPoolsPaginator.js +25 -68
- package/dist-es/pagination/ListDeliverabilityTestReportsPaginator.js +25 -68
- package/dist-es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +25 -68
- package/dist-es/pagination/ListEmailIdentitiesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2963 -4120
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-pinpoint-email
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) => {
|