@aws-sdk/client-mediapackage-vod 3.179.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +23 -17
- package/dist-es/protocols/Aws_restJson1.js +30 -17
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
|
|
@@ -393,7 +393,7 @@ exports.deserializeAws_restJson1ConfigureLogsCommand = deserializeAws_restJson1C
|
|
|
393
393
|
const deserializeAws_restJson1ConfigureLogsCommandError = 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) {
|
|
@@ -466,7 +466,7 @@ exports.deserializeAws_restJson1CreateAssetCommand = deserializeAws_restJson1Cre
|
|
|
466
466
|
const deserializeAws_restJson1CreateAssetCommandError = async (output, context) => {
|
|
467
467
|
const parsedOutput = {
|
|
468
468
|
...output,
|
|
469
|
-
body: await
|
|
469
|
+
body: await parseErrorBody(output.body, context),
|
|
470
470
|
};
|
|
471
471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
472
|
switch (errorCode) {
|
|
@@ -536,7 +536,7 @@ exports.deserializeAws_restJson1CreatePackagingConfigurationCommand = deserializ
|
|
|
536
536
|
const deserializeAws_restJson1CreatePackagingConfigurationCommandError = async (output, context) => {
|
|
537
537
|
const parsedOutput = {
|
|
538
538
|
...output,
|
|
539
|
-
body: await
|
|
539
|
+
body: await parseErrorBody(output.body, context),
|
|
540
540
|
};
|
|
541
541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
542
|
switch (errorCode) {
|
|
@@ -600,7 +600,7 @@ exports.deserializeAws_restJson1CreatePackagingGroupCommand = deserializeAws_res
|
|
|
600
600
|
const deserializeAws_restJson1CreatePackagingGroupCommandError = async (output, context) => {
|
|
601
601
|
const parsedOutput = {
|
|
602
602
|
...output,
|
|
603
|
-
body: await
|
|
603
|
+
body: await parseErrorBody(output.body, context),
|
|
604
604
|
};
|
|
605
605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
606
|
switch (errorCode) {
|
|
@@ -646,7 +646,7 @@ exports.deserializeAws_restJson1DeleteAssetCommand = deserializeAws_restJson1Del
|
|
|
646
646
|
const deserializeAws_restJson1DeleteAssetCommandError = async (output, context) => {
|
|
647
647
|
const parsedOutput = {
|
|
648
648
|
...output,
|
|
649
|
-
body: await
|
|
649
|
+
body: await parseErrorBody(output.body, context),
|
|
650
650
|
};
|
|
651
651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
652
|
switch (errorCode) {
|
|
@@ -692,7 +692,7 @@ exports.deserializeAws_restJson1DeletePackagingConfigurationCommand = deserializ
|
|
|
692
692
|
const deserializeAws_restJson1DeletePackagingConfigurationCommandError = async (output, context) => {
|
|
693
693
|
const parsedOutput = {
|
|
694
694
|
...output,
|
|
695
|
-
body: await
|
|
695
|
+
body: await parseErrorBody(output.body, context),
|
|
696
696
|
};
|
|
697
697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
698
|
switch (errorCode) {
|
|
@@ -738,7 +738,7 @@ exports.deserializeAws_restJson1DeletePackagingGroupCommand = deserializeAws_res
|
|
|
738
738
|
const deserializeAws_restJson1DeletePackagingGroupCommandError = async (output, context) => {
|
|
739
739
|
const parsedOutput = {
|
|
740
740
|
...output,
|
|
741
|
-
body: await
|
|
741
|
+
body: await parseErrorBody(output.body, context),
|
|
742
742
|
};
|
|
743
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
switch (errorCode) {
|
|
@@ -811,7 +811,7 @@ exports.deserializeAws_restJson1DescribeAssetCommand = deserializeAws_restJson1D
|
|
|
811
811
|
const deserializeAws_restJson1DescribeAssetCommandError = async (output, context) => {
|
|
812
812
|
const parsedOutput = {
|
|
813
813
|
...output,
|
|
814
|
-
body: await
|
|
814
|
+
body: await parseErrorBody(output.body, context),
|
|
815
815
|
};
|
|
816
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
817
|
switch (errorCode) {
|
|
@@ -881,7 +881,7 @@ exports.deserializeAws_restJson1DescribePackagingConfigurationCommand = deserial
|
|
|
881
881
|
const deserializeAws_restJson1DescribePackagingConfigurationCommandError = async (output, context) => {
|
|
882
882
|
const parsedOutput = {
|
|
883
883
|
...output,
|
|
884
|
-
body: await
|
|
884
|
+
body: await parseErrorBody(output.body, context),
|
|
885
885
|
};
|
|
886
886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
887
|
switch (errorCode) {
|
|
@@ -945,7 +945,7 @@ exports.deserializeAws_restJson1DescribePackagingGroupCommand = deserializeAws_r
|
|
|
945
945
|
const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output, context) => {
|
|
946
946
|
const parsedOutput = {
|
|
947
947
|
...output,
|
|
948
|
-
body: await
|
|
948
|
+
body: await parseErrorBody(output.body, context),
|
|
949
949
|
};
|
|
950
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
951
|
switch (errorCode) {
|
|
@@ -997,7 +997,7 @@ exports.deserializeAws_restJson1ListAssetsCommand = deserializeAws_restJson1List
|
|
|
997
997
|
const deserializeAws_restJson1ListAssetsCommandError = async (output, context) => {
|
|
998
998
|
const parsedOutput = {
|
|
999
999
|
...output,
|
|
1000
|
-
body: await
|
|
1000
|
+
body: await parseErrorBody(output.body, context),
|
|
1001
1001
|
};
|
|
1002
1002
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
1003
|
switch (errorCode) {
|
|
@@ -1049,7 +1049,7 @@ exports.deserializeAws_restJson1ListPackagingConfigurationsCommand = deserialize
|
|
|
1049
1049
|
const deserializeAws_restJson1ListPackagingConfigurationsCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
|
-
body: await
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
1053
|
};
|
|
1054
1054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1055
|
switch (errorCode) {
|
|
@@ -1101,7 +1101,7 @@ exports.deserializeAws_restJson1ListPackagingGroupsCommand = deserializeAws_rest
|
|
|
1101
1101
|
const deserializeAws_restJson1ListPackagingGroupsCommandError = async (output, context) => {
|
|
1102
1102
|
const parsedOutput = {
|
|
1103
1103
|
...output,
|
|
1104
|
-
body: await
|
|
1104
|
+
body: await parseErrorBody(output.body, context),
|
|
1105
1105
|
};
|
|
1106
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1107
|
switch (errorCode) {
|
|
@@ -1150,7 +1150,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1150
1150
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1151
1151
|
const parsedOutput = {
|
|
1152
1152
|
...output,
|
|
1153
|
-
body: await
|
|
1153
|
+
body: await parseErrorBody(output.body, context),
|
|
1154
1154
|
};
|
|
1155
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1156
|
const parsedBody = parsedOutput.body;
|
|
@@ -1175,7 +1175,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1175
1175
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1176
1176
|
const parsedOutput = {
|
|
1177
1177
|
...output,
|
|
1178
|
-
body: await
|
|
1178
|
+
body: await parseErrorBody(output.body, context),
|
|
1179
1179
|
};
|
|
1180
1180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
1181
|
const parsedBody = parsedOutput.body;
|
|
@@ -1200,7 +1200,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1200
1200
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1201
1201
|
const parsedOutput = {
|
|
1202
1202
|
...output,
|
|
1203
|
-
body: await
|
|
1203
|
+
body: await parseErrorBody(output.body, context),
|
|
1204
1204
|
};
|
|
1205
1205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1206
|
const parsedBody = parsedOutput.body;
|
|
@@ -1243,7 +1243,7 @@ exports.deserializeAws_restJson1UpdatePackagingGroupCommand = deserializeAws_res
|
|
|
1243
1243
|
const deserializeAws_restJson1UpdatePackagingGroupCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
|
-
body: await
|
|
1246
|
+
body: await parseErrorBody(output.body, context),
|
|
1247
1247
|
};
|
|
1248
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1249
|
switch (errorCode) {
|
|
@@ -1870,6 +1870,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1870
1870
|
}
|
|
1871
1871
|
return {};
|
|
1872
1872
|
});
|
|
1873
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1874
|
+
var _a;
|
|
1875
|
+
const value = await parseBody(errorBody, context);
|
|
1876
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1877
|
+
return value;
|
|
1878
|
+
};
|
|
1873
1879
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1874
1880
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1875
1881
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -464,7 +464,7 @@ var deserializeAws_restJson1ConfigureLogsCommandError = function (output, contex
|
|
|
464
464
|
case 0:
|
|
465
465
|
_a = [__assign({}, output)];
|
|
466
466
|
_c = {};
|
|
467
|
-
return [4,
|
|
467
|
+
return [4, parseErrorBody(output.body, context)];
|
|
468
468
|
case 1:
|
|
469
469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
470
470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -564,7 +564,7 @@ var deserializeAws_restJson1CreateAssetCommandError = function (output, context)
|
|
|
564
564
|
case 0:
|
|
565
565
|
_a = [__assign({}, output)];
|
|
566
566
|
_c = {};
|
|
567
|
-
return [4,
|
|
567
|
+
return [4, parseErrorBody(output.body, context)];
|
|
568
568
|
case 1:
|
|
569
569
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
570
570
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -661,7 +661,7 @@ var deserializeAws_restJson1CreatePackagingConfigurationCommandError = function
|
|
|
661
661
|
case 0:
|
|
662
662
|
_a = [__assign({}, output)];
|
|
663
663
|
_c = {};
|
|
664
|
-
return [4,
|
|
664
|
+
return [4, parseErrorBody(output.body, context)];
|
|
665
665
|
case 1:
|
|
666
666
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
667
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -752,7 +752,7 @@ var deserializeAws_restJson1CreatePackagingGroupCommandError = function (output,
|
|
|
752
752
|
case 0:
|
|
753
753
|
_a = [__assign({}, output)];
|
|
754
754
|
_c = {};
|
|
755
|
-
return [4,
|
|
755
|
+
return [4, parseErrorBody(output.body, context)];
|
|
756
756
|
case 1:
|
|
757
757
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
758
758
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -823,7 +823,7 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
823
823
|
case 0:
|
|
824
824
|
_a = [__assign({}, output)];
|
|
825
825
|
_c = {};
|
|
826
|
-
return [4,
|
|
826
|
+
return [4, parseErrorBody(output.body, context)];
|
|
827
827
|
case 1:
|
|
828
828
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
829
829
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -894,7 +894,7 @@ var deserializeAws_restJson1DeletePackagingConfigurationCommandError = function
|
|
|
894
894
|
case 0:
|
|
895
895
|
_a = [__assign({}, output)];
|
|
896
896
|
_c = {};
|
|
897
|
-
return [4,
|
|
897
|
+
return [4, parseErrorBody(output.body, context)];
|
|
898
898
|
case 1:
|
|
899
899
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
900
900
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -965,7 +965,7 @@ var deserializeAws_restJson1DeletePackagingGroupCommandError = function (output,
|
|
|
965
965
|
case 0:
|
|
966
966
|
_a = [__assign({}, output)];
|
|
967
967
|
_c = {};
|
|
968
|
-
return [4,
|
|
968
|
+
return [4, parseErrorBody(output.body, context)];
|
|
969
969
|
case 1:
|
|
970
970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
971
971
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1065,7 +1065,7 @@ var deserializeAws_restJson1DescribeAssetCommandError = function (output, contex
|
|
|
1065
1065
|
case 0:
|
|
1066
1066
|
_a = [__assign({}, output)];
|
|
1067
1067
|
_c = {};
|
|
1068
|
-
return [4,
|
|
1068
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1069
1069
|
case 1:
|
|
1070
1070
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1071
1071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1162,7 +1162,7 @@ var deserializeAws_restJson1DescribePackagingConfigurationCommandError = functio
|
|
|
1162
1162
|
case 0:
|
|
1163
1163
|
_a = [__assign({}, output)];
|
|
1164
1164
|
_c = {};
|
|
1165
|
-
return [4,
|
|
1165
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1166
1166
|
case 1:
|
|
1167
1167
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1168
1168
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1253,7 +1253,7 @@ var deserializeAws_restJson1DescribePackagingGroupCommandError = function (outpu
|
|
|
1253
1253
|
case 0:
|
|
1254
1254
|
_a = [__assign({}, output)];
|
|
1255
1255
|
_c = {};
|
|
1256
|
-
return [4,
|
|
1256
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1257
1257
|
case 1:
|
|
1258
1258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1259
1259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1332,7 +1332,7 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
|
|
|
1332
1332
|
case 0:
|
|
1333
1333
|
_a = [__assign({}, output)];
|
|
1334
1334
|
_c = {};
|
|
1335
|
-
return [4,
|
|
1335
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1336
1336
|
case 1:
|
|
1337
1337
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1338
1338
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1411,7 +1411,7 @@ var deserializeAws_restJson1ListPackagingConfigurationsCommandError = function (
|
|
|
1411
1411
|
case 0:
|
|
1412
1412
|
_a = [__assign({}, output)];
|
|
1413
1413
|
_c = {};
|
|
1414
|
-
return [4,
|
|
1414
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1415
1415
|
case 1:
|
|
1416
1416
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1417
1417
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1490,7 +1490,7 @@ var deserializeAws_restJson1ListPackagingGroupsCommandError = function (output,
|
|
|
1490
1490
|
case 0:
|
|
1491
1491
|
_a = [__assign({}, output)];
|
|
1492
1492
|
_c = {};
|
|
1493
|
-
return [4,
|
|
1493
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1494
1494
|
case 1:
|
|
1495
1495
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1496
1496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1566,7 +1566,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1566
1566
|
case 0:
|
|
1567
1567
|
_a = [__assign({}, output)];
|
|
1568
1568
|
_b = {};
|
|
1569
|
-
return [4,
|
|
1569
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1570
1570
|
case 1:
|
|
1571
1571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1572
1572
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1607,7 +1607,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1607
1607
|
case 0:
|
|
1608
1608
|
_a = [__assign({}, output)];
|
|
1609
1609
|
_b = {};
|
|
1610
|
-
return [4,
|
|
1610
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1611
1611
|
case 1:
|
|
1612
1612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1613
1613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1648,7 +1648,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1648
1648
|
case 0:
|
|
1649
1649
|
_a = [__assign({}, output)];
|
|
1650
1650
|
_b = {};
|
|
1651
|
-
return [4,
|
|
1651
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1652
1652
|
case 1:
|
|
1653
1653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1654
1654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1709,7 +1709,7 @@ var deserializeAws_restJson1UpdatePackagingGroupCommandError = function (output,
|
|
|
1709
1709
|
case 0:
|
|
1710
1710
|
_a = [__assign({}, output)];
|
|
1711
1711
|
_c = {};
|
|
1712
|
-
return [4,
|
|
1712
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1713
1713
|
case 1:
|
|
1714
1714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1715
1715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2289,6 +2289,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2289
2289
|
return {};
|
|
2290
2290
|
});
|
|
2291
2291
|
};
|
|
2292
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2293
|
+
var value;
|
|
2294
|
+
var _a;
|
|
2295
|
+
return __generator(this, function (_b) {
|
|
2296
|
+
switch (_b.label) {
|
|
2297
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2298
|
+
case 1:
|
|
2299
|
+
value = _b.sent();
|
|
2300
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2301
|
+
return [2, value];
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
}); };
|
|
2292
2305
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2293
2306
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2294
2307
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediapackage-vod",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediapackage Vod Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|