@aws-sdk/client-mediaconvert 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 +34 -28
- package/dist-es/MediaConvert.js +114 -121
- package/dist-es/MediaConvertClient.js +22 -28
- package/dist-es/commands/AssociateCertificateCommand.js +21 -28
- package/dist-es/commands/CancelJobCommand.js +21 -28
- package/dist-es/commands/CreateJobCommand.js +21 -28
- package/dist-es/commands/CreateJobTemplateCommand.js +21 -28
- package/dist-es/commands/CreatePresetCommand.js +21 -28
- package/dist-es/commands/CreateQueueCommand.js +21 -28
- package/dist-es/commands/DeleteJobTemplateCommand.js +21 -28
- package/dist-es/commands/DeletePolicyCommand.js +21 -28
- package/dist-es/commands/DeletePresetCommand.js +21 -28
- package/dist-es/commands/DeleteQueueCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
- package/dist-es/commands/DisassociateCertificateCommand.js +21 -28
- package/dist-es/commands/GetJobCommand.js +21 -28
- package/dist-es/commands/GetJobTemplateCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetPresetCommand.js +21 -28
- package/dist-es/commands/GetQueueCommand.js +21 -28
- package/dist-es/commands/ListJobTemplatesCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListPresetsCommand.js +21 -28
- package/dist-es/commands/ListQueuesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutPolicyCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateJobTemplateCommand.js +21 -28
- package/dist-es/commands/UpdatePresetCommand.js +21 -28
- package/dist-es/commands/UpdateQueueCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaConvertServiceException.js +5 -10
- package/dist-es/models/models_0.js +327 -110
- package/dist-es/models/models_1.js +360 -169
- package/dist-es/models/models_2.js +66 -23
- package/dist-es/pagination/DescribeEndpointsPaginator.js +25 -68
- package/dist-es/pagination/ListJobTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListPresetsPaginator.js +25 -68
- package/dist-es/pagination/ListQueuesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +4590 -4274
- 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-mediaconvert
|
|
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-mediaconvert
|
|
@@ -643,7 +643,7 @@ exports.deserializeAws_restJson1AssociateCertificateCommand = deserializeAws_res
|
|
|
643
643
|
const deserializeAws_restJson1AssociateCertificateCommandError = async (output, context) => {
|
|
644
644
|
const parsedOutput = {
|
|
645
645
|
...output,
|
|
646
|
-
body: await
|
|
646
|
+
body: await parseErrorBody(output.body, context),
|
|
647
647
|
};
|
|
648
648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
649
|
switch (errorCode) {
|
|
@@ -689,7 +689,7 @@ exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1Cance
|
|
|
689
689
|
const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
|
|
690
690
|
const parsedOutput = {
|
|
691
691
|
...output,
|
|
692
|
-
body: await
|
|
692
|
+
body: await parseErrorBody(output.body, context),
|
|
693
693
|
};
|
|
694
694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
695
|
switch (errorCode) {
|
|
@@ -738,7 +738,7 @@ exports.deserializeAws_restJson1CreateJobCommand = deserializeAws_restJson1Creat
|
|
|
738
738
|
const deserializeAws_restJson1CreateJobCommandError = 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) {
|
|
@@ -787,7 +787,7 @@ exports.deserializeAws_restJson1CreateJobTemplateCommand = deserializeAws_restJs
|
|
|
787
787
|
const deserializeAws_restJson1CreateJobTemplateCommandError = async (output, context) => {
|
|
788
788
|
const parsedOutput = {
|
|
789
789
|
...output,
|
|
790
|
-
body: await
|
|
790
|
+
body: await parseErrorBody(output.body, context),
|
|
791
791
|
};
|
|
792
792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
793
|
switch (errorCode) {
|
|
@@ -836,7 +836,7 @@ exports.deserializeAws_restJson1CreatePresetCommand = deserializeAws_restJson1Cr
|
|
|
836
836
|
const deserializeAws_restJson1CreatePresetCommandError = async (output, context) => {
|
|
837
837
|
const parsedOutput = {
|
|
838
838
|
...output,
|
|
839
|
-
body: await
|
|
839
|
+
body: await parseErrorBody(output.body, context),
|
|
840
840
|
};
|
|
841
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
@@ -885,7 +885,7 @@ exports.deserializeAws_restJson1CreateQueueCommand = deserializeAws_restJson1Cre
|
|
|
885
885
|
const deserializeAws_restJson1CreateQueueCommandError = async (output, context) => {
|
|
886
886
|
const parsedOutput = {
|
|
887
887
|
...output,
|
|
888
|
-
body: await
|
|
888
|
+
body: await parseErrorBody(output.body, context),
|
|
889
889
|
};
|
|
890
890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
891
|
switch (errorCode) {
|
|
@@ -931,7 +931,7 @@ exports.deserializeAws_restJson1DeleteJobTemplateCommand = deserializeAws_restJs
|
|
|
931
931
|
const deserializeAws_restJson1DeleteJobTemplateCommandError = async (output, context) => {
|
|
932
932
|
const parsedOutput = {
|
|
933
933
|
...output,
|
|
934
|
-
body: await
|
|
934
|
+
body: await parseErrorBody(output.body, context),
|
|
935
935
|
};
|
|
936
936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
937
|
switch (errorCode) {
|
|
@@ -977,7 +977,7 @@ exports.deserializeAws_restJson1DeletePolicyCommand = deserializeAws_restJson1De
|
|
|
977
977
|
const deserializeAws_restJson1DeletePolicyCommandError = async (output, context) => {
|
|
978
978
|
const parsedOutput = {
|
|
979
979
|
...output,
|
|
980
|
-
body: await
|
|
980
|
+
body: await parseErrorBody(output.body, context),
|
|
981
981
|
};
|
|
982
982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
983
|
switch (errorCode) {
|
|
@@ -1023,7 +1023,7 @@ exports.deserializeAws_restJson1DeletePresetCommand = deserializeAws_restJson1De
|
|
|
1023
1023
|
const deserializeAws_restJson1DeletePresetCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
|
-
body: await
|
|
1026
|
+
body: await parseErrorBody(output.body, context),
|
|
1027
1027
|
};
|
|
1028
1028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1029
|
switch (errorCode) {
|
|
@@ -1069,7 +1069,7 @@ exports.deserializeAws_restJson1DeleteQueueCommand = deserializeAws_restJson1Del
|
|
|
1069
1069
|
const deserializeAws_restJson1DeleteQueueCommandError = async (output, context) => {
|
|
1070
1070
|
const parsedOutput = {
|
|
1071
1071
|
...output,
|
|
1072
|
-
body: await
|
|
1072
|
+
body: await parseErrorBody(output.body, context),
|
|
1073
1073
|
};
|
|
1074
1074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1075
|
switch (errorCode) {
|
|
@@ -1121,7 +1121,7 @@ exports.deserializeAws_restJson1DescribeEndpointsCommand = deserializeAws_restJs
|
|
|
1121
1121
|
const deserializeAws_restJson1DescribeEndpointsCommandError = async (output, context) => {
|
|
1122
1122
|
const parsedOutput = {
|
|
1123
1123
|
...output,
|
|
1124
|
-
body: await
|
|
1124
|
+
body: await parseErrorBody(output.body, context),
|
|
1125
1125
|
};
|
|
1126
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1127
|
switch (errorCode) {
|
|
@@ -1167,7 +1167,7 @@ exports.deserializeAws_restJson1DisassociateCertificateCommand = deserializeAws_
|
|
|
1167
1167
|
const deserializeAws_restJson1DisassociateCertificateCommandError = async (output, context) => {
|
|
1168
1168
|
const parsedOutput = {
|
|
1169
1169
|
...output,
|
|
1170
|
-
body: await
|
|
1170
|
+
body: await parseErrorBody(output.body, context),
|
|
1171
1171
|
};
|
|
1172
1172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
1173
|
switch (errorCode) {
|
|
@@ -1216,7 +1216,7 @@ exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCo
|
|
|
1216
1216
|
const deserializeAws_restJson1GetJobCommandError = 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) {
|
|
@@ -1265,7 +1265,7 @@ exports.deserializeAws_restJson1GetJobTemplateCommand = deserializeAws_restJson1
|
|
|
1265
1265
|
const deserializeAws_restJson1GetJobTemplateCommandError = async (output, context) => {
|
|
1266
1266
|
const parsedOutput = {
|
|
1267
1267
|
...output,
|
|
1268
|
-
body: await
|
|
1268
|
+
body: await parseErrorBody(output.body, context),
|
|
1269
1269
|
};
|
|
1270
1270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
1271
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_restJson1GetPolicyCommand = deserializeAws_restJson1GetPo
|
|
|
1314
1314
|
const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1363,7 +1363,7 @@ exports.deserializeAws_restJson1GetPresetCommand = deserializeAws_restJson1GetPr
|
|
|
1363
1363
|
const deserializeAws_restJson1GetPresetCommandError = async (output, context) => {
|
|
1364
1364
|
const parsedOutput = {
|
|
1365
1365
|
...output,
|
|
1366
|
-
body: await
|
|
1366
|
+
body: await parseErrorBody(output.body, context),
|
|
1367
1367
|
};
|
|
1368
1368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1369
|
switch (errorCode) {
|
|
@@ -1412,7 +1412,7 @@ exports.deserializeAws_restJson1GetQueueCommand = deserializeAws_restJson1GetQue
|
|
|
1412
1412
|
const deserializeAws_restJson1GetQueueCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
|
-
body: await
|
|
1415
|
+
body: await parseErrorBody(output.body, context),
|
|
1416
1416
|
};
|
|
1417
1417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1418
|
switch (errorCode) {
|
|
@@ -1464,7 +1464,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
1464
1464
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
1465
1465
|
const parsedOutput = {
|
|
1466
1466
|
...output,
|
|
1467
|
-
body: await
|
|
1467
|
+
body: await parseErrorBody(output.body, context),
|
|
1468
1468
|
};
|
|
1469
1469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
1470
|
switch (errorCode) {
|
|
@@ -1516,7 +1516,7 @@ exports.deserializeAws_restJson1ListJobTemplatesCommand = deserializeAws_restJso
|
|
|
1516
1516
|
const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, context) => {
|
|
1517
1517
|
const parsedOutput = {
|
|
1518
1518
|
...output,
|
|
1519
|
-
body: await
|
|
1519
|
+
body: await parseErrorBody(output.body, context),
|
|
1520
1520
|
};
|
|
1521
1521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
1522
|
switch (errorCode) {
|
|
@@ -1568,7 +1568,7 @@ exports.deserializeAws_restJson1ListPresetsCommand = deserializeAws_restJson1Lis
|
|
|
1568
1568
|
const deserializeAws_restJson1ListPresetsCommandError = async (output, context) => {
|
|
1569
1569
|
const parsedOutput = {
|
|
1570
1570
|
...output,
|
|
1571
|
-
body: await
|
|
1571
|
+
body: await parseErrorBody(output.body, context),
|
|
1572
1572
|
};
|
|
1573
1573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1574
|
switch (errorCode) {
|
|
@@ -1620,7 +1620,7 @@ exports.deserializeAws_restJson1ListQueuesCommand = deserializeAws_restJson1List
|
|
|
1620
1620
|
const deserializeAws_restJson1ListQueuesCommandError = async (output, context) => {
|
|
1621
1621
|
const parsedOutput = {
|
|
1622
1622
|
...output,
|
|
1623
|
-
body: await
|
|
1623
|
+
body: await parseErrorBody(output.body, context),
|
|
1624
1624
|
};
|
|
1625
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1626
|
switch (errorCode) {
|
|
@@ -1669,7 +1669,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1669
1669
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1670
1670
|
const parsedOutput = {
|
|
1671
1671
|
...output,
|
|
1672
|
-
body: await
|
|
1672
|
+
body: await parseErrorBody(output.body, context),
|
|
1673
1673
|
};
|
|
1674
1674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1675
|
switch (errorCode) {
|
|
@@ -1718,7 +1718,7 @@ exports.deserializeAws_restJson1PutPolicyCommand = deserializeAws_restJson1PutPo
|
|
|
1718
1718
|
const deserializeAws_restJson1PutPolicyCommandError = async (output, context) => {
|
|
1719
1719
|
const parsedOutput = {
|
|
1720
1720
|
...output,
|
|
1721
|
-
body: await
|
|
1721
|
+
body: await parseErrorBody(output.body, context),
|
|
1722
1722
|
};
|
|
1723
1723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1724
|
switch (errorCode) {
|
|
@@ -1764,7 +1764,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1764
1764
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1765
1765
|
const parsedOutput = {
|
|
1766
1766
|
...output,
|
|
1767
|
-
body: await
|
|
1767
|
+
body: await parseErrorBody(output.body, context),
|
|
1768
1768
|
};
|
|
1769
1769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
switch (errorCode) {
|
|
@@ -1810,7 +1810,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1810
1810
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1811
1811
|
const parsedOutput = {
|
|
1812
1812
|
...output,
|
|
1813
|
-
body: await
|
|
1813
|
+
body: await parseErrorBody(output.body, context),
|
|
1814
1814
|
};
|
|
1815
1815
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1816
|
switch (errorCode) {
|
|
@@ -1859,7 +1859,7 @@ exports.deserializeAws_restJson1UpdateJobTemplateCommand = deserializeAws_restJs
|
|
|
1859
1859
|
const deserializeAws_restJson1UpdateJobTemplateCommandError = async (output, context) => {
|
|
1860
1860
|
const parsedOutput = {
|
|
1861
1861
|
...output,
|
|
1862
|
-
body: await
|
|
1862
|
+
body: await parseErrorBody(output.body, context),
|
|
1863
1863
|
};
|
|
1864
1864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1865
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_restJson1UpdatePresetCommand = deserializeAws_restJson1Up
|
|
|
1908
1908
|
const deserializeAws_restJson1UpdatePresetCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1957,7 +1957,7 @@ exports.deserializeAws_restJson1UpdateQueueCommand = deserializeAws_restJson1Upd
|
|
|
1957
1957
|
const deserializeAws_restJson1UpdateQueueCommandError = async (output, context) => {
|
|
1958
1958
|
const parsedOutput = {
|
|
1959
1959
|
...output,
|
|
1960
|
-
body: await
|
|
1960
|
+
body: await parseErrorBody(output.body, context),
|
|
1961
1961
|
};
|
|
1962
1962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1963
|
switch (errorCode) {
|
|
@@ -7031,6 +7031,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7031
7031
|
}
|
|
7032
7032
|
return {};
|
|
7033
7033
|
});
|
|
7034
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
7035
|
+
var _a;
|
|
7036
|
+
const value = await parseBody(errorBody, context);
|
|
7037
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
7038
|
+
return value;
|
|
7039
|
+
};
|
|
7034
7040
|
const loadRestJsonErrorCode = (output, data) => {
|
|
7035
7041
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
7036
7042
|
const sanitizeErrorCode = (rawValue) => {
|