@aws-sdk/client-lex-models-v2 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 +73 -67
- package/dist-es/LexModelsV2.js +270 -277
- package/dist-es/LexModelsV2Client.js +22 -28
- package/dist-es/commands/BuildBotLocaleCommand.js +21 -28
- package/dist-es/commands/CreateBotAliasCommand.js +21 -28
- package/dist-es/commands/CreateBotCommand.js +21 -28
- package/dist-es/commands/CreateBotLocaleCommand.js +21 -28
- package/dist-es/commands/CreateBotVersionCommand.js +21 -28
- package/dist-es/commands/CreateExportCommand.js +21 -28
- package/dist-es/commands/CreateIntentCommand.js +21 -28
- package/dist-es/commands/CreateResourcePolicyCommand.js +21 -28
- package/dist-es/commands/CreateResourcePolicyStatementCommand.js +21 -28
- package/dist-es/commands/CreateSlotCommand.js +21 -28
- package/dist-es/commands/CreateSlotTypeCommand.js +21 -28
- package/dist-es/commands/CreateUploadUrlCommand.js +21 -28
- package/dist-es/commands/DeleteBotAliasCommand.js +21 -28
- package/dist-es/commands/DeleteBotCommand.js +21 -28
- package/dist-es/commands/DeleteBotLocaleCommand.js +21 -28
- package/dist-es/commands/DeleteBotVersionCommand.js +21 -28
- package/dist-es/commands/DeleteCustomVocabularyCommand.js +21 -28
- package/dist-es/commands/DeleteExportCommand.js +21 -28
- package/dist-es/commands/DeleteImportCommand.js +21 -28
- package/dist-es/commands/DeleteIntentCommand.js +22 -29
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyStatementCommand.js +21 -28
- package/dist-es/commands/DeleteSlotCommand.js +22 -29
- package/dist-es/commands/DeleteSlotTypeCommand.js +22 -29
- package/dist-es/commands/DeleteUtterancesCommand.js +21 -28
- package/dist-es/commands/DescribeBotAliasCommand.js +21 -28
- package/dist-es/commands/DescribeBotCommand.js +21 -28
- package/dist-es/commands/DescribeBotLocaleCommand.js +21 -28
- package/dist-es/commands/DescribeBotRecommendationCommand.js +21 -28
- package/dist-es/commands/DescribeBotVersionCommand.js +21 -28
- package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +21 -28
- package/dist-es/commands/DescribeExportCommand.js +21 -28
- package/dist-es/commands/DescribeImportCommand.js +21 -28
- package/dist-es/commands/DescribeIntentCommand.js +21 -28
- package/dist-es/commands/DescribeResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DescribeSlotCommand.js +21 -28
- package/dist-es/commands/DescribeSlotTypeCommand.js +21 -28
- package/dist-es/commands/ListAggregatedUtterancesCommand.js +21 -28
- package/dist-es/commands/ListBotAliasesCommand.js +21 -28
- package/dist-es/commands/ListBotLocalesCommand.js +21 -28
- package/dist-es/commands/ListBotRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListBotVersionsCommand.js +21 -28
- package/dist-es/commands/ListBotsCommand.js +21 -28
- package/dist-es/commands/ListBuiltInIntentsCommand.js +21 -28
- package/dist-es/commands/ListBuiltInSlotTypesCommand.js +21 -28
- package/dist-es/commands/ListExportsCommand.js +21 -28
- package/dist-es/commands/ListImportsCommand.js +21 -28
- package/dist-es/commands/ListIntentsCommand.js +21 -28
- package/dist-es/commands/ListRecommendedIntentsCommand.js +21 -28
- package/dist-es/commands/ListSlotTypesCommand.js +21 -28
- package/dist-es/commands/ListSlotsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +21 -28
- package/dist-es/commands/StartBotRecommendationCommand.js +21 -28
- package/dist-es/commands/StartImportCommand.js +21 -28
- package/dist-es/commands/StopBotRecommendationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateBotAliasCommand.js +21 -28
- package/dist-es/commands/UpdateBotCommand.js +21 -28
- package/dist-es/commands/UpdateBotLocaleCommand.js +21 -28
- package/dist-es/commands/UpdateBotRecommendationCommand.js +21 -28
- package/dist-es/commands/UpdateExportCommand.js +21 -28
- package/dist-es/commands/UpdateIntentCommand.js +21 -28
- package/dist-es/commands/UpdateResourcePolicyCommand.js +21 -28
- package/dist-es/commands/UpdateSlotCommand.js +21 -28
- package/dist-es/commands/UpdateSlotTypeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LexModelsV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +808 -319
- package/dist-es/models/models_1.js +78 -27
- package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +25 -68
- package/dist-es/pagination/ListBotAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListBotLocalesPaginator.js +25 -68
- package/dist-es/pagination/ListBotRecommendationsPaginator.js +25 -68
- package/dist-es/pagination/ListBotVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListBotsPaginator.js +25 -68
- package/dist-es/pagination/ListBuiltInIntentsPaginator.js +25 -68
- package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +25 -68
- package/dist-es/pagination/ListExportsPaginator.js +25 -68
- package/dist-es/pagination/ListImportsPaginator.js +25 -68
- package/dist-es/pagination/ListIntentsPaginator.js +25 -68
- package/dist-es/pagination/ListRecommendedIntentsPaginator.js +25 -68
- package/dist-es/pagination/ListSlotTypesPaginator.js +25 -68
- package/dist-es/pagination/ListSlotsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +7152 -8733
- 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/dist-es/waiters/waitForBotAliasAvailable.js +45 -65
- package/dist-es/waiters/waitForBotAvailable.js +54 -74
- package/dist-es/waiters/waitForBotExportCompleted.js +45 -65
- package/dist-es/waiters/waitForBotImportCompleted.js +45 -65
- package/dist-es/waiters/waitForBotLocaleBuilt.js +54 -74
- package/dist-es/waiters/waitForBotLocaleCreated.js +63 -83
- package/dist-es/waiters/waitForBotLocaleExpressTestingAvailable.js +63 -83
- package/dist-es/waiters/waitForBotVersionAvailable.js +48 -68
- package/package.json +34 -34
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-lex-models-v2
|
|
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-lex-models-v2
|
|
@@ -1763,7 +1763,7 @@ exports.deserializeAws_restJson1BuildBotLocaleCommand = deserializeAws_restJson1
|
|
|
1763
1763
|
const deserializeAws_restJson1BuildBotLocaleCommandError = async (output, context) => {
|
|
1764
1764
|
const parsedOutput = {
|
|
1765
1765
|
...output,
|
|
1766
|
-
body: await
|
|
1766
|
+
body: await parseErrorBody(output.body, context),
|
|
1767
1767
|
};
|
|
1768
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1769
|
switch (errorCode) {
|
|
@@ -1839,7 +1839,7 @@ exports.deserializeAws_restJson1CreateBotCommand = deserializeAws_restJson1Creat
|
|
|
1839
1839
|
const deserializeAws_restJson1CreateBotCommandError = async (output, context) => {
|
|
1840
1840
|
const parsedOutput = {
|
|
1841
1841
|
...output,
|
|
1842
|
-
body: await
|
|
1842
|
+
body: await parseErrorBody(output.body, context),
|
|
1843
1843
|
};
|
|
1844
1844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
1845
|
switch (errorCode) {
|
|
@@ -1918,7 +1918,7 @@ exports.deserializeAws_restJson1CreateBotAliasCommand = deserializeAws_restJson1
|
|
|
1918
1918
|
const deserializeAws_restJson1CreateBotAliasCommandError = async (output, context) => {
|
|
1919
1919
|
const parsedOutput = {
|
|
1920
1920
|
...output,
|
|
1921
|
-
body: await
|
|
1921
|
+
body: await parseErrorBody(output.body, context),
|
|
1922
1922
|
};
|
|
1923
1923
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
1924
|
switch (errorCode) {
|
|
@@ -1991,7 +1991,7 @@ exports.deserializeAws_restJson1CreateBotLocaleCommand = deserializeAws_restJson
|
|
|
1991
1991
|
const deserializeAws_restJson1CreateBotLocaleCommandError = async (output, context) => {
|
|
1992
1992
|
const parsedOutput = {
|
|
1993
1993
|
...output,
|
|
1994
|
-
body: await
|
|
1994
|
+
body: await parseErrorBody(output.body, context),
|
|
1995
1995
|
};
|
|
1996
1996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
1997
|
switch (errorCode) {
|
|
@@ -2055,7 +2055,7 @@ exports.deserializeAws_restJson1CreateBotVersionCommand = deserializeAws_restJso
|
|
|
2055
2055
|
const deserializeAws_restJson1CreateBotVersionCommandError = async (output, context) => {
|
|
2056
2056
|
const parsedOutput = {
|
|
2057
2057
|
...output,
|
|
2058
|
-
body: await
|
|
2058
|
+
body: await parseErrorBody(output.body, context),
|
|
2059
2059
|
};
|
|
2060
2060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
2061
|
switch (errorCode) {
|
|
@@ -2116,7 +2116,7 @@ exports.deserializeAws_restJson1CreateExportCommand = deserializeAws_restJson1Cr
|
|
|
2116
2116
|
const deserializeAws_restJson1CreateExportCommandError = async (output, context) => {
|
|
2117
2117
|
const parsedOutput = {
|
|
2118
2118
|
...output,
|
|
2119
|
-
body: await
|
|
2119
|
+
body: await parseErrorBody(output.body, context),
|
|
2120
2120
|
};
|
|
2121
2121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2122
|
switch (errorCode) {
|
|
@@ -2213,7 +2213,7 @@ exports.deserializeAws_restJson1CreateIntentCommand = deserializeAws_restJson1Cr
|
|
|
2213
2213
|
const deserializeAws_restJson1CreateIntentCommandError = async (output, context) => {
|
|
2214
2214
|
const parsedOutput = {
|
|
2215
2215
|
...output,
|
|
2216
|
-
body: await
|
|
2216
|
+
body: await parseErrorBody(output.body, context),
|
|
2217
2217
|
};
|
|
2218
2218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
2219
|
switch (errorCode) {
|
|
@@ -2265,7 +2265,7 @@ exports.deserializeAws_restJson1CreateResourcePolicyCommand = deserializeAws_res
|
|
|
2265
2265
|
const deserializeAws_restJson1CreateResourcePolicyCommandError = async (output, context) => {
|
|
2266
2266
|
const parsedOutput = {
|
|
2267
2267
|
...output,
|
|
2268
|
-
body: await
|
|
2268
|
+
body: await parseErrorBody(output.body, context),
|
|
2269
2269
|
};
|
|
2270
2270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
2271
|
switch (errorCode) {
|
|
@@ -2317,7 +2317,7 @@ exports.deserializeAws_restJson1CreateResourcePolicyStatementCommand = deseriali
|
|
|
2317
2317
|
const deserializeAws_restJson1CreateResourcePolicyStatementCommandError = async (output, context) => {
|
|
2318
2318
|
const parsedOutput = {
|
|
2319
2319
|
...output,
|
|
2320
|
-
body: await
|
|
2320
|
+
body: await parseErrorBody(output.body, context),
|
|
2321
2321
|
};
|
|
2322
2322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2323
|
switch (errorCode) {
|
|
@@ -2405,7 +2405,7 @@ exports.deserializeAws_restJson1CreateSlotCommand = deserializeAws_restJson1Crea
|
|
|
2405
2405
|
const deserializeAws_restJson1CreateSlotCommandError = async (output, context) => {
|
|
2406
2406
|
const parsedOutput = {
|
|
2407
2407
|
...output,
|
|
2408
|
-
body: await
|
|
2408
|
+
body: await parseErrorBody(output.body, context),
|
|
2409
2409
|
};
|
|
2410
2410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2411
|
switch (errorCode) {
|
|
@@ -2487,7 +2487,7 @@ exports.deserializeAws_restJson1CreateSlotTypeCommand = deserializeAws_restJson1
|
|
|
2487
2487
|
const deserializeAws_restJson1CreateSlotTypeCommandError = async (output, context) => {
|
|
2488
2488
|
const parsedOutput = {
|
|
2489
2489
|
...output,
|
|
2490
|
-
body: await
|
|
2490
|
+
body: await parseErrorBody(output.body, context),
|
|
2491
2491
|
};
|
|
2492
2492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
2493
|
switch (errorCode) {
|
|
@@ -2539,7 +2539,7 @@ exports.deserializeAws_restJson1CreateUploadUrlCommand = deserializeAws_restJson
|
|
|
2539
2539
|
const deserializeAws_restJson1CreateUploadUrlCommandError = async (output, context) => {
|
|
2540
2540
|
const parsedOutput = {
|
|
2541
2541
|
...output,
|
|
2542
|
-
body: await
|
|
2542
|
+
body: await parseErrorBody(output.body, context),
|
|
2543
2543
|
};
|
|
2544
2544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
2545
|
switch (errorCode) {
|
|
@@ -2588,7 +2588,7 @@ exports.deserializeAws_restJson1DeleteBotCommand = deserializeAws_restJson1Delet
|
|
|
2588
2588
|
const deserializeAws_restJson1DeleteBotCommandError = async (output, context) => {
|
|
2589
2589
|
const parsedOutput = {
|
|
2590
2590
|
...output,
|
|
2591
|
-
body: await
|
|
2591
|
+
body: await parseErrorBody(output.body, context),
|
|
2592
2592
|
};
|
|
2593
2593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2594
2594
|
switch (errorCode) {
|
|
@@ -2643,7 +2643,7 @@ exports.deserializeAws_restJson1DeleteBotAliasCommand = deserializeAws_restJson1
|
|
|
2643
2643
|
const deserializeAws_restJson1DeleteBotAliasCommandError = async (output, context) => {
|
|
2644
2644
|
const parsedOutput = {
|
|
2645
2645
|
...output,
|
|
2646
|
-
body: await
|
|
2646
|
+
body: await parseErrorBody(output.body, context),
|
|
2647
2647
|
};
|
|
2648
2648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
2649
|
switch (errorCode) {
|
|
@@ -2701,7 +2701,7 @@ exports.deserializeAws_restJson1DeleteBotLocaleCommand = deserializeAws_restJson
|
|
|
2701
2701
|
const deserializeAws_restJson1DeleteBotLocaleCommandError = async (output, context) => {
|
|
2702
2702
|
const parsedOutput = {
|
|
2703
2703
|
...output,
|
|
2704
|
-
body: await
|
|
2704
|
+
body: await parseErrorBody(output.body, context),
|
|
2705
2705
|
};
|
|
2706
2706
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
2707
|
switch (errorCode) {
|
|
@@ -2756,7 +2756,7 @@ exports.deserializeAws_restJson1DeleteBotVersionCommand = deserializeAws_restJso
|
|
|
2756
2756
|
const deserializeAws_restJson1DeleteBotVersionCommandError = async (output, context) => {
|
|
2757
2757
|
const parsedOutput = {
|
|
2758
2758
|
...output,
|
|
2759
|
-
body: await
|
|
2759
|
+
body: await parseErrorBody(output.body, context),
|
|
2760
2760
|
};
|
|
2761
2761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2762
|
switch (errorCode) {
|
|
@@ -2814,7 +2814,7 @@ exports.deserializeAws_restJson1DeleteCustomVocabularyCommand = deserializeAws_r
|
|
|
2814
2814
|
const deserializeAws_restJson1DeleteCustomVocabularyCommandError = async (output, context) => {
|
|
2815
2815
|
const parsedOutput = {
|
|
2816
2816
|
...output,
|
|
2817
|
-
body: await
|
|
2817
|
+
body: await parseErrorBody(output.body, context),
|
|
2818
2818
|
};
|
|
2819
2819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2820
|
switch (errorCode) {
|
|
@@ -2866,7 +2866,7 @@ exports.deserializeAws_restJson1DeleteExportCommand = deserializeAws_restJson1De
|
|
|
2866
2866
|
const deserializeAws_restJson1DeleteExportCommandError = async (output, context) => {
|
|
2867
2867
|
const parsedOutput = {
|
|
2868
2868
|
...output,
|
|
2869
|
-
body: await
|
|
2869
|
+
body: await parseErrorBody(output.body, context),
|
|
2870
2870
|
};
|
|
2871
2871
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
2872
|
switch (errorCode) {
|
|
@@ -2915,7 +2915,7 @@ exports.deserializeAws_restJson1DeleteImportCommand = deserializeAws_restJson1De
|
|
|
2915
2915
|
const deserializeAws_restJson1DeleteImportCommandError = async (output, context) => {
|
|
2916
2916
|
const parsedOutput = {
|
|
2917
2917
|
...output,
|
|
2918
|
-
body: await
|
|
2918
|
+
body: await parseErrorBody(output.body, context),
|
|
2919
2919
|
};
|
|
2920
2920
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
2921
|
switch (errorCode) {
|
|
@@ -2958,7 +2958,7 @@ exports.deserializeAws_restJson1DeleteIntentCommand = deserializeAws_restJson1De
|
|
|
2958
2958
|
const deserializeAws_restJson1DeleteIntentCommandError = async (output, context) => {
|
|
2959
2959
|
const parsedOutput = {
|
|
2960
2960
|
...output,
|
|
2961
|
-
body: await
|
|
2961
|
+
body: await parseErrorBody(output.body, context),
|
|
2962
2962
|
};
|
|
2963
2963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2964
2964
|
switch (errorCode) {
|
|
@@ -3010,7 +3010,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyCommand = deserializeAws_res
|
|
|
3010
3010
|
const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
3011
3011
|
const parsedOutput = {
|
|
3012
3012
|
...output,
|
|
3013
|
-
body: await
|
|
3013
|
+
body: await parseErrorBody(output.body, context),
|
|
3014
3014
|
};
|
|
3015
3015
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
3016
|
switch (errorCode) {
|
|
@@ -3056,7 +3056,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyStatementCommand = deseriali
|
|
|
3056
3056
|
const deserializeAws_restJson1DeleteResourcePolicyStatementCommandError = async (output, context) => {
|
|
3057
3057
|
const parsedOutput = {
|
|
3058
3058
|
...output,
|
|
3059
|
-
body: await
|
|
3059
|
+
body: await parseErrorBody(output.body, context),
|
|
3060
3060
|
};
|
|
3061
3061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3062
3062
|
switch (errorCode) {
|
|
@@ -3096,7 +3096,7 @@ exports.deserializeAws_restJson1DeleteSlotCommand = deserializeAws_restJson1Dele
|
|
|
3096
3096
|
const deserializeAws_restJson1DeleteSlotCommandError = async (output, context) => {
|
|
3097
3097
|
const parsedOutput = {
|
|
3098
3098
|
...output,
|
|
3099
|
-
body: await
|
|
3099
|
+
body: await parseErrorBody(output.body, context),
|
|
3100
3100
|
};
|
|
3101
3101
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
3102
|
switch (errorCode) {
|
|
@@ -3142,7 +3142,7 @@ exports.deserializeAws_restJson1DeleteSlotTypeCommand = deserializeAws_restJson1
|
|
|
3142
3142
|
const deserializeAws_restJson1DeleteSlotTypeCommandError = async (output, context) => {
|
|
3143
3143
|
const parsedOutput = {
|
|
3144
3144
|
...output,
|
|
3145
|
-
body: await
|
|
3145
|
+
body: await parseErrorBody(output.body, context),
|
|
3146
3146
|
};
|
|
3147
3147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3148
3148
|
switch (errorCode) {
|
|
@@ -3188,7 +3188,7 @@ exports.deserializeAws_restJson1DeleteUtterancesCommand = deserializeAws_restJso
|
|
|
3188
3188
|
const deserializeAws_restJson1DeleteUtterancesCommandError = async (output, context) => {
|
|
3189
3189
|
const parsedOutput = {
|
|
3190
3190
|
...output,
|
|
3191
|
-
body: await
|
|
3191
|
+
body: await parseErrorBody(output.body, context),
|
|
3192
3192
|
};
|
|
3193
3193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3194
3194
|
switch (errorCode) {
|
|
@@ -3252,7 +3252,7 @@ exports.deserializeAws_restJson1DescribeBotCommand = deserializeAws_restJson1Des
|
|
|
3252
3252
|
const deserializeAws_restJson1DescribeBotCommandError = async (output, context) => {
|
|
3253
3253
|
const parsedOutput = {
|
|
3254
3254
|
...output,
|
|
3255
|
-
body: await
|
|
3255
|
+
body: await parseErrorBody(output.body, context),
|
|
3256
3256
|
};
|
|
3257
3257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
3258
|
switch (errorCode) {
|
|
@@ -3331,7 +3331,7 @@ exports.deserializeAws_restJson1DescribeBotAliasCommand = deserializeAws_restJso
|
|
|
3331
3331
|
const deserializeAws_restJson1DescribeBotAliasCommandError = async (output, context) => {
|
|
3332
3332
|
const parsedOutput = {
|
|
3333
3333
|
...output,
|
|
3334
|
-
body: await
|
|
3334
|
+
body: await parseErrorBody(output.body, context),
|
|
3335
3335
|
};
|
|
3336
3336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
3337
|
switch (errorCode) {
|
|
@@ -3422,7 +3422,7 @@ exports.deserializeAws_restJson1DescribeBotLocaleCommand = deserializeAws_restJs
|
|
|
3422
3422
|
const deserializeAws_restJson1DescribeBotLocaleCommandError = async (output, context) => {
|
|
3423
3423
|
const parsedOutput = {
|
|
3424
3424
|
...output,
|
|
3425
|
-
body: await
|
|
3425
|
+
body: await parseErrorBody(output.body, context),
|
|
3426
3426
|
};
|
|
3427
3427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3428
3428
|
switch (errorCode) {
|
|
@@ -3498,7 +3498,7 @@ exports.deserializeAws_restJson1DescribeBotRecommendationCommand = deserializeAw
|
|
|
3498
3498
|
const deserializeAws_restJson1DescribeBotRecommendationCommandError = async (output, context) => {
|
|
3499
3499
|
const parsedOutput = {
|
|
3500
3500
|
...output,
|
|
3501
|
-
body: await
|
|
3501
|
+
body: await parseErrorBody(output.body, context),
|
|
3502
3502
|
};
|
|
3503
3503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
3504
|
switch (errorCode) {
|
|
@@ -3568,7 +3568,7 @@ exports.deserializeAws_restJson1DescribeBotVersionCommand = deserializeAws_restJ
|
|
|
3568
3568
|
const deserializeAws_restJson1DescribeBotVersionCommandError = async (output, context) => {
|
|
3569
3569
|
const parsedOutput = {
|
|
3570
3570
|
...output,
|
|
3571
|
-
body: await
|
|
3571
|
+
body: await parseErrorBody(output.body, context),
|
|
3572
3572
|
};
|
|
3573
3573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3574
3574
|
switch (errorCode) {
|
|
@@ -3629,7 +3629,7 @@ exports.deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = deseri
|
|
|
3629
3629
|
const deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError = async (output, context) => {
|
|
3630
3630
|
const parsedOutput = {
|
|
3631
3631
|
...output,
|
|
3632
|
-
body: await
|
|
3632
|
+
body: await parseErrorBody(output.body, context),
|
|
3633
3633
|
};
|
|
3634
3634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3635
3635
|
switch (errorCode) {
|
|
@@ -3696,7 +3696,7 @@ exports.deserializeAws_restJson1DescribeExportCommand = deserializeAws_restJson1
|
|
|
3696
3696
|
const deserializeAws_restJson1DescribeExportCommandError = async (output, context) => {
|
|
3697
3697
|
const parsedOutput = {
|
|
3698
3698
|
...output,
|
|
3699
|
-
body: await
|
|
3699
|
+
body: await parseErrorBody(output.body, context),
|
|
3700
3700
|
};
|
|
3701
3701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3702
3702
|
switch (errorCode) {
|
|
@@ -3763,7 +3763,7 @@ exports.deserializeAws_restJson1DescribeImportCommand = deserializeAws_restJson1
|
|
|
3763
3763
|
const deserializeAws_restJson1DescribeImportCommandError = async (output, context) => {
|
|
3764
3764
|
const parsedOutput = {
|
|
3765
3765
|
...output,
|
|
3766
|
-
body: await
|
|
3766
|
+
body: await parseErrorBody(output.body, context),
|
|
3767
3767
|
};
|
|
3768
3768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3769
3769
|
switch (errorCode) {
|
|
@@ -3860,7 +3860,7 @@ exports.deserializeAws_restJson1DescribeIntentCommand = deserializeAws_restJson1
|
|
|
3860
3860
|
const deserializeAws_restJson1DescribeIntentCommandError = async (output, context) => {
|
|
3861
3861
|
const parsedOutput = {
|
|
3862
3862
|
...output,
|
|
3863
|
-
body: await
|
|
3863
|
+
body: await parseErrorBody(output.body, context),
|
|
3864
3864
|
};
|
|
3865
3865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
3866
|
switch (errorCode) {
|
|
@@ -3912,7 +3912,7 @@ exports.deserializeAws_restJson1DescribeResourcePolicyCommand = deserializeAws_r
|
|
|
3912
3912
|
const deserializeAws_restJson1DescribeResourcePolicyCommandError = async (output, context) => {
|
|
3913
3913
|
const parsedOutput = {
|
|
3914
3914
|
...output,
|
|
3915
|
-
body: await
|
|
3915
|
+
body: await parseErrorBody(output.body, context),
|
|
3916
3916
|
};
|
|
3917
3917
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3918
3918
|
switch (errorCode) {
|
|
@@ -3991,7 +3991,7 @@ exports.deserializeAws_restJson1DescribeSlotCommand = deserializeAws_restJson1De
|
|
|
3991
3991
|
const deserializeAws_restJson1DescribeSlotCommandError = async (output, context) => {
|
|
3992
3992
|
const parsedOutput = {
|
|
3993
3993
|
...output,
|
|
3994
|
-
body: await
|
|
3994
|
+
body: await parseErrorBody(output.body, context),
|
|
3995
3995
|
};
|
|
3996
3996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3997
3997
|
switch (errorCode) {
|
|
@@ -4073,7 +4073,7 @@ exports.deserializeAws_restJson1DescribeSlotTypeCommand = deserializeAws_restJso
|
|
|
4073
4073
|
const deserializeAws_restJson1DescribeSlotTypeCommandError = async (output, context) => {
|
|
4074
4074
|
const parsedOutput = {
|
|
4075
4075
|
...output,
|
|
4076
|
-
body: await
|
|
4076
|
+
body: await parseErrorBody(output.body, context),
|
|
4077
4077
|
};
|
|
4078
4078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4079
4079
|
switch (errorCode) {
|
|
@@ -4146,7 +4146,7 @@ exports.deserializeAws_restJson1ListAggregatedUtterancesCommand = deserializeAws
|
|
|
4146
4146
|
const deserializeAws_restJson1ListAggregatedUtterancesCommandError = async (output, context) => {
|
|
4147
4147
|
const parsedOutput = {
|
|
4148
4148
|
...output,
|
|
4149
|
-
body: await
|
|
4149
|
+
body: await parseErrorBody(output.body, context),
|
|
4150
4150
|
};
|
|
4151
4151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4152
4152
|
switch (errorCode) {
|
|
@@ -4195,7 +4195,7 @@ exports.deserializeAws_restJson1ListBotAliasesCommand = deserializeAws_restJson1
|
|
|
4195
4195
|
const deserializeAws_restJson1ListBotAliasesCommandError = async (output, context) => {
|
|
4196
4196
|
const parsedOutput = {
|
|
4197
4197
|
...output,
|
|
4198
|
-
body: await
|
|
4198
|
+
body: await parseErrorBody(output.body, context),
|
|
4199
4199
|
};
|
|
4200
4200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4201
4201
|
switch (errorCode) {
|
|
@@ -4247,7 +4247,7 @@ exports.deserializeAws_restJson1ListBotLocalesCommand = deserializeAws_restJson1
|
|
|
4247
4247
|
const deserializeAws_restJson1ListBotLocalesCommandError = async (output, context) => {
|
|
4248
4248
|
const parsedOutput = {
|
|
4249
4249
|
...output,
|
|
4250
|
-
body: await
|
|
4250
|
+
body: await parseErrorBody(output.body, context),
|
|
4251
4251
|
};
|
|
4252
4252
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4253
4253
|
switch (errorCode) {
|
|
@@ -4302,7 +4302,7 @@ exports.deserializeAws_restJson1ListBotRecommendationsCommand = deserializeAws_r
|
|
|
4302
4302
|
const deserializeAws_restJson1ListBotRecommendationsCommandError = async (output, context) => {
|
|
4303
4303
|
const parsedOutput = {
|
|
4304
4304
|
...output,
|
|
4305
|
-
body: await
|
|
4305
|
+
body: await parseErrorBody(output.body, context),
|
|
4306
4306
|
};
|
|
4307
4307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4308
4308
|
switch (errorCode) {
|
|
@@ -4348,7 +4348,7 @@ exports.deserializeAws_restJson1ListBotsCommand = deserializeAws_restJson1ListBo
|
|
|
4348
4348
|
const deserializeAws_restJson1ListBotsCommandError = async (output, context) => {
|
|
4349
4349
|
const parsedOutput = {
|
|
4350
4350
|
...output,
|
|
4351
|
-
body: await
|
|
4351
|
+
body: await parseErrorBody(output.body, context),
|
|
4352
4352
|
};
|
|
4353
4353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4354
4354
|
switch (errorCode) {
|
|
@@ -4397,7 +4397,7 @@ exports.deserializeAws_restJson1ListBotVersionsCommand = deserializeAws_restJson
|
|
|
4397
4397
|
const deserializeAws_restJson1ListBotVersionsCommandError = async (output, context) => {
|
|
4398
4398
|
const parsedOutput = {
|
|
4399
4399
|
...output,
|
|
4400
|
-
body: await
|
|
4400
|
+
body: await parseErrorBody(output.body, context),
|
|
4401
4401
|
};
|
|
4402
4402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4403
4403
|
switch (errorCode) {
|
|
@@ -4446,7 +4446,7 @@ exports.deserializeAws_restJson1ListBuiltInIntentsCommand = deserializeAws_restJ
|
|
|
4446
4446
|
const deserializeAws_restJson1ListBuiltInIntentsCommandError = async (output, context) => {
|
|
4447
4447
|
const parsedOutput = {
|
|
4448
4448
|
...output,
|
|
4449
|
-
body: await
|
|
4449
|
+
body: await parseErrorBody(output.body, context),
|
|
4450
4450
|
};
|
|
4451
4451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4452
4452
|
switch (errorCode) {
|
|
@@ -4495,7 +4495,7 @@ exports.deserializeAws_restJson1ListBuiltInSlotTypesCommand = deserializeAws_res
|
|
|
4495
4495
|
const deserializeAws_restJson1ListBuiltInSlotTypesCommandError = async (output, context) => {
|
|
4496
4496
|
const parsedOutput = {
|
|
4497
4497
|
...output,
|
|
4498
|
-
body: await
|
|
4498
|
+
body: await parseErrorBody(output.body, context),
|
|
4499
4499
|
};
|
|
4500
4500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4501
|
switch (errorCode) {
|
|
@@ -4550,7 +4550,7 @@ exports.deserializeAws_restJson1ListExportsCommand = deserializeAws_restJson1Lis
|
|
|
4550
4550
|
const deserializeAws_restJson1ListExportsCommandError = async (output, context) => {
|
|
4551
4551
|
const parsedOutput = {
|
|
4552
4552
|
...output,
|
|
4553
|
-
body: await
|
|
4553
|
+
body: await parseErrorBody(output.body, context),
|
|
4554
4554
|
};
|
|
4555
4555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4556
4556
|
switch (errorCode) {
|
|
@@ -4602,7 +4602,7 @@ exports.deserializeAws_restJson1ListImportsCommand = deserializeAws_restJson1Lis
|
|
|
4602
4602
|
const deserializeAws_restJson1ListImportsCommandError = async (output, context) => {
|
|
4603
4603
|
const parsedOutput = {
|
|
4604
4604
|
...output,
|
|
4605
|
-
body: await
|
|
4605
|
+
body: await parseErrorBody(output.body, context),
|
|
4606
4606
|
};
|
|
4607
4607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4608
4608
|
switch (errorCode) {
|
|
@@ -4654,7 +4654,7 @@ exports.deserializeAws_restJson1ListIntentsCommand = deserializeAws_restJson1Lis
|
|
|
4654
4654
|
const deserializeAws_restJson1ListIntentsCommandError = async (output, context) => {
|
|
4655
4655
|
const parsedOutput = {
|
|
4656
4656
|
...output,
|
|
4657
|
-
body: await
|
|
4657
|
+
body: await parseErrorBody(output.body, context),
|
|
4658
4658
|
};
|
|
4659
4659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4660
4660
|
switch (errorCode) {
|
|
@@ -4712,7 +4712,7 @@ exports.deserializeAws_restJson1ListRecommendedIntentsCommand = deserializeAws_r
|
|
|
4712
4712
|
const deserializeAws_restJson1ListRecommendedIntentsCommandError = async (output, context) => {
|
|
4713
4713
|
const parsedOutput = {
|
|
4714
4714
|
...output,
|
|
4715
|
-
body: await
|
|
4715
|
+
body: await parseErrorBody(output.body, context),
|
|
4716
4716
|
};
|
|
4717
4717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4718
4718
|
switch (errorCode) {
|
|
@@ -4773,7 +4773,7 @@ exports.deserializeAws_restJson1ListSlotsCommand = deserializeAws_restJson1ListS
|
|
|
4773
4773
|
const deserializeAws_restJson1ListSlotsCommandError = async (output, context) => {
|
|
4774
4774
|
const parsedOutput = {
|
|
4775
4775
|
...output,
|
|
4776
|
-
body: await
|
|
4776
|
+
body: await parseErrorBody(output.body, context),
|
|
4777
4777
|
};
|
|
4778
4778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4779
4779
|
switch (errorCode) {
|
|
@@ -4828,7 +4828,7 @@ exports.deserializeAws_restJson1ListSlotTypesCommand = deserializeAws_restJson1L
|
|
|
4828
4828
|
const deserializeAws_restJson1ListSlotTypesCommandError = async (output, context) => {
|
|
4829
4829
|
const parsedOutput = {
|
|
4830
4830
|
...output,
|
|
4831
|
-
body: await
|
|
4831
|
+
body: await parseErrorBody(output.body, context),
|
|
4832
4832
|
};
|
|
4833
4833
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4834
4834
|
switch (errorCode) {
|
|
@@ -4871,7 +4871,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
4871
4871
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4872
4872
|
const parsedOutput = {
|
|
4873
4873
|
...output,
|
|
4874
|
-
body: await
|
|
4874
|
+
body: await parseErrorBody(output.body, context),
|
|
4875
4875
|
};
|
|
4876
4876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4877
4877
|
switch (errorCode) {
|
|
@@ -4932,7 +4932,7 @@ exports.deserializeAws_restJson1SearchAssociatedTranscriptsCommand = deserialize
|
|
|
4932
4932
|
const deserializeAws_restJson1SearchAssociatedTranscriptsCommandError = async (output, context) => {
|
|
4933
4933
|
const parsedOutput = {
|
|
4934
4934
|
...output,
|
|
4935
|
-
body: await
|
|
4935
|
+
body: await parseErrorBody(output.body, context),
|
|
4936
4936
|
};
|
|
4937
4937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4938
4938
|
switch (errorCode) {
|
|
@@ -4999,7 +4999,7 @@ exports.deserializeAws_restJson1StartBotRecommendationCommand = deserializeAws_r
|
|
|
4999
4999
|
const deserializeAws_restJson1StartBotRecommendationCommandError = async (output, context) => {
|
|
5000
5000
|
const parsedOutput = {
|
|
5001
5001
|
...output,
|
|
5002
|
-
body: await
|
|
5002
|
+
body: await parseErrorBody(output.body, context),
|
|
5003
5003
|
};
|
|
5004
5004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5005
5005
|
switch (errorCode) {
|
|
@@ -5063,7 +5063,7 @@ exports.deserializeAws_restJson1StartImportCommand = deserializeAws_restJson1Sta
|
|
|
5063
5063
|
const deserializeAws_restJson1StartImportCommandError = async (output, context) => {
|
|
5064
5064
|
const parsedOutput = {
|
|
5065
5065
|
...output,
|
|
5066
|
-
body: await
|
|
5066
|
+
body: await parseErrorBody(output.body, context),
|
|
5067
5067
|
};
|
|
5068
5068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5069
5069
|
switch (errorCode) {
|
|
@@ -5124,7 +5124,7 @@ exports.deserializeAws_restJson1StopBotRecommendationCommand = deserializeAws_re
|
|
|
5124
5124
|
const deserializeAws_restJson1StopBotRecommendationCommandError = async (output, context) => {
|
|
5125
5125
|
const parsedOutput = {
|
|
5126
5126
|
...output,
|
|
5127
|
-
body: await
|
|
5127
|
+
body: await parseErrorBody(output.body, context),
|
|
5128
5128
|
};
|
|
5129
5129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5130
5130
|
switch (errorCode) {
|
|
@@ -5173,7 +5173,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
5173
5173
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
5174
5174
|
const parsedOutput = {
|
|
5175
5175
|
...output,
|
|
5176
|
-
body: await
|
|
5176
|
+
body: await parseErrorBody(output.body, context),
|
|
5177
5177
|
};
|
|
5178
5178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5179
5179
|
switch (errorCode) {
|
|
@@ -5213,7 +5213,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
5213
5213
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
5214
5214
|
const parsedOutput = {
|
|
5215
5215
|
...output,
|
|
5216
|
-
body: await
|
|
5216
|
+
body: await parseErrorBody(output.body, context),
|
|
5217
5217
|
};
|
|
5218
5218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5219
5219
|
switch (errorCode) {
|
|
@@ -5280,7 +5280,7 @@ exports.deserializeAws_restJson1UpdateBotCommand = deserializeAws_restJson1Updat
|
|
|
5280
5280
|
const deserializeAws_restJson1UpdateBotCommandError = async (output, context) => {
|
|
5281
5281
|
const parsedOutput = {
|
|
5282
5282
|
...output,
|
|
5283
|
-
body: await
|
|
5283
|
+
body: await parseErrorBody(output.body, context),
|
|
5284
5284
|
};
|
|
5285
5285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5286
5286
|
switch (errorCode) {
|
|
@@ -5359,7 +5359,7 @@ exports.deserializeAws_restJson1UpdateBotAliasCommand = deserializeAws_restJson1
|
|
|
5359
5359
|
const deserializeAws_restJson1UpdateBotAliasCommandError = async (output, context) => {
|
|
5360
5360
|
const parsedOutput = {
|
|
5361
5361
|
...output,
|
|
5362
|
-
body: await
|
|
5362
|
+
body: await parseErrorBody(output.body, context),
|
|
5363
5363
|
};
|
|
5364
5364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5365
5365
|
switch (errorCode) {
|
|
@@ -5441,7 +5441,7 @@ exports.deserializeAws_restJson1UpdateBotLocaleCommand = deserializeAws_restJson
|
|
|
5441
5441
|
const deserializeAws_restJson1UpdateBotLocaleCommandError = async (output, context) => {
|
|
5442
5442
|
const parsedOutput = {
|
|
5443
5443
|
...output,
|
|
5444
|
-
body: await
|
|
5444
|
+
body: await parseErrorBody(output.body, context),
|
|
5445
5445
|
};
|
|
5446
5446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5447
5447
|
switch (errorCode) {
|
|
@@ -5514,7 +5514,7 @@ exports.deserializeAws_restJson1UpdateBotRecommendationCommand = deserializeAws_
|
|
|
5514
5514
|
const deserializeAws_restJson1UpdateBotRecommendationCommandError = async (output, context) => {
|
|
5515
5515
|
const parsedOutput = {
|
|
5516
5516
|
...output,
|
|
5517
|
-
body: await
|
|
5517
|
+
body: await parseErrorBody(output.body, context),
|
|
5518
5518
|
};
|
|
5519
5519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5520
5520
|
switch (errorCode) {
|
|
@@ -5581,7 +5581,7 @@ exports.deserializeAws_restJson1UpdateExportCommand = deserializeAws_restJson1Up
|
|
|
5581
5581
|
const deserializeAws_restJson1UpdateExportCommandError = async (output, context) => {
|
|
5582
5582
|
const parsedOutput = {
|
|
5583
5583
|
...output,
|
|
5584
|
-
body: await
|
|
5584
|
+
body: await parseErrorBody(output.body, context),
|
|
5585
5585
|
};
|
|
5586
5586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5587
5587
|
switch (errorCode) {
|
|
@@ -5684,7 +5684,7 @@ exports.deserializeAws_restJson1UpdateIntentCommand = deserializeAws_restJson1Up
|
|
|
5684
5684
|
const deserializeAws_restJson1UpdateIntentCommandError = async (output, context) => {
|
|
5685
5685
|
const parsedOutput = {
|
|
5686
5686
|
...output,
|
|
5687
|
-
body: await
|
|
5687
|
+
body: await parseErrorBody(output.body, context),
|
|
5688
5688
|
};
|
|
5689
5689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5690
5690
|
switch (errorCode) {
|
|
@@ -5736,7 +5736,7 @@ exports.deserializeAws_restJson1UpdateResourcePolicyCommand = deserializeAws_res
|
|
|
5736
5736
|
const deserializeAws_restJson1UpdateResourcePolicyCommandError = async (output, context) => {
|
|
5737
5737
|
const parsedOutput = {
|
|
5738
5738
|
...output,
|
|
5739
|
-
body: await
|
|
5739
|
+
body: await parseErrorBody(output.body, context),
|
|
5740
5740
|
};
|
|
5741
5741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5742
5742
|
switch (errorCode) {
|
|
@@ -5824,7 +5824,7 @@ exports.deserializeAws_restJson1UpdateSlotCommand = deserializeAws_restJson1Upda
|
|
|
5824
5824
|
const deserializeAws_restJson1UpdateSlotCommandError = async (output, context) => {
|
|
5825
5825
|
const parsedOutput = {
|
|
5826
5826
|
...output,
|
|
5827
|
-
body: await
|
|
5827
|
+
body: await parseErrorBody(output.body, context),
|
|
5828
5828
|
};
|
|
5829
5829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5830
5830
|
switch (errorCode) {
|
|
@@ -5909,7 +5909,7 @@ exports.deserializeAws_restJson1UpdateSlotTypeCommand = deserializeAws_restJson1
|
|
|
5909
5909
|
const deserializeAws_restJson1UpdateSlotTypeCommandError = async (output, context) => {
|
|
5910
5910
|
const parsedOutput = {
|
|
5911
5911
|
...output,
|
|
5912
|
-
body: await
|
|
5912
|
+
body: await parseErrorBody(output.body, context),
|
|
5913
5913
|
};
|
|
5914
5914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5915
5915
|
switch (errorCode) {
|
|
@@ -8805,6 +8805,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
8805
8805
|
}
|
|
8806
8806
|
return {};
|
|
8807
8807
|
});
|
|
8808
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
8809
|
+
var _a;
|
|
8810
|
+
const value = await parseBody(errorBody, context);
|
|
8811
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
8812
|
+
return value;
|
|
8813
|
+
};
|
|
8808
8814
|
const loadRestJsonErrorCode = (output, data) => {
|
|
8809
8815
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
8810
8816
|
const sanitizeErrorCode = (rawValue) => {
|