@aws-sdk/client-kendra 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_json1_1.js +66 -60
- package/dist-es/Kendra.js +242 -249
- package/dist-es/KendraClient.js +22 -28
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +21 -28
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +21 -28
- package/dist-es/commands/BatchDeleteDocumentCommand.js +21 -28
- package/dist-es/commands/BatchGetDocumentStatusCommand.js +21 -28
- package/dist-es/commands/BatchPutDocumentCommand.js +21 -28
- package/dist-es/commands/ClearQuerySuggestionsCommand.js +22 -29
- package/dist-es/commands/CreateAccessControlConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateDataSourceCommand.js +21 -28
- package/dist-es/commands/CreateExperienceCommand.js +21 -28
- package/dist-es/commands/CreateFaqCommand.js +21 -28
- package/dist-es/commands/CreateIndexCommand.js +21 -28
- package/dist-es/commands/CreateQuerySuggestionsBlockListCommand.js +21 -28
- package/dist-es/commands/CreateThesaurusCommand.js +21 -28
- package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteDataSourceCommand.js +22 -29
- package/dist-es/commands/DeleteExperienceCommand.js +21 -28
- package/dist-es/commands/DeleteFaqCommand.js +22 -29
- package/dist-es/commands/DeleteIndexCommand.js +22 -29
- package/dist-es/commands/DeletePrincipalMappingCommand.js +22 -29
- package/dist-es/commands/DeleteQuerySuggestionsBlockListCommand.js +22 -29
- package/dist-es/commands/DeleteThesaurusCommand.js +22 -29
- package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeDataSourceCommand.js +21 -28
- package/dist-es/commands/DescribeExperienceCommand.js +21 -28
- package/dist-es/commands/DescribeFaqCommand.js +21 -28
- package/dist-es/commands/DescribeIndexCommand.js +21 -28
- package/dist-es/commands/DescribePrincipalMappingCommand.js +21 -28
- package/dist-es/commands/DescribeQuerySuggestionsBlockListCommand.js +21 -28
- package/dist-es/commands/DescribeQuerySuggestionsConfigCommand.js +21 -28
- package/dist-es/commands/DescribeThesaurusCommand.js +21 -28
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +21 -28
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +21 -28
- package/dist-es/commands/GetQuerySuggestionsCommand.js +21 -28
- package/dist-es/commands/GetSnapshotsCommand.js +21 -28
- package/dist-es/commands/ListAccessControlConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListDataSourceSyncJobsCommand.js +21 -28
- package/dist-es/commands/ListDataSourcesCommand.js +21 -28
- package/dist-es/commands/ListEntityPersonasCommand.js +21 -28
- package/dist-es/commands/ListExperienceEntitiesCommand.js +21 -28
- package/dist-es/commands/ListExperiencesCommand.js +21 -28
- package/dist-es/commands/ListFaqsCommand.js +21 -28
- package/dist-es/commands/ListGroupsOlderThanOrderingIdCommand.js +21 -28
- package/dist-es/commands/ListIndicesCommand.js +21 -28
- package/dist-es/commands/ListQuerySuggestionsBlockListsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListThesauriCommand.js +21 -28
- package/dist-es/commands/PutPrincipalMappingCommand.js +22 -29
- package/dist-es/commands/QueryCommand.js +21 -28
- package/dist-es/commands/StartDataSourceSyncJobCommand.js +21 -28
- package/dist-es/commands/StopDataSourceSyncJobCommand.js +22 -29
- package/dist-es/commands/SubmitFeedbackCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateDataSourceCommand.js +22 -29
- package/dist-es/commands/UpdateExperienceCommand.js +22 -29
- package/dist-es/commands/UpdateIndexCommand.js +22 -29
- package/dist-es/commands/UpdateQuerySuggestionsBlockListCommand.js +22 -29
- package/dist-es/commands/UpdateQuerySuggestionsConfigCommand.js +22 -29
- package/dist-es/commands/UpdateThesaurusCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/KendraServiceException.js +5 -10
- package/dist-es/models/models_0.js +844 -371
- package/dist-es/models/models_1.js +12 -5
- package/dist-es/pagination/GetSnapshotsPaginator.js +25 -68
- package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +25 -68
- package/dist-es/pagination/ListDataSourcesPaginator.js +25 -68
- package/dist-es/pagination/ListEntityPersonasPaginator.js +25 -68
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +24 -67
- package/dist-es/pagination/ListExperiencesPaginator.js +25 -68
- package/dist-es/pagination/ListFaqsPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsOlderThanOrderingIdPaginator.js +25 -68
- package/dist-es/pagination/ListIndicesPaginator.js +25 -68
- package/dist-es/pagination/ListQuerySuggestionsBlockListsPaginator.js +25 -68
- package/dist-es/pagination/ListThesauriPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +5783 -6527
- 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-kendra
|
|
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
|
|
|
@@ -625,7 +625,7 @@ exports.deserializeAws_json1_1AssociateEntitiesToExperienceCommand = deserialize
|
|
|
625
625
|
const deserializeAws_json1_1AssociateEntitiesToExperienceCommandError = async (output, context) => {
|
|
626
626
|
const parsedOutput = {
|
|
627
627
|
...output,
|
|
628
|
-
body: await
|
|
628
|
+
body: await parseErrorBody(output.body, context),
|
|
629
629
|
};
|
|
630
630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
631
|
switch (errorCode) {
|
|
@@ -674,7 +674,7 @@ exports.deserializeAws_json1_1AssociatePersonasToEntitiesCommand = deserializeAw
|
|
|
674
674
|
const deserializeAws_json1_1AssociatePersonasToEntitiesCommandError = async (output, context) => {
|
|
675
675
|
const parsedOutput = {
|
|
676
676
|
...output,
|
|
677
|
-
body: await
|
|
677
|
+
body: await parseErrorBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
680
|
switch (errorCode) {
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_json1_1BatchDeleteDocumentCommand = deserializeAws_json1_
|
|
|
723
723
|
const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_json1_1BatchGetDocumentStatusCommand = deserializeAws_jso
|
|
|
772
772
|
const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -821,7 +821,7 @@ exports.deserializeAws_json1_1BatchPutDocumentCommand = deserializeAws_json1_1Ba
|
|
|
821
821
|
const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, context) => {
|
|
822
822
|
const parsedOutput = {
|
|
823
823
|
...output,
|
|
824
|
-
body: await
|
|
824
|
+
body: await parseErrorBody(output.body, context),
|
|
825
825
|
};
|
|
826
826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
827
|
switch (errorCode) {
|
|
@@ -870,7 +870,7 @@ exports.deserializeAws_json1_1ClearQuerySuggestionsCommand = deserializeAws_json
|
|
|
870
870
|
const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, context) => {
|
|
871
871
|
const parsedOutput = {
|
|
872
872
|
...output,
|
|
873
|
-
body: await
|
|
873
|
+
body: await parseErrorBody(output.body, context),
|
|
874
874
|
};
|
|
875
875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
876
|
switch (errorCode) {
|
|
@@ -919,7 +919,7 @@ exports.deserializeAws_json1_1CreateAccessControlConfigurationCommand = deserial
|
|
|
919
919
|
const deserializeAws_json1_1CreateAccessControlConfigurationCommandError = async (output, context) => {
|
|
920
920
|
const parsedOutput = {
|
|
921
921
|
...output,
|
|
922
|
-
body: await
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
923
|
};
|
|
924
924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
925
|
switch (errorCode) {
|
|
@@ -971,7 +971,7 @@ exports.deserializeAws_json1_1CreateDataSourceCommand = deserializeAws_json1_1Cr
|
|
|
971
971
|
const deserializeAws_json1_1CreateDataSourceCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
|
-
body: await
|
|
974
|
+
body: await parseErrorBody(output.body, context),
|
|
975
975
|
};
|
|
976
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
977
|
switch (errorCode) {
|
|
@@ -1026,7 +1026,7 @@ exports.deserializeAws_json1_1CreateExperienceCommand = deserializeAws_json1_1Cr
|
|
|
1026
1026
|
const deserializeAws_json1_1CreateExperienceCommandError = async (output, context) => {
|
|
1027
1027
|
const parsedOutput = {
|
|
1028
1028
|
...output,
|
|
1029
|
-
body: await
|
|
1029
|
+
body: await parseErrorBody(output.body, context),
|
|
1030
1030
|
};
|
|
1031
1031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1032
|
switch (errorCode) {
|
|
@@ -1078,7 +1078,7 @@ exports.deserializeAws_json1_1CreateFaqCommand = deserializeAws_json1_1CreateFaq
|
|
|
1078
1078
|
const deserializeAws_json1_1CreateFaqCommandError = 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) {
|
|
@@ -1130,7 +1130,7 @@ exports.deserializeAws_json1_1CreateIndexCommand = deserializeAws_json1_1CreateI
|
|
|
1130
1130
|
const deserializeAws_json1_1CreateIndexCommandError = async (output, context) => {
|
|
1131
1131
|
const parsedOutput = {
|
|
1132
1132
|
...output,
|
|
1133
|
-
body: await
|
|
1133
|
+
body: await parseErrorBody(output.body, context),
|
|
1134
1134
|
};
|
|
1135
1135
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
1136
|
switch (errorCode) {
|
|
@@ -1182,7 +1182,7 @@ exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = deseriali
|
|
|
1182
1182
|
const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = 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) {
|
|
@@ -1234,7 +1234,7 @@ exports.deserializeAws_json1_1CreateThesaurusCommand = deserializeAws_json1_1Cre
|
|
|
1234
1234
|
const deserializeAws_json1_1CreateThesaurusCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_json1_1DeleteAccessControlConfigurationCommand = deserial
|
|
|
1286
1286
|
const deserializeAws_json1_1DeleteAccessControlConfigurationCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1332,7 +1332,7 @@ exports.deserializeAws_json1_1DeleteDataSourceCommand = deserializeAws_json1_1De
|
|
|
1332
1332
|
const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, context) => {
|
|
1333
1333
|
const parsedOutput = {
|
|
1334
1334
|
...output,
|
|
1335
|
-
body: await
|
|
1335
|
+
body: await parseErrorBody(output.body, context),
|
|
1336
1336
|
};
|
|
1337
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
1338
|
switch (errorCode) {
|
|
@@ -1381,7 +1381,7 @@ exports.deserializeAws_json1_1DeleteExperienceCommand = deserializeAws_json1_1De
|
|
|
1381
1381
|
const deserializeAws_json1_1DeleteExperienceCommandError = async (output, context) => {
|
|
1382
1382
|
const parsedOutput = {
|
|
1383
1383
|
...output,
|
|
1384
|
-
body: await
|
|
1384
|
+
body: await parseErrorBody(output.body, context),
|
|
1385
1385
|
};
|
|
1386
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1387
|
switch (errorCode) {
|
|
@@ -1427,7 +1427,7 @@ exports.deserializeAws_json1_1DeleteFaqCommand = deserializeAws_json1_1DeleteFaq
|
|
|
1427
1427
|
const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
1428
1428
|
const parsedOutput = {
|
|
1429
1429
|
...output,
|
|
1430
|
-
body: await
|
|
1430
|
+
body: await parseErrorBody(output.body, context),
|
|
1431
1431
|
};
|
|
1432
1432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1433
|
switch (errorCode) {
|
|
@@ -1473,7 +1473,7 @@ exports.deserializeAws_json1_1DeleteIndexCommand = deserializeAws_json1_1DeleteI
|
|
|
1473
1473
|
const deserializeAws_json1_1DeleteIndexCommandError = async (output, context) => {
|
|
1474
1474
|
const parsedOutput = {
|
|
1475
1475
|
...output,
|
|
1476
|
-
body: await
|
|
1476
|
+
body: await parseErrorBody(output.body, context),
|
|
1477
1477
|
};
|
|
1478
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1479
|
switch (errorCode) {
|
|
@@ -1519,7 +1519,7 @@ exports.deserializeAws_json1_1DeletePrincipalMappingCommand = deserializeAws_jso
|
|
|
1519
1519
|
const deserializeAws_json1_1DeletePrincipalMappingCommandError = async (output, context) => {
|
|
1520
1520
|
const parsedOutput = {
|
|
1521
1521
|
...output,
|
|
1522
|
-
body: await
|
|
1522
|
+
body: await parseErrorBody(output.body, context),
|
|
1523
1523
|
};
|
|
1524
1524
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
1525
|
switch (errorCode) {
|
|
@@ -1565,7 +1565,7 @@ exports.deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = deseriali
|
|
|
1565
1565
|
const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1566
1566
|
const parsedOutput = {
|
|
1567
1567
|
...output,
|
|
1568
|
-
body: await
|
|
1568
|
+
body: await parseErrorBody(output.body, context),
|
|
1569
1569
|
};
|
|
1570
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
1571
|
switch (errorCode) {
|
|
@@ -1611,7 +1611,7 @@ exports.deserializeAws_json1_1DeleteThesaurusCommand = deserializeAws_json1_1Del
|
|
|
1611
1611
|
const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context) => {
|
|
1612
1612
|
const parsedOutput = {
|
|
1613
1613
|
...output,
|
|
1614
|
-
body: await
|
|
1614
|
+
body: await parseErrorBody(output.body, context),
|
|
1615
1615
|
};
|
|
1616
1616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1617
|
switch (errorCode) {
|
|
@@ -1660,7 +1660,7 @@ exports.deserializeAws_json1_1DescribeAccessControlConfigurationCommand = deseri
|
|
|
1660
1660
|
const deserializeAws_json1_1DescribeAccessControlConfigurationCommandError = async (output, context) => {
|
|
1661
1661
|
const parsedOutput = {
|
|
1662
1662
|
...output,
|
|
1663
|
-
body: await
|
|
1663
|
+
body: await parseErrorBody(output.body, context),
|
|
1664
1664
|
};
|
|
1665
1665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
1666
|
switch (errorCode) {
|
|
@@ -1706,7 +1706,7 @@ exports.deserializeAws_json1_1DescribeDataSourceCommand = deserializeAws_json1_1
|
|
|
1706
1706
|
const deserializeAws_json1_1DescribeDataSourceCommandError = async (output, context) => {
|
|
1707
1707
|
const parsedOutput = {
|
|
1708
1708
|
...output,
|
|
1709
|
-
body: await
|
|
1709
|
+
body: await parseErrorBody(output.body, context),
|
|
1710
1710
|
};
|
|
1711
1711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1712
1712
|
switch (errorCode) {
|
|
@@ -1752,7 +1752,7 @@ exports.deserializeAws_json1_1DescribeExperienceCommand = deserializeAws_json1_1
|
|
|
1752
1752
|
const deserializeAws_json1_1DescribeExperienceCommandError = async (output, context) => {
|
|
1753
1753
|
const parsedOutput = {
|
|
1754
1754
|
...output,
|
|
1755
|
-
body: await
|
|
1755
|
+
body: await parseErrorBody(output.body, context),
|
|
1756
1756
|
};
|
|
1757
1757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
1758
|
switch (errorCode) {
|
|
@@ -1798,7 +1798,7 @@ exports.deserializeAws_json1_1DescribeFaqCommand = deserializeAws_json1_1Describ
|
|
|
1798
1798
|
const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) => {
|
|
1799
1799
|
const parsedOutput = {
|
|
1800
1800
|
...output,
|
|
1801
|
-
body: await
|
|
1801
|
+
body: await parseErrorBody(output.body, context),
|
|
1802
1802
|
};
|
|
1803
1803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
1804
|
switch (errorCode) {
|
|
@@ -1844,7 +1844,7 @@ exports.deserializeAws_json1_1DescribeIndexCommand = deserializeAws_json1_1Descr
|
|
|
1844
1844
|
const deserializeAws_json1_1DescribeIndexCommandError = async (output, context) => {
|
|
1845
1845
|
const parsedOutput = {
|
|
1846
1846
|
...output,
|
|
1847
|
-
body: await
|
|
1847
|
+
body: await parseErrorBody(output.body, context),
|
|
1848
1848
|
};
|
|
1849
1849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1850
|
switch (errorCode) {
|
|
@@ -1890,7 +1890,7 @@ exports.deserializeAws_json1_1DescribePrincipalMappingCommand = deserializeAws_j
|
|
|
1890
1890
|
const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output, context) => {
|
|
1891
1891
|
const parsedOutput = {
|
|
1892
1892
|
...output,
|
|
1893
|
-
body: await
|
|
1893
|
+
body: await parseErrorBody(output.body, context),
|
|
1894
1894
|
};
|
|
1895
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1896
|
switch (errorCode) {
|
|
@@ -1936,7 +1936,7 @@ exports.deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = deseria
|
|
|
1936
1936
|
const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1937
1937
|
const parsedOutput = {
|
|
1938
1938
|
...output,
|
|
1939
|
-
body: await
|
|
1939
|
+
body: await parseErrorBody(output.body, context),
|
|
1940
1940
|
};
|
|
1941
1941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
1942
|
switch (errorCode) {
|
|
@@ -1982,7 +1982,7 @@ exports.deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = deserializ
|
|
|
1982
1982
|
const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
1983
1983
|
const parsedOutput = {
|
|
1984
1984
|
...output,
|
|
1985
|
-
body: await
|
|
1985
|
+
body: await parseErrorBody(output.body, context),
|
|
1986
1986
|
};
|
|
1987
1987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
1988
|
switch (errorCode) {
|
|
@@ -2028,7 +2028,7 @@ exports.deserializeAws_json1_1DescribeThesaurusCommand = deserializeAws_json1_1D
|
|
|
2028
2028
|
const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, context) => {
|
|
2029
2029
|
const parsedOutput = {
|
|
2030
2030
|
...output,
|
|
2031
|
-
body: await
|
|
2031
|
+
body: await parseErrorBody(output.body, context),
|
|
2032
2032
|
};
|
|
2033
2033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
2034
|
switch (errorCode) {
|
|
@@ -2074,7 +2074,7 @@ exports.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = deseri
|
|
|
2074
2074
|
const deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError = async (output, context) => {
|
|
2075
2075
|
const parsedOutput = {
|
|
2076
2076
|
...output,
|
|
2077
|
-
body: await
|
|
2077
|
+
body: await parseErrorBody(output.body, context),
|
|
2078
2078
|
};
|
|
2079
2079
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
2080
|
switch (errorCode) {
|
|
@@ -2120,7 +2120,7 @@ exports.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = deserial
|
|
|
2120
2120
|
const deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError = async (output, context) => {
|
|
2121
2121
|
const parsedOutput = {
|
|
2122
2122
|
...output,
|
|
2123
|
-
body: await
|
|
2123
|
+
body: await parseErrorBody(output.body, context),
|
|
2124
2124
|
};
|
|
2125
2125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2126
|
switch (errorCode) {
|
|
@@ -2166,7 +2166,7 @@ exports.deserializeAws_json1_1GetQuerySuggestionsCommand = deserializeAws_json1_
|
|
|
2166
2166
|
const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, context) => {
|
|
2167
2167
|
const parsedOutput = {
|
|
2168
2168
|
...output,
|
|
2169
|
-
body: await
|
|
2169
|
+
body: await parseErrorBody(output.body, context),
|
|
2170
2170
|
};
|
|
2171
2171
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
2172
|
switch (errorCode) {
|
|
@@ -2218,7 +2218,7 @@ exports.deserializeAws_json1_1GetSnapshotsCommand = deserializeAws_json1_1GetSna
|
|
|
2218
2218
|
const deserializeAws_json1_1GetSnapshotsCommandError = async (output, context) => {
|
|
2219
2219
|
const parsedOutput = {
|
|
2220
2220
|
...output,
|
|
2221
|
-
body: await
|
|
2221
|
+
body: await parseErrorBody(output.body, context),
|
|
2222
2222
|
};
|
|
2223
2223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
2224
|
switch (errorCode) {
|
|
@@ -2261,7 +2261,7 @@ exports.deserializeAws_json1_1ListAccessControlConfigurationsCommand = deseriali
|
|
|
2261
2261
|
const deserializeAws_json1_1ListAccessControlConfigurationsCommandError = async (output, context) => {
|
|
2262
2262
|
const parsedOutput = {
|
|
2263
2263
|
...output,
|
|
2264
|
-
body: await
|
|
2264
|
+
body: await parseErrorBody(output.body, context),
|
|
2265
2265
|
};
|
|
2266
2266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
2267
|
switch (errorCode) {
|
|
@@ -2307,7 +2307,7 @@ exports.deserializeAws_json1_1ListDataSourcesCommand = deserializeAws_json1_1Lis
|
|
|
2307
2307
|
const deserializeAws_json1_1ListDataSourcesCommandError = async (output, context) => {
|
|
2308
2308
|
const parsedOutput = {
|
|
2309
2309
|
...output,
|
|
2310
|
-
body: await
|
|
2310
|
+
body: await parseErrorBody(output.body, context),
|
|
2311
2311
|
};
|
|
2312
2312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
2313
|
switch (errorCode) {
|
|
@@ -2353,7 +2353,7 @@ exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = deserializeAws_jso
|
|
|
2353
2353
|
const deserializeAws_json1_1ListDataSourceSyncJobsCommandError = async (output, context) => {
|
|
2354
2354
|
const parsedOutput = {
|
|
2355
2355
|
...output,
|
|
2356
|
-
body: await
|
|
2356
|
+
body: await parseErrorBody(output.body, context),
|
|
2357
2357
|
};
|
|
2358
2358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
2359
|
switch (errorCode) {
|
|
@@ -2402,7 +2402,7 @@ exports.deserializeAws_json1_1ListEntityPersonasCommand = deserializeAws_json1_1
|
|
|
2402
2402
|
const deserializeAws_json1_1ListEntityPersonasCommandError = async (output, context) => {
|
|
2403
2403
|
const parsedOutput = {
|
|
2404
2404
|
...output,
|
|
2405
|
-
body: await
|
|
2405
|
+
body: await parseErrorBody(output.body, context),
|
|
2406
2406
|
};
|
|
2407
2407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
2408
|
switch (errorCode) {
|
|
@@ -2448,7 +2448,7 @@ exports.deserializeAws_json1_1ListExperienceEntitiesCommand = deserializeAws_jso
|
|
|
2448
2448
|
const deserializeAws_json1_1ListExperienceEntitiesCommandError = async (output, context) => {
|
|
2449
2449
|
const parsedOutput = {
|
|
2450
2450
|
...output,
|
|
2451
|
-
body: await
|
|
2451
|
+
body: await parseErrorBody(output.body, context),
|
|
2452
2452
|
};
|
|
2453
2453
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
2454
|
switch (errorCode) {
|
|
@@ -2494,7 +2494,7 @@ exports.deserializeAws_json1_1ListExperiencesCommand = deserializeAws_json1_1Lis
|
|
|
2494
2494
|
const deserializeAws_json1_1ListExperiencesCommandError = async (output, context) => {
|
|
2495
2495
|
const parsedOutput = {
|
|
2496
2496
|
...output,
|
|
2497
|
-
body: await
|
|
2497
|
+
body: await parseErrorBody(output.body, context),
|
|
2498
2498
|
};
|
|
2499
2499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
2500
|
switch (errorCode) {
|
|
@@ -2540,7 +2540,7 @@ exports.deserializeAws_json1_1ListFaqsCommand = deserializeAws_json1_1ListFaqsCo
|
|
|
2540
2540
|
const deserializeAws_json1_1ListFaqsCommandError = async (output, context) => {
|
|
2541
2541
|
const parsedOutput = {
|
|
2542
2542
|
...output,
|
|
2543
|
-
body: await
|
|
2543
|
+
body: await parseErrorBody(output.body, context),
|
|
2544
2544
|
};
|
|
2545
2545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
2546
|
switch (errorCode) {
|
|
@@ -2586,7 +2586,7 @@ exports.deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = deserialize
|
|
|
2586
2586
|
const deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommandError = 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) {
|
|
@@ -2635,7 +2635,7 @@ exports.deserializeAws_json1_1ListIndicesCommand = deserializeAws_json1_1ListInd
|
|
|
2635
2635
|
const deserializeAws_json1_1ListIndicesCommandError = async (output, context) => {
|
|
2636
2636
|
const parsedOutput = {
|
|
2637
2637
|
...output,
|
|
2638
|
-
body: await
|
|
2638
|
+
body: await parseErrorBody(output.body, context),
|
|
2639
2639
|
};
|
|
2640
2640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
2641
|
switch (errorCode) {
|
|
@@ -2678,7 +2678,7 @@ exports.deserializeAws_json1_1ListQuerySuggestionsBlockListsCommand = deserializ
|
|
|
2678
2678
|
const deserializeAws_json1_1ListQuerySuggestionsBlockListsCommandError = async (output, context) => {
|
|
2679
2679
|
const parsedOutput = {
|
|
2680
2680
|
...output,
|
|
2681
|
-
body: await
|
|
2681
|
+
body: await parseErrorBody(output.body, context),
|
|
2682
2682
|
};
|
|
2683
2683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
2684
|
switch (errorCode) {
|
|
@@ -2724,7 +2724,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2724
2724
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2725
2725
|
const parsedOutput = {
|
|
2726
2726
|
...output,
|
|
2727
|
-
body: await
|
|
2727
|
+
body: await parseErrorBody(output.body, context),
|
|
2728
2728
|
};
|
|
2729
2729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
2730
|
switch (errorCode) {
|
|
@@ -2770,7 +2770,7 @@ exports.deserializeAws_json1_1ListThesauriCommand = deserializeAws_json1_1ListTh
|
|
|
2770
2770
|
const deserializeAws_json1_1ListThesauriCommandError = async (output, context) => {
|
|
2771
2771
|
const parsedOutput = {
|
|
2772
2772
|
...output,
|
|
2773
|
-
body: await
|
|
2773
|
+
body: await parseErrorBody(output.body, context),
|
|
2774
2774
|
};
|
|
2775
2775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
2776
|
switch (errorCode) {
|
|
@@ -2813,7 +2813,7 @@ exports.deserializeAws_json1_1PutPrincipalMappingCommand = deserializeAws_json1_
|
|
|
2813
2813
|
const deserializeAws_json1_1PutPrincipalMappingCommandError = async (output, context) => {
|
|
2814
2814
|
const parsedOutput = {
|
|
2815
2815
|
...output,
|
|
2816
|
-
body: await
|
|
2816
|
+
body: await parseErrorBody(output.body, context),
|
|
2817
2817
|
};
|
|
2818
2818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2819
2819
|
switch (errorCode) {
|
|
@@ -2865,7 +2865,7 @@ exports.deserializeAws_json1_1QueryCommand = deserializeAws_json1_1QueryCommand;
|
|
|
2865
2865
|
const deserializeAws_json1_1QueryCommandError = async (output, context) => {
|
|
2866
2866
|
const parsedOutput = {
|
|
2867
2867
|
...output,
|
|
2868
|
-
body: await
|
|
2868
|
+
body: await parseErrorBody(output.body, context),
|
|
2869
2869
|
};
|
|
2870
2870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
2871
|
switch (errorCode) {
|
|
@@ -2917,7 +2917,7 @@ exports.deserializeAws_json1_1StartDataSourceSyncJobCommand = deserializeAws_jso
|
|
|
2917
2917
|
const deserializeAws_json1_1StartDataSourceSyncJobCommandError = async (output, context) => {
|
|
2918
2918
|
const parsedOutput = {
|
|
2919
2919
|
...output,
|
|
2920
|
-
body: await
|
|
2920
|
+
body: await parseErrorBody(output.body, context),
|
|
2921
2921
|
};
|
|
2922
2922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
2923
|
switch (errorCode) {
|
|
@@ -2966,7 +2966,7 @@ exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = deserializeAws_json
|
|
|
2966
2966
|
const deserializeAws_json1_1StopDataSourceSyncJobCommandError = async (output, context) => {
|
|
2967
2967
|
const parsedOutput = {
|
|
2968
2968
|
...output,
|
|
2969
|
-
body: await
|
|
2969
|
+
body: await parseErrorBody(output.body, context),
|
|
2970
2970
|
};
|
|
2971
2971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2972
|
switch (errorCode) {
|
|
@@ -3009,7 +3009,7 @@ exports.deserializeAws_json1_1SubmitFeedbackCommand = deserializeAws_json1_1Subm
|
|
|
3009
3009
|
const deserializeAws_json1_1SubmitFeedbackCommandError = async (output, context) => {
|
|
3010
3010
|
const parsedOutput = {
|
|
3011
3011
|
...output,
|
|
3012
|
-
body: await
|
|
3012
|
+
body: await parseErrorBody(output.body, context),
|
|
3013
3013
|
};
|
|
3014
3014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
3015
|
switch (errorCode) {
|
|
@@ -3058,7 +3058,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3058
3058
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3059
3059
|
const parsedOutput = {
|
|
3060
3060
|
...output,
|
|
3061
|
-
body: await
|
|
3061
|
+
body: await parseErrorBody(output.body, context),
|
|
3062
3062
|
};
|
|
3063
3063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
3064
|
switch (errorCode) {
|
|
@@ -3104,7 +3104,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3104
3104
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3105
3105
|
const parsedOutput = {
|
|
3106
3106
|
...output,
|
|
3107
|
-
body: await
|
|
3107
|
+
body: await parseErrorBody(output.body, context),
|
|
3108
3108
|
};
|
|
3109
3109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3110
3110
|
switch (errorCode) {
|
|
@@ -3150,7 +3150,7 @@ exports.deserializeAws_json1_1UpdateAccessControlConfigurationCommand = deserial
|
|
|
3150
3150
|
const deserializeAws_json1_1UpdateAccessControlConfigurationCommandError = async (output, context) => {
|
|
3151
3151
|
const parsedOutput = {
|
|
3152
3152
|
...output,
|
|
3153
|
-
body: await
|
|
3153
|
+
body: await parseErrorBody(output.body, context),
|
|
3154
3154
|
};
|
|
3155
3155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3156
3156
|
switch (errorCode) {
|
|
@@ -3199,7 +3199,7 @@ exports.deserializeAws_json1_1UpdateDataSourceCommand = deserializeAws_json1_1Up
|
|
|
3199
3199
|
const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, context) => {
|
|
3200
3200
|
const parsedOutput = {
|
|
3201
3201
|
...output,
|
|
3202
|
-
body: await
|
|
3202
|
+
body: await parseErrorBody(output.body, context),
|
|
3203
3203
|
};
|
|
3204
3204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3205
3205
|
switch (errorCode) {
|
|
@@ -3245,7 +3245,7 @@ exports.deserializeAws_json1_1UpdateExperienceCommand = deserializeAws_json1_1Up
|
|
|
3245
3245
|
const deserializeAws_json1_1UpdateExperienceCommandError = async (output, context) => {
|
|
3246
3246
|
const parsedOutput = {
|
|
3247
3247
|
...output,
|
|
3248
|
-
body: await
|
|
3248
|
+
body: await parseErrorBody(output.body, context),
|
|
3249
3249
|
};
|
|
3250
3250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3251
|
switch (errorCode) {
|
|
@@ -3291,7 +3291,7 @@ exports.deserializeAws_json1_1UpdateIndexCommand = deserializeAws_json1_1UpdateI
|
|
|
3291
3291
|
const deserializeAws_json1_1UpdateIndexCommandError = async (output, context) => {
|
|
3292
3292
|
const parsedOutput = {
|
|
3293
3293
|
...output,
|
|
3294
|
-
body: await
|
|
3294
|
+
body: await parseErrorBody(output.body, context),
|
|
3295
3295
|
};
|
|
3296
3296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
3297
|
switch (errorCode) {
|
|
@@ -3340,7 +3340,7 @@ exports.deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = deseriali
|
|
|
3340
3340
|
const deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
3341
3341
|
const parsedOutput = {
|
|
3342
3342
|
...output,
|
|
3343
|
-
body: await
|
|
3343
|
+
body: await parseErrorBody(output.body, context),
|
|
3344
3344
|
};
|
|
3345
3345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3346
|
switch (errorCode) {
|
|
@@ -3386,7 +3386,7 @@ exports.deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand = deserializeA
|
|
|
3386
3386
|
const deserializeAws_json1_1UpdateQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
3387
3387
|
const parsedOutput = {
|
|
3388
3388
|
...output,
|
|
3389
|
-
body: await
|
|
3389
|
+
body: await parseErrorBody(output.body, context),
|
|
3390
3390
|
};
|
|
3391
3391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
3392
|
switch (errorCode) {
|
|
@@ -3432,7 +3432,7 @@ exports.deserializeAws_json1_1UpdateThesaurusCommand = deserializeAws_json1_1Upd
|
|
|
3432
3432
|
const deserializeAws_json1_1UpdateThesaurusCommandError = async (output, context) => {
|
|
3433
3433
|
const parsedOutput = {
|
|
3434
3434
|
...output,
|
|
3435
|
-
body: await
|
|
3435
|
+
body: await parseErrorBody(output.body, context),
|
|
3436
3436
|
};
|
|
3437
3437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
3438
|
switch (errorCode) {
|
|
@@ -8372,6 +8372,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
8372
8372
|
}
|
|
8373
8373
|
return {};
|
|
8374
8374
|
});
|
|
8375
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
8376
|
+
var _a;
|
|
8377
|
+
const value = await parseBody(errorBody, context);
|
|
8378
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
8379
|
+
return value;
|
|
8380
|
+
};
|
|
8375
8381
|
const loadRestJsonErrorCode = (output, data) => {
|
|
8376
8382
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
8377
8383
|
const sanitizeErrorCode = (rawValue) => {
|