@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.
Files changed (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MediaPackageVod.js +77 -70
  4. package/dist-es/MediaPackageVodClient.js +28 -22
  5. package/dist-es/commands/ConfigureLogsCommand.js +28 -21
  6. package/dist-es/commands/CreateAssetCommand.js +28 -21
  7. package/dist-es/commands/CreatePackagingConfigurationCommand.js +28 -21
  8. package/dist-es/commands/CreatePackagingGroupCommand.js +28 -21
  9. package/dist-es/commands/DeleteAssetCommand.js +28 -21
  10. package/dist-es/commands/DeletePackagingConfigurationCommand.js +28 -21
  11. package/dist-es/commands/DeletePackagingGroupCommand.js +28 -21
  12. package/dist-es/commands/DescribeAssetCommand.js +28 -21
  13. package/dist-es/commands/DescribePackagingConfigurationCommand.js +28 -21
  14. package/dist-es/commands/DescribePackagingGroupCommand.js +28 -21
  15. package/dist-es/commands/ListAssetsCommand.js +28 -21
  16. package/dist-es/commands/ListPackagingConfigurationsCommand.js +28 -21
  17. package/dist-es/commands/ListPackagingGroupsCommand.js +28 -21
  18. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  19. package/dist-es/commands/TagResourceCommand.js +29 -22
  20. package/dist-es/commands/UntagResourceCommand.js +29 -22
  21. package/dist-es/commands/UpdatePackagingGroupCommand.js +28 -21
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/MediaPackageVodServiceException.js +10 -5
  24. package/dist-es/models/models_0.js +124 -225
  25. package/dist-es/pagination/ListAssetsPaginator.js +68 -25
  26. package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +68 -25
  27. package/dist-es/pagination/ListPackagingGroupsPaginator.js +68 -25
  28. package/dist-es/protocols/Aws_restJson1.js +1997 -1530
  29. package/dist-es/runtimeConfig.browser.js +12 -26
  30. package/dist-es/runtimeConfig.js +12 -30
  31. package/dist-es/runtimeConfig.native.js +5 -8
  32. package/dist-es/runtimeConfig.shared.js +11 -8
  33. 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
- export class ForbiddenException extends __BaseException {
45
- constructor(opts) {
46
- super({
47
- name: "ForbiddenException",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "ForbiddenException";
52
- this.$fault = "client";
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
- export class InternalServerErrorException extends __BaseException {
58
- constructor(opts) {
59
- super({
60
- name: "InternalServerErrorException",
61
- $fault: "server",
62
- ...opts,
63
- });
64
- this.name = "InternalServerErrorException";
65
- this.$fault = "server";
66
- Object.setPrototypeOf(this, InternalServerErrorException.prototype);
67
- this.Message = opts.Message;
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
- export class NotFoundException extends __BaseException {
71
- constructor(opts) {
72
- super({
73
- name: "NotFoundException",
74
- $fault: "client",
75
- ...opts,
76
- });
77
- this.name = "NotFoundException";
78
- this.$fault = "client";
79
- Object.setPrototypeOf(this, NotFoundException.prototype);
80
- this.Message = opts.Message;
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
- export class ServiceUnavailableException extends __BaseException {
84
- constructor(opts) {
85
- super({
86
- name: "ServiceUnavailableException",
87
- $fault: "server",
88
- ...opts,
89
- });
90
- this.name = "ServiceUnavailableException";
91
- this.$fault = "server";
92
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
93
- this.Message = opts.Message;
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
- export class TooManyRequestsException extends __BaseException {
97
- constructor(opts) {
98
- super({
99
- name: "TooManyRequestsException",
100
- $fault: "client",
101
- ...opts,
102
- });
103
- this.name = "TooManyRequestsException";
104
- this.$fault = "client";
105
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
106
- this.Message = opts.Message;
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
- export class UnprocessableEntityException extends __BaseException {
110
- constructor(opts) {
111
- super({
112
- name: "UnprocessableEntityException",
113
- $fault: "client",
114
- ...opts,
115
- });
116
- this.name = "UnprocessableEntityException";
117
- this.$fault = "client";
118
- Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
119
- this.Message = opts.Message;
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
- export const AssetShallowFilterSensitiveLog = (obj) => ({
123
- ...obj,
124
- });
125
- export const StreamSelectionFilterSensitiveLog = (obj) => ({
126
- ...obj,
127
- });
128
- export const DashManifestFilterSensitiveLog = (obj) => ({
129
- ...obj,
130
- });
131
- export const EgressEndpointFilterSensitiveLog = (obj) => ({
132
- ...obj,
133
- });
134
- export const HlsManifestFilterSensitiveLog = (obj) => ({
135
- ...obj,
136
- });
137
- export const MssManifestFilterSensitiveLog = (obj) => ({
138
- ...obj,
139
- });
140
- export const SpekeKeyProviderFilterSensitiveLog = (obj) => ({
141
- ...obj,
142
- });
143
- export const CmafEncryptionFilterSensitiveLog = (obj) => ({
144
- ...obj,
145
- });
146
- export const CmafPackageFilterSensitiveLog = (obj) => ({
147
- ...obj,
148
- });
149
- export const DashEncryptionFilterSensitiveLog = (obj) => ({
150
- ...obj,
151
- });
152
- export const DashPackageFilterSensitiveLog = (obj) => ({
153
- ...obj,
154
- });
155
- export const HlsEncryptionFilterSensitiveLog = (obj) => ({
156
- ...obj,
157
- });
158
- export const HlsPackageFilterSensitiveLog = (obj) => ({
159
- ...obj,
160
- });
161
- export const MssEncryptionFilterSensitiveLog = (obj) => ({
162
- ...obj,
163
- });
164
- export const MssPackageFilterSensitiveLog = (obj) => ({
165
- ...obj,
166
- });
167
- export const PackagingConfigurationFilterSensitiveLog = (obj) => ({
168
- ...obj,
169
- });
170
- export const AuthorizationFilterSensitiveLog = (obj) => ({
171
- ...obj,
172
- });
173
- export const EgressAccessLogsFilterSensitiveLog = (obj) => ({
174
- ...obj,
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
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListAssetsCommand(input), ...args);
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
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssets(input, ...args);
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 async function* paginateListAssets(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
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 undefined;
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
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListPackagingConfigurationsCommand(input), ...args);
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
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listPackagingConfigurations(input, ...args);
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 async function* paginateListPackagingConfigurations(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
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 undefined;
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
  }