@aws-sdk/client-mediapackage 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 +25 -19
- package/dist-es/MediaPackage.js +78 -85
- package/dist-es/MediaPackageClient.js +22 -28
- package/dist-es/commands/ConfigureLogsCommand.js +21 -28
- package/dist-es/commands/CreateChannelCommand.js +21 -28
- package/dist-es/commands/CreateHarvestJobCommand.js +21 -28
- package/dist-es/commands/CreateOriginEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteChannelCommand.js +21 -28
- package/dist-es/commands/DeleteOriginEndpointCommand.js +21 -28
- package/dist-es/commands/DescribeChannelCommand.js +21 -28
- package/dist-es/commands/DescribeHarvestJobCommand.js +21 -28
- package/dist-es/commands/DescribeOriginEndpointCommand.js +21 -28
- package/dist-es/commands/ListChannelsCommand.js +21 -28
- package/dist-es/commands/ListHarvestJobsCommand.js +21 -28
- package/dist-es/commands/ListOriginEndpointsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RotateChannelCredentialsCommand.js +21 -28
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateChannelCommand.js +21 -28
- package/dist-es/commands/UpdateOriginEndpointCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaPackageServiceException.js +5 -10
- package/dist-es/models/models_0.js +249 -132
- package/dist-es/pagination/ListChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListHarvestJobsPaginator.js +25 -68
- package/dist-es/pagination/ListOriginEndpointsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1853 -2330
- 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-mediapackage
|
|
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-mediapackage
|
|
@@ -460,7 +460,7 @@ exports.deserializeAws_restJson1ConfigureLogsCommand = deserializeAws_restJson1C
|
|
|
460
460
|
const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context) => {
|
|
461
461
|
const parsedOutput = {
|
|
462
462
|
...output,
|
|
463
|
-
body: await
|
|
463
|
+
body: await parseErrorBody(output.body, context),
|
|
464
464
|
};
|
|
465
465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
466
466
|
switch (errorCode) {
|
|
@@ -527,7 +527,7 @@ exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1C
|
|
|
527
527
|
const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
|
|
528
528
|
const parsedOutput = {
|
|
529
529
|
...output,
|
|
530
|
-
body: await
|
|
530
|
+
body: await parseErrorBody(output.body, context),
|
|
531
531
|
};
|
|
532
532
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
533
|
switch (errorCode) {
|
|
@@ -600,7 +600,7 @@ exports.deserializeAws_restJson1CreateHarvestJobCommand = deserializeAws_restJso
|
|
|
600
600
|
const deserializeAws_restJson1CreateHarvestJobCommandError = 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) {
|
|
@@ -694,7 +694,7 @@ exports.deserializeAws_restJson1CreateOriginEndpointCommand = deserializeAws_res
|
|
|
694
694
|
const deserializeAws_restJson1CreateOriginEndpointCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
|
-
body: await
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
698
|
};
|
|
699
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
switch (errorCode) {
|
|
@@ -740,7 +740,7 @@ exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1D
|
|
|
740
740
|
const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
|
|
741
741
|
const parsedOutput = {
|
|
742
742
|
...output,
|
|
743
|
-
body: await
|
|
743
|
+
body: await parseErrorBody(output.body, context),
|
|
744
744
|
};
|
|
745
745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
746
|
switch (errorCode) {
|
|
@@ -786,7 +786,7 @@ exports.deserializeAws_restJson1DeleteOriginEndpointCommand = deserializeAws_res
|
|
|
786
786
|
const deserializeAws_restJson1DeleteOriginEndpointCommandError = async (output, context) => {
|
|
787
787
|
const parsedOutput = {
|
|
788
788
|
...output,
|
|
789
|
-
body: await
|
|
789
|
+
body: await parseErrorBody(output.body, context),
|
|
790
790
|
};
|
|
791
791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
792
|
switch (errorCode) {
|
|
@@ -853,7 +853,7 @@ exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson
|
|
|
853
853
|
const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
|
|
854
854
|
const parsedOutput = {
|
|
855
855
|
...output,
|
|
856
|
-
body: await
|
|
856
|
+
body: await parseErrorBody(output.body, context),
|
|
857
857
|
};
|
|
858
858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
859
|
switch (errorCode) {
|
|
@@ -926,7 +926,7 @@ exports.deserializeAws_restJson1DescribeHarvestJobCommand = deserializeAws_restJ
|
|
|
926
926
|
const deserializeAws_restJson1DescribeHarvestJobCommandError = async (output, context) => {
|
|
927
927
|
const parsedOutput = {
|
|
928
928
|
...output,
|
|
929
|
-
body: await
|
|
929
|
+
body: await parseErrorBody(output.body, context),
|
|
930
930
|
};
|
|
931
931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
932
|
switch (errorCode) {
|
|
@@ -1020,7 +1020,7 @@ exports.deserializeAws_restJson1DescribeOriginEndpointCommand = deserializeAws_r
|
|
|
1020
1020
|
const deserializeAws_restJson1DescribeOriginEndpointCommandError = async (output, context) => {
|
|
1021
1021
|
const parsedOutput = {
|
|
1022
1022
|
...output,
|
|
1023
|
-
body: await
|
|
1023
|
+
body: await parseErrorBody(output.body, context),
|
|
1024
1024
|
};
|
|
1025
1025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
1026
|
switch (errorCode) {
|
|
@@ -1072,7 +1072,7 @@ exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1Li
|
|
|
1072
1072
|
const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
|
|
1073
1073
|
const parsedOutput = {
|
|
1074
1074
|
...output,
|
|
1075
|
-
body: await
|
|
1075
|
+
body: await parseErrorBody(output.body, context),
|
|
1076
1076
|
};
|
|
1077
1077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
1078
|
switch (errorCode) {
|
|
@@ -1124,7 +1124,7 @@ exports.deserializeAws_restJson1ListHarvestJobsCommand = deserializeAws_restJson
|
|
|
1124
1124
|
const deserializeAws_restJson1ListHarvestJobsCommandError = async (output, context) => {
|
|
1125
1125
|
const parsedOutput = {
|
|
1126
1126
|
...output,
|
|
1127
|
-
body: await
|
|
1127
|
+
body: await parseErrorBody(output.body, context),
|
|
1128
1128
|
};
|
|
1129
1129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1130
|
switch (errorCode) {
|
|
@@ -1176,7 +1176,7 @@ exports.deserializeAws_restJson1ListOriginEndpointsCommand = deserializeAws_rest
|
|
|
1176
1176
|
const deserializeAws_restJson1ListOriginEndpointsCommandError = async (output, context) => {
|
|
1177
1177
|
const parsedOutput = {
|
|
1178
1178
|
...output,
|
|
1179
|
-
body: await
|
|
1179
|
+
body: await parseErrorBody(output.body, context),
|
|
1180
1180
|
};
|
|
1181
1181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
1182
|
switch (errorCode) {
|
|
@@ -1225,7 +1225,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1225
1225
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1226
1226
|
const parsedOutput = {
|
|
1227
1227
|
...output,
|
|
1228
|
-
body: await
|
|
1228
|
+
body: await parseErrorBody(output.body, context),
|
|
1229
1229
|
};
|
|
1230
1230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1231
|
const parsedBody = parsedOutput.body;
|
|
@@ -1271,7 +1271,7 @@ exports.deserializeAws_restJson1RotateChannelCredentialsCommand = deserializeAws
|
|
|
1271
1271
|
const deserializeAws_restJson1RotateChannelCredentialsCommandError = async (output, context) => {
|
|
1272
1272
|
const parsedOutput = {
|
|
1273
1273
|
...output,
|
|
1274
|
-
body: await
|
|
1274
|
+
body: await parseErrorBody(output.body, context),
|
|
1275
1275
|
};
|
|
1276
1276
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
1277
|
switch (errorCode) {
|
|
@@ -1338,7 +1338,7 @@ exports.deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = deseria
|
|
|
1338
1338
|
const deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
|
-
body: await
|
|
1341
|
+
body: await parseErrorBody(output.body, context),
|
|
1342
1342
|
};
|
|
1343
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
switch (errorCode) {
|
|
@@ -1384,7 +1384,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1384
1384
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1385
1385
|
const parsedOutput = {
|
|
1386
1386
|
...output,
|
|
1387
|
-
body: await
|
|
1387
|
+
body: await parseErrorBody(output.body, context),
|
|
1388
1388
|
};
|
|
1389
1389
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
1390
|
const parsedBody = parsedOutput.body;
|
|
@@ -1409,7 +1409,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1409
1409
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
|
-
body: await
|
|
1412
|
+
body: await parseErrorBody(output.body, context),
|
|
1413
1413
|
};
|
|
1414
1414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1415
|
const parsedBody = parsedOutput.body;
|
|
@@ -1455,7 +1455,7 @@ exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1U
|
|
|
1455
1455
|
const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
|
|
1456
1456
|
const parsedOutput = {
|
|
1457
1457
|
...output,
|
|
1458
|
-
body: await
|
|
1458
|
+
body: await parseErrorBody(output.body, context),
|
|
1459
1459
|
};
|
|
1460
1460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1461
|
switch (errorCode) {
|
|
@@ -1549,7 +1549,7 @@ exports.deserializeAws_restJson1UpdateOriginEndpointCommand = deserializeAws_res
|
|
|
1549
1549
|
const deserializeAws_restJson1UpdateOriginEndpointCommandError = async (output, context) => {
|
|
1550
1550
|
const parsedOutput = {
|
|
1551
1551
|
...output,
|
|
1552
|
-
body: await
|
|
1552
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1553
|
};
|
|
1554
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
switch (errorCode) {
|
|
@@ -2239,6 +2239,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2239
2239
|
}
|
|
2240
2240
|
return {};
|
|
2241
2241
|
});
|
|
2242
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2243
|
+
var _a;
|
|
2244
|
+
const value = await parseBody(errorBody, context);
|
|
2245
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2246
|
+
return value;
|
|
2247
|
+
};
|
|
2242
2248
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2243
2249
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2244
2250
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/MediaPackage.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ConfigureLogsCommand, } from "./commands/ConfigureLogsCommand";
|
|
3
2
|
import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
|
|
4
3
|
import { CreateHarvestJobCommand, } from "./commands/CreateHarvestJobCommand";
|
|
@@ -19,277 +18,271 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
19
18
|
import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
|
|
20
19
|
import { UpdateOriginEndpointCommand, } from "./commands/UpdateOriginEndpointCommand";
|
|
21
20
|
import { MediaPackageClient } from "./MediaPackageClient";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
MediaPackage.prototype.configureLogs = function (args, optionsOrCb, cb) {
|
|
28
|
-
var command = new ConfigureLogsCommand(args);
|
|
21
|
+
export class MediaPackage extends MediaPackageClient {
|
|
22
|
+
configureLogs(args, optionsOrCb, cb) {
|
|
23
|
+
const command = new ConfigureLogsCommand(args);
|
|
29
24
|
if (typeof optionsOrCb === "function") {
|
|
30
25
|
this.send(command, optionsOrCb);
|
|
31
26
|
}
|
|
32
27
|
else if (typeof cb === "function") {
|
|
33
28
|
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(
|
|
29
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
30
|
this.send(command, optionsOrCb || {}, cb);
|
|
36
31
|
}
|
|
37
32
|
else {
|
|
38
33
|
return this.send(command, optionsOrCb);
|
|
39
34
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
}
|
|
36
|
+
createChannel(args, optionsOrCb, cb) {
|
|
37
|
+
const command = new CreateChannelCommand(args);
|
|
43
38
|
if (typeof optionsOrCb === "function") {
|
|
44
39
|
this.send(command, optionsOrCb);
|
|
45
40
|
}
|
|
46
41
|
else if (typeof cb === "function") {
|
|
47
42
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(
|
|
43
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
44
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
45
|
}
|
|
51
46
|
else {
|
|
52
47
|
return this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
}
|
|
50
|
+
createHarvestJob(args, optionsOrCb, cb) {
|
|
51
|
+
const command = new CreateHarvestJobCommand(args);
|
|
57
52
|
if (typeof optionsOrCb === "function") {
|
|
58
53
|
this.send(command, optionsOrCb);
|
|
59
54
|
}
|
|
60
55
|
else if (typeof cb === "function") {
|
|
61
56
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(
|
|
57
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
58
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
66
61
|
return this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
}
|
|
64
|
+
createOriginEndpoint(args, optionsOrCb, cb) {
|
|
65
|
+
const command = new CreateOriginEndpointCommand(args);
|
|
71
66
|
if (typeof optionsOrCb === "function") {
|
|
72
67
|
this.send(command, optionsOrCb);
|
|
73
68
|
}
|
|
74
69
|
else if (typeof cb === "function") {
|
|
75
70
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(
|
|
71
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
72
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
73
|
}
|
|
79
74
|
else {
|
|
80
75
|
return this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
}
|
|
78
|
+
deleteChannel(args, optionsOrCb, cb) {
|
|
79
|
+
const command = new DeleteChannelCommand(args);
|
|
85
80
|
if (typeof optionsOrCb === "function") {
|
|
86
81
|
this.send(command, optionsOrCb);
|
|
87
82
|
}
|
|
88
83
|
else if (typeof cb === "function") {
|
|
89
84
|
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(
|
|
85
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
86
|
this.send(command, optionsOrCb || {}, cb);
|
|
92
87
|
}
|
|
93
88
|
else {
|
|
94
89
|
return this.send(command, optionsOrCb);
|
|
95
90
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
}
|
|
92
|
+
deleteOriginEndpoint(args, optionsOrCb, cb) {
|
|
93
|
+
const command = new DeleteOriginEndpointCommand(args);
|
|
99
94
|
if (typeof optionsOrCb === "function") {
|
|
100
95
|
this.send(command, optionsOrCb);
|
|
101
96
|
}
|
|
102
97
|
else if (typeof cb === "function") {
|
|
103
98
|
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(
|
|
99
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
100
|
this.send(command, optionsOrCb || {}, cb);
|
|
106
101
|
}
|
|
107
102
|
else {
|
|
108
103
|
return this.send(command, optionsOrCb);
|
|
109
104
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
}
|
|
106
|
+
describeChannel(args, optionsOrCb, cb) {
|
|
107
|
+
const command = new DescribeChannelCommand(args);
|
|
113
108
|
if (typeof optionsOrCb === "function") {
|
|
114
109
|
this.send(command, optionsOrCb);
|
|
115
110
|
}
|
|
116
111
|
else if (typeof cb === "function") {
|
|
117
112
|
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(
|
|
113
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
114
|
this.send(command, optionsOrCb || {}, cb);
|
|
120
115
|
}
|
|
121
116
|
else {
|
|
122
117
|
return this.send(command, optionsOrCb);
|
|
123
118
|
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
}
|
|
120
|
+
describeHarvestJob(args, optionsOrCb, cb) {
|
|
121
|
+
const command = new DescribeHarvestJobCommand(args);
|
|
127
122
|
if (typeof optionsOrCb === "function") {
|
|
128
123
|
this.send(command, optionsOrCb);
|
|
129
124
|
}
|
|
130
125
|
else if (typeof cb === "function") {
|
|
131
126
|
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(
|
|
127
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
128
|
this.send(command, optionsOrCb || {}, cb);
|
|
134
129
|
}
|
|
135
130
|
else {
|
|
136
131
|
return this.send(command, optionsOrCb);
|
|
137
132
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
}
|
|
134
|
+
describeOriginEndpoint(args, optionsOrCb, cb) {
|
|
135
|
+
const command = new DescribeOriginEndpointCommand(args);
|
|
141
136
|
if (typeof optionsOrCb === "function") {
|
|
142
137
|
this.send(command, optionsOrCb);
|
|
143
138
|
}
|
|
144
139
|
else if (typeof cb === "function") {
|
|
145
140
|
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(
|
|
141
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
142
|
this.send(command, optionsOrCb || {}, cb);
|
|
148
143
|
}
|
|
149
144
|
else {
|
|
150
145
|
return this.send(command, optionsOrCb);
|
|
151
146
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
}
|
|
148
|
+
listChannels(args, optionsOrCb, cb) {
|
|
149
|
+
const command = new ListChannelsCommand(args);
|
|
155
150
|
if (typeof optionsOrCb === "function") {
|
|
156
151
|
this.send(command, optionsOrCb);
|
|
157
152
|
}
|
|
158
153
|
else if (typeof cb === "function") {
|
|
159
154
|
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(
|
|
155
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
156
|
this.send(command, optionsOrCb || {}, cb);
|
|
162
157
|
}
|
|
163
158
|
else {
|
|
164
159
|
return this.send(command, optionsOrCb);
|
|
165
160
|
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
}
|
|
162
|
+
listHarvestJobs(args, optionsOrCb, cb) {
|
|
163
|
+
const command = new ListHarvestJobsCommand(args);
|
|
169
164
|
if (typeof optionsOrCb === "function") {
|
|
170
165
|
this.send(command, optionsOrCb);
|
|
171
166
|
}
|
|
172
167
|
else if (typeof cb === "function") {
|
|
173
168
|
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(
|
|
169
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
170
|
this.send(command, optionsOrCb || {}, cb);
|
|
176
171
|
}
|
|
177
172
|
else {
|
|
178
173
|
return this.send(command, optionsOrCb);
|
|
179
174
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
}
|
|
176
|
+
listOriginEndpoints(args, optionsOrCb, cb) {
|
|
177
|
+
const command = new ListOriginEndpointsCommand(args);
|
|
183
178
|
if (typeof optionsOrCb === "function") {
|
|
184
179
|
this.send(command, optionsOrCb);
|
|
185
180
|
}
|
|
186
181
|
else if (typeof cb === "function") {
|
|
187
182
|
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(
|
|
183
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
184
|
this.send(command, optionsOrCb || {}, cb);
|
|
190
185
|
}
|
|
191
186
|
else {
|
|
192
187
|
return this.send(command, optionsOrCb);
|
|
193
188
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
}
|
|
190
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
191
|
+
const command = new ListTagsForResourceCommand(args);
|
|
197
192
|
if (typeof optionsOrCb === "function") {
|
|
198
193
|
this.send(command, optionsOrCb);
|
|
199
194
|
}
|
|
200
195
|
else if (typeof cb === "function") {
|
|
201
196
|
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(
|
|
197
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
198
|
this.send(command, optionsOrCb || {}, cb);
|
|
204
199
|
}
|
|
205
200
|
else {
|
|
206
201
|
return this.send(command, optionsOrCb);
|
|
207
202
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
203
|
+
}
|
|
204
|
+
rotateChannelCredentials(args, optionsOrCb, cb) {
|
|
205
|
+
const command = new RotateChannelCredentialsCommand(args);
|
|
211
206
|
if (typeof optionsOrCb === "function") {
|
|
212
207
|
this.send(command, optionsOrCb);
|
|
213
208
|
}
|
|
214
209
|
else if (typeof cb === "function") {
|
|
215
210
|
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(
|
|
211
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
212
|
this.send(command, optionsOrCb || {}, cb);
|
|
218
213
|
}
|
|
219
214
|
else {
|
|
220
215
|
return this.send(command, optionsOrCb);
|
|
221
216
|
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
217
|
+
}
|
|
218
|
+
rotateIngestEndpointCredentials(args, optionsOrCb, cb) {
|
|
219
|
+
const command = new RotateIngestEndpointCredentialsCommand(args);
|
|
225
220
|
if (typeof optionsOrCb === "function") {
|
|
226
221
|
this.send(command, optionsOrCb);
|
|
227
222
|
}
|
|
228
223
|
else if (typeof cb === "function") {
|
|
229
224
|
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(
|
|
225
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
226
|
this.send(command, optionsOrCb || {}, cb);
|
|
232
227
|
}
|
|
233
228
|
else {
|
|
234
229
|
return this.send(command, optionsOrCb);
|
|
235
230
|
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
}
|
|
232
|
+
tagResource(args, optionsOrCb, cb) {
|
|
233
|
+
const command = new TagResourceCommand(args);
|
|
239
234
|
if (typeof optionsOrCb === "function") {
|
|
240
235
|
this.send(command, optionsOrCb);
|
|
241
236
|
}
|
|
242
237
|
else if (typeof cb === "function") {
|
|
243
238
|
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(
|
|
239
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
240
|
this.send(command, optionsOrCb || {}, cb);
|
|
246
241
|
}
|
|
247
242
|
else {
|
|
248
243
|
return this.send(command, optionsOrCb);
|
|
249
244
|
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
245
|
+
}
|
|
246
|
+
untagResource(args, optionsOrCb, cb) {
|
|
247
|
+
const command = new UntagResourceCommand(args);
|
|
253
248
|
if (typeof optionsOrCb === "function") {
|
|
254
249
|
this.send(command, optionsOrCb);
|
|
255
250
|
}
|
|
256
251
|
else if (typeof cb === "function") {
|
|
257
252
|
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(
|
|
253
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
254
|
this.send(command, optionsOrCb || {}, cb);
|
|
260
255
|
}
|
|
261
256
|
else {
|
|
262
257
|
return this.send(command, optionsOrCb);
|
|
263
258
|
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
}
|
|
260
|
+
updateChannel(args, optionsOrCb, cb) {
|
|
261
|
+
const command = new UpdateChannelCommand(args);
|
|
267
262
|
if (typeof optionsOrCb === "function") {
|
|
268
263
|
this.send(command, optionsOrCb);
|
|
269
264
|
}
|
|
270
265
|
else if (typeof cb === "function") {
|
|
271
266
|
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(
|
|
267
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
268
|
this.send(command, optionsOrCb || {}, cb);
|
|
274
269
|
}
|
|
275
270
|
else {
|
|
276
271
|
return this.send(command, optionsOrCb);
|
|
277
272
|
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
273
|
+
}
|
|
274
|
+
updateOriginEndpoint(args, optionsOrCb, cb) {
|
|
275
|
+
const command = new UpdateOriginEndpointCommand(args);
|
|
281
276
|
if (typeof optionsOrCb === "function") {
|
|
282
277
|
this.send(command, optionsOrCb);
|
|
283
278
|
}
|
|
284
279
|
else if (typeof cb === "function") {
|
|
285
280
|
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(
|
|
281
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
282
|
this.send(command, optionsOrCb || {}, cb);
|
|
288
283
|
}
|
|
289
284
|
else {
|
|
290
285
|
return this.send(command, optionsOrCb);
|
|
291
286
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
}(MediaPackageClient));
|
|
295
|
-
export { MediaPackage };
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class MediaPackageClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { MediaPackageClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|