@aws-sdk/client-customer-profiles 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 +44 -38
- package/dist-es/CustomerProfiles.js +154 -161
- package/dist-es/CustomerProfilesClient.js +22 -28
- package/dist-es/commands/AddProfileKeyCommand.js +21 -28
- package/dist-es/commands/CreateDomainCommand.js +21 -28
- package/dist-es/commands/CreateIntegrationWorkflowCommand.js +21 -28
- package/dist-es/commands/CreateProfileCommand.js +21 -28
- package/dist-es/commands/DeleteDomainCommand.js +21 -28
- package/dist-es/commands/DeleteIntegrationCommand.js +21 -28
- package/dist-es/commands/DeleteProfileCommand.js +21 -28
- package/dist-es/commands/DeleteProfileKeyCommand.js +21 -28
- package/dist-es/commands/DeleteProfileObjectCommand.js +21 -28
- package/dist-es/commands/DeleteProfileObjectTypeCommand.js +21 -28
- package/dist-es/commands/DeleteWorkflowCommand.js +21 -28
- package/dist-es/commands/GetAutoMergingPreviewCommand.js +21 -28
- package/dist-es/commands/GetDomainCommand.js +21 -28
- package/dist-es/commands/GetIdentityResolutionJobCommand.js +21 -28
- package/dist-es/commands/GetIntegrationCommand.js +21 -28
- package/dist-es/commands/GetMatchesCommand.js +21 -28
- package/dist-es/commands/GetProfileObjectTypeCommand.js +21 -28
- package/dist-es/commands/GetProfileObjectTypeTemplateCommand.js +21 -28
- package/dist-es/commands/GetWorkflowCommand.js +21 -28
- package/dist-es/commands/GetWorkflowStepsCommand.js +21 -28
- package/dist-es/commands/ListAccountIntegrationsCommand.js +21 -28
- package/dist-es/commands/ListDomainsCommand.js +21 -28
- package/dist-es/commands/ListIdentityResolutionJobsCommand.js +21 -28
- package/dist-es/commands/ListIntegrationsCommand.js +21 -28
- package/dist-es/commands/ListProfileObjectTypeTemplatesCommand.js +21 -28
- package/dist-es/commands/ListProfileObjectTypesCommand.js +21 -28
- package/dist-es/commands/ListProfileObjectsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWorkflowsCommand.js +21 -28
- package/dist-es/commands/MergeProfilesCommand.js +21 -28
- package/dist-es/commands/PutIntegrationCommand.js +21 -28
- package/dist-es/commands/PutProfileObjectCommand.js +21 -28
- package/dist-es/commands/PutProfileObjectTypeCommand.js +21 -28
- package/dist-es/commands/SearchProfilesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDomainCommand.js +21 -28
- package/dist-es/commands/UpdateProfileCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CustomerProfilesServiceException.js +5 -10
- package/dist-es/models/models_0.js +438 -187
- package/dist-es/protocols/Aws_restJson1.js +3396 -4363
- 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-customer-profiles
|
|
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-customer-profiles
|
|
@@ -969,7 +969,7 @@ exports.deserializeAws_restJson1AddProfileKeyCommand = deserializeAws_restJson1A
|
|
|
969
969
|
const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context) => {
|
|
970
970
|
const parsedOutput = {
|
|
971
971
|
...output,
|
|
972
|
-
body: await
|
|
972
|
+
body: await parseErrorBody(output.body, context),
|
|
973
973
|
};
|
|
974
974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
975
|
switch (errorCode) {
|
|
@@ -1036,7 +1036,7 @@ exports.deserializeAws_restJson1CreateDomainCommand = deserializeAws_restJson1Cr
|
|
|
1036
1036
|
const deserializeAws_restJson1CreateDomainCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
|
-
body: await
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
1040
|
};
|
|
1041
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1042
|
switch (errorCode) {
|
|
@@ -1085,7 +1085,7 @@ exports.deserializeAws_restJson1CreateIntegrationWorkflowCommand = deserializeAw
|
|
|
1085
1085
|
const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (output, context) => {
|
|
1086
1086
|
const parsedOutput = {
|
|
1087
1087
|
...output,
|
|
1088
|
-
body: await
|
|
1088
|
+
body: await parseErrorBody(output.body, context),
|
|
1089
1089
|
};
|
|
1090
1090
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
1091
|
switch (errorCode) {
|
|
@@ -1131,7 +1131,7 @@ exports.deserializeAws_restJson1CreateProfileCommand = deserializeAws_restJson1C
|
|
|
1131
1131
|
const deserializeAws_restJson1CreateProfileCommandError = async (output, context) => {
|
|
1132
1132
|
const parsedOutput = {
|
|
1133
1133
|
...output,
|
|
1134
|
-
body: await
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
1135
|
};
|
|
1136
1136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
1137
|
switch (errorCode) {
|
|
@@ -1177,7 +1177,7 @@ exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1De
|
|
|
1177
1177
|
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1178
1178
|
const parsedOutput = {
|
|
1179
1179
|
...output,
|
|
1180
|
-
body: await
|
|
1180
|
+
body: await parseErrorBody(output.body, context),
|
|
1181
1181
|
};
|
|
1182
1182
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
1183
|
switch (errorCode) {
|
|
@@ -1223,7 +1223,7 @@ exports.deserializeAws_restJson1DeleteIntegrationCommand = deserializeAws_restJs
|
|
|
1223
1223
|
const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, context) => {
|
|
1224
1224
|
const parsedOutput = {
|
|
1225
1225
|
...output,
|
|
1226
|
-
body: await
|
|
1226
|
+
body: await parseErrorBody(output.body, context),
|
|
1227
1227
|
};
|
|
1228
1228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1229
|
switch (errorCode) {
|
|
@@ -1269,7 +1269,7 @@ exports.deserializeAws_restJson1DeleteProfileCommand = deserializeAws_restJson1D
|
|
|
1269
1269
|
const deserializeAws_restJson1DeleteProfileCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
|
-
body: await
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
1273
|
};
|
|
1274
1274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1275
|
switch (errorCode) {
|
|
@@ -1315,7 +1315,7 @@ exports.deserializeAws_restJson1DeleteProfileKeyCommand = deserializeAws_restJso
|
|
|
1315
1315
|
const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, context) => {
|
|
1316
1316
|
const parsedOutput = {
|
|
1317
1317
|
...output,
|
|
1318
|
-
body: await
|
|
1318
|
+
body: await parseErrorBody(output.body, context),
|
|
1319
1319
|
};
|
|
1320
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1321
|
switch (errorCode) {
|
|
@@ -1361,7 +1361,7 @@ exports.deserializeAws_restJson1DeleteProfileObjectCommand = deserializeAws_rest
|
|
|
1361
1361
|
const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, context) => {
|
|
1362
1362
|
const parsedOutput = {
|
|
1363
1363
|
...output,
|
|
1364
|
-
body: await
|
|
1364
|
+
body: await parseErrorBody(output.body, context),
|
|
1365
1365
|
};
|
|
1366
1366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
1367
|
switch (errorCode) {
|
|
@@ -1407,7 +1407,7 @@ exports.deserializeAws_restJson1DeleteProfileObjectTypeCommand = deserializeAws_
|
|
|
1407
1407
|
const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (output, context) => {
|
|
1408
1408
|
const parsedOutput = {
|
|
1409
1409
|
...output,
|
|
1410
|
-
body: await
|
|
1410
|
+
body: await parseErrorBody(output.body, context),
|
|
1411
1411
|
};
|
|
1412
1412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
1413
|
switch (errorCode) {
|
|
@@ -1450,7 +1450,7 @@ exports.deserializeAws_restJson1DeleteWorkflowCommand = deserializeAws_restJson1
|
|
|
1450
1450
|
const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, context) => {
|
|
1451
1451
|
const parsedOutput = {
|
|
1452
1452
|
...output,
|
|
1453
|
-
body: await
|
|
1453
|
+
body: await parseErrorBody(output.body, context),
|
|
1454
1454
|
};
|
|
1455
1455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1456
|
switch (errorCode) {
|
|
@@ -1505,7 +1505,7 @@ exports.deserializeAws_restJson1GetAutoMergingPreviewCommand = deserializeAws_re
|
|
|
1505
1505
|
const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output, context) => {
|
|
1506
1506
|
const parsedOutput = {
|
|
1507
1507
|
...output,
|
|
1508
|
-
body: await
|
|
1508
|
+
body: await parseErrorBody(output.body, context),
|
|
1509
1509
|
};
|
|
1510
1510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1511
|
switch (errorCode) {
|
|
@@ -1575,7 +1575,7 @@ exports.deserializeAws_restJson1GetDomainCommand = deserializeAws_restJson1GetDo
|
|
|
1575
1575
|
const deserializeAws_restJson1GetDomainCommandError = async (output, context) => {
|
|
1576
1576
|
const parsedOutput = {
|
|
1577
1577
|
...output,
|
|
1578
|
-
body: await
|
|
1578
|
+
body: await parseErrorBody(output.body, context),
|
|
1579
1579
|
};
|
|
1580
1580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
1581
|
switch (errorCode) {
|
|
@@ -1651,7 +1651,7 @@ exports.deserializeAws_restJson1GetIdentityResolutionJobCommand = deserializeAws
|
|
|
1651
1651
|
const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (output, context) => {
|
|
1652
1652
|
const parsedOutput = {
|
|
1653
1653
|
...output,
|
|
1654
|
-
body: await
|
|
1654
|
+
body: await parseErrorBody(output.body, context),
|
|
1655
1655
|
};
|
|
1656
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1657
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_restJson1GetIntegrationCommand = deserializeAws_restJson1
|
|
|
1721
1721
|
const deserializeAws_restJson1GetIntegrationCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
|
-
body: await
|
|
1724
|
+
body: await parseErrorBody(output.body, context),
|
|
1725
1725
|
};
|
|
1726
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
1727
|
switch (errorCode) {
|
|
@@ -1776,7 +1776,7 @@ exports.deserializeAws_restJson1GetMatchesCommand = deserializeAws_restJson1GetM
|
|
|
1776
1776
|
const deserializeAws_restJson1GetMatchesCommandError = async (output, context) => {
|
|
1777
1777
|
const parsedOutput = {
|
|
1778
1778
|
...output,
|
|
1779
|
-
body: await
|
|
1779
|
+
body: await parseErrorBody(output.body, context),
|
|
1780
1780
|
};
|
|
1781
1781
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
1782
|
switch (errorCode) {
|
|
@@ -1855,7 +1855,7 @@ exports.deserializeAws_restJson1GetProfileObjectTypeCommand = deserializeAws_res
|
|
|
1855
1855
|
const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output, context) => {
|
|
1856
1856
|
const parsedOutput = {
|
|
1857
1857
|
...output,
|
|
1858
|
-
body: await
|
|
1858
|
+
body: await parseErrorBody(output.body, context),
|
|
1859
1859
|
};
|
|
1860
1860
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
1861
|
switch (errorCode) {
|
|
@@ -1919,7 +1919,7 @@ exports.deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = deserializ
|
|
|
1919
1919
|
const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (output, context) => {
|
|
1920
1920
|
const parsedOutput = {
|
|
1921
1921
|
...output,
|
|
1922
|
-
body: await
|
|
1922
|
+
body: await parseErrorBody(output.body, context),
|
|
1923
1923
|
};
|
|
1924
1924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1925
|
switch (errorCode) {
|
|
@@ -1986,7 +1986,7 @@ exports.deserializeAws_restJson1GetWorkflowCommand = deserializeAws_restJson1Get
|
|
|
1986
1986
|
const deserializeAws_restJson1GetWorkflowCommandError = async (output, context) => {
|
|
1987
1987
|
const parsedOutput = {
|
|
1988
1988
|
...output,
|
|
1989
|
-
body: await
|
|
1989
|
+
body: await parseErrorBody(output.body, context),
|
|
1990
1990
|
};
|
|
1991
1991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1992
|
switch (errorCode) {
|
|
@@ -2041,7 +2041,7 @@ exports.deserializeAws_restJson1GetWorkflowStepsCommand = deserializeAws_restJso
|
|
|
2041
2041
|
const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, context) => {
|
|
2042
2042
|
const parsedOutput = {
|
|
2043
2043
|
...output,
|
|
2044
|
-
body: await
|
|
2044
|
+
body: await parseErrorBody(output.body, context),
|
|
2045
2045
|
};
|
|
2046
2046
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
2047
|
switch (errorCode) {
|
|
@@ -2090,7 +2090,7 @@ exports.deserializeAws_restJson1ListAccountIntegrationsCommand = deserializeAws_
|
|
|
2090
2090
|
const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (output, context) => {
|
|
2091
2091
|
const parsedOutput = {
|
|
2092
2092
|
...output,
|
|
2093
|
-
body: await
|
|
2093
|
+
body: await parseErrorBody(output.body, context),
|
|
2094
2094
|
};
|
|
2095
2095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
2096
|
switch (errorCode) {
|
|
@@ -2139,7 +2139,7 @@ exports.deserializeAws_restJson1ListDomainsCommand = deserializeAws_restJson1Lis
|
|
|
2139
2139
|
const deserializeAws_restJson1ListDomainsCommandError = async (output, context) => {
|
|
2140
2140
|
const parsedOutput = {
|
|
2141
2141
|
...output,
|
|
2142
|
-
body: await
|
|
2142
|
+
body: await parseErrorBody(output.body, context),
|
|
2143
2143
|
};
|
|
2144
2144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
2145
|
switch (errorCode) {
|
|
@@ -2188,7 +2188,7 @@ exports.deserializeAws_restJson1ListIdentityResolutionJobsCommand = deserializeA
|
|
|
2188
2188
|
const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (output, context) => {
|
|
2189
2189
|
const parsedOutput = {
|
|
2190
2190
|
...output,
|
|
2191
|
-
body: await
|
|
2191
|
+
body: await parseErrorBody(output.body, context),
|
|
2192
2192
|
};
|
|
2193
2193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2194
|
switch (errorCode) {
|
|
@@ -2237,7 +2237,7 @@ exports.deserializeAws_restJson1ListIntegrationsCommand = deserializeAws_restJso
|
|
|
2237
2237
|
const deserializeAws_restJson1ListIntegrationsCommandError = async (output, context) => {
|
|
2238
2238
|
const parsedOutput = {
|
|
2239
2239
|
...output,
|
|
2240
|
-
body: await
|
|
2240
|
+
body: await parseErrorBody(output.body, context),
|
|
2241
2241
|
};
|
|
2242
2242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
2243
|
switch (errorCode) {
|
|
@@ -2286,7 +2286,7 @@ exports.deserializeAws_restJson1ListProfileObjectsCommand = deserializeAws_restJ
|
|
|
2286
2286
|
const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, context) => {
|
|
2287
2287
|
const parsedOutput = {
|
|
2288
2288
|
...output,
|
|
2289
|
-
body: await
|
|
2289
|
+
body: await parseErrorBody(output.body, context),
|
|
2290
2290
|
};
|
|
2291
2291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
2292
|
switch (errorCode) {
|
|
@@ -2335,7 +2335,7 @@ exports.deserializeAws_restJson1ListProfileObjectTypesCommand = deserializeAws_r
|
|
|
2335
2335
|
const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output, context) => {
|
|
2336
2336
|
const parsedOutput = {
|
|
2337
2337
|
...output,
|
|
2338
|
-
body: await
|
|
2338
|
+
body: await parseErrorBody(output.body, context),
|
|
2339
2339
|
};
|
|
2340
2340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2341
2341
|
switch (errorCode) {
|
|
@@ -2384,7 +2384,7 @@ exports.deserializeAws_restJson1ListProfileObjectTypeTemplatesCommand = deserial
|
|
|
2384
2384
|
const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = 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) {
|
|
@@ -2430,7 +2430,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2430
2430
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2431
2431
|
const parsedOutput = {
|
|
2432
2432
|
...output,
|
|
2433
|
-
body: await
|
|
2433
|
+
body: await parseErrorBody(output.body, context),
|
|
2434
2434
|
};
|
|
2435
2435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2436
|
switch (errorCode) {
|
|
@@ -2473,7 +2473,7 @@ exports.deserializeAws_restJson1ListWorkflowsCommand = deserializeAws_restJson1L
|
|
|
2473
2473
|
const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context) => {
|
|
2474
2474
|
const parsedOutput = {
|
|
2475
2475
|
...output,
|
|
2476
|
-
body: await
|
|
2476
|
+
body: await parseErrorBody(output.body, context),
|
|
2477
2477
|
};
|
|
2478
2478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
2479
|
switch (errorCode) {
|
|
@@ -2519,7 +2519,7 @@ exports.deserializeAws_restJson1MergeProfilesCommand = deserializeAws_restJson1M
|
|
|
2519
2519
|
const deserializeAws_restJson1MergeProfilesCommandError = async (output, context) => {
|
|
2520
2520
|
const parsedOutput = {
|
|
2521
2521
|
...output,
|
|
2522
|
-
body: await
|
|
2522
|
+
body: await parseErrorBody(output.body, context),
|
|
2523
2523
|
};
|
|
2524
2524
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
2525
|
switch (errorCode) {
|
|
@@ -2586,7 +2586,7 @@ exports.deserializeAws_restJson1PutIntegrationCommand = deserializeAws_restJson1
|
|
|
2586
2586
|
const deserializeAws_restJson1PutIntegrationCommandError = async (output, context) => {
|
|
2587
2587
|
const parsedOutput = {
|
|
2588
2588
|
...output,
|
|
2589
|
-
body: await
|
|
2589
|
+
body: await parseErrorBody(output.body, context),
|
|
2590
2590
|
};
|
|
2591
2591
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
2592
|
switch (errorCode) {
|
|
@@ -2632,7 +2632,7 @@ exports.deserializeAws_restJson1PutProfileObjectCommand = deserializeAws_restJso
|
|
|
2632
2632
|
const deserializeAws_restJson1PutProfileObjectCommandError = async (output, context) => {
|
|
2633
2633
|
const parsedOutput = {
|
|
2634
2634
|
...output,
|
|
2635
|
-
body: await
|
|
2635
|
+
body: await parseErrorBody(output.body, context),
|
|
2636
2636
|
};
|
|
2637
2637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
2638
|
switch (errorCode) {
|
|
@@ -2711,7 +2711,7 @@ exports.deserializeAws_restJson1PutProfileObjectTypeCommand = deserializeAws_res
|
|
|
2711
2711
|
const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output, context) => {
|
|
2712
2712
|
const parsedOutput = {
|
|
2713
2713
|
...output,
|
|
2714
|
-
body: await
|
|
2714
|
+
body: await parseErrorBody(output.body, context),
|
|
2715
2715
|
};
|
|
2716
2716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
2717
|
switch (errorCode) {
|
|
@@ -2760,7 +2760,7 @@ exports.deserializeAws_restJson1SearchProfilesCommand = deserializeAws_restJson1
|
|
|
2760
2760
|
const deserializeAws_restJson1SearchProfilesCommandError = async (output, context) => {
|
|
2761
2761
|
const parsedOutput = {
|
|
2762
2762
|
...output,
|
|
2763
|
-
body: await
|
|
2763
|
+
body: await parseErrorBody(output.body, context),
|
|
2764
2764
|
};
|
|
2765
2765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
2766
|
switch (errorCode) {
|
|
@@ -2803,7 +2803,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2803
2803
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2804
2804
|
const parsedOutput = {
|
|
2805
2805
|
...output,
|
|
2806
|
-
body: await
|
|
2806
|
+
body: await parseErrorBody(output.body, context),
|
|
2807
2807
|
};
|
|
2808
2808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2809
2809
|
switch (errorCode) {
|
|
@@ -2840,7 +2840,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2840
2840
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2841
2841
|
const parsedOutput = {
|
|
2842
2842
|
...output,
|
|
2843
|
-
body: await
|
|
2843
|
+
body: await parseErrorBody(output.body, context),
|
|
2844
2844
|
};
|
|
2845
2845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2846
|
switch (errorCode) {
|
|
@@ -2901,7 +2901,7 @@ exports.deserializeAws_restJson1UpdateDomainCommand = deserializeAws_restJson1Up
|
|
|
2901
2901
|
const deserializeAws_restJson1UpdateDomainCommandError = async (output, context) => {
|
|
2902
2902
|
const parsedOutput = {
|
|
2903
2903
|
...output,
|
|
2904
|
-
body: await
|
|
2904
|
+
body: await parseErrorBody(output.body, context),
|
|
2905
2905
|
};
|
|
2906
2906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
2907
|
switch (errorCode) {
|
|
@@ -2947,7 +2947,7 @@ exports.deserializeAws_restJson1UpdateProfileCommand = deserializeAws_restJson1U
|
|
|
2947
2947
|
const deserializeAws_restJson1UpdateProfileCommandError = async (output, context) => {
|
|
2948
2948
|
const parsedOutput = {
|
|
2949
2949
|
...output,
|
|
2950
|
-
body: await
|
|
2950
|
+
body: await parseErrorBody(output.body, context),
|
|
2951
2951
|
};
|
|
2952
2952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
2953
|
switch (errorCode) {
|
|
@@ -4008,6 +4008,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4008
4008
|
}
|
|
4009
4009
|
return {};
|
|
4010
4010
|
});
|
|
4011
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4012
|
+
var _a;
|
|
4013
|
+
const value = await parseBody(errorBody, context);
|
|
4014
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4015
|
+
return value;
|
|
4016
|
+
};
|
|
4011
4017
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4012
4018
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4013
4019
|
const sanitizeErrorCode = (rawValue) => {
|