@aws-sdk/client-glacier 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +39 -33
- package/dist-es/Glacier.js +134 -141
- package/dist-es/GlacierClient.js +23 -29
- package/dist-es/commands/AbortMultipartUploadCommand.js +22 -29
- package/dist-es/commands/AbortVaultLockCommand.js +22 -29
- package/dist-es/commands/AddTagsToVaultCommand.js +22 -29
- package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CompleteVaultLockCommand.js +22 -29
- package/dist-es/commands/CreateVaultCommand.js +21 -28
- package/dist-es/commands/DeleteArchiveCommand.js +22 -29
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteVaultCommand.js +22 -29
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/DescribeJobCommand.js +21 -28
- package/dist-es/commands/DescribeVaultCommand.js +21 -28
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +21 -28
- package/dist-es/commands/GetJobOutputCommand.js +21 -28
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +21 -28
- package/dist-es/commands/GetVaultLockCommand.js +21 -28
- package/dist-es/commands/GetVaultNotificationsCommand.js +21 -28
- package/dist-es/commands/InitiateJobCommand.js +21 -28
- package/dist-es/commands/InitiateMultipartUploadCommand.js +21 -28
- package/dist-es/commands/InitiateVaultLockCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
- package/dist-es/commands/ListPartsCommand.js +21 -28
- package/dist-es/commands/ListProvisionedCapacityCommand.js +21 -28
- package/dist-es/commands/ListTagsForVaultCommand.js +21 -28
- package/dist-es/commands/ListVaultsCommand.js +21 -28
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +21 -28
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +22 -29
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +22 -29
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/SetVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/UploadArchiveCommand.js +21 -28
- package/dist-es/commands/UploadMultipartPartCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GlacierServiceException.js +5 -10
- package/dist-es/models/models_0.js +326 -179
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListMultipartUploadsPaginator.js +25 -68
- package/dist-es/pagination/ListPartsPaginator.js +25 -68
- package/dist-es/pagination/ListVaultsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2457 -3388
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForVaultExists.js +23 -42
- package/dist-es/waiters/waitForVaultNotExists.js +23 -42
- package/package.json +37 -37
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-glacier
|
|
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-glacier
|
|
@@ -739,7 +739,7 @@ exports.deserializeAws_restJson1AbortMultipartUploadCommand = deserializeAws_res
|
|
|
739
739
|
const deserializeAws_restJson1AbortMultipartUploadCommandError = async (output, context) => {
|
|
740
740
|
const parsedOutput = {
|
|
741
741
|
...output,
|
|
742
|
-
body: await
|
|
742
|
+
body: await parseErrorBody(output.body, context),
|
|
743
743
|
};
|
|
744
744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
745
|
switch (errorCode) {
|
|
@@ -779,7 +779,7 @@ exports.deserializeAws_restJson1AbortVaultLockCommand = deserializeAws_restJson1
|
|
|
779
779
|
const deserializeAws_restJson1AbortVaultLockCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
|
-
body: await
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
783
|
};
|
|
784
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
switch (errorCode) {
|
|
@@ -819,7 +819,7 @@ exports.deserializeAws_restJson1AddTagsToVaultCommand = deserializeAws_restJson1
|
|
|
819
819
|
const deserializeAws_restJson1AddTagsToVaultCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_restJson1CompleteMultipartUploadCommand = deserializeAws_
|
|
|
865
865
|
const deserializeAws_restJson1CompleteMultipartUploadCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -905,7 +905,7 @@ exports.deserializeAws_restJson1CompleteVaultLockCommand = deserializeAws_restJs
|
|
|
905
905
|
const deserializeAws_restJson1CompleteVaultLockCommandError = async (output, context) => {
|
|
906
906
|
const parsedOutput = {
|
|
907
907
|
...output,
|
|
908
|
-
body: await
|
|
908
|
+
body: await parseErrorBody(output.body, context),
|
|
909
909
|
};
|
|
910
910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
911
|
switch (errorCode) {
|
|
@@ -946,7 +946,7 @@ exports.deserializeAws_restJson1CreateVaultCommand = deserializeAws_restJson1Cre
|
|
|
946
946
|
const deserializeAws_restJson1CreateVaultCommandError = async (output, context) => {
|
|
947
947
|
const parsedOutput = {
|
|
948
948
|
...output,
|
|
949
|
-
body: await
|
|
949
|
+
body: await parseErrorBody(output.body, context),
|
|
950
950
|
};
|
|
951
951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
952
|
switch (errorCode) {
|
|
@@ -986,7 +986,7 @@ exports.deserializeAws_restJson1DeleteArchiveCommand = deserializeAws_restJson1D
|
|
|
986
986
|
const deserializeAws_restJson1DeleteArchiveCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
|
-
body: await
|
|
989
|
+
body: await parseErrorBody(output.body, context),
|
|
990
990
|
};
|
|
991
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
switch (errorCode) {
|
|
@@ -1026,7 +1026,7 @@ exports.deserializeAws_restJson1DeleteVaultCommand = deserializeAws_restJson1Del
|
|
|
1026
1026
|
const deserializeAws_restJson1DeleteVaultCommandError = async (output, context) => {
|
|
1027
1027
|
const parsedOutput = {
|
|
1028
1028
|
...output,
|
|
1029
|
-
body: await
|
|
1029
|
+
body: await parseErrorBody(output.body, context),
|
|
1030
1030
|
};
|
|
1031
1031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1032
|
switch (errorCode) {
|
|
@@ -1066,7 +1066,7 @@ exports.deserializeAws_restJson1DeleteVaultAccessPolicyCommand = deserializeAws_
|
|
|
1066
1066
|
const deserializeAws_restJson1DeleteVaultAccessPolicyCommandError = async (output, context) => {
|
|
1067
1067
|
const parsedOutput = {
|
|
1068
1068
|
...output,
|
|
1069
|
-
body: await
|
|
1069
|
+
body: await parseErrorBody(output.body, context),
|
|
1070
1070
|
};
|
|
1071
1071
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
1072
|
switch (errorCode) {
|
|
@@ -1106,7 +1106,7 @@ exports.deserializeAws_restJson1DeleteVaultNotificationsCommand = deserializeAws
|
|
|
1106
1106
|
const deserializeAws_restJson1DeleteVaultNotificationsCommandError = async (output, context) => {
|
|
1107
1107
|
const parsedOutput = {
|
|
1108
1108
|
...output,
|
|
1109
|
-
body: await
|
|
1109
|
+
body: await parseErrorBody(output.body, context),
|
|
1110
1110
|
};
|
|
1111
1111
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
1112
|
switch (errorCode) {
|
|
@@ -1209,7 +1209,7 @@ exports.deserializeAws_restJson1DescribeJobCommand = deserializeAws_restJson1Des
|
|
|
1209
1209
|
const deserializeAws_restJson1DescribeJobCommandError = async (output, context) => {
|
|
1210
1210
|
const parsedOutput = {
|
|
1211
1211
|
...output,
|
|
1212
|
-
body: await
|
|
1212
|
+
body: await parseErrorBody(output.body, context),
|
|
1213
1213
|
};
|
|
1214
1214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
1215
|
switch (errorCode) {
|
|
@@ -1267,7 +1267,7 @@ exports.deserializeAws_restJson1DescribeVaultCommand = deserializeAws_restJson1D
|
|
|
1267
1267
|
const deserializeAws_restJson1DescribeVaultCommandError = async (output, context) => {
|
|
1268
1268
|
const parsedOutput = {
|
|
1269
1269
|
...output,
|
|
1270
|
-
body: await
|
|
1270
|
+
body: await parseErrorBody(output.body, context),
|
|
1271
1271
|
};
|
|
1272
1272
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
1273
|
switch (errorCode) {
|
|
@@ -1310,7 +1310,7 @@ exports.deserializeAws_restJson1GetDataRetrievalPolicyCommand = deserializeAws_r
|
|
|
1310
1310
|
const deserializeAws_restJson1GetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
1311
1311
|
const parsedOutput = {
|
|
1312
1312
|
...output,
|
|
1313
|
-
body: await
|
|
1313
|
+
body: await parseErrorBody(output.body, context),
|
|
1314
1314
|
};
|
|
1315
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1316
|
switch (errorCode) {
|
|
@@ -1356,7 +1356,7 @@ exports.deserializeAws_restJson1GetJobOutputCommand = deserializeAws_restJson1Ge
|
|
|
1356
1356
|
const deserializeAws_restJson1GetJobOutputCommandError = async (output, context) => {
|
|
1357
1357
|
const parsedOutput = {
|
|
1358
1358
|
...output,
|
|
1359
|
-
body: await
|
|
1359
|
+
body: await parseErrorBody(output.body, context),
|
|
1360
1360
|
};
|
|
1361
1361
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
1362
|
switch (errorCode) {
|
|
@@ -1397,7 +1397,7 @@ exports.deserializeAws_restJson1GetVaultAccessPolicyCommand = deserializeAws_res
|
|
|
1397
1397
|
const deserializeAws_restJson1GetVaultAccessPolicyCommandError = async (output, context) => {
|
|
1398
1398
|
const parsedOutput = {
|
|
1399
1399
|
...output,
|
|
1400
|
-
body: await
|
|
1400
|
+
body: await parseErrorBody(output.body, context),
|
|
1401
1401
|
};
|
|
1402
1402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1403
|
switch (errorCode) {
|
|
@@ -1449,7 +1449,7 @@ exports.deserializeAws_restJson1GetVaultLockCommand = deserializeAws_restJson1Ge
|
|
|
1449
1449
|
const deserializeAws_restJson1GetVaultLockCommandError = async (output, context) => {
|
|
1450
1450
|
const parsedOutput = {
|
|
1451
1451
|
...output,
|
|
1452
|
-
body: await
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
1453
|
};
|
|
1454
1454
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1455
|
switch (errorCode) {
|
|
@@ -1490,7 +1490,7 @@ exports.deserializeAws_restJson1GetVaultNotificationsCommand = deserializeAws_re
|
|
|
1490
1490
|
const deserializeAws_restJson1GetVaultNotificationsCommandError = async (output, context) => {
|
|
1491
1491
|
const parsedOutput = {
|
|
1492
1492
|
...output,
|
|
1493
|
-
body: await
|
|
1493
|
+
body: await parseErrorBody(output.body, context),
|
|
1494
1494
|
};
|
|
1495
1495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
1496
|
switch (errorCode) {
|
|
@@ -1533,7 +1533,7 @@ exports.deserializeAws_restJson1InitiateJobCommand = deserializeAws_restJson1Ini
|
|
|
1533
1533
|
const deserializeAws_restJson1InitiateJobCommandError = async (output, context) => {
|
|
1534
1534
|
const parsedOutput = {
|
|
1535
1535
|
...output,
|
|
1536
|
-
body: await
|
|
1536
|
+
body: await parseErrorBody(output.body, context),
|
|
1537
1537
|
};
|
|
1538
1538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1539
|
switch (errorCode) {
|
|
@@ -1581,7 +1581,7 @@ exports.deserializeAws_restJson1InitiateMultipartUploadCommand = deserializeAws_
|
|
|
1581
1581
|
const deserializeAws_restJson1InitiateMultipartUploadCommandError = async (output, context) => {
|
|
1582
1582
|
const parsedOutput = {
|
|
1583
1583
|
...output,
|
|
1584
|
-
body: await
|
|
1584
|
+
body: await parseErrorBody(output.body, context),
|
|
1585
1585
|
};
|
|
1586
1586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1587
|
switch (errorCode) {
|
|
@@ -1622,7 +1622,7 @@ exports.deserializeAws_restJson1InitiateVaultLockCommand = deserializeAws_restJs
|
|
|
1622
1622
|
const deserializeAws_restJson1InitiateVaultLockCommandError = async (output, context) => {
|
|
1623
1623
|
const parsedOutput = {
|
|
1624
1624
|
...output,
|
|
1625
|
-
body: await
|
|
1625
|
+
body: await parseErrorBody(output.body, context),
|
|
1626
1626
|
};
|
|
1627
1627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
1628
|
switch (errorCode) {
|
|
@@ -1668,7 +1668,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
1668
1668
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
1669
1669
|
const parsedOutput = {
|
|
1670
1670
|
...output,
|
|
1671
|
-
body: await
|
|
1671
|
+
body: await parseErrorBody(output.body, context),
|
|
1672
1672
|
};
|
|
1673
1673
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1674
|
switch (errorCode) {
|
|
@@ -1714,7 +1714,7 @@ exports.deserializeAws_restJson1ListMultipartUploadsCommand = deserializeAws_res
|
|
|
1714
1714
|
const deserializeAws_restJson1ListMultipartUploadsCommandError = async (output, context) => {
|
|
1715
1715
|
const parsedOutput = {
|
|
1716
1716
|
...output,
|
|
1717
|
-
body: await
|
|
1717
|
+
body: await parseErrorBody(output.body, context),
|
|
1718
1718
|
};
|
|
1719
1719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1720
|
switch (errorCode) {
|
|
@@ -1775,7 +1775,7 @@ exports.deserializeAws_restJson1ListPartsCommand = deserializeAws_restJson1ListP
|
|
|
1775
1775
|
const deserializeAws_restJson1ListPartsCommandError = async (output, context) => {
|
|
1776
1776
|
const parsedOutput = {
|
|
1777
1777
|
...output,
|
|
1778
|
-
body: await
|
|
1778
|
+
body: await parseErrorBody(output.body, context),
|
|
1779
1779
|
};
|
|
1780
1780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
1781
|
switch (errorCode) {
|
|
@@ -1818,7 +1818,7 @@ exports.deserializeAws_restJson1ListProvisionedCapacityCommand = deserializeAws_
|
|
|
1818
1818
|
const deserializeAws_restJson1ListProvisionedCapacityCommandError = async (output, context) => {
|
|
1819
1819
|
const parsedOutput = {
|
|
1820
1820
|
...output,
|
|
1821
|
-
body: await
|
|
1821
|
+
body: await parseErrorBody(output.body, context),
|
|
1822
1822
|
};
|
|
1823
1823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
1824
|
switch (errorCode) {
|
|
@@ -1858,7 +1858,7 @@ exports.deserializeAws_restJson1ListTagsForVaultCommand = deserializeAws_restJso
|
|
|
1858
1858
|
const deserializeAws_restJson1ListTagsForVaultCommandError = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
|
-
body: await
|
|
1861
|
+
body: await parseErrorBody(output.body, context),
|
|
1862
1862
|
};
|
|
1863
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
1864
|
switch (errorCode) {
|
|
@@ -1904,7 +1904,7 @@ exports.deserializeAws_restJson1ListVaultsCommand = deserializeAws_restJson1List
|
|
|
1904
1904
|
const deserializeAws_restJson1ListVaultsCommandError = async (output, context) => {
|
|
1905
1905
|
const parsedOutput = {
|
|
1906
1906
|
...output,
|
|
1907
|
-
body: await
|
|
1907
|
+
body: await parseErrorBody(output.body, context),
|
|
1908
1908
|
};
|
|
1909
1909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1910
|
switch (errorCode) {
|
|
@@ -1945,7 +1945,7 @@ exports.deserializeAws_restJson1PurchaseProvisionedCapacityCommand = deserialize
|
|
|
1945
1945
|
const deserializeAws_restJson1PurchaseProvisionedCapacityCommandError = async (output, context) => {
|
|
1946
1946
|
const parsedOutput = {
|
|
1947
1947
|
...output,
|
|
1948
|
-
body: await
|
|
1948
|
+
body: await parseErrorBody(output.body, context),
|
|
1949
1949
|
};
|
|
1950
1950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1951
|
switch (errorCode) {
|
|
@@ -1985,7 +1985,7 @@ exports.deserializeAws_restJson1RemoveTagsFromVaultCommand = deserializeAws_rest
|
|
|
1985
1985
|
const deserializeAws_restJson1RemoveTagsFromVaultCommandError = async (output, context) => {
|
|
1986
1986
|
const parsedOutput = {
|
|
1987
1987
|
...output,
|
|
1988
|
-
body: await
|
|
1988
|
+
body: await parseErrorBody(output.body, context),
|
|
1989
1989
|
};
|
|
1990
1990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
1991
|
switch (errorCode) {
|
|
@@ -2025,7 +2025,7 @@ exports.deserializeAws_restJson1SetDataRetrievalPolicyCommand = deserializeAws_r
|
|
|
2025
2025
|
const deserializeAws_restJson1SetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
2026
2026
|
const parsedOutput = {
|
|
2027
2027
|
...output,
|
|
2028
|
-
body: await
|
|
2028
|
+
body: await parseErrorBody(output.body, context),
|
|
2029
2029
|
};
|
|
2030
2030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
2031
|
switch (errorCode) {
|
|
@@ -2062,7 +2062,7 @@ exports.deserializeAws_restJson1SetVaultAccessPolicyCommand = deserializeAws_res
|
|
|
2062
2062
|
const deserializeAws_restJson1SetVaultAccessPolicyCommandError = async (output, context) => {
|
|
2063
2063
|
const parsedOutput = {
|
|
2064
2064
|
...output,
|
|
2065
|
-
body: await
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
2066
|
};
|
|
2067
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
2068
|
switch (errorCode) {
|
|
@@ -2102,7 +2102,7 @@ exports.deserializeAws_restJson1SetVaultNotificationsCommand = deserializeAws_re
|
|
|
2102
2102
|
const deserializeAws_restJson1SetVaultNotificationsCommandError = async (output, context) => {
|
|
2103
2103
|
const parsedOutput = {
|
|
2104
2104
|
...output,
|
|
2105
|
-
body: await
|
|
2105
|
+
body: await parseErrorBody(output.body, context),
|
|
2106
2106
|
};
|
|
2107
2107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
2108
|
switch (errorCode) {
|
|
@@ -2145,7 +2145,7 @@ exports.deserializeAws_restJson1UploadArchiveCommand = deserializeAws_restJson1U
|
|
|
2145
2145
|
const deserializeAws_restJson1UploadArchiveCommandError = async (output, context) => {
|
|
2146
2146
|
const parsedOutput = {
|
|
2147
2147
|
...output,
|
|
2148
|
-
body: await
|
|
2148
|
+
body: await parseErrorBody(output.body, context),
|
|
2149
2149
|
};
|
|
2150
2150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2151
|
switch (errorCode) {
|
|
@@ -2189,7 +2189,7 @@ exports.deserializeAws_restJson1UploadMultipartPartCommand = deserializeAws_rest
|
|
|
2189
2189
|
const deserializeAws_restJson1UploadMultipartPartCommandError = async (output, context) => {
|
|
2190
2190
|
const parsedOutput = {
|
|
2191
2191
|
...output,
|
|
2192
|
-
body: await
|
|
2192
|
+
body: await parseErrorBody(output.body, context),
|
|
2193
2193
|
};
|
|
2194
2194
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
2195
|
switch (errorCode) {
|
|
@@ -2863,6 +2863,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2863
2863
|
}
|
|
2864
2864
|
return {};
|
|
2865
2865
|
});
|
|
2866
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2867
|
+
var _a;
|
|
2868
|
+
const value = await parseBody(errorBody, context);
|
|
2869
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2870
|
+
return value;
|
|
2871
|
+
};
|
|
2866
2872
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2867
2873
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2868
2874
|
const sanitizeErrorCode = (rawValue) => {
|