@aws-sdk/client-mediapackage-vod 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/MediaPackageVod.js +77 -70
- package/dist-es/MediaPackageVodClient.js +28 -22
- package/dist-es/commands/ConfigureLogsCommand.js +28 -21
- package/dist-es/commands/CreateAssetCommand.js +28 -21
- package/dist-es/commands/CreatePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/CreatePackagingGroupCommand.js +28 -21
- package/dist-es/commands/DeleteAssetCommand.js +28 -21
- package/dist-es/commands/DeletePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/DeletePackagingGroupCommand.js +28 -21
- package/dist-es/commands/DescribeAssetCommand.js +28 -21
- package/dist-es/commands/DescribePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribePackagingGroupCommand.js +28 -21
- package/dist-es/commands/ListAssetsCommand.js +28 -21
- package/dist-es/commands/ListPackagingConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListPackagingGroupsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdatePackagingGroupCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaPackageVodServiceException.js +10 -5
- package/dist-es/models/models_0.js +124 -225
- package/dist-es/pagination/ListAssetsPaginator.js +68 -25
- package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +68 -25
- package/dist-es/pagination/ListPackagingGroupsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1997 -1530
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { MediaPackageVodServiceException as __BaseException } from "./MediaPackageVodServiceException";
|
|
2
3
|
export var __PeriodTriggersElement;
|
|
3
4
|
(function (__PeriodTriggersElement) {
|
|
@@ -41,234 +42,132 @@ export var EncryptionMethod;
|
|
|
41
42
|
EncryptionMethod["AES_128"] = "AES_128";
|
|
42
43
|
EncryptionMethod["SAMPLE_AES"] = "SAMPLE_AES";
|
|
43
44
|
})(EncryptionMethod || (EncryptionMethod = {}));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
54
|
-
this.Message = opts.Message;
|
|
45
|
+
var ForbiddenException = (function (_super) {
|
|
46
|
+
__extends(ForbiddenException, _super);
|
|
47
|
+
function ForbiddenException(opts) {
|
|
48
|
+
var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
|
|
49
|
+
_this.name = "ForbiddenException";
|
|
50
|
+
_this.$fault = "client";
|
|
51
|
+
Object.setPrototypeOf(_this, ForbiddenException.prototype);
|
|
52
|
+
_this.Message = opts.Message;
|
|
53
|
+
return _this;
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
return ForbiddenException;
|
|
56
|
+
}(__BaseException));
|
|
57
|
+
export { ForbiddenException };
|
|
58
|
+
var InternalServerErrorException = (function (_super) {
|
|
59
|
+
__extends(InternalServerErrorException, _super);
|
|
60
|
+
function InternalServerErrorException(opts) {
|
|
61
|
+
var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
|
|
62
|
+
_this.name = "InternalServerErrorException";
|
|
63
|
+
_this.$fault = "server";
|
|
64
|
+
Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
|
|
65
|
+
_this.Message = opts.Message;
|
|
66
|
+
return _this;
|
|
68
67
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
68
|
+
return InternalServerErrorException;
|
|
69
|
+
}(__BaseException));
|
|
70
|
+
export { InternalServerErrorException };
|
|
71
|
+
var NotFoundException = (function (_super) {
|
|
72
|
+
__extends(NotFoundException, _super);
|
|
73
|
+
function NotFoundException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "NotFoundException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, NotFoundException.prototype);
|
|
78
|
+
_this.Message = opts.Message;
|
|
79
|
+
return _this;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
return NotFoundException;
|
|
82
|
+
}(__BaseException));
|
|
83
|
+
export { NotFoundException };
|
|
84
|
+
var ServiceUnavailableException = (function (_super) {
|
|
85
|
+
__extends(ServiceUnavailableException, _super);
|
|
86
|
+
function ServiceUnavailableException(opts) {
|
|
87
|
+
var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
|
|
88
|
+
_this.name = "ServiceUnavailableException";
|
|
89
|
+
_this.$fault = "server";
|
|
90
|
+
Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
|
|
91
|
+
_this.Message = opts.Message;
|
|
92
|
+
return _this;
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
return ServiceUnavailableException;
|
|
95
|
+
}(__BaseException));
|
|
96
|
+
export { ServiceUnavailableException };
|
|
97
|
+
var TooManyRequestsException = (function (_super) {
|
|
98
|
+
__extends(TooManyRequestsException, _super);
|
|
99
|
+
function TooManyRequestsException(opts) {
|
|
100
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
101
|
+
_this.name = "TooManyRequestsException";
|
|
102
|
+
_this.$fault = "client";
|
|
103
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
104
|
+
_this.Message = opts.Message;
|
|
105
|
+
return _this;
|
|
107
106
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
107
|
+
return TooManyRequestsException;
|
|
108
|
+
}(__BaseException));
|
|
109
|
+
export { TooManyRequestsException };
|
|
110
|
+
var UnprocessableEntityException = (function (_super) {
|
|
111
|
+
__extends(UnprocessableEntityException, _super);
|
|
112
|
+
function UnprocessableEntityException(opts) {
|
|
113
|
+
var _this = _super.call(this, __assign({ name: "UnprocessableEntityException", $fault: "client" }, opts)) || this;
|
|
114
|
+
_this.name = "UnprocessableEntityException";
|
|
115
|
+
_this.$fault = "client";
|
|
116
|
+
Object.setPrototypeOf(_this, UnprocessableEntityException.prototype);
|
|
117
|
+
_this.Message = opts.Message;
|
|
118
|
+
return _this;
|
|
120
119
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
});
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
});
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
});
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
export
|
|
135
|
-
|
|
136
|
-
});
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
});
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
});
|
|
149
|
-
export
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
});
|
|
155
|
-
export
|
|
156
|
-
|
|
157
|
-
});
|
|
158
|
-
export
|
|
159
|
-
|
|
160
|
-
});
|
|
161
|
-
export
|
|
162
|
-
|
|
163
|
-
});
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
});
|
|
167
|
-
export
|
|
168
|
-
|
|
169
|
-
});
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
});
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
});
|
|
176
|
-
export const PackagingGroupFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const ConfigureLogsRequestFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
export const ConfigureLogsResponseFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
export const CreateAssetRequestFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
export const CreateAssetResponseFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
export const CreatePackagingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
export const CreatePackagingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
});
|
|
197
|
-
export const CreatePackagingGroupRequestFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
200
|
-
export const CreatePackagingGroupResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
});
|
|
203
|
-
export const DeleteAssetRequestFilterSensitiveLog = (obj) => ({
|
|
204
|
-
...obj,
|
|
205
|
-
});
|
|
206
|
-
export const DeleteAssetResponseFilterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
});
|
|
209
|
-
export const DeletePackagingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
210
|
-
...obj,
|
|
211
|
-
});
|
|
212
|
-
export const DeletePackagingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
213
|
-
...obj,
|
|
214
|
-
});
|
|
215
|
-
export const DeletePackagingGroupRequestFilterSensitiveLog = (obj) => ({
|
|
216
|
-
...obj,
|
|
217
|
-
});
|
|
218
|
-
export const DeletePackagingGroupResponseFilterSensitiveLog = (obj) => ({
|
|
219
|
-
...obj,
|
|
220
|
-
});
|
|
221
|
-
export const DescribeAssetRequestFilterSensitiveLog = (obj) => ({
|
|
222
|
-
...obj,
|
|
223
|
-
});
|
|
224
|
-
export const DescribeAssetResponseFilterSensitiveLog = (obj) => ({
|
|
225
|
-
...obj,
|
|
226
|
-
});
|
|
227
|
-
export const DescribePackagingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
});
|
|
230
|
-
export const DescribePackagingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
231
|
-
...obj,
|
|
232
|
-
});
|
|
233
|
-
export const DescribePackagingGroupRequestFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
});
|
|
236
|
-
export const DescribePackagingGroupResponseFilterSensitiveLog = (obj) => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
239
|
-
export const ListAssetsRequestFilterSensitiveLog = (obj) => ({
|
|
240
|
-
...obj,
|
|
241
|
-
});
|
|
242
|
-
export const ListAssetsResponseFilterSensitiveLog = (obj) => ({
|
|
243
|
-
...obj,
|
|
244
|
-
});
|
|
245
|
-
export const ListPackagingConfigurationsRequestFilterSensitiveLog = (obj) => ({
|
|
246
|
-
...obj,
|
|
247
|
-
});
|
|
248
|
-
export const ListPackagingConfigurationsResponseFilterSensitiveLog = (obj) => ({
|
|
249
|
-
...obj,
|
|
250
|
-
});
|
|
251
|
-
export const ListPackagingGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
252
|
-
...obj,
|
|
253
|
-
});
|
|
254
|
-
export const ListPackagingGroupsResponseFilterSensitiveLog = (obj) => ({
|
|
255
|
-
...obj,
|
|
256
|
-
});
|
|
257
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
});
|
|
260
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
261
|
-
...obj,
|
|
262
|
-
});
|
|
263
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
});
|
|
266
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
267
|
-
...obj,
|
|
268
|
-
});
|
|
269
|
-
export const UpdatePackagingGroupRequestFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
});
|
|
272
|
-
export const UpdatePackagingGroupResponseFilterSensitiveLog = (obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
});
|
|
120
|
+
return UnprocessableEntityException;
|
|
121
|
+
}(__BaseException));
|
|
122
|
+
export { UnprocessableEntityException };
|
|
123
|
+
export var AssetShallowFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
export var StreamSelectionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
+
export var DashManifestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
+
export var EgressEndpointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
export var HlsManifestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
128
|
+
export var MssManifestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
|
+
export var SpekeKeyProviderFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
+
export var CmafEncryptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
export var CmafPackageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
|
+
export var DashEncryptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var DashPackageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var HlsEncryptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
export var HlsPackageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
+
export var MssEncryptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
+
export var MssPackageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
+
export var PackagingConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
export var AuthorizationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
+
export var EgressAccessLogsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
+
export var PackagingGroupFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
142
|
+
export var ConfigureLogsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
+
export var ConfigureLogsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
|
+
export var CreateAssetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
145
|
+
export var CreateAssetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
146
|
+
export var CreatePackagingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
147
|
+
export var CreatePackagingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
148
|
+
export var CreatePackagingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
+
export var CreatePackagingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
|
+
export var DeleteAssetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
|
+
export var DeleteAssetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
152
|
+
export var DeletePackagingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
|
+
export var DeletePackagingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
export var DeletePackagingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
155
|
+
export var DeletePackagingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
|
+
export var DescribeAssetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
157
|
+
export var DescribeAssetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
|
+
export var DescribePackagingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
159
|
+
export var DescribePackagingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
160
|
+
export var DescribePackagingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
|
+
export var DescribePackagingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
export var ListAssetsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
+
export var ListAssetsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
|
+
export var ListPackagingConfigurationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
|
+
export var ListPackagingConfigurationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
+
export var ListPackagingGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
167
|
+
export var ListPackagingGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
170
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
export var UpdatePackagingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
export var UpdatePackagingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListAssetsCommand } from "../commands/ListAssetsCommand";
|
|
2
3
|
import { MediaPackageVod } from "../MediaPackageVod";
|
|
3
4
|
import { MediaPackageVodClient } from "../MediaPackageVodClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAssetsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAssets.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof MediaPackageVod) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof MediaPackageVodClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListAssets(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAssets_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MediaPackageVod)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MediaPackageVodClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListPackagingConfigurationsCommand, } from "../commands/ListPackagingConfigurationsCommand";
|
|
2
3
|
import { MediaPackageVod } from "../MediaPackageVod";
|
|
3
4
|
import { MediaPackageVodClient } from "../MediaPackageVodClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPackagingConfigurationsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listPackagingConfigurations.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof MediaPackageVod) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof MediaPackageVodClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListPackagingConfigurations(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListPackagingConfigurations_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MediaPackageVod)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MediaPackageVodClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|