@aws-sdk/client-clouddirectory 3.180.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +72 -66
- package/dist-es/protocols/Aws_restJson1.js +79 -66
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-clouddirectory
|
|
@@ -1710,7 +1710,7 @@ exports.deserializeAws_restJson1AddFacetToObjectCommand = deserializeAws_restJso
|
|
|
1710
1710
|
const deserializeAws_restJson1AddFacetToObjectCommandError = async (output, context) => {
|
|
1711
1711
|
const parsedOutput = {
|
|
1712
1712
|
...output,
|
|
1713
|
-
body: await
|
|
1713
|
+
body: await parseErrorBody(output.body, context),
|
|
1714
1714
|
};
|
|
1715
1715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
1716
|
switch (errorCode) {
|
|
@@ -1771,7 +1771,7 @@ exports.deserializeAws_restJson1ApplySchemaCommand = deserializeAws_restJson1App
|
|
|
1771
1771
|
const deserializeAws_restJson1ApplySchemaCommandError = async (output, context) => {
|
|
1772
1772
|
const parsedOutput = {
|
|
1773
1773
|
...output,
|
|
1774
|
-
body: await
|
|
1774
|
+
body: await parseErrorBody(output.body, context),
|
|
1775
1775
|
};
|
|
1776
1776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
1777
|
switch (errorCode) {
|
|
@@ -1829,7 +1829,7 @@ exports.deserializeAws_restJson1AttachObjectCommand = deserializeAws_restJson1At
|
|
|
1829
1829
|
const deserializeAws_restJson1AttachObjectCommandError = async (output, context) => {
|
|
1830
1830
|
const parsedOutput = {
|
|
1831
1831
|
...output,
|
|
1832
|
-
body: await
|
|
1832
|
+
body: await parseErrorBody(output.body, context),
|
|
1833
1833
|
};
|
|
1834
1834
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
1835
|
switch (errorCode) {
|
|
@@ -1890,7 +1890,7 @@ exports.deserializeAws_restJson1AttachPolicyCommand = deserializeAws_restJson1At
|
|
|
1890
1890
|
const deserializeAws_restJson1AttachPolicyCommandError = async (output, context) => {
|
|
1891
1891
|
const parsedOutput = {
|
|
1892
1892
|
...output,
|
|
1893
|
-
body: await
|
|
1893
|
+
body: await parseErrorBody(output.body, context),
|
|
1894
1894
|
};
|
|
1895
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1896
|
switch (errorCode) {
|
|
@@ -1948,7 +1948,7 @@ exports.deserializeAws_restJson1AttachToIndexCommand = deserializeAws_restJson1A
|
|
|
1948
1948
|
const deserializeAws_restJson1AttachToIndexCommandError = async (output, context) => {
|
|
1949
1949
|
const parsedOutput = {
|
|
1950
1950
|
...output,
|
|
1951
|
-
body: await
|
|
1951
|
+
body: await parseErrorBody(output.body, context),
|
|
1952
1952
|
};
|
|
1953
1953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
1954
|
switch (errorCode) {
|
|
@@ -2015,7 +2015,7 @@ exports.deserializeAws_restJson1AttachTypedLinkCommand = deserializeAws_restJson
|
|
|
2015
2015
|
const deserializeAws_restJson1AttachTypedLinkCommandError = async (output, context) => {
|
|
2016
2016
|
const parsedOutput = {
|
|
2017
2017
|
...output,
|
|
2018
|
-
body: await
|
|
2018
|
+
body: await parseErrorBody(output.body, context),
|
|
2019
2019
|
};
|
|
2020
2020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
2021
|
switch (errorCode) {
|
|
@@ -2076,7 +2076,7 @@ exports.deserializeAws_restJson1BatchReadCommand = deserializeAws_restJson1Batch
|
|
|
2076
2076
|
const deserializeAws_restJson1BatchReadCommandError = async (output, context) => {
|
|
2077
2077
|
const parsedOutput = {
|
|
2078
2078
|
...output,
|
|
2079
|
-
body: await
|
|
2079
|
+
body: await parseErrorBody(output.body, context),
|
|
2080
2080
|
};
|
|
2081
2081
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
2082
|
switch (errorCode) {
|
|
@@ -2128,7 +2128,7 @@ exports.deserializeAws_restJson1BatchWriteCommand = deserializeAws_restJson1Batc
|
|
|
2128
2128
|
const deserializeAws_restJson1BatchWriteCommandError = async (output, context) => {
|
|
2129
2129
|
const parsedOutput = {
|
|
2130
2130
|
...output,
|
|
2131
|
-
body: await
|
|
2131
|
+
body: await parseErrorBody(output.body, context),
|
|
2132
2132
|
};
|
|
2133
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2134
|
switch (errorCode) {
|
|
@@ -2192,7 +2192,7 @@ exports.deserializeAws_restJson1CreateDirectoryCommand = deserializeAws_restJson
|
|
|
2192
2192
|
const deserializeAws_restJson1CreateDirectoryCommandError = async (output, context) => {
|
|
2193
2193
|
const parsedOutput = {
|
|
2194
2194
|
...output,
|
|
2195
|
-
body: await
|
|
2195
|
+
body: await parseErrorBody(output.body, context),
|
|
2196
2196
|
};
|
|
2197
2197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
2198
|
switch (errorCode) {
|
|
@@ -2244,7 +2244,7 @@ exports.deserializeAws_restJson1CreateFacetCommand = deserializeAws_restJson1Cre
|
|
|
2244
2244
|
const deserializeAws_restJson1CreateFacetCommandError = async (output, context) => {
|
|
2245
2245
|
const parsedOutput = {
|
|
2246
2246
|
...output,
|
|
2247
|
-
body: await
|
|
2247
|
+
body: await parseErrorBody(output.body, context),
|
|
2248
2248
|
};
|
|
2249
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
2250
|
switch (errorCode) {
|
|
@@ -2305,7 +2305,7 @@ exports.deserializeAws_restJson1CreateIndexCommand = deserializeAws_restJson1Cre
|
|
|
2305
2305
|
const deserializeAws_restJson1CreateIndexCommandError = async (output, context) => {
|
|
2306
2306
|
const parsedOutput = {
|
|
2307
2307
|
...output,
|
|
2308
|
-
body: await
|
|
2308
|
+
body: await parseErrorBody(output.body, context),
|
|
2309
2309
|
};
|
|
2310
2310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
2311
|
switch (errorCode) {
|
|
@@ -2369,7 +2369,7 @@ exports.deserializeAws_restJson1CreateObjectCommand = deserializeAws_restJson1Cr
|
|
|
2369
2369
|
const deserializeAws_restJson1CreateObjectCommandError = async (output, context) => {
|
|
2370
2370
|
const parsedOutput = {
|
|
2371
2371
|
...output,
|
|
2372
|
-
body: await
|
|
2372
|
+
body: await parseErrorBody(output.body, context),
|
|
2373
2373
|
};
|
|
2374
2374
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
2375
|
switch (errorCode) {
|
|
@@ -2433,7 +2433,7 @@ exports.deserializeAws_restJson1CreateSchemaCommand = deserializeAws_restJson1Cr
|
|
|
2433
2433
|
const deserializeAws_restJson1CreateSchemaCommandError = async (output, context) => {
|
|
2434
2434
|
const parsedOutput = {
|
|
2435
2435
|
...output,
|
|
2436
|
-
body: await
|
|
2436
|
+
body: await parseErrorBody(output.body, context),
|
|
2437
2437
|
};
|
|
2438
2438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
2439
|
switch (errorCode) {
|
|
@@ -2482,7 +2482,7 @@ exports.deserializeAws_restJson1CreateTypedLinkFacetCommand = deserializeAws_res
|
|
|
2482
2482
|
const deserializeAws_restJson1CreateTypedLinkFacetCommandError = async (output, context) => {
|
|
2483
2483
|
const parsedOutput = {
|
|
2484
2484
|
...output,
|
|
2485
|
-
body: await
|
|
2485
|
+
body: await parseErrorBody(output.body, context),
|
|
2486
2486
|
};
|
|
2487
2487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2488
|
switch (errorCode) {
|
|
@@ -2543,7 +2543,7 @@ exports.deserializeAws_restJson1DeleteDirectoryCommand = deserializeAws_restJson
|
|
|
2543
2543
|
const deserializeAws_restJson1DeleteDirectoryCommandError = async (output, context) => {
|
|
2544
2544
|
const parsedOutput = {
|
|
2545
2545
|
...output,
|
|
2546
|
-
body: await
|
|
2546
|
+
body: await parseErrorBody(output.body, context),
|
|
2547
2547
|
};
|
|
2548
2548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2549
|
switch (errorCode) {
|
|
@@ -2598,7 +2598,7 @@ exports.deserializeAws_restJson1DeleteFacetCommand = deserializeAws_restJson1Del
|
|
|
2598
2598
|
const deserializeAws_restJson1DeleteFacetCommandError = async (output, context) => {
|
|
2599
2599
|
const parsedOutput = {
|
|
2600
2600
|
...output,
|
|
2601
|
-
body: await
|
|
2601
|
+
body: await parseErrorBody(output.body, context),
|
|
2602
2602
|
};
|
|
2603
2603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2604
2604
|
switch (errorCode) {
|
|
@@ -2653,7 +2653,7 @@ exports.deserializeAws_restJson1DeleteObjectCommand = deserializeAws_restJson1De
|
|
|
2653
2653
|
const deserializeAws_restJson1DeleteObjectCommandError = async (output, context) => {
|
|
2654
2654
|
const parsedOutput = {
|
|
2655
2655
|
...output,
|
|
2656
|
-
body: await
|
|
2656
|
+
body: await parseErrorBody(output.body, context),
|
|
2657
2657
|
};
|
|
2658
2658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2659
2659
|
switch (errorCode) {
|
|
@@ -2711,7 +2711,7 @@ exports.deserializeAws_restJson1DeleteSchemaCommand = deserializeAws_restJson1De
|
|
|
2711
2711
|
const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context) => {
|
|
2712
2712
|
const parsedOutput = {
|
|
2713
2713
|
...output,
|
|
2714
|
-
body: await
|
|
2714
|
+
body: await parseErrorBody(output.body, context),
|
|
2715
2715
|
};
|
|
2716
2716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
2717
|
switch (errorCode) {
|
|
@@ -2763,7 +2763,7 @@ exports.deserializeAws_restJson1DeleteTypedLinkFacetCommand = deserializeAws_res
|
|
|
2763
2763
|
const deserializeAws_restJson1DeleteTypedLinkFacetCommandError = async (output, context) => {
|
|
2764
2764
|
const parsedOutput = {
|
|
2765
2765
|
...output,
|
|
2766
|
-
body: await
|
|
2766
|
+
body: await parseErrorBody(output.body, context),
|
|
2767
2767
|
};
|
|
2768
2768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2769
|
switch (errorCode) {
|
|
@@ -2818,7 +2818,7 @@ exports.deserializeAws_restJson1DetachFromIndexCommand = deserializeAws_restJson
|
|
|
2818
2818
|
const deserializeAws_restJson1DetachFromIndexCommandError = async (output, context) => {
|
|
2819
2819
|
const parsedOutput = {
|
|
2820
2820
|
...output,
|
|
2821
|
-
body: await
|
|
2821
|
+
body: await parseErrorBody(output.body, context),
|
|
2822
2822
|
};
|
|
2823
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
2824
|
switch (errorCode) {
|
|
@@ -2879,7 +2879,7 @@ exports.deserializeAws_restJson1DetachObjectCommand = deserializeAws_restJson1De
|
|
|
2879
2879
|
const deserializeAws_restJson1DetachObjectCommandError = async (output, context) => {
|
|
2880
2880
|
const parsedOutput = {
|
|
2881
2881
|
...output,
|
|
2882
|
-
body: await
|
|
2882
|
+
body: await parseErrorBody(output.body, context),
|
|
2883
2883
|
};
|
|
2884
2884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
2885
|
switch (errorCode) {
|
|
@@ -2934,7 +2934,7 @@ exports.deserializeAws_restJson1DetachPolicyCommand = deserializeAws_restJson1De
|
|
|
2934
2934
|
const deserializeAws_restJson1DetachPolicyCommandError = async (output, context) => {
|
|
2935
2935
|
const parsedOutput = {
|
|
2936
2936
|
...output,
|
|
2937
|
-
body: await
|
|
2937
|
+
body: await parseErrorBody(output.body, context),
|
|
2938
2938
|
};
|
|
2939
2939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2940
2940
|
switch (errorCode) {
|
|
@@ -2989,7 +2989,7 @@ exports.deserializeAws_restJson1DetachTypedLinkCommand = deserializeAws_restJson
|
|
|
2989
2989
|
const deserializeAws_restJson1DetachTypedLinkCommandError = async (output, context) => {
|
|
2990
2990
|
const parsedOutput = {
|
|
2991
2991
|
...output,
|
|
2992
|
-
body: await
|
|
2992
|
+
body: await parseErrorBody(output.body, context),
|
|
2993
2993
|
};
|
|
2994
2994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2995
2995
|
switch (errorCode) {
|
|
@@ -3047,7 +3047,7 @@ exports.deserializeAws_restJson1DisableDirectoryCommand = deserializeAws_restJso
|
|
|
3047
3047
|
const deserializeAws_restJson1DisableDirectoryCommandError = async (output, context) => {
|
|
3048
3048
|
const parsedOutput = {
|
|
3049
3049
|
...output,
|
|
3050
|
-
body: await
|
|
3050
|
+
body: await parseErrorBody(output.body, context),
|
|
3051
3051
|
};
|
|
3052
3052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
3053
|
switch (errorCode) {
|
|
@@ -3102,7 +3102,7 @@ exports.deserializeAws_restJson1EnableDirectoryCommand = deserializeAws_restJson
|
|
|
3102
3102
|
const deserializeAws_restJson1EnableDirectoryCommandError = async (output, context) => {
|
|
3103
3103
|
const parsedOutput = {
|
|
3104
3104
|
...output,
|
|
3105
|
-
body: await
|
|
3105
|
+
body: await parseErrorBody(output.body, context),
|
|
3106
3106
|
};
|
|
3107
3107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3108
3108
|
switch (errorCode) {
|
|
@@ -3157,7 +3157,7 @@ exports.deserializeAws_restJson1GetAppliedSchemaVersionCommand = deserializeAws_
|
|
|
3157
3157
|
const deserializeAws_restJson1GetAppliedSchemaVersionCommandError = async (output, context) => {
|
|
3158
3158
|
const parsedOutput = {
|
|
3159
3159
|
...output,
|
|
3160
|
-
body: await
|
|
3160
|
+
body: await parseErrorBody(output.body, context),
|
|
3161
3161
|
};
|
|
3162
3162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3163
3163
|
switch (errorCode) {
|
|
@@ -3209,7 +3209,7 @@ exports.deserializeAws_restJson1GetDirectoryCommand = deserializeAws_restJson1Ge
|
|
|
3209
3209
|
const deserializeAws_restJson1GetDirectoryCommandError = async (output, context) => {
|
|
3210
3210
|
const parsedOutput = {
|
|
3211
3211
|
...output,
|
|
3212
|
-
body: await
|
|
3212
|
+
body: await parseErrorBody(output.body, context),
|
|
3213
3213
|
};
|
|
3214
3214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3215
3215
|
switch (errorCode) {
|
|
@@ -3258,7 +3258,7 @@ exports.deserializeAws_restJson1GetFacetCommand = deserializeAws_restJson1GetFac
|
|
|
3258
3258
|
const deserializeAws_restJson1GetFacetCommandError = async (output, context) => {
|
|
3259
3259
|
const parsedOutput = {
|
|
3260
3260
|
...output,
|
|
3261
|
-
body: await
|
|
3261
|
+
body: await parseErrorBody(output.body, context),
|
|
3262
3262
|
};
|
|
3263
3263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3264
3264
|
switch (errorCode) {
|
|
@@ -3313,7 +3313,7 @@ exports.deserializeAws_restJson1GetLinkAttributesCommand = deserializeAws_restJs
|
|
|
3313
3313
|
const deserializeAws_restJson1GetLinkAttributesCommandError = async (output, context) => {
|
|
3314
3314
|
const parsedOutput = {
|
|
3315
3315
|
...output,
|
|
3316
|
-
body: await
|
|
3316
|
+
body: await parseErrorBody(output.body, context),
|
|
3317
3317
|
};
|
|
3318
3318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3319
3319
|
switch (errorCode) {
|
|
@@ -3371,7 +3371,7 @@ exports.deserializeAws_restJson1GetObjectAttributesCommand = deserializeAws_rest
|
|
|
3371
3371
|
const deserializeAws_restJson1GetObjectAttributesCommandError = async (output, context) => {
|
|
3372
3372
|
const parsedOutput = {
|
|
3373
3373
|
...output,
|
|
3374
|
-
body: await
|
|
3374
|
+
body: await parseErrorBody(output.body, context),
|
|
3375
3375
|
};
|
|
3376
3376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3377
3377
|
switch (errorCode) {
|
|
@@ -3432,7 +3432,7 @@ exports.deserializeAws_restJson1GetObjectInformationCommand = deserializeAws_res
|
|
|
3432
3432
|
const deserializeAws_restJson1GetObjectInformationCommandError = async (output, context) => {
|
|
3433
3433
|
const parsedOutput = {
|
|
3434
3434
|
...output,
|
|
3435
|
-
body: await
|
|
3435
|
+
body: await parseErrorBody(output.body, context),
|
|
3436
3436
|
};
|
|
3437
3437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
3438
|
switch (errorCode) {
|
|
@@ -3490,7 +3490,7 @@ exports.deserializeAws_restJson1GetSchemaAsJsonCommand = deserializeAws_restJson
|
|
|
3490
3490
|
const deserializeAws_restJson1GetSchemaAsJsonCommandError = async (output, context) => {
|
|
3491
3491
|
const parsedOutput = {
|
|
3492
3492
|
...output,
|
|
3493
|
-
body: await
|
|
3493
|
+
body: await parseErrorBody(output.body, context),
|
|
3494
3494
|
};
|
|
3495
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
3496
|
switch (errorCode) {
|
|
@@ -3542,7 +3542,7 @@ exports.deserializeAws_restJson1GetTypedLinkFacetInformationCommand = deserializ
|
|
|
3542
3542
|
const deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = async (output, context) => {
|
|
3543
3543
|
const parsedOutput = {
|
|
3544
3544
|
...output,
|
|
3545
|
-
body: await
|
|
3545
|
+
body: await parseErrorBody(output.body, context),
|
|
3546
3546
|
};
|
|
3547
3547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3548
3548
|
switch (errorCode) {
|
|
@@ -3603,7 +3603,7 @@ exports.deserializeAws_restJson1ListAppliedSchemaArnsCommand = deserializeAws_re
|
|
|
3603
3603
|
const deserializeAws_restJson1ListAppliedSchemaArnsCommandError = async (output, context) => {
|
|
3604
3604
|
const parsedOutput = {
|
|
3605
3605
|
...output,
|
|
3606
|
-
body: await
|
|
3606
|
+
body: await parseErrorBody(output.body, context),
|
|
3607
3607
|
};
|
|
3608
3608
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
3609
|
switch (errorCode) {
|
|
@@ -3661,7 +3661,7 @@ exports.deserializeAws_restJson1ListAttachedIndicesCommand = deserializeAws_rest
|
|
|
3661
3661
|
const deserializeAws_restJson1ListAttachedIndicesCommandError = async (output, context) => {
|
|
3662
3662
|
const parsedOutput = {
|
|
3663
3663
|
...output,
|
|
3664
|
-
body: await
|
|
3664
|
+
body: await parseErrorBody(output.body, context),
|
|
3665
3665
|
};
|
|
3666
3666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3667
3667
|
switch (errorCode) {
|
|
@@ -3719,7 +3719,7 @@ exports.deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = deserializeAw
|
|
|
3719
3719
|
const deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = async (output, context) => {
|
|
3720
3720
|
const parsedOutput = {
|
|
3721
3721
|
...output,
|
|
3722
|
-
body: await
|
|
3722
|
+
body: await parseErrorBody(output.body, context),
|
|
3723
3723
|
};
|
|
3724
3724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3725
3725
|
switch (errorCode) {
|
|
@@ -3777,7 +3777,7 @@ exports.deserializeAws_restJson1ListDirectoriesCommand = deserializeAws_restJson
|
|
|
3777
3777
|
const deserializeAws_restJson1ListDirectoriesCommandError = async (output, context) => {
|
|
3778
3778
|
const parsedOutput = {
|
|
3779
3779
|
...output,
|
|
3780
|
-
body: await
|
|
3780
|
+
body: await parseErrorBody(output.body, context),
|
|
3781
3781
|
};
|
|
3782
3782
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3783
3783
|
switch (errorCode) {
|
|
@@ -3832,7 +3832,7 @@ exports.deserializeAws_restJson1ListFacetAttributesCommand = deserializeAws_rest
|
|
|
3832
3832
|
const deserializeAws_restJson1ListFacetAttributesCommandError = async (output, context) => {
|
|
3833
3833
|
const parsedOutput = {
|
|
3834
3834
|
...output,
|
|
3835
|
-
body: await
|
|
3835
|
+
body: await parseErrorBody(output.body, context),
|
|
3836
3836
|
};
|
|
3837
3837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
3838
|
switch (errorCode) {
|
|
@@ -3893,7 +3893,7 @@ exports.deserializeAws_restJson1ListFacetNamesCommand = deserializeAws_restJson1
|
|
|
3893
3893
|
const deserializeAws_restJson1ListFacetNamesCommandError = async (output, context) => {
|
|
3894
3894
|
const parsedOutput = {
|
|
3895
3895
|
...output,
|
|
3896
|
-
body: await
|
|
3896
|
+
body: await parseErrorBody(output.body, context),
|
|
3897
3897
|
};
|
|
3898
3898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3899
3899
|
switch (errorCode) {
|
|
@@ -3951,7 +3951,7 @@ exports.deserializeAws_restJson1ListIncomingTypedLinksCommand = deserializeAws_r
|
|
|
3951
3951
|
const deserializeAws_restJson1ListIncomingTypedLinksCommandError = async (output, context) => {
|
|
3952
3952
|
const parsedOutput = {
|
|
3953
3953
|
...output,
|
|
3954
|
-
body: await
|
|
3954
|
+
body: await parseErrorBody(output.body, context),
|
|
3955
3955
|
};
|
|
3956
3956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3957
3957
|
switch (errorCode) {
|
|
@@ -4015,7 +4015,7 @@ exports.deserializeAws_restJson1ListIndexCommand = deserializeAws_restJson1ListI
|
|
|
4015
4015
|
const deserializeAws_restJson1ListIndexCommandError = async (output, context) => {
|
|
4016
4016
|
const parsedOutput = {
|
|
4017
4017
|
...output,
|
|
4018
|
-
body: await
|
|
4018
|
+
body: await parseErrorBody(output.body, context),
|
|
4019
4019
|
};
|
|
4020
4020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
4021
|
switch (errorCode) {
|
|
@@ -4082,7 +4082,7 @@ exports.deserializeAws_restJson1ListManagedSchemaArnsCommand = deserializeAws_re
|
|
|
4082
4082
|
const deserializeAws_restJson1ListManagedSchemaArnsCommandError = async (output, context) => {
|
|
4083
4083
|
const parsedOutput = {
|
|
4084
4084
|
...output,
|
|
4085
|
-
body: await
|
|
4085
|
+
body: await parseErrorBody(output.body, context),
|
|
4086
4086
|
};
|
|
4087
4087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
4088
|
switch (errorCode) {
|
|
@@ -4134,7 +4134,7 @@ exports.deserializeAws_restJson1ListObjectAttributesCommand = deserializeAws_res
|
|
|
4134
4134
|
const deserializeAws_restJson1ListObjectAttributesCommandError = async (output, context) => {
|
|
4135
4135
|
const parsedOutput = {
|
|
4136
4136
|
...output,
|
|
4137
|
-
body: await
|
|
4137
|
+
body: await parseErrorBody(output.body, context),
|
|
4138
4138
|
};
|
|
4139
4139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4140
4140
|
switch (errorCode) {
|
|
@@ -4198,7 +4198,7 @@ exports.deserializeAws_restJson1ListObjectChildrenCommand = deserializeAws_restJ
|
|
|
4198
4198
|
const deserializeAws_restJson1ListObjectChildrenCommandError = async (output, context) => {
|
|
4199
4199
|
const parsedOutput = {
|
|
4200
4200
|
...output,
|
|
4201
|
-
body: await
|
|
4201
|
+
body: await parseErrorBody(output.body, context),
|
|
4202
4202
|
};
|
|
4203
4203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4204
4204
|
switch (errorCode) {
|
|
@@ -4262,7 +4262,7 @@ exports.deserializeAws_restJson1ListObjectParentPathsCommand = deserializeAws_re
|
|
|
4262
4262
|
const deserializeAws_restJson1ListObjectParentPathsCommandError = async (output, context) => {
|
|
4263
4263
|
const parsedOutput = {
|
|
4264
4264
|
...output,
|
|
4265
|
-
body: await
|
|
4265
|
+
body: await parseErrorBody(output.body, context),
|
|
4266
4266
|
};
|
|
4267
4267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4268
4268
|
switch (errorCode) {
|
|
@@ -4326,7 +4326,7 @@ exports.deserializeAws_restJson1ListObjectParentsCommand = deserializeAws_restJs
|
|
|
4326
4326
|
const deserializeAws_restJson1ListObjectParentsCommandError = async (output, context) => {
|
|
4327
4327
|
const parsedOutput = {
|
|
4328
4328
|
...output,
|
|
4329
|
-
body: await
|
|
4329
|
+
body: await parseErrorBody(output.body, context),
|
|
4330
4330
|
};
|
|
4331
4331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4332
4332
|
switch (errorCode) {
|
|
@@ -4390,7 +4390,7 @@ exports.deserializeAws_restJson1ListObjectPoliciesCommand = deserializeAws_restJ
|
|
|
4390
4390
|
const deserializeAws_restJson1ListObjectPoliciesCommandError = async (output, context) => {
|
|
4391
4391
|
const parsedOutput = {
|
|
4392
4392
|
...output,
|
|
4393
|
-
body: await
|
|
4393
|
+
body: await parseErrorBody(output.body, context),
|
|
4394
4394
|
};
|
|
4395
4395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4396
4396
|
switch (errorCode) {
|
|
@@ -4451,7 +4451,7 @@ exports.deserializeAws_restJson1ListOutgoingTypedLinksCommand = deserializeAws_r
|
|
|
4451
4451
|
const deserializeAws_restJson1ListOutgoingTypedLinksCommandError = async (output, context) => {
|
|
4452
4452
|
const parsedOutput = {
|
|
4453
4453
|
...output,
|
|
4454
|
-
body: await
|
|
4454
|
+
body: await parseErrorBody(output.body, context),
|
|
4455
4455
|
};
|
|
4456
4456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4457
4457
|
switch (errorCode) {
|
|
@@ -4515,7 +4515,7 @@ exports.deserializeAws_restJson1ListPolicyAttachmentsCommand = deserializeAws_re
|
|
|
4515
4515
|
const deserializeAws_restJson1ListPolicyAttachmentsCommandError = async (output, context) => {
|
|
4516
4516
|
const parsedOutput = {
|
|
4517
4517
|
...output,
|
|
4518
|
-
body: await
|
|
4518
|
+
body: await parseErrorBody(output.body, context),
|
|
4519
4519
|
};
|
|
4520
4520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4521
4521
|
switch (errorCode) {
|
|
@@ -4579,7 +4579,7 @@ exports.deserializeAws_restJson1ListPublishedSchemaArnsCommand = deserializeAws_
|
|
|
4579
4579
|
const deserializeAws_restJson1ListPublishedSchemaArnsCommandError = async (output, context) => {
|
|
4580
4580
|
const parsedOutput = {
|
|
4581
4581
|
...output,
|
|
4582
|
-
body: await
|
|
4582
|
+
body: await parseErrorBody(output.body, context),
|
|
4583
4583
|
};
|
|
4584
4584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4585
4585
|
switch (errorCode) {
|
|
@@ -4637,7 +4637,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
4637
4637
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4638
4638
|
const parsedOutput = {
|
|
4639
4639
|
...output,
|
|
4640
|
-
body: await
|
|
4640
|
+
body: await parseErrorBody(output.body, context),
|
|
4641
4641
|
};
|
|
4642
4642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4643
4643
|
switch (errorCode) {
|
|
@@ -4695,7 +4695,7 @@ exports.deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = deserializ
|
|
|
4695
4695
|
const deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = async (output, context) => {
|
|
4696
4696
|
const parsedOutput = {
|
|
4697
4697
|
...output,
|
|
4698
|
-
body: await
|
|
4698
|
+
body: await parseErrorBody(output.body, context),
|
|
4699
4699
|
};
|
|
4700
4700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4701
4701
|
switch (errorCode) {
|
|
@@ -4756,7 +4756,7 @@ exports.deserializeAws_restJson1ListTypedLinkFacetNamesCommand = deserializeAws_
|
|
|
4756
4756
|
const deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = async (output, context) => {
|
|
4757
4757
|
const parsedOutput = {
|
|
4758
4758
|
...output,
|
|
4759
|
-
body: await
|
|
4759
|
+
body: await parseErrorBody(output.body, context),
|
|
4760
4760
|
};
|
|
4761
4761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4762
4762
|
switch (errorCode) {
|
|
@@ -4814,7 +4814,7 @@ exports.deserializeAws_restJson1LookupPolicyCommand = deserializeAws_restJson1Lo
|
|
|
4814
4814
|
const deserializeAws_restJson1LookupPolicyCommandError = async (output, context) => {
|
|
4815
4815
|
const parsedOutput = {
|
|
4816
4816
|
...output,
|
|
4817
|
-
body: await
|
|
4817
|
+
body: await parseErrorBody(output.body, context),
|
|
4818
4818
|
};
|
|
4819
4819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4820
4820
|
switch (errorCode) {
|
|
@@ -4872,7 +4872,7 @@ exports.deserializeAws_restJson1PublishSchemaCommand = deserializeAws_restJson1P
|
|
|
4872
4872
|
const deserializeAws_restJson1PublishSchemaCommandError = async (output, context) => {
|
|
4873
4873
|
const parsedOutput = {
|
|
4874
4874
|
...output,
|
|
4875
|
-
body: await
|
|
4875
|
+
body: await parseErrorBody(output.body, context),
|
|
4876
4876
|
};
|
|
4877
4877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4878
4878
|
switch (errorCode) {
|
|
@@ -4927,7 +4927,7 @@ exports.deserializeAws_restJson1PutSchemaFromJsonCommand = deserializeAws_restJs
|
|
|
4927
4927
|
const deserializeAws_restJson1PutSchemaFromJsonCommandError = async (output, context) => {
|
|
4928
4928
|
const parsedOutput = {
|
|
4929
4929
|
...output,
|
|
4930
|
-
body: await
|
|
4930
|
+
body: await parseErrorBody(output.body, context),
|
|
4931
4931
|
};
|
|
4932
4932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4933
4933
|
switch (errorCode) {
|
|
@@ -4979,7 +4979,7 @@ exports.deserializeAws_restJson1RemoveFacetFromObjectCommand = deserializeAws_re
|
|
|
4979
4979
|
const deserializeAws_restJson1RemoveFacetFromObjectCommandError = async (output, context) => {
|
|
4980
4980
|
const parsedOutput = {
|
|
4981
4981
|
...output,
|
|
4982
|
-
body: await
|
|
4982
|
+
body: await parseErrorBody(output.body, context),
|
|
4983
4983
|
};
|
|
4984
4984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4985
4985
|
switch (errorCode) {
|
|
@@ -5034,7 +5034,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
5034
5034
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
5035
5035
|
const parsedOutput = {
|
|
5036
5036
|
...output,
|
|
5037
|
-
body: await
|
|
5037
|
+
body: await parseErrorBody(output.body, context),
|
|
5038
5038
|
};
|
|
5039
5039
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5040
5040
|
switch (errorCode) {
|
|
@@ -5086,7 +5086,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
5086
5086
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
5087
5087
|
const parsedOutput = {
|
|
5088
5088
|
...output,
|
|
5089
|
-
body: await
|
|
5089
|
+
body: await parseErrorBody(output.body, context),
|
|
5090
5090
|
};
|
|
5091
5091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5092
5092
|
switch (errorCode) {
|
|
@@ -5138,7 +5138,7 @@ exports.deserializeAws_restJson1UpdateFacetCommand = deserializeAws_restJson1Upd
|
|
|
5138
5138
|
const deserializeAws_restJson1UpdateFacetCommandError = async (output, context) => {
|
|
5139
5139
|
const parsedOutput = {
|
|
5140
5140
|
...output,
|
|
5141
|
-
body: await
|
|
5141
|
+
body: await parseErrorBody(output.body, context),
|
|
5142
5142
|
};
|
|
5143
5143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5144
5144
|
switch (errorCode) {
|
|
@@ -5199,7 +5199,7 @@ exports.deserializeAws_restJson1UpdateLinkAttributesCommand = deserializeAws_res
|
|
|
5199
5199
|
const deserializeAws_restJson1UpdateLinkAttributesCommandError = async (output, context) => {
|
|
5200
5200
|
const parsedOutput = {
|
|
5201
5201
|
...output,
|
|
5202
|
-
body: await
|
|
5202
|
+
body: await parseErrorBody(output.body, context),
|
|
5203
5203
|
};
|
|
5204
5204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5205
5205
|
switch (errorCode) {
|
|
@@ -5257,7 +5257,7 @@ exports.deserializeAws_restJson1UpdateObjectAttributesCommand = deserializeAws_r
|
|
|
5257
5257
|
const deserializeAws_restJson1UpdateObjectAttributesCommandError = async (output, context) => {
|
|
5258
5258
|
const parsedOutput = {
|
|
5259
5259
|
...output,
|
|
5260
|
-
body: await
|
|
5260
|
+
body: await parseErrorBody(output.body, context),
|
|
5261
5261
|
};
|
|
5262
5262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5263
5263
|
switch (errorCode) {
|
|
@@ -5318,7 +5318,7 @@ exports.deserializeAws_restJson1UpdateSchemaCommand = deserializeAws_restJson1Up
|
|
|
5318
5318
|
const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context) => {
|
|
5319
5319
|
const parsedOutput = {
|
|
5320
5320
|
...output,
|
|
5321
|
-
body: await
|
|
5321
|
+
body: await parseErrorBody(output.body, context),
|
|
5322
5322
|
};
|
|
5323
5323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5324
5324
|
switch (errorCode) {
|
|
@@ -5367,7 +5367,7 @@ exports.deserializeAws_restJson1UpdateTypedLinkFacetCommand = deserializeAws_res
|
|
|
5367
5367
|
const deserializeAws_restJson1UpdateTypedLinkFacetCommandError = async (output, context) => {
|
|
5368
5368
|
const parsedOutput = {
|
|
5369
5369
|
...output,
|
|
5370
|
-
body: await
|
|
5370
|
+
body: await parseErrorBody(output.body, context),
|
|
5371
5371
|
};
|
|
5372
5372
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5373
5373
|
switch (errorCode) {
|
|
@@ -5434,7 +5434,7 @@ exports.deserializeAws_restJson1UpgradeAppliedSchemaCommand = deserializeAws_res
|
|
|
5434
5434
|
const deserializeAws_restJson1UpgradeAppliedSchemaCommandError = async (output, context) => {
|
|
5435
5435
|
const parsedOutput = {
|
|
5436
5436
|
...output,
|
|
5437
|
-
body: await
|
|
5437
|
+
body: await parseErrorBody(output.body, context),
|
|
5438
5438
|
};
|
|
5439
5439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
5440
|
switch (errorCode) {
|
|
@@ -5492,7 +5492,7 @@ exports.deserializeAws_restJson1UpgradePublishedSchemaCommand = deserializeAws_r
|
|
|
5492
5492
|
const deserializeAws_restJson1UpgradePublishedSchemaCommandError = async (output, context) => {
|
|
5493
5493
|
const parsedOutput = {
|
|
5494
5494
|
...output,
|
|
5495
|
-
body: await
|
|
5495
|
+
body: await parseErrorBody(output.body, context),
|
|
5496
5496
|
};
|
|
5497
5497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5498
5498
|
switch (errorCode) {
|
|
@@ -7446,6 +7446,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7446
7446
|
}
|
|
7447
7447
|
return {};
|
|
7448
7448
|
});
|
|
7449
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
7450
|
+
var _a;
|
|
7451
|
+
const value = await parseBody(errorBody, context);
|
|
7452
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
7453
|
+
return value;
|
|
7454
|
+
};
|
|
7449
7455
|
const loadRestJsonErrorCode = (output, data) => {
|
|
7450
7456
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
7451
7457
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1838,7 +1838,7 @@ var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, con
|
|
|
1838
1838
|
case 0:
|
|
1839
1839
|
_a = [__assign({}, output)];
|
|
1840
1840
|
_c = {};
|
|
1841
|
-
return [4,
|
|
1841
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1842
1842
|
case 1:
|
|
1843
1843
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1844
1844
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1929,7 +1929,7 @@ var deserializeAws_restJson1ApplySchemaCommandError = function (output, context)
|
|
|
1929
1929
|
case 0:
|
|
1930
1930
|
_a = [__assign({}, output)];
|
|
1931
1931
|
_c = {};
|
|
1932
|
-
return [4,
|
|
1932
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1933
1933
|
case 1:
|
|
1934
1934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1935
1935
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2017,7 +2017,7 @@ var deserializeAws_restJson1AttachObjectCommandError = function (output, context
|
|
|
2017
2017
|
case 0:
|
|
2018
2018
|
_a = [__assign({}, output)];
|
|
2019
2019
|
_c = {};
|
|
2020
|
-
return [4,
|
|
2020
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2021
2021
|
case 1:
|
|
2022
2022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2023
2023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2108,7 +2108,7 @@ var deserializeAws_restJson1AttachPolicyCommandError = function (output, context
|
|
|
2108
2108
|
case 0:
|
|
2109
2109
|
_a = [__assign({}, output)];
|
|
2110
2110
|
_c = {};
|
|
2111
|
-
return [4,
|
|
2111
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2112
2112
|
case 1:
|
|
2113
2113
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2114
2114
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2196,7 +2196,7 @@ var deserializeAws_restJson1AttachToIndexCommandError = function (output, contex
|
|
|
2196
2196
|
case 0:
|
|
2197
2197
|
_a = [__assign({}, output)];
|
|
2198
2198
|
_c = {};
|
|
2199
|
-
return [4,
|
|
2199
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2200
2200
|
case 1:
|
|
2201
2201
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2202
2202
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2296,7 +2296,7 @@ var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, cont
|
|
|
2296
2296
|
case 0:
|
|
2297
2297
|
_a = [__assign({}, output)];
|
|
2298
2298
|
_c = {};
|
|
2299
|
-
return [4,
|
|
2299
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2300
2300
|
case 1:
|
|
2301
2301
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2302
2302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2388,7 +2388,7 @@ var deserializeAws_restJson1BatchReadCommandError = function (output, context) {
|
|
|
2388
2388
|
case 0:
|
|
2389
2389
|
_a = [__assign({}, output)];
|
|
2390
2390
|
_c = {};
|
|
2391
|
-
return [4,
|
|
2391
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2392
2392
|
case 1:
|
|
2393
2393
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2394
2394
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2468,7 +2468,7 @@ var deserializeAws_restJson1BatchWriteCommandError = function (output, context)
|
|
|
2468
2468
|
case 0:
|
|
2469
2469
|
_a = [__assign({}, output)];
|
|
2470
2470
|
_c = {};
|
|
2471
|
-
return [4,
|
|
2471
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2472
2472
|
case 1:
|
|
2473
2473
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2474
2474
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2561,7 +2561,7 @@ var deserializeAws_restJson1CreateDirectoryCommandError = function (output, cont
|
|
|
2561
2561
|
case 0:
|
|
2562
2562
|
_a = [__assign({}, output)];
|
|
2563
2563
|
_c = {};
|
|
2564
|
-
return [4,
|
|
2564
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2565
2565
|
case 1:
|
|
2566
2566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2567
2567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2640,7 +2640,7 @@ var deserializeAws_restJson1CreateFacetCommandError = function (output, context)
|
|
|
2640
2640
|
case 0:
|
|
2641
2641
|
_a = [__assign({}, output)];
|
|
2642
2642
|
_c = {};
|
|
2643
|
-
return [4,
|
|
2643
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2644
2644
|
case 1:
|
|
2645
2645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2646
2646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2732,7 +2732,7 @@ var deserializeAws_restJson1CreateIndexCommandError = function (output, context)
|
|
|
2732
2732
|
case 0:
|
|
2733
2733
|
_a = [__assign({}, output)];
|
|
2734
2734
|
_c = {};
|
|
2735
|
-
return [4,
|
|
2735
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2736
2736
|
case 1:
|
|
2737
2737
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2738
2738
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2828,7 +2828,7 @@ var deserializeAws_restJson1CreateObjectCommandError = function (output, context
|
|
|
2828
2828
|
case 0:
|
|
2829
2829
|
_a = [__assign({}, output)];
|
|
2830
2830
|
_c = {};
|
|
2831
|
-
return [4,
|
|
2831
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2832
2832
|
case 1:
|
|
2833
2833
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2834
2834
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2924,7 +2924,7 @@ var deserializeAws_restJson1CreateSchemaCommandError = function (output, context
|
|
|
2924
2924
|
case 0:
|
|
2925
2925
|
_a = [__assign({}, output)];
|
|
2926
2926
|
_c = {};
|
|
2927
|
-
return [4,
|
|
2927
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2928
2928
|
case 1:
|
|
2929
2929
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2930
2930
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2999,7 +2999,7 @@ var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output,
|
|
|
2999
2999
|
case 0:
|
|
3000
3000
|
_a = [__assign({}, output)];
|
|
3001
3001
|
_c = {};
|
|
3002
|
-
return [4,
|
|
3002
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3003
3003
|
case 1:
|
|
3004
3004
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3005
3005
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3091,7 +3091,7 @@ var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, cont
|
|
|
3091
3091
|
case 0:
|
|
3092
3092
|
_a = [__assign({}, output)];
|
|
3093
3093
|
_c = {};
|
|
3094
|
-
return [4,
|
|
3094
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3095
3095
|
case 1:
|
|
3096
3096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3097
3097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3174,7 +3174,7 @@ var deserializeAws_restJson1DeleteFacetCommandError = function (output, context)
|
|
|
3174
3174
|
case 0:
|
|
3175
3175
|
_a = [__assign({}, output)];
|
|
3176
3176
|
_c = {};
|
|
3177
|
-
return [4,
|
|
3177
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3178
3178
|
case 1:
|
|
3179
3179
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3180
3180
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3257,7 +3257,7 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
3257
3257
|
case 0:
|
|
3258
3258
|
_a = [__assign({}, output)];
|
|
3259
3259
|
_c = {};
|
|
3260
|
-
return [4,
|
|
3260
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3261
3261
|
case 1:
|
|
3262
3262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3263
3263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3345,7 +3345,7 @@ var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context
|
|
|
3345
3345
|
case 0:
|
|
3346
3346
|
_a = [__assign({}, output)];
|
|
3347
3347
|
_c = {};
|
|
3348
|
-
return [4,
|
|
3348
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3349
3349
|
case 1:
|
|
3350
3350
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3351
3351
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3424,7 +3424,7 @@ var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output,
|
|
|
3424
3424
|
case 0:
|
|
3425
3425
|
_a = [__assign({}, output)];
|
|
3426
3426
|
_c = {};
|
|
3427
|
-
return [4,
|
|
3427
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3428
3428
|
case 1:
|
|
3429
3429
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3430
3430
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3508,7 +3508,7 @@ var deserializeAws_restJson1DetachFromIndexCommandError = function (output, cont
|
|
|
3508
3508
|
case 0:
|
|
3509
3509
|
_a = [__assign({}, output)];
|
|
3510
3510
|
_c = {};
|
|
3511
|
-
return [4,
|
|
3511
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3512
3512
|
case 1:
|
|
3513
3513
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3514
3514
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3600,7 +3600,7 @@ var deserializeAws_restJson1DetachObjectCommandError = function (output, context
|
|
|
3600
3600
|
case 0:
|
|
3601
3601
|
_a = [__assign({}, output)];
|
|
3602
3602
|
_c = {};
|
|
3603
|
-
return [4,
|
|
3603
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3604
3604
|
case 1:
|
|
3605
3605
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3606
3606
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3683,7 +3683,7 @@ var deserializeAws_restJson1DetachPolicyCommandError = function (output, context
|
|
|
3683
3683
|
case 0:
|
|
3684
3684
|
_a = [__assign({}, output)];
|
|
3685
3685
|
_c = {};
|
|
3686
|
-
return [4,
|
|
3686
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3687
3687
|
case 1:
|
|
3688
3688
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3689
3689
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3766,7 +3766,7 @@ var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, cont
|
|
|
3766
3766
|
case 0:
|
|
3767
3767
|
_a = [__assign({}, output)];
|
|
3768
3768
|
_c = {};
|
|
3769
|
-
return [4,
|
|
3769
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3770
3770
|
case 1:
|
|
3771
3771
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3772
3772
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3854,7 +3854,7 @@ var deserializeAws_restJson1DisableDirectoryCommandError = function (output, con
|
|
|
3854
3854
|
case 0:
|
|
3855
3855
|
_a = [__assign({}, output)];
|
|
3856
3856
|
_c = {};
|
|
3857
|
-
return [4,
|
|
3857
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3858
3858
|
case 1:
|
|
3859
3859
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3860
3860
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3938,7 +3938,7 @@ var deserializeAws_restJson1EnableDirectoryCommandError = function (output, cont
|
|
|
3938
3938
|
case 0:
|
|
3939
3939
|
_a = [__assign({}, output)];
|
|
3940
3940
|
_c = {};
|
|
3941
|
-
return [4,
|
|
3941
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3942
3942
|
case 1:
|
|
3943
3943
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3944
3944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4022,7 +4022,7 @@ var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (outp
|
|
|
4022
4022
|
case 0:
|
|
4023
4023
|
_a = [__assign({}, output)];
|
|
4024
4024
|
_c = {};
|
|
4025
|
-
return [4,
|
|
4025
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4026
4026
|
case 1:
|
|
4027
4027
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4028
4028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4102,7 +4102,7 @@ var deserializeAws_restJson1GetDirectoryCommandError = function (output, context
|
|
|
4102
4102
|
case 0:
|
|
4103
4103
|
_a = [__assign({}, output)];
|
|
4104
4104
|
_c = {};
|
|
4105
|
-
return [4,
|
|
4105
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4106
4106
|
case 1:
|
|
4107
4107
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4108
4108
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4178,7 +4178,7 @@ var deserializeAws_restJson1GetFacetCommandError = function (output, context) {
|
|
|
4178
4178
|
case 0:
|
|
4179
4179
|
_a = [__assign({}, output)];
|
|
4180
4180
|
_c = {};
|
|
4181
|
-
return [4,
|
|
4181
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4182
4182
|
case 1:
|
|
4183
4183
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4184
4184
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4262,7 +4262,7 @@ var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, co
|
|
|
4262
4262
|
case 0:
|
|
4263
4263
|
_a = [__assign({}, output)];
|
|
4264
4264
|
_c = {};
|
|
4265
|
-
return [4,
|
|
4265
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4266
4266
|
case 1:
|
|
4267
4267
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4268
4268
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4350,7 +4350,7 @@ var deserializeAws_restJson1GetObjectAttributesCommandError = function (output,
|
|
|
4350
4350
|
case 0:
|
|
4351
4351
|
_a = [__assign({}, output)];
|
|
4352
4352
|
_c = {};
|
|
4353
|
-
return [4,
|
|
4353
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4354
4354
|
case 1:
|
|
4355
4355
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4356
4356
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4441,7 +4441,7 @@ var deserializeAws_restJson1GetObjectInformationCommandError = function (output,
|
|
|
4441
4441
|
case 0:
|
|
4442
4442
|
_a = [__assign({}, output)];
|
|
4443
4443
|
_c = {};
|
|
4444
|
-
return [4,
|
|
4444
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4445
4445
|
case 1:
|
|
4446
4446
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4447
4447
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4528,7 +4528,7 @@ var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, cont
|
|
|
4528
4528
|
case 0:
|
|
4529
4529
|
_a = [__assign({}, output)];
|
|
4530
4530
|
_c = {};
|
|
4531
|
-
return [4,
|
|
4531
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4532
4532
|
case 1:
|
|
4533
4533
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4534
4534
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4608,7 +4608,7 @@ var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function
|
|
|
4608
4608
|
case 0:
|
|
4609
4609
|
_a = [__assign({}, output)];
|
|
4610
4610
|
_c = {};
|
|
4611
|
-
return [4,
|
|
4611
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4612
4612
|
case 1:
|
|
4613
4613
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4614
4614
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4699,7 +4699,7 @@ var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output
|
|
|
4699
4699
|
case 0:
|
|
4700
4700
|
_a = [__assign({}, output)];
|
|
4701
4701
|
_c = {};
|
|
4702
|
-
return [4,
|
|
4702
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4703
4703
|
case 1:
|
|
4704
4704
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4705
4705
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4786,7 +4786,7 @@ var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output,
|
|
|
4786
4786
|
case 0:
|
|
4787
4787
|
_a = [__assign({}, output)];
|
|
4788
4788
|
_c = {};
|
|
4789
|
-
return [4,
|
|
4789
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4790
4790
|
case 1:
|
|
4791
4791
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4792
4792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4873,7 +4873,7 @@ var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (ou
|
|
|
4873
4873
|
case 0:
|
|
4874
4874
|
_a = [__assign({}, output)];
|
|
4875
4875
|
_c = {};
|
|
4876
|
-
return [4,
|
|
4876
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4877
4877
|
case 1:
|
|
4878
4878
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4879
4879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4960,7 +4960,7 @@ var deserializeAws_restJson1ListDirectoriesCommandError = function (output, cont
|
|
|
4960
4960
|
case 0:
|
|
4961
4961
|
_a = [__assign({}, output)];
|
|
4962
4962
|
_c = {};
|
|
4963
|
-
return [4,
|
|
4963
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4964
4964
|
case 1:
|
|
4965
4965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4966
4966
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5043,7 +5043,7 @@ var deserializeAws_restJson1ListFacetAttributesCommandError = function (output,
|
|
|
5043
5043
|
case 0:
|
|
5044
5044
|
_a = [__assign({}, output)];
|
|
5045
5045
|
_c = {};
|
|
5046
|
-
return [4,
|
|
5046
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5047
5047
|
case 1:
|
|
5048
5048
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5049
5049
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5134,7 +5134,7 @@ var deserializeAws_restJson1ListFacetNamesCommandError = function (output, conte
|
|
|
5134
5134
|
case 0:
|
|
5135
5135
|
_a = [__assign({}, output)];
|
|
5136
5136
|
_c = {};
|
|
5137
|
-
return [4,
|
|
5137
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5138
5138
|
case 1:
|
|
5139
5139
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5140
5140
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5221,7 +5221,7 @@ var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (outpu
|
|
|
5221
5221
|
case 0:
|
|
5222
5222
|
_a = [__assign({}, output)];
|
|
5223
5223
|
_c = {};
|
|
5224
|
-
return [4,
|
|
5224
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5225
5225
|
case 1:
|
|
5226
5226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5227
5227
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5316,7 +5316,7 @@ var deserializeAws_restJson1ListIndexCommandError = function (output, context) {
|
|
|
5316
5316
|
case 0:
|
|
5317
5317
|
_a = [__assign({}, output)];
|
|
5318
5318
|
_c = {};
|
|
5319
|
-
return [4,
|
|
5319
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5320
5320
|
case 1:
|
|
5321
5321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5322
5322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5415,7 +5415,7 @@ var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output
|
|
|
5415
5415
|
case 0:
|
|
5416
5416
|
_a = [__assign({}, output)];
|
|
5417
5417
|
_c = {};
|
|
5418
|
-
return [4,
|
|
5418
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5419
5419
|
case 1:
|
|
5420
5420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5421
5421
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5494,7 +5494,7 @@ var deserializeAws_restJson1ListObjectAttributesCommandError = function (output,
|
|
|
5494
5494
|
case 0:
|
|
5495
5495
|
_a = [__assign({}, output)];
|
|
5496
5496
|
_c = {};
|
|
5497
|
-
return [4,
|
|
5497
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5498
5498
|
case 1:
|
|
5499
5499
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5500
5500
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5589,7 +5589,7 @@ var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, c
|
|
|
5589
5589
|
case 0:
|
|
5590
5590
|
_a = [__assign({}, output)];
|
|
5591
5591
|
_c = {};
|
|
5592
|
-
return [4,
|
|
5592
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5593
5593
|
case 1:
|
|
5594
5594
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5595
5595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5684,7 +5684,7 @@ var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output
|
|
|
5684
5684
|
case 0:
|
|
5685
5685
|
_a = [__assign({}, output)];
|
|
5686
5686
|
_c = {};
|
|
5687
|
-
return [4,
|
|
5687
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5688
5688
|
case 1:
|
|
5689
5689
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5690
5690
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5778,7 +5778,7 @@ var deserializeAws_restJson1ListObjectParentsCommandError = function (output, co
|
|
|
5778
5778
|
case 0:
|
|
5779
5779
|
_a = [__assign({}, output)];
|
|
5780
5780
|
_c = {};
|
|
5781
|
-
return [4,
|
|
5781
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5782
5782
|
case 1:
|
|
5783
5783
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5784
5784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5873,7 +5873,7 @@ var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, c
|
|
|
5873
5873
|
case 0:
|
|
5874
5874
|
_a = [__assign({}, output)];
|
|
5875
5875
|
_c = {};
|
|
5876
|
-
return [4,
|
|
5876
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5877
5877
|
case 1:
|
|
5878
5878
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5879
5879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5964,7 +5964,7 @@ var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (outpu
|
|
|
5964
5964
|
case 0:
|
|
5965
5965
|
_a = [__assign({}, output)];
|
|
5966
5966
|
_c = {};
|
|
5967
|
-
return [4,
|
|
5967
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5968
5968
|
case 1:
|
|
5969
5969
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5970
5970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6059,7 +6059,7 @@ var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output
|
|
|
6059
6059
|
case 0:
|
|
6060
6060
|
_a = [__assign({}, output)];
|
|
6061
6061
|
_c = {};
|
|
6062
|
-
return [4,
|
|
6062
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6063
6063
|
case 1:
|
|
6064
6064
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6065
6065
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6154,7 +6154,7 @@ var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (outp
|
|
|
6154
6154
|
case 0:
|
|
6155
6155
|
_a = [__assign({}, output)];
|
|
6156
6156
|
_c = {};
|
|
6157
|
-
return [4,
|
|
6157
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6158
6158
|
case 1:
|
|
6159
6159
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6160
6160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6241,7 +6241,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
6241
6241
|
case 0:
|
|
6242
6242
|
_a = [__assign({}, output)];
|
|
6243
6243
|
_c = {};
|
|
6244
|
-
return [4,
|
|
6244
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6245
6245
|
case 1:
|
|
6246
6246
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6247
6247
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6328,7 +6328,7 @@ var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function
|
|
|
6328
6328
|
case 0:
|
|
6329
6329
|
_a = [__assign({}, output)];
|
|
6330
6330
|
_c = {};
|
|
6331
|
-
return [4,
|
|
6331
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6332
6332
|
case 1:
|
|
6333
6333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6334
6334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6419,7 +6419,7 @@ var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (outp
|
|
|
6419
6419
|
case 0:
|
|
6420
6420
|
_a = [__assign({}, output)];
|
|
6421
6421
|
_c = {};
|
|
6422
|
-
return [4,
|
|
6422
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6423
6423
|
case 1:
|
|
6424
6424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6425
6425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6506,7 +6506,7 @@ var deserializeAws_restJson1LookupPolicyCommandError = function (output, context
|
|
|
6506
6506
|
case 0:
|
|
6507
6507
|
_a = [__assign({}, output)];
|
|
6508
6508
|
_c = {};
|
|
6509
|
-
return [4,
|
|
6509
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6510
6510
|
case 1:
|
|
6511
6511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6512
6512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6594,7 +6594,7 @@ var deserializeAws_restJson1PublishSchemaCommandError = function (output, contex
|
|
|
6594
6594
|
case 0:
|
|
6595
6595
|
_a = [__assign({}, output)];
|
|
6596
6596
|
_c = {};
|
|
6597
|
-
return [4,
|
|
6597
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6598
6598
|
case 1:
|
|
6599
6599
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6600
6600
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6678,7 +6678,7 @@ var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, co
|
|
|
6678
6678
|
case 0:
|
|
6679
6679
|
_a = [__assign({}, output)];
|
|
6680
6680
|
_c = {};
|
|
6681
|
-
return [4,
|
|
6681
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6682
6682
|
case 1:
|
|
6683
6683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6684
6684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6757,7 +6757,7 @@ var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output
|
|
|
6757
6757
|
case 0:
|
|
6758
6758
|
_a = [__assign({}, output)];
|
|
6759
6759
|
_c = {};
|
|
6760
|
-
return [4,
|
|
6760
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6761
6761
|
case 1:
|
|
6762
6762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6763
6763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6840,7 +6840,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
6840
6840
|
case 0:
|
|
6841
6841
|
_a = [__assign({}, output)];
|
|
6842
6842
|
_c = {};
|
|
6843
|
-
return [4,
|
|
6843
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6844
6844
|
case 1:
|
|
6845
6845
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6846
6846
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6919,7 +6919,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
6919
6919
|
case 0:
|
|
6920
6920
|
_a = [__assign({}, output)];
|
|
6921
6921
|
_c = {};
|
|
6922
|
-
return [4,
|
|
6922
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6923
6923
|
case 1:
|
|
6924
6924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6925
6925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6998,7 +6998,7 @@ var deserializeAws_restJson1UpdateFacetCommandError = function (output, context)
|
|
|
6998
6998
|
case 0:
|
|
6999
6999
|
_a = [__assign({}, output)];
|
|
7000
7000
|
_c = {};
|
|
7001
|
-
return [4,
|
|
7001
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7002
7002
|
case 1:
|
|
7003
7003
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7004
7004
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7089,7 +7089,7 @@ var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output,
|
|
|
7089
7089
|
case 0:
|
|
7090
7090
|
_a = [__assign({}, output)];
|
|
7091
7091
|
_c = {};
|
|
7092
|
-
return [4,
|
|
7092
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7093
7093
|
case 1:
|
|
7094
7094
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7095
7095
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7177,7 +7177,7 @@ var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (outpu
|
|
|
7177
7177
|
case 0:
|
|
7178
7178
|
_a = [__assign({}, output)];
|
|
7179
7179
|
_c = {};
|
|
7180
|
-
return [4,
|
|
7180
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7181
7181
|
case 1:
|
|
7182
7182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7183
7183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7269,7 +7269,7 @@ var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context
|
|
|
7269
7269
|
case 0:
|
|
7270
7270
|
_a = [__assign({}, output)];
|
|
7271
7271
|
_c = {};
|
|
7272
|
-
return [4,
|
|
7272
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7273
7273
|
case 1:
|
|
7274
7274
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7275
7275
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7344,7 +7344,7 @@ var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output,
|
|
|
7344
7344
|
case 0:
|
|
7345
7345
|
_a = [__assign({}, output)];
|
|
7346
7346
|
_c = {};
|
|
7347
|
-
return [4,
|
|
7347
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7348
7348
|
case 1:
|
|
7349
7349
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7350
7350
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7443,7 +7443,7 @@ var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output,
|
|
|
7443
7443
|
case 0:
|
|
7444
7444
|
_a = [__assign({}, output)];
|
|
7445
7445
|
_c = {};
|
|
7446
|
-
return [4,
|
|
7446
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7447
7447
|
case 1:
|
|
7448
7448
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7449
7449
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -7531,7 +7531,7 @@ var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (outpu
|
|
|
7531
7531
|
case 0:
|
|
7532
7532
|
_a = [__assign({}, output)];
|
|
7533
7533
|
_c = {};
|
|
7534
|
-
return [4,
|
|
7534
|
+
return [4, parseErrorBody(output.body, context)];
|
|
7535
7535
|
case 1:
|
|
7536
7536
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7537
7537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -9276,6 +9276,19 @@ var parseBody = function (streamBody, context) {
|
|
|
9276
9276
|
return {};
|
|
9277
9277
|
});
|
|
9278
9278
|
};
|
|
9279
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9280
|
+
var value;
|
|
9281
|
+
var _a;
|
|
9282
|
+
return __generator(this, function (_b) {
|
|
9283
|
+
switch (_b.label) {
|
|
9284
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
9285
|
+
case 1:
|
|
9286
|
+
value = _b.sent();
|
|
9287
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
9288
|
+
return [2, value];
|
|
9289
|
+
}
|
|
9290
|
+
});
|
|
9291
|
+
}); };
|
|
9279
9292
|
var loadRestJsonErrorCode = function (output, data) {
|
|
9280
9293
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
9281
9294
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-clouddirectory",
|
|
3
3
|
"description": "AWS SDK for JavaScript Clouddirectory 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",
|