@aws-sdk/client-lex-models-v2 3.179.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +73 -67
- package/dist-es/protocols/Aws_restJson1.js +80 -67
- package/package.json +7 -7
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
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) => {
|
|
@@ -1904,7 +1904,7 @@ var deserializeAws_restJson1BuildBotLocaleCommandError = function (output, conte
|
|
|
1904
1904
|
case 0:
|
|
1905
1905
|
_a = [__assign({}, output)];
|
|
1906
1906
|
_c = {};
|
|
1907
|
-
return [4,
|
|
1907
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1908
1908
|
case 1:
|
|
1909
1909
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1910
1910
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2007,7 +2007,7 @@ var deserializeAws_restJson1CreateBotCommandError = function (output, context) {
|
|
|
2007
2007
|
case 0:
|
|
2008
2008
|
_a = [__assign({}, output)];
|
|
2009
2009
|
_c = {};
|
|
2010
|
-
return [4,
|
|
2010
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2011
2011
|
case 1:
|
|
2012
2012
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2013
2013
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2113,7 +2113,7 @@ var deserializeAws_restJson1CreateBotAliasCommandError = function (output, conte
|
|
|
2113
2113
|
case 0:
|
|
2114
2114
|
_a = [__assign({}, output)];
|
|
2115
2115
|
_c = {};
|
|
2116
|
-
return [4,
|
|
2116
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2117
2117
|
case 1:
|
|
2118
2118
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2119
2119
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2213,7 +2213,7 @@ var deserializeAws_restJson1CreateBotLocaleCommandError = function (output, cont
|
|
|
2213
2213
|
case 0:
|
|
2214
2214
|
_a = [__assign({}, output)];
|
|
2215
2215
|
_c = {};
|
|
2216
|
-
return [4,
|
|
2216
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2217
2217
|
case 1:
|
|
2218
2218
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2219
2219
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2304,7 +2304,7 @@ var deserializeAws_restJson1CreateBotVersionCommandError = function (output, con
|
|
|
2304
2304
|
case 0:
|
|
2305
2305
|
_a = [__assign({}, output)];
|
|
2306
2306
|
_c = {};
|
|
2307
|
-
return [4,
|
|
2307
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2308
2308
|
case 1:
|
|
2309
2309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2310
2310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2392,7 +2392,7 @@ var deserializeAws_restJson1CreateExportCommandError = function (output, context
|
|
|
2392
2392
|
case 0:
|
|
2393
2393
|
_a = [__assign({}, output)];
|
|
2394
2394
|
_c = {};
|
|
2395
|
-
return [4,
|
|
2395
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2396
2396
|
case 1:
|
|
2397
2397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2398
2398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2516,7 +2516,7 @@ var deserializeAws_restJson1CreateIntentCommandError = function (output, context
|
|
|
2516
2516
|
case 0:
|
|
2517
2517
|
_a = [__assign({}, output)];
|
|
2518
2518
|
_c = {};
|
|
2519
|
-
return [4,
|
|
2519
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2520
2520
|
case 1:
|
|
2521
2521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2522
2522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2595,7 +2595,7 @@ var deserializeAws_restJson1CreateResourcePolicyCommandError = function (output,
|
|
|
2595
2595
|
case 0:
|
|
2596
2596
|
_a = [__assign({}, output)];
|
|
2597
2597
|
_c = {};
|
|
2598
|
-
return [4,
|
|
2598
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2599
2599
|
case 1:
|
|
2600
2600
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2601
2601
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2674,7 +2674,7 @@ var deserializeAws_restJson1CreateResourcePolicyStatementCommandError = function
|
|
|
2674
2674
|
case 0:
|
|
2675
2675
|
_a = [__assign({}, output)];
|
|
2676
2676
|
_c = {};
|
|
2677
|
-
return [4,
|
|
2677
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2678
2678
|
case 1:
|
|
2679
2679
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2680
2680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2790,7 +2790,7 @@ var deserializeAws_restJson1CreateSlotCommandError = function (output, context)
|
|
|
2790
2790
|
case 0:
|
|
2791
2791
|
_a = [__assign({}, output)];
|
|
2792
2792
|
_c = {};
|
|
2793
|
-
return [4,
|
|
2793
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2794
2794
|
case 1:
|
|
2795
2795
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2796
2796
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2899,7 +2899,7 @@ var deserializeAws_restJson1CreateSlotTypeCommandError = function (output, conte
|
|
|
2899
2899
|
case 0:
|
|
2900
2900
|
_a = [__assign({}, output)];
|
|
2901
2901
|
_c = {};
|
|
2902
|
-
return [4,
|
|
2902
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2903
2903
|
case 1:
|
|
2904
2904
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2905
2905
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2978,7 +2978,7 @@ var deserializeAws_restJson1CreateUploadUrlCommandError = function (output, cont
|
|
|
2978
2978
|
case 0:
|
|
2979
2979
|
_a = [__assign({}, output)];
|
|
2980
2980
|
_c = {};
|
|
2981
|
-
return [4,
|
|
2981
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2982
2982
|
case 1:
|
|
2983
2983
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2984
2984
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3053,7 +3053,7 @@ var deserializeAws_restJson1DeleteBotCommandError = function (output, context) {
|
|
|
3053
3053
|
case 0:
|
|
3054
3054
|
_a = [__assign({}, output)];
|
|
3055
3055
|
_c = {};
|
|
3056
|
-
return [4,
|
|
3056
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3057
3057
|
case 1:
|
|
3058
3058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3059
3059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3135,7 +3135,7 @@ var deserializeAws_restJson1DeleteBotAliasCommandError = function (output, conte
|
|
|
3135
3135
|
case 0:
|
|
3136
3136
|
_a = [__assign({}, output)];
|
|
3137
3137
|
_c = {};
|
|
3138
|
-
return [4,
|
|
3138
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3139
3139
|
case 1:
|
|
3140
3140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3141
3141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3220,7 +3220,7 @@ var deserializeAws_restJson1DeleteBotLocaleCommandError = function (output, cont
|
|
|
3220
3220
|
case 0:
|
|
3221
3221
|
_a = [__assign({}, output)];
|
|
3222
3222
|
_c = {};
|
|
3223
|
-
return [4,
|
|
3223
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3224
3224
|
case 1:
|
|
3225
3225
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3226
3226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3302,7 +3302,7 @@ var deserializeAws_restJson1DeleteBotVersionCommandError = function (output, con
|
|
|
3302
3302
|
case 0:
|
|
3303
3303
|
_a = [__assign({}, output)];
|
|
3304
3304
|
_c = {};
|
|
3305
|
-
return [4,
|
|
3305
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3306
3306
|
case 1:
|
|
3307
3307
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3308
3308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3387,7 +3387,7 @@ var deserializeAws_restJson1DeleteCustomVocabularyCommandError = function (outpu
|
|
|
3387
3387
|
case 0:
|
|
3388
3388
|
_a = [__assign({}, output)];
|
|
3389
3389
|
_c = {};
|
|
3390
|
-
return [4,
|
|
3390
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3391
3391
|
case 1:
|
|
3392
3392
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3393
3393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3466,7 +3466,7 @@ var deserializeAws_restJson1DeleteExportCommandError = function (output, context
|
|
|
3466
3466
|
case 0:
|
|
3467
3467
|
_a = [__assign({}, output)];
|
|
3468
3468
|
_c = {};
|
|
3469
|
-
return [4,
|
|
3469
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3470
3470
|
case 1:
|
|
3471
3471
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3472
3472
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3541,7 +3541,7 @@ var deserializeAws_restJson1DeleteImportCommandError = function (output, context
|
|
|
3541
3541
|
case 0:
|
|
3542
3542
|
_a = [__assign({}, output)];
|
|
3543
3543
|
_c = {};
|
|
3544
|
-
return [4,
|
|
3544
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3545
3545
|
case 1:
|
|
3546
3546
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3547
3547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3608,7 +3608,7 @@ var deserializeAws_restJson1DeleteIntentCommandError = function (output, context
|
|
|
3608
3608
|
case 0:
|
|
3609
3609
|
_a = [__assign({}, output)];
|
|
3610
3610
|
_c = {};
|
|
3611
|
-
return [4,
|
|
3611
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3612
3612
|
case 1:
|
|
3613
3613
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3614
3614
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3687,7 +3687,7 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
3687
3687
|
case 0:
|
|
3688
3688
|
_a = [__assign({}, output)];
|
|
3689
3689
|
_c = {};
|
|
3690
|
-
return [4,
|
|
3690
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3691
3691
|
case 1:
|
|
3692
3692
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3693
3693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3758,7 +3758,7 @@ var deserializeAws_restJson1DeleteResourcePolicyStatementCommandError = function
|
|
|
3758
3758
|
case 0:
|
|
3759
3759
|
_a = [__assign({}, output)];
|
|
3760
3760
|
_c = {};
|
|
3761
|
-
return [4,
|
|
3761
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3762
3762
|
case 1:
|
|
3763
3763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3764
3764
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3821,7 +3821,7 @@ var deserializeAws_restJson1DeleteSlotCommandError = function (output, context)
|
|
|
3821
3821
|
case 0:
|
|
3822
3822
|
_a = [__assign({}, output)];
|
|
3823
3823
|
_c = {};
|
|
3824
|
-
return [4,
|
|
3824
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3825
3825
|
case 1:
|
|
3826
3826
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3827
3827
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3892,7 +3892,7 @@ var deserializeAws_restJson1DeleteSlotTypeCommandError = function (output, conte
|
|
|
3892
3892
|
case 0:
|
|
3893
3893
|
_a = [__assign({}, output)];
|
|
3894
3894
|
_c = {};
|
|
3895
|
-
return [4,
|
|
3895
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3896
3896
|
case 1:
|
|
3897
3897
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3898
3898
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3963,7 +3963,7 @@ var deserializeAws_restJson1DeleteUtterancesCommandError = function (output, con
|
|
|
3963
3963
|
case 0:
|
|
3964
3964
|
_a = [__assign({}, output)];
|
|
3965
3965
|
_c = {};
|
|
3966
|
-
return [4,
|
|
3966
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3967
3967
|
case 1:
|
|
3968
3968
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3969
3969
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4051,7 +4051,7 @@ var deserializeAws_restJson1DescribeBotCommandError = function (output, context)
|
|
|
4051
4051
|
case 0:
|
|
4052
4052
|
_a = [__assign({}, output)];
|
|
4053
4053
|
_c = {};
|
|
4054
|
-
return [4,
|
|
4054
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4055
4055
|
case 1:
|
|
4056
4056
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4057
4057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4156,7 +4156,7 @@ var deserializeAws_restJson1DescribeBotAliasCommandError = function (output, con
|
|
|
4156
4156
|
case 0:
|
|
4157
4157
|
_a = [__assign({}, output)];
|
|
4158
4158
|
_c = {};
|
|
4159
|
-
return [4,
|
|
4159
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4160
4160
|
case 1:
|
|
4161
4161
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4162
4162
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4273,7 +4273,7 @@ var deserializeAws_restJson1DescribeBotLocaleCommandError = function (output, co
|
|
|
4273
4273
|
case 0:
|
|
4274
4274
|
_a = [__assign({}, output)];
|
|
4275
4275
|
_c = {};
|
|
4276
|
-
return [4,
|
|
4276
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4277
4277
|
case 1:
|
|
4278
4278
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4279
4279
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4375,7 +4375,7 @@ var deserializeAws_restJson1DescribeBotRecommendationCommandError = function (ou
|
|
|
4375
4375
|
case 0:
|
|
4376
4376
|
_a = [__assign({}, output)];
|
|
4377
4377
|
_c = {};
|
|
4378
|
-
return [4,
|
|
4378
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4379
4379
|
case 1:
|
|
4380
4380
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4381
4381
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4470,7 +4470,7 @@ var deserializeAws_restJson1DescribeBotVersionCommandError = function (output, c
|
|
|
4470
4470
|
case 0:
|
|
4471
4471
|
_a = [__assign({}, output)];
|
|
4472
4472
|
_c = {};
|
|
4473
|
-
return [4,
|
|
4473
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4474
4474
|
case 1:
|
|
4475
4475
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4476
4476
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4557,7 +4557,7 @@ var deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError = funct
|
|
|
4557
4557
|
case 0:
|
|
4558
4558
|
_a = [__assign({}, output)];
|
|
4559
4559
|
_c = {};
|
|
4560
|
-
return [4,
|
|
4560
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4561
4561
|
case 1:
|
|
4562
4562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4563
4563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4650,7 +4650,7 @@ var deserializeAws_restJson1DescribeExportCommandError = function (output, conte
|
|
|
4650
4650
|
case 0:
|
|
4651
4651
|
_a = [__assign({}, output)];
|
|
4652
4652
|
_c = {};
|
|
4653
|
-
return [4,
|
|
4653
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4654
4654
|
case 1:
|
|
4655
4655
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4656
4656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4742,7 +4742,7 @@ var deserializeAws_restJson1DescribeImportCommandError = function (output, conte
|
|
|
4742
4742
|
case 0:
|
|
4743
4743
|
_a = [__assign({}, output)];
|
|
4744
4744
|
_c = {};
|
|
4745
|
-
return [4,
|
|
4745
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4746
4746
|
case 1:
|
|
4747
4747
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4748
4748
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4864,7 +4864,7 @@ var deserializeAws_restJson1DescribeIntentCommandError = function (output, conte
|
|
|
4864
4864
|
case 0:
|
|
4865
4865
|
_a = [__assign({}, output)];
|
|
4866
4866
|
_c = {};
|
|
4867
|
-
return [4,
|
|
4867
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4868
4868
|
case 1:
|
|
4869
4869
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4870
4870
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4942,7 +4942,7 @@ var deserializeAws_restJson1DescribeResourcePolicyCommandError = function (outpu
|
|
|
4942
4942
|
case 0:
|
|
4943
4943
|
_a = [__assign({}, output)];
|
|
4944
4944
|
_c = {};
|
|
4945
|
-
return [4,
|
|
4945
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4946
4946
|
case 1:
|
|
4947
4947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4948
4948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5045,7 +5045,7 @@ var deserializeAws_restJson1DescribeSlotCommandError = function (output, context
|
|
|
5045
5045
|
case 0:
|
|
5046
5046
|
_a = [__assign({}, output)];
|
|
5047
5047
|
_c = {};
|
|
5048
|
-
return [4,
|
|
5048
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5049
5049
|
case 1:
|
|
5050
5050
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5051
5051
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5153,7 +5153,7 @@ var deserializeAws_restJson1DescribeSlotTypeCommandError = function (output, con
|
|
|
5153
5153
|
case 0:
|
|
5154
5154
|
_a = [__assign({}, output)];
|
|
5155
5155
|
_c = {};
|
|
5156
|
-
return [4,
|
|
5156
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5157
5157
|
case 1:
|
|
5158
5158
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5159
5159
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5252,7 +5252,7 @@ var deserializeAws_restJson1ListAggregatedUtterancesCommandError = function (out
|
|
|
5252
5252
|
case 0:
|
|
5253
5253
|
_a = [__assign({}, output)];
|
|
5254
5254
|
_c = {};
|
|
5255
|
-
return [4,
|
|
5255
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5256
5256
|
case 1:
|
|
5257
5257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5258
5258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5326,7 +5326,7 @@ var deserializeAws_restJson1ListBotAliasesCommandError = function (output, conte
|
|
|
5326
5326
|
case 0:
|
|
5327
5327
|
_a = [__assign({}, output)];
|
|
5328
5328
|
_c = {};
|
|
5329
|
-
return [4,
|
|
5329
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5330
5330
|
case 1:
|
|
5331
5331
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5332
5332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5403,7 +5403,7 @@ var deserializeAws_restJson1ListBotLocalesCommandError = function (output, conte
|
|
|
5403
5403
|
case 0:
|
|
5404
5404
|
_a = [__assign({}, output)];
|
|
5405
5405
|
_c = {};
|
|
5406
|
-
return [4,
|
|
5406
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5407
5407
|
case 1:
|
|
5408
5408
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5409
5409
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5483,7 +5483,7 @@ var deserializeAws_restJson1ListBotRecommendationsCommandError = function (outpu
|
|
|
5483
5483
|
case 0:
|
|
5484
5484
|
_a = [__assign({}, output)];
|
|
5485
5485
|
_c = {};
|
|
5486
|
-
return [4,
|
|
5486
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5487
5487
|
case 1:
|
|
5488
5488
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5489
5489
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5554,7 +5554,7 @@ var deserializeAws_restJson1ListBotsCommandError = function (output, context) {
|
|
|
5554
5554
|
case 0:
|
|
5555
5555
|
_a = [__assign({}, output)];
|
|
5556
5556
|
_c = {};
|
|
5557
|
-
return [4,
|
|
5557
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5558
5558
|
case 1:
|
|
5559
5559
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5560
5560
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5628,7 +5628,7 @@ var deserializeAws_restJson1ListBotVersionsCommandError = function (output, cont
|
|
|
5628
5628
|
case 0:
|
|
5629
5629
|
_a = [__assign({}, output)];
|
|
5630
5630
|
_c = {};
|
|
5631
|
-
return [4,
|
|
5631
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5632
5632
|
case 1:
|
|
5633
5633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5634
5634
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5702,7 +5702,7 @@ var deserializeAws_restJson1ListBuiltInIntentsCommandError = function (output, c
|
|
|
5702
5702
|
case 0:
|
|
5703
5703
|
_a = [__assign({}, output)];
|
|
5704
5704
|
_c = {};
|
|
5705
|
-
return [4,
|
|
5705
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5706
5706
|
case 1:
|
|
5707
5707
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5708
5708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5776,7 +5776,7 @@ var deserializeAws_restJson1ListBuiltInSlotTypesCommandError = function (output,
|
|
|
5776
5776
|
case 0:
|
|
5777
5777
|
_a = [__assign({}, output)];
|
|
5778
5778
|
_c = {};
|
|
5779
|
-
return [4,
|
|
5779
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5780
5780
|
case 1:
|
|
5781
5781
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5782
5782
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5856,7 +5856,7 @@ var deserializeAws_restJson1ListExportsCommandError = function (output, context)
|
|
|
5856
5856
|
case 0:
|
|
5857
5857
|
_a = [__assign({}, output)];
|
|
5858
5858
|
_c = {};
|
|
5859
|
-
return [4,
|
|
5859
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5860
5860
|
case 1:
|
|
5861
5861
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5862
5862
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5932,7 +5932,7 @@ var deserializeAws_restJson1ListImportsCommandError = function (output, context)
|
|
|
5932
5932
|
case 0:
|
|
5933
5933
|
_a = [__assign({}, output)];
|
|
5934
5934
|
_c = {};
|
|
5935
|
-
return [4,
|
|
5935
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5936
5936
|
case 1:
|
|
5937
5937
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5938
5938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6008,7 +6008,7 @@ var deserializeAws_restJson1ListIntentsCommandError = function (output, context)
|
|
|
6008
6008
|
case 0:
|
|
6009
6009
|
_a = [__assign({}, output)];
|
|
6010
6010
|
_c = {};
|
|
6011
|
-
return [4,
|
|
6011
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6012
6012
|
case 1:
|
|
6013
6013
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6014
6014
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6091,7 +6091,7 @@ var deserializeAws_restJson1ListRecommendedIntentsCommandError = function (outpu
|
|
|
6091
6091
|
case 0:
|
|
6092
6092
|
_a = [__assign({}, output)];
|
|
6093
6093
|
_c = {};
|
|
6094
|
-
return [4,
|
|
6094
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6095
6095
|
case 1:
|
|
6096
6096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6097
6097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6178,7 +6178,7 @@ var deserializeAws_restJson1ListSlotsCommandError = function (output, context) {
|
|
|
6178
6178
|
case 0:
|
|
6179
6179
|
_a = [__assign({}, output)];
|
|
6180
6180
|
_c = {};
|
|
6181
|
-
return [4,
|
|
6181
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6182
6182
|
case 1:
|
|
6183
6183
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6184
6184
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6258,7 +6258,7 @@ var deserializeAws_restJson1ListSlotTypesCommandError = function (output, contex
|
|
|
6258
6258
|
case 0:
|
|
6259
6259
|
_a = [__assign({}, output)];
|
|
6260
6260
|
_c = {};
|
|
6261
|
-
return [4,
|
|
6261
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6262
6262
|
case 1:
|
|
6263
6263
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6264
6264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6326,7 +6326,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
6326
6326
|
case 0:
|
|
6327
6327
|
_a = [__assign({}, output)];
|
|
6328
6328
|
_c = {};
|
|
6329
|
-
return [4,
|
|
6329
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6330
6330
|
case 1:
|
|
6331
6331
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6332
6332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6412,7 +6412,7 @@ var deserializeAws_restJson1SearchAssociatedTranscriptsCommandError = function (
|
|
|
6412
6412
|
case 0:
|
|
6413
6413
|
_a = [__assign({}, output)];
|
|
6414
6414
|
_c = {};
|
|
6415
|
-
return [4,
|
|
6415
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6416
6416
|
case 1:
|
|
6417
6417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6418
6418
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6505,7 +6505,7 @@ var deserializeAws_restJson1StartBotRecommendationCommandError = function (outpu
|
|
|
6505
6505
|
case 0:
|
|
6506
6506
|
_a = [__assign({}, output)];
|
|
6507
6507
|
_c = {};
|
|
6508
|
-
return [4,
|
|
6508
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6509
6509
|
case 1:
|
|
6510
6510
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6511
6511
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6597,7 +6597,7 @@ var deserializeAws_restJson1StartImportCommandError = function (output, context)
|
|
|
6597
6597
|
case 0:
|
|
6598
6598
|
_a = [__assign({}, output)];
|
|
6599
6599
|
_c = {};
|
|
6600
|
-
return [4,
|
|
6600
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6601
6601
|
case 1:
|
|
6602
6602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6603
6603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6685,7 +6685,7 @@ var deserializeAws_restJson1StopBotRecommendationCommandError = function (output
|
|
|
6685
6685
|
case 0:
|
|
6686
6686
|
_a = [__assign({}, output)];
|
|
6687
6687
|
_c = {};
|
|
6688
|
-
return [4,
|
|
6688
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6689
6689
|
case 1:
|
|
6690
6690
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6691
6691
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6760,7 +6760,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
6760
6760
|
case 0:
|
|
6761
6761
|
_a = [__assign({}, output)];
|
|
6762
6762
|
_c = {};
|
|
6763
|
-
return [4,
|
|
6763
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6764
6764
|
case 1:
|
|
6765
6765
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6766
6766
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6823,7 +6823,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
6823
6823
|
case 0:
|
|
6824
6824
|
_a = [__assign({}, output)];
|
|
6825
6825
|
_c = {};
|
|
6826
|
-
return [4,
|
|
6826
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6827
6827
|
case 1:
|
|
6828
6828
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6829
6829
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6915,7 +6915,7 @@ var deserializeAws_restJson1UpdateBotCommandError = function (output, context) {
|
|
|
6915
6915
|
case 0:
|
|
6916
6916
|
_a = [__assign({}, output)];
|
|
6917
6917
|
_c = {};
|
|
6918
|
-
return [4,
|
|
6918
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6919
6919
|
case 1:
|
|
6920
6920
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6921
6921
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7021,7 +7021,7 @@ var deserializeAws_restJson1UpdateBotAliasCommandError = function (output, conte
|
|
|
7021
7021
|
case 0:
|
|
7022
7022
|
_a = [__assign({}, output)];
|
|
7023
7023
|
_c = {};
|
|
7024
|
-
return [4,
|
|
7024
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7025
7025
|
case 1:
|
|
7026
7026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7027
7027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7130,7 +7130,7 @@ var deserializeAws_restJson1UpdateBotLocaleCommandError = function (output, cont
|
|
|
7130
7130
|
case 0:
|
|
7131
7131
|
_a = [__assign({}, output)];
|
|
7132
7132
|
_c = {};
|
|
7133
|
-
return [4,
|
|
7133
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7134
7134
|
case 1:
|
|
7135
7135
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7136
7136
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7230,7 +7230,7 @@ var deserializeAws_restJson1UpdateBotRecommendationCommandError = function (outp
|
|
|
7230
7230
|
case 0:
|
|
7231
7231
|
_a = [__assign({}, output)];
|
|
7232
7232
|
_c = {};
|
|
7233
|
-
return [4,
|
|
7233
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7234
7234
|
case 1:
|
|
7235
7235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7236
7236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7325,7 +7325,7 @@ var deserializeAws_restJson1UpdateExportCommandError = function (output, context
|
|
|
7325
7325
|
case 0:
|
|
7326
7326
|
_a = [__assign({}, output)];
|
|
7327
7327
|
_c = {};
|
|
7328
|
-
return [4,
|
|
7328
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7329
7329
|
case 1:
|
|
7330
7330
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7331
7331
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7455,7 +7455,7 @@ var deserializeAws_restJson1UpdateIntentCommandError = function (output, context
|
|
|
7455
7455
|
case 0:
|
|
7456
7456
|
_a = [__assign({}, output)];
|
|
7457
7457
|
_c = {};
|
|
7458
|
-
return [4,
|
|
7458
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7459
7459
|
case 1:
|
|
7460
7460
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7461
7461
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7534,7 +7534,7 @@ var deserializeAws_restJson1UpdateResourcePolicyCommandError = function (output,
|
|
|
7534
7534
|
case 0:
|
|
7535
7535
|
_a = [__assign({}, output)];
|
|
7536
7536
|
_c = {};
|
|
7537
|
-
return [4,
|
|
7537
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7538
7538
|
case 1:
|
|
7539
7539
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7540
7540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7649,7 +7649,7 @@ var deserializeAws_restJson1UpdateSlotCommandError = function (output, context)
|
|
|
7649
7649
|
case 0:
|
|
7650
7650
|
_a = [__assign({}, output)];
|
|
7651
7651
|
_c = {};
|
|
7652
|
-
return [4,
|
|
7652
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7653
7653
|
case 1:
|
|
7654
7654
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7655
7655
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7761,7 +7761,7 @@ var deserializeAws_restJson1UpdateSlotTypeCommandError = function (output, conte
|
|
|
7761
7761
|
case 0:
|
|
7762
7762
|
_a = [__assign({}, output)];
|
|
7763
7763
|
_c = {};
|
|
7764
|
-
return [4,
|
|
7764
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7765
7765
|
case 1:
|
|
7766
7766
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7767
7767
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -10249,6 +10249,19 @@ var parseBody = function (streamBody, context) {
|
|
|
10249
10249
|
return {};
|
|
10250
10250
|
});
|
|
10251
10251
|
};
|
|
10252
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10253
|
+
var value;
|
|
10254
|
+
var _a;
|
|
10255
|
+
return __generator(this, function (_b) {
|
|
10256
|
+
switch (_b.label) {
|
|
10257
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
10258
|
+
case 1:
|
|
10259
|
+
value = _b.sent();
|
|
10260
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
10261
|
+
return [2, value];
|
|
10262
|
+
}
|
|
10263
|
+
});
|
|
10264
|
+
}); };
|
|
10252
10265
|
var loadRestJsonErrorCode = function (output, data) {
|
|
10253
10266
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
10254
10267
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-models-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|
|
52
52
|
"@aws-sdk/util-utf8-node": "3.170.0",
|
|
53
|
-
"@aws-sdk/util-waiter": "3.
|
|
53
|
+
"@aws-sdk/util-waiter": "3.180.0",
|
|
54
54
|
"tslib": "^2.3.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|