@aws-sdk/client-mediapackage-vod 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 +23 -17
- package/dist-es/MediaPackageVod.js +70 -77
- package/dist-es/MediaPackageVodClient.js +22 -28
- package/dist-es/commands/ConfigureLogsCommand.js +21 -28
- package/dist-es/commands/CreateAssetCommand.js +21 -28
- package/dist-es/commands/CreatePackagingConfigurationCommand.js +21 -28
- package/dist-es/commands/CreatePackagingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteAssetCommand.js +21 -28
- package/dist-es/commands/DeletePackagingConfigurationCommand.js +21 -28
- package/dist-es/commands/DeletePackagingGroupCommand.js +21 -28
- package/dist-es/commands/DescribeAssetCommand.js +21 -28
- package/dist-es/commands/DescribePackagingConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribePackagingGroupCommand.js +21 -28
- package/dist-es/commands/ListAssetsCommand.js +21 -28
- package/dist-es/commands/ListPackagingConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListPackagingGroupsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdatePackagingGroupCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaPackageVodServiceException.js +5 -10
- package/dist-es/models/models_0.js +225 -124
- package/dist-es/pagination/ListAssetsPaginator.js +25 -68
- package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListPackagingGroupsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1530 -1984
- 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-vod
|
|
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-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) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ConfigureLogsCommand, } from "./commands/ConfigureLogsCommand";
|
|
3
2
|
import { CreateAssetCommand } from "./commands/CreateAssetCommand";
|
|
4
3
|
import { CreatePackagingConfigurationCommand, } from "./commands/CreatePackagingConfigurationCommand";
|
|
@@ -17,249 +16,243 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
17
16
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
18
17
|
import { UpdatePackagingGroupCommand, } from "./commands/UpdatePackagingGroupCommand";
|
|
19
18
|
import { MediaPackageVodClient } from "./MediaPackageVodClient";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
MediaPackageVod.prototype.configureLogs = function (args, optionsOrCb, cb) {
|
|
26
|
-
var command = new ConfigureLogsCommand(args);
|
|
19
|
+
export class MediaPackageVod extends MediaPackageVodClient {
|
|
20
|
+
configureLogs(args, optionsOrCb, cb) {
|
|
21
|
+
const command = new ConfigureLogsCommand(args);
|
|
27
22
|
if (typeof optionsOrCb === "function") {
|
|
28
23
|
this.send(command, optionsOrCb);
|
|
29
24
|
}
|
|
30
25
|
else if (typeof cb === "function") {
|
|
31
26
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(
|
|
27
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
28
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
29
|
}
|
|
35
30
|
else {
|
|
36
31
|
return this.send(command, optionsOrCb);
|
|
37
32
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
}
|
|
34
|
+
createAsset(args, optionsOrCb, cb) {
|
|
35
|
+
const command = new CreateAssetCommand(args);
|
|
41
36
|
if (typeof optionsOrCb === "function") {
|
|
42
37
|
this.send(command, optionsOrCb);
|
|
43
38
|
}
|
|
44
39
|
else if (typeof cb === "function") {
|
|
45
40
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(
|
|
41
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
42
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
43
|
}
|
|
49
44
|
else {
|
|
50
45
|
return this.send(command, optionsOrCb);
|
|
51
46
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
}
|
|
48
|
+
createPackagingConfiguration(args, optionsOrCb, cb) {
|
|
49
|
+
const command = new CreatePackagingConfigurationCommand(args);
|
|
55
50
|
if (typeof optionsOrCb === "function") {
|
|
56
51
|
this.send(command, optionsOrCb);
|
|
57
52
|
}
|
|
58
53
|
else if (typeof cb === "function") {
|
|
59
54
|
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(
|
|
55
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
56
|
this.send(command, optionsOrCb || {}, cb);
|
|
62
57
|
}
|
|
63
58
|
else {
|
|
64
59
|
return this.send(command, optionsOrCb);
|
|
65
60
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
}
|
|
62
|
+
createPackagingGroup(args, optionsOrCb, cb) {
|
|
63
|
+
const command = new CreatePackagingGroupCommand(args);
|
|
69
64
|
if (typeof optionsOrCb === "function") {
|
|
70
65
|
this.send(command, optionsOrCb);
|
|
71
66
|
}
|
|
72
67
|
else if (typeof cb === "function") {
|
|
73
68
|
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(
|
|
69
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
70
|
this.send(command, optionsOrCb || {}, cb);
|
|
76
71
|
}
|
|
77
72
|
else {
|
|
78
73
|
return this.send(command, optionsOrCb);
|
|
79
74
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
}
|
|
76
|
+
deleteAsset(args, optionsOrCb, cb) {
|
|
77
|
+
const command = new DeleteAssetCommand(args);
|
|
83
78
|
if (typeof optionsOrCb === "function") {
|
|
84
79
|
this.send(command, optionsOrCb);
|
|
85
80
|
}
|
|
86
81
|
else if (typeof cb === "function") {
|
|
87
82
|
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(
|
|
83
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
84
|
this.send(command, optionsOrCb || {}, cb);
|
|
90
85
|
}
|
|
91
86
|
else {
|
|
92
87
|
return this.send(command, optionsOrCb);
|
|
93
88
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
}
|
|
90
|
+
deletePackagingConfiguration(args, optionsOrCb, cb) {
|
|
91
|
+
const command = new DeletePackagingConfigurationCommand(args);
|
|
97
92
|
if (typeof optionsOrCb === "function") {
|
|
98
93
|
this.send(command, optionsOrCb);
|
|
99
94
|
}
|
|
100
95
|
else if (typeof cb === "function") {
|
|
101
96
|
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(
|
|
97
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
98
|
this.send(command, optionsOrCb || {}, cb);
|
|
104
99
|
}
|
|
105
100
|
else {
|
|
106
101
|
return this.send(command, optionsOrCb);
|
|
107
102
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
}
|
|
104
|
+
deletePackagingGroup(args, optionsOrCb, cb) {
|
|
105
|
+
const command = new DeletePackagingGroupCommand(args);
|
|
111
106
|
if (typeof optionsOrCb === "function") {
|
|
112
107
|
this.send(command, optionsOrCb);
|
|
113
108
|
}
|
|
114
109
|
else if (typeof cb === "function") {
|
|
115
110
|
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(
|
|
111
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
112
|
this.send(command, optionsOrCb || {}, cb);
|
|
118
113
|
}
|
|
119
114
|
else {
|
|
120
115
|
return this.send(command, optionsOrCb);
|
|
121
116
|
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
}
|
|
118
|
+
describeAsset(args, optionsOrCb, cb) {
|
|
119
|
+
const command = new DescribeAssetCommand(args);
|
|
125
120
|
if (typeof optionsOrCb === "function") {
|
|
126
121
|
this.send(command, optionsOrCb);
|
|
127
122
|
}
|
|
128
123
|
else if (typeof cb === "function") {
|
|
129
124
|
if (typeof optionsOrCb !== "object")
|
|
130
|
-
throw new Error(
|
|
125
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
131
126
|
this.send(command, optionsOrCb || {}, cb);
|
|
132
127
|
}
|
|
133
128
|
else {
|
|
134
129
|
return this.send(command, optionsOrCb);
|
|
135
130
|
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
}
|
|
132
|
+
describePackagingConfiguration(args, optionsOrCb, cb) {
|
|
133
|
+
const command = new DescribePackagingConfigurationCommand(args);
|
|
139
134
|
if (typeof optionsOrCb === "function") {
|
|
140
135
|
this.send(command, optionsOrCb);
|
|
141
136
|
}
|
|
142
137
|
else if (typeof cb === "function") {
|
|
143
138
|
if (typeof optionsOrCb !== "object")
|
|
144
|
-
throw new Error(
|
|
139
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
145
140
|
this.send(command, optionsOrCb || {}, cb);
|
|
146
141
|
}
|
|
147
142
|
else {
|
|
148
143
|
return this.send(command, optionsOrCb);
|
|
149
144
|
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
}
|
|
146
|
+
describePackagingGroup(args, optionsOrCb, cb) {
|
|
147
|
+
const command = new DescribePackagingGroupCommand(args);
|
|
153
148
|
if (typeof optionsOrCb === "function") {
|
|
154
149
|
this.send(command, optionsOrCb);
|
|
155
150
|
}
|
|
156
151
|
else if (typeof cb === "function") {
|
|
157
152
|
if (typeof optionsOrCb !== "object")
|
|
158
|
-
throw new Error(
|
|
153
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
159
154
|
this.send(command, optionsOrCb || {}, cb);
|
|
160
155
|
}
|
|
161
156
|
else {
|
|
162
157
|
return this.send(command, optionsOrCb);
|
|
163
158
|
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
}
|
|
160
|
+
listAssets(args, optionsOrCb, cb) {
|
|
161
|
+
const command = new ListAssetsCommand(args);
|
|
167
162
|
if (typeof optionsOrCb === "function") {
|
|
168
163
|
this.send(command, optionsOrCb);
|
|
169
164
|
}
|
|
170
165
|
else if (typeof cb === "function") {
|
|
171
166
|
if (typeof optionsOrCb !== "object")
|
|
172
|
-
throw new Error(
|
|
167
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
173
168
|
this.send(command, optionsOrCb || {}, cb);
|
|
174
169
|
}
|
|
175
170
|
else {
|
|
176
171
|
return this.send(command, optionsOrCb);
|
|
177
172
|
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
}
|
|
174
|
+
listPackagingConfigurations(args, optionsOrCb, cb) {
|
|
175
|
+
const command = new ListPackagingConfigurationsCommand(args);
|
|
181
176
|
if (typeof optionsOrCb === "function") {
|
|
182
177
|
this.send(command, optionsOrCb);
|
|
183
178
|
}
|
|
184
179
|
else if (typeof cb === "function") {
|
|
185
180
|
if (typeof optionsOrCb !== "object")
|
|
186
|
-
throw new Error(
|
|
181
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
182
|
this.send(command, optionsOrCb || {}, cb);
|
|
188
183
|
}
|
|
189
184
|
else {
|
|
190
185
|
return this.send(command, optionsOrCb);
|
|
191
186
|
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
187
|
+
}
|
|
188
|
+
listPackagingGroups(args, optionsOrCb, cb) {
|
|
189
|
+
const command = new ListPackagingGroupsCommand(args);
|
|
195
190
|
if (typeof optionsOrCb === "function") {
|
|
196
191
|
this.send(command, optionsOrCb);
|
|
197
192
|
}
|
|
198
193
|
else if (typeof cb === "function") {
|
|
199
194
|
if (typeof optionsOrCb !== "object")
|
|
200
|
-
throw new Error(
|
|
195
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
201
196
|
this.send(command, optionsOrCb || {}, cb);
|
|
202
197
|
}
|
|
203
198
|
else {
|
|
204
199
|
return this.send(command, optionsOrCb);
|
|
205
200
|
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
}
|
|
202
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
203
|
+
const command = new ListTagsForResourceCommand(args);
|
|
209
204
|
if (typeof optionsOrCb === "function") {
|
|
210
205
|
this.send(command, optionsOrCb);
|
|
211
206
|
}
|
|
212
207
|
else if (typeof cb === "function") {
|
|
213
208
|
if (typeof optionsOrCb !== "object")
|
|
214
|
-
throw new Error(
|
|
209
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
215
210
|
this.send(command, optionsOrCb || {}, cb);
|
|
216
211
|
}
|
|
217
212
|
else {
|
|
218
213
|
return this.send(command, optionsOrCb);
|
|
219
214
|
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
215
|
+
}
|
|
216
|
+
tagResource(args, optionsOrCb, cb) {
|
|
217
|
+
const command = new TagResourceCommand(args);
|
|
223
218
|
if (typeof optionsOrCb === "function") {
|
|
224
219
|
this.send(command, optionsOrCb);
|
|
225
220
|
}
|
|
226
221
|
else if (typeof cb === "function") {
|
|
227
222
|
if (typeof optionsOrCb !== "object")
|
|
228
|
-
throw new Error(
|
|
223
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
229
224
|
this.send(command, optionsOrCb || {}, cb);
|
|
230
225
|
}
|
|
231
226
|
else {
|
|
232
227
|
return this.send(command, optionsOrCb);
|
|
233
228
|
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
229
|
+
}
|
|
230
|
+
untagResource(args, optionsOrCb, cb) {
|
|
231
|
+
const command = new UntagResourceCommand(args);
|
|
237
232
|
if (typeof optionsOrCb === "function") {
|
|
238
233
|
this.send(command, optionsOrCb);
|
|
239
234
|
}
|
|
240
235
|
else if (typeof cb === "function") {
|
|
241
236
|
if (typeof optionsOrCb !== "object")
|
|
242
|
-
throw new Error(
|
|
237
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
243
238
|
this.send(command, optionsOrCb || {}, cb);
|
|
244
239
|
}
|
|
245
240
|
else {
|
|
246
241
|
return this.send(command, optionsOrCb);
|
|
247
242
|
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
243
|
+
}
|
|
244
|
+
updatePackagingGroup(args, optionsOrCb, cb) {
|
|
245
|
+
const command = new UpdatePackagingGroupCommand(args);
|
|
251
246
|
if (typeof optionsOrCb === "function") {
|
|
252
247
|
this.send(command, optionsOrCb);
|
|
253
248
|
}
|
|
254
249
|
else if (typeof cb === "function") {
|
|
255
250
|
if (typeof optionsOrCb !== "object")
|
|
256
|
-
throw new Error(
|
|
251
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
257
252
|
this.send(command, optionsOrCb || {}, cb);
|
|
258
253
|
}
|
|
259
254
|
else {
|
|
260
255
|
return this.send(command, optionsOrCb);
|
|
261
256
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
}(MediaPackageVodClient));
|
|
265
|
-
export { MediaPackageVod };
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -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 MediaPackageVodClient 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 { MediaPackageVodClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ConfigureLogsRequestFilterSensitiveLog, ConfigureLogsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ConfigureLogsCommand, serializeAws_restJson1ConfigureLogsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ConfigureLogsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "MediaPackageVodClient";
|
|
15
|
+
const commandName = "ConfigureLogsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ConfigureLogsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: ConfigureLogsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ConfigureLogsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1ConfigureLogsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1ConfigureLogsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ConfigureLogsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|