@aws-sdk/client-redshift-serverless 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +43 -37
- package/dist-es/RedshiftServerless.js +150 -157
- package/dist-es/RedshiftServerlessClient.js +22 -28
- package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateEndpointAccessCommand.js +21 -28
- package/dist-es/commands/CreateNamespaceCommand.js +21 -28
- package/dist-es/commands/CreateSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateUsageLimitCommand.js +21 -28
- package/dist-es/commands/CreateWorkgroupCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointAccessCommand.js +21 -28
- package/dist-es/commands/DeleteNamespaceCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
- package/dist-es/commands/DeleteUsageLimitCommand.js +21 -28
- package/dist-es/commands/DeleteWorkgroupCommand.js +21 -28
- package/dist-es/commands/GetCredentialsCommand.js +21 -28
- package/dist-es/commands/GetEndpointAccessCommand.js +21 -28
- package/dist-es/commands/GetNamespaceCommand.js +21 -28
- package/dist-es/commands/GetRecoveryPointCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/GetSnapshotCommand.js +21 -28
- package/dist-es/commands/GetUsageLimitCommand.js +21 -28
- package/dist-es/commands/GetWorkgroupCommand.js +21 -28
- package/dist-es/commands/ListEndpointAccessCommand.js +21 -28
- package/dist-es/commands/ListNamespacesCommand.js +21 -28
- package/dist-es/commands/ListRecoveryPointsCommand.js +21 -28
- package/dist-es/commands/ListSnapshotsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUsageLimitsCommand.js +21 -28
- package/dist-es/commands/ListWorkgroupsCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/RestoreFromRecoveryPointCommand.js +21 -28
- package/dist-es/commands/RestoreFromSnapshotCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointAccessCommand.js +21 -28
- package/dist-es/commands/UpdateNamespaceCommand.js +21 -28
- package/dist-es/commands/UpdateSnapshotCommand.js +21 -28
- package/dist-es/commands/UpdateUsageLimitCommand.js +21 -28
- package/dist-es/commands/UpdateWorkgroupCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RedshiftServerlessServiceException.js +5 -10
- package/dist-es/models/models_0.js +392 -205
- package/dist-es/pagination/ListEndpointAccessPaginator.js +25 -68
- package/dist-es/pagination/ListNamespacesPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryPointsPaginator.js +25 -68
- package/dist-es/pagination/ListSnapshotsPaginator.js +25 -68
- package/dist-es/pagination/ListUsageLimitsPaginator.js +25 -68
- package/dist-es/pagination/ListWorkgroupsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2414 -3120
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-redshift-serverless
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-redshift-serverless
|
|
@@ -393,7 +393,7 @@ exports.deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = deserializ
|
|
|
393
393
|
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (output, context) => {
|
|
394
394
|
const parsedOutput = {
|
|
395
395
|
...output,
|
|
396
|
-
body: await
|
|
396
|
+
body: await parseErrorBody(output.body, context),
|
|
397
397
|
};
|
|
398
398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
399
|
switch (errorCode) {
|
|
@@ -439,7 +439,7 @@ exports.deserializeAws_json1_1CreateEndpointAccessCommand = deserializeAws_json1
|
|
|
439
439
|
const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
|
-
body: await
|
|
442
|
+
body: await parseErrorBody(output.body, context),
|
|
443
443
|
};
|
|
444
444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
445
445
|
switch (errorCode) {
|
|
@@ -488,7 +488,7 @@ exports.deserializeAws_json1_1CreateNamespaceCommand = deserializeAws_json1_1Cre
|
|
|
488
488
|
const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context) => {
|
|
489
489
|
const parsedOutput = {
|
|
490
490
|
...output,
|
|
491
|
-
body: await
|
|
491
|
+
body: await parseErrorBody(output.body, context),
|
|
492
492
|
};
|
|
493
493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
494
|
switch (errorCode) {
|
|
@@ -531,7 +531,7 @@ exports.deserializeAws_json1_1CreateSnapshotCommand = deserializeAws_json1_1Crea
|
|
|
531
531
|
const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
|
-
body: await
|
|
534
|
+
body: await parseErrorBody(output.body, context),
|
|
535
535
|
};
|
|
536
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
537
|
switch (errorCode) {
|
|
@@ -577,7 +577,7 @@ exports.deserializeAws_json1_1CreateUsageLimitCommand = deserializeAws_json1_1Cr
|
|
|
577
577
|
const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, context) => {
|
|
578
578
|
const parsedOutput = {
|
|
579
579
|
...output,
|
|
580
|
-
body: await
|
|
580
|
+
body: await parseErrorBody(output.body, context),
|
|
581
581
|
};
|
|
582
582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
583
|
switch (errorCode) {
|
|
@@ -623,7 +623,7 @@ exports.deserializeAws_json1_1CreateWorkgroupCommand = deserializeAws_json1_1Cre
|
|
|
623
623
|
const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context) => {
|
|
624
624
|
const parsedOutput = {
|
|
625
625
|
...output,
|
|
626
|
-
body: await
|
|
626
|
+
body: await parseErrorBody(output.body, context),
|
|
627
627
|
};
|
|
628
628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
629
|
switch (errorCode) {
|
|
@@ -672,7 +672,7 @@ exports.deserializeAws_json1_1DeleteEndpointAccessCommand = deserializeAws_json1
|
|
|
672
672
|
const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
|
-
body: await
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
676
|
};
|
|
677
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
switch (errorCode) {
|
|
@@ -715,7 +715,7 @@ exports.deserializeAws_json1_1DeleteNamespaceCommand = deserializeAws_json1_1Del
|
|
|
715
715
|
const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context) => {
|
|
716
716
|
const parsedOutput = {
|
|
717
717
|
...output,
|
|
718
|
-
body: await
|
|
718
|
+
body: await parseErrorBody(output.body, context),
|
|
719
719
|
};
|
|
720
720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
721
|
switch (errorCode) {
|
|
@@ -758,7 +758,7 @@ exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1
|
|
|
758
758
|
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
759
759
|
const parsedOutput = {
|
|
760
760
|
...output,
|
|
761
|
-
body: await
|
|
761
|
+
body: await parseErrorBody(output.body, context),
|
|
762
762
|
};
|
|
763
763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
764
|
switch (errorCode) {
|
|
@@ -798,7 +798,7 @@ exports.deserializeAws_json1_1DeleteSnapshotCommand = deserializeAws_json1_1Dele
|
|
|
798
798
|
const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context) => {
|
|
799
799
|
const parsedOutput = {
|
|
800
800
|
...output,
|
|
801
|
-
body: await
|
|
801
|
+
body: await parseErrorBody(output.body, context),
|
|
802
802
|
};
|
|
803
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
804
|
switch (errorCode) {
|
|
@@ -841,7 +841,7 @@ exports.deserializeAws_json1_1DeleteUsageLimitCommand = deserializeAws_json1_1De
|
|
|
841
841
|
const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, context) => {
|
|
842
842
|
const parsedOutput = {
|
|
843
843
|
...output,
|
|
844
|
-
body: await
|
|
844
|
+
body: await parseErrorBody(output.body, context),
|
|
845
845
|
};
|
|
846
846
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
847
|
switch (errorCode) {
|
|
@@ -884,7 +884,7 @@ exports.deserializeAws_json1_1DeleteWorkgroupCommand = deserializeAws_json1_1Del
|
|
|
884
884
|
const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context) => {
|
|
885
885
|
const parsedOutput = {
|
|
886
886
|
...output,
|
|
887
|
-
body: await
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
888
|
};
|
|
889
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
890
|
switch (errorCode) {
|
|
@@ -927,7 +927,7 @@ exports.deserializeAws_json1_1GetCredentialsCommand = deserializeAws_json1_1GetC
|
|
|
927
927
|
const deserializeAws_json1_1GetCredentialsCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
|
-
body: await
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
931
|
};
|
|
932
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
933
|
switch (errorCode) {
|
|
@@ -967,7 +967,7 @@ exports.deserializeAws_json1_1GetEndpointAccessCommand = deserializeAws_json1_1G
|
|
|
967
967
|
const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, context) => {
|
|
968
968
|
const parsedOutput = {
|
|
969
969
|
...output,
|
|
970
|
-
body: await
|
|
970
|
+
body: await parseErrorBody(output.body, context),
|
|
971
971
|
};
|
|
972
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
973
|
switch (errorCode) {
|
|
@@ -1010,7 +1010,7 @@ exports.deserializeAws_json1_1GetNamespaceCommand = deserializeAws_json1_1GetNam
|
|
|
1010
1010
|
const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) => {
|
|
1011
1011
|
const parsedOutput = {
|
|
1012
1012
|
...output,
|
|
1013
|
-
body: await
|
|
1013
|
+
body: await parseErrorBody(output.body, context),
|
|
1014
1014
|
};
|
|
1015
1015
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
1016
|
switch (errorCode) {
|
|
@@ -1050,7 +1050,7 @@ exports.deserializeAws_json1_1GetRecoveryPointCommand = deserializeAws_json1_1Ge
|
|
|
1050
1050
|
const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, context) => {
|
|
1051
1051
|
const parsedOutput = {
|
|
1052
1052
|
...output,
|
|
1053
|
-
body: await
|
|
1053
|
+
body: await parseErrorBody(output.body, context),
|
|
1054
1054
|
};
|
|
1055
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
1056
|
switch (errorCode) {
|
|
@@ -1093,7 +1093,7 @@ exports.deserializeAws_json1_1GetResourcePolicyCommand = deserializeAws_json1_1G
|
|
|
1093
1093
|
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
1094
1094
|
const parsedOutput = {
|
|
1095
1095
|
...output,
|
|
1096
|
-
body: await
|
|
1096
|
+
body: await parseErrorBody(output.body, context),
|
|
1097
1097
|
};
|
|
1098
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1099
|
switch (errorCode) {
|
|
@@ -1133,7 +1133,7 @@ exports.deserializeAws_json1_1GetSnapshotCommand = deserializeAws_json1_1GetSnap
|
|
|
1133
1133
|
const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) => {
|
|
1134
1134
|
const parsedOutput = {
|
|
1135
1135
|
...output,
|
|
1136
|
-
body: await
|
|
1136
|
+
body: await parseErrorBody(output.body, context),
|
|
1137
1137
|
};
|
|
1138
1138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1139
|
switch (errorCode) {
|
|
@@ -1173,7 +1173,7 @@ exports.deserializeAws_json1_1GetUsageLimitCommand = deserializeAws_json1_1GetUs
|
|
|
1173
1173
|
const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context) => {
|
|
1174
1174
|
const parsedOutput = {
|
|
1175
1175
|
...output,
|
|
1176
|
-
body: await
|
|
1176
|
+
body: await parseErrorBody(output.body, context),
|
|
1177
1177
|
};
|
|
1178
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1179
|
switch (errorCode) {
|
|
@@ -1216,7 +1216,7 @@ exports.deserializeAws_json1_1GetWorkgroupCommand = deserializeAws_json1_1GetWor
|
|
|
1216
1216
|
const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) => {
|
|
1217
1217
|
const parsedOutput = {
|
|
1218
1218
|
...output,
|
|
1219
|
-
body: await
|
|
1219
|
+
body: await parseErrorBody(output.body, context),
|
|
1220
1220
|
};
|
|
1221
1221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1222
|
switch (errorCode) {
|
|
@@ -1256,7 +1256,7 @@ exports.deserializeAws_json1_1ListEndpointAccessCommand = deserializeAws_json1_1
|
|
|
1256
1256
|
const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, context) => {
|
|
1257
1257
|
const parsedOutput = {
|
|
1258
1258
|
...output,
|
|
1259
|
-
body: await
|
|
1259
|
+
body: await parseErrorBody(output.body, context),
|
|
1260
1260
|
};
|
|
1261
1261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
1262
|
switch (errorCode) {
|
|
@@ -1299,7 +1299,7 @@ exports.deserializeAws_json1_1ListNamespacesCommand = deserializeAws_json1_1List
|
|
|
1299
1299
|
const deserializeAws_json1_1ListNamespacesCommandError = async (output, context) => {
|
|
1300
1300
|
const parsedOutput = {
|
|
1301
1301
|
...output,
|
|
1302
|
-
body: await
|
|
1302
|
+
body: await parseErrorBody(output.body, context),
|
|
1303
1303
|
};
|
|
1304
1304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1305
|
switch (errorCode) {
|
|
@@ -1336,7 +1336,7 @@ exports.deserializeAws_json1_1ListRecoveryPointsCommand = deserializeAws_json1_1
|
|
|
1336
1336
|
const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, context) => {
|
|
1337
1337
|
const parsedOutput = {
|
|
1338
1338
|
...output,
|
|
1339
|
-
body: await
|
|
1339
|
+
body: await parseErrorBody(output.body, context),
|
|
1340
1340
|
};
|
|
1341
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
1342
|
switch (errorCode) {
|
|
@@ -1373,7 +1373,7 @@ exports.deserializeAws_json1_1ListSnapshotsCommand = deserializeAws_json1_1ListS
|
|
|
1373
1373
|
const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context) => {
|
|
1374
1374
|
const parsedOutput = {
|
|
1375
1375
|
...output,
|
|
1376
|
-
body: await
|
|
1376
|
+
body: await parseErrorBody(output.body, context),
|
|
1377
1377
|
};
|
|
1378
1378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1379
|
switch (errorCode) {
|
|
@@ -1413,7 +1413,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1413
1413
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1414
1414
|
const parsedOutput = {
|
|
1415
1415
|
...output,
|
|
1416
|
-
body: await
|
|
1416
|
+
body: await parseErrorBody(output.body, context),
|
|
1417
1417
|
};
|
|
1418
1418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
1419
|
switch (errorCode) {
|
|
@@ -1456,7 +1456,7 @@ exports.deserializeAws_json1_1ListUsageLimitsCommand = deserializeAws_json1_1Lis
|
|
|
1456
1456
|
const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context) => {
|
|
1457
1457
|
const parsedOutput = {
|
|
1458
1458
|
...output,
|
|
1459
|
-
body: await
|
|
1459
|
+
body: await parseErrorBody(output.body, context),
|
|
1460
1460
|
};
|
|
1461
1461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1462
|
switch (errorCode) {
|
|
@@ -1502,7 +1502,7 @@ exports.deserializeAws_json1_1ListWorkgroupsCommand = deserializeAws_json1_1List
|
|
|
1502
1502
|
const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context) => {
|
|
1503
1503
|
const parsedOutput = {
|
|
1504
1504
|
...output,
|
|
1505
|
-
body: await
|
|
1505
|
+
body: await parseErrorBody(output.body, context),
|
|
1506
1506
|
};
|
|
1507
1507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
1508
|
switch (errorCode) {
|
|
@@ -1539,7 +1539,7 @@ exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1P
|
|
|
1539
1539
|
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
1540
1540
|
const parsedOutput = {
|
|
1541
1541
|
...output,
|
|
1542
|
-
body: await
|
|
1542
|
+
body: await parseErrorBody(output.body, context),
|
|
1543
1543
|
};
|
|
1544
1544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
1545
|
switch (errorCode) {
|
|
@@ -1585,7 +1585,7 @@ exports.deserializeAws_json1_1RestoreFromRecoveryPointCommand = deserializeAws_j
|
|
|
1585
1585
|
const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output, context) => {
|
|
1586
1586
|
const parsedOutput = {
|
|
1587
1587
|
...output,
|
|
1588
|
-
body: await
|
|
1588
|
+
body: await parseErrorBody(output.body, context),
|
|
1589
1589
|
};
|
|
1590
1590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1591
|
switch (errorCode) {
|
|
@@ -1628,7 +1628,7 @@ exports.deserializeAws_json1_1RestoreFromSnapshotCommand = deserializeAws_json1_
|
|
|
1628
1628
|
const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, context) => {
|
|
1629
1629
|
const parsedOutput = {
|
|
1630
1630
|
...output,
|
|
1631
|
-
body: await
|
|
1631
|
+
body: await parseErrorBody(output.body, context),
|
|
1632
1632
|
};
|
|
1633
1633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
1634
|
switch (errorCode) {
|
|
@@ -1674,7 +1674,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1674
1674
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1675
1675
|
const parsedOutput = {
|
|
1676
1676
|
...output,
|
|
1677
|
-
body: await
|
|
1677
|
+
body: await parseErrorBody(output.body, context),
|
|
1678
1678
|
};
|
|
1679
1679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
1680
|
switch (errorCode) {
|
|
@@ -1720,7 +1720,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1720
1720
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1721
1721
|
const parsedOutput = {
|
|
1722
1722
|
...output,
|
|
1723
|
-
body: await
|
|
1723
|
+
body: await parseErrorBody(output.body, context),
|
|
1724
1724
|
};
|
|
1725
1725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1726
|
switch (errorCode) {
|
|
@@ -1763,7 +1763,7 @@ exports.deserializeAws_json1_1UpdateEndpointAccessCommand = deserializeAws_json1
|
|
|
1763
1763
|
const deserializeAws_json1_1UpdateEndpointAccessCommandError = 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) {
|
|
@@ -1809,7 +1809,7 @@ exports.deserializeAws_json1_1UpdateNamespaceCommand = deserializeAws_json1_1Upd
|
|
|
1809
1809
|
const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context) => {
|
|
1810
1810
|
const parsedOutput = {
|
|
1811
1811
|
...output,
|
|
1812
|
-
body: await
|
|
1812
|
+
body: await parseErrorBody(output.body, context),
|
|
1813
1813
|
};
|
|
1814
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1815
|
switch (errorCode) {
|
|
@@ -1852,7 +1852,7 @@ exports.deserializeAws_json1_1UpdateSnapshotCommand = deserializeAws_json1_1Upda
|
|
|
1852
1852
|
const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context) => {
|
|
1853
1853
|
const parsedOutput = {
|
|
1854
1854
|
...output,
|
|
1855
|
-
body: await
|
|
1855
|
+
body: await parseErrorBody(output.body, context),
|
|
1856
1856
|
};
|
|
1857
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1858
|
switch (errorCode) {
|
|
@@ -1895,7 +1895,7 @@ exports.deserializeAws_json1_1UpdateUsageLimitCommand = deserializeAws_json1_1Up
|
|
|
1895
1895
|
const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, context) => {
|
|
1896
1896
|
const parsedOutput = {
|
|
1897
1897
|
...output,
|
|
1898
|
-
body: await
|
|
1898
|
+
body: await parseErrorBody(output.body, context),
|
|
1899
1899
|
};
|
|
1900
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
1901
|
switch (errorCode) {
|
|
@@ -1938,7 +1938,7 @@ exports.deserializeAws_json1_1UpdateWorkgroupCommand = deserializeAws_json1_1Upd
|
|
|
1938
1938
|
const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context) => {
|
|
1939
1939
|
const parsedOutput = {
|
|
1940
1940
|
...output,
|
|
1941
|
-
body: await
|
|
1941
|
+
body: await parseErrorBody(output.body, context),
|
|
1942
1942
|
};
|
|
1943
1943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
1944
|
switch (errorCode) {
|
|
@@ -3021,6 +3021,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3021
3021
|
}
|
|
3022
3022
|
return {};
|
|
3023
3023
|
});
|
|
3024
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3025
|
+
var _a;
|
|
3026
|
+
const value = await parseBody(errorBody, context);
|
|
3027
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3028
|
+
return value;
|
|
3029
|
+
};
|
|
3024
3030
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3025
3031
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3026
3032
|
const sanitizeErrorCode = (rawValue) => {
|