@aws-sdk/client-mediatailor 3.181.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/MediaTailor.js +170 -177
  3. package/dist-es/MediaTailorClient.js +22 -28
  4. package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +21 -28
  5. package/dist-es/commands/CreateChannelCommand.js +21 -28
  6. package/dist-es/commands/CreateLiveSourceCommand.js +21 -28
  7. package/dist-es/commands/CreatePrefetchScheduleCommand.js +21 -28
  8. package/dist-es/commands/CreateProgramCommand.js +21 -28
  9. package/dist-es/commands/CreateSourceLocationCommand.js +21 -28
  10. package/dist-es/commands/CreateVodSourceCommand.js +21 -28
  11. package/dist-es/commands/DeleteChannelCommand.js +21 -28
  12. package/dist-es/commands/DeleteChannelPolicyCommand.js +21 -28
  13. package/dist-es/commands/DeleteLiveSourceCommand.js +21 -28
  14. package/dist-es/commands/DeletePlaybackConfigurationCommand.js +21 -28
  15. package/dist-es/commands/DeletePrefetchScheduleCommand.js +21 -28
  16. package/dist-es/commands/DeleteProgramCommand.js +21 -28
  17. package/dist-es/commands/DeleteSourceLocationCommand.js +21 -28
  18. package/dist-es/commands/DeleteVodSourceCommand.js +21 -28
  19. package/dist-es/commands/DescribeChannelCommand.js +21 -28
  20. package/dist-es/commands/DescribeLiveSourceCommand.js +21 -28
  21. package/dist-es/commands/DescribeProgramCommand.js +21 -28
  22. package/dist-es/commands/DescribeSourceLocationCommand.js +21 -28
  23. package/dist-es/commands/DescribeVodSourceCommand.js +21 -28
  24. package/dist-es/commands/GetChannelPolicyCommand.js +21 -28
  25. package/dist-es/commands/GetChannelScheduleCommand.js +21 -28
  26. package/dist-es/commands/GetPlaybackConfigurationCommand.js +21 -28
  27. package/dist-es/commands/GetPrefetchScheduleCommand.js +21 -28
  28. package/dist-es/commands/ListAlertsCommand.js +21 -28
  29. package/dist-es/commands/ListChannelsCommand.js +21 -28
  30. package/dist-es/commands/ListLiveSourcesCommand.js +21 -28
  31. package/dist-es/commands/ListPlaybackConfigurationsCommand.js +21 -28
  32. package/dist-es/commands/ListPrefetchSchedulesCommand.js +21 -28
  33. package/dist-es/commands/ListSourceLocationsCommand.js +21 -28
  34. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  35. package/dist-es/commands/ListVodSourcesCommand.js +21 -28
  36. package/dist-es/commands/PutChannelPolicyCommand.js +21 -28
  37. package/dist-es/commands/PutPlaybackConfigurationCommand.js +21 -28
  38. package/dist-es/commands/StartChannelCommand.js +21 -28
  39. package/dist-es/commands/StopChannelCommand.js +21 -28
  40. package/dist-es/commands/TagResourceCommand.js +22 -29
  41. package/dist-es/commands/UntagResourceCommand.js +22 -29
  42. package/dist-es/commands/UpdateChannelCommand.js +21 -28
  43. package/dist-es/commands/UpdateLiveSourceCommand.js +21 -28
  44. package/dist-es/commands/UpdateSourceLocationCommand.js +21 -28
  45. package/dist-es/commands/UpdateVodSourceCommand.js +21 -28
  46. package/dist-es/endpoints.js +8 -8
  47. package/dist-es/models/MediaTailorServiceException.js +5 -10
  48. package/dist-es/models/models_0.js +369 -132
  49. package/dist-es/pagination/GetChannelSchedulePaginator.js +25 -68
  50. package/dist-es/pagination/ListAlertsPaginator.js +25 -68
  51. package/dist-es/pagination/ListChannelsPaginator.js +25 -68
  52. package/dist-es/pagination/ListLiveSourcesPaginator.js +25 -68
  53. package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +25 -68
  54. package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +25 -68
  55. package/dist-es/pagination/ListSourceLocationsPaginator.js +25 -68
  56. package/dist-es/pagination/ListVodSourcesPaginator.js +25 -68
  57. package/dist-es/protocols/Aws_restJson1.js +2754 -3658
  58. package/dist-es/runtimeConfig.browser.js +26 -12
  59. package/dist-es/runtimeConfig.js +30 -12
  60. package/dist-es/runtimeConfig.native.js +8 -5
  61. package/dist-es/runtimeConfig.shared.js +8 -11
  62. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { ConfigureLogsForPlaybackConfigurationCommand, } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
3
2
  import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
4
3
  import { CreateLiveSourceCommand, } from "./commands/CreateLiveSourceCommand";
@@ -42,599 +41,593 @@ import { UpdateLiveSourceCommand, } from "./commands/UpdateLiveSourceCommand";
42
41
  import { UpdateSourceLocationCommand, } from "./commands/UpdateSourceLocationCommand";
43
42
  import { UpdateVodSourceCommand, } from "./commands/UpdateVodSourceCommand";
44
43
  import { MediaTailorClient } from "./MediaTailorClient";
45
- var MediaTailor = (function (_super) {
46
- __extends(MediaTailor, _super);
47
- function MediaTailor() {
48
- return _super !== null && _super.apply(this, arguments) || this;
49
- }
50
- MediaTailor.prototype.configureLogsForPlaybackConfiguration = function (args, optionsOrCb, cb) {
51
- var command = new ConfigureLogsForPlaybackConfigurationCommand(args);
44
+ export class MediaTailor extends MediaTailorClient {
45
+ configureLogsForPlaybackConfiguration(args, optionsOrCb, cb) {
46
+ const command = new ConfigureLogsForPlaybackConfigurationCommand(args);
52
47
  if (typeof optionsOrCb === "function") {
53
48
  this.send(command, optionsOrCb);
54
49
  }
55
50
  else if (typeof cb === "function") {
56
51
  if (typeof optionsOrCb !== "object")
57
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
53
  this.send(command, optionsOrCb || {}, cb);
59
54
  }
60
55
  else {
61
56
  return this.send(command, optionsOrCb);
62
57
  }
63
- };
64
- MediaTailor.prototype.createChannel = function (args, optionsOrCb, cb) {
65
- var command = new CreateChannelCommand(args);
58
+ }
59
+ createChannel(args, optionsOrCb, cb) {
60
+ const command = new CreateChannelCommand(args);
66
61
  if (typeof optionsOrCb === "function") {
67
62
  this.send(command, optionsOrCb);
68
63
  }
69
64
  else if (typeof cb === "function") {
70
65
  if (typeof optionsOrCb !== "object")
71
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
67
  this.send(command, optionsOrCb || {}, cb);
73
68
  }
74
69
  else {
75
70
  return this.send(command, optionsOrCb);
76
71
  }
77
- };
78
- MediaTailor.prototype.createLiveSource = function (args, optionsOrCb, cb) {
79
- var command = new CreateLiveSourceCommand(args);
72
+ }
73
+ createLiveSource(args, optionsOrCb, cb) {
74
+ const command = new CreateLiveSourceCommand(args);
80
75
  if (typeof optionsOrCb === "function") {
81
76
  this.send(command, optionsOrCb);
82
77
  }
83
78
  else if (typeof cb === "function") {
84
79
  if (typeof optionsOrCb !== "object")
85
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
81
  this.send(command, optionsOrCb || {}, cb);
87
82
  }
88
83
  else {
89
84
  return this.send(command, optionsOrCb);
90
85
  }
91
- };
92
- MediaTailor.prototype.createPrefetchSchedule = function (args, optionsOrCb, cb) {
93
- var command = new CreatePrefetchScheduleCommand(args);
86
+ }
87
+ createPrefetchSchedule(args, optionsOrCb, cb) {
88
+ const command = new CreatePrefetchScheduleCommand(args);
94
89
  if (typeof optionsOrCb === "function") {
95
90
  this.send(command, optionsOrCb);
96
91
  }
97
92
  else if (typeof cb === "function") {
98
93
  if (typeof optionsOrCb !== "object")
99
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
95
  this.send(command, optionsOrCb || {}, cb);
101
96
  }
102
97
  else {
103
98
  return this.send(command, optionsOrCb);
104
99
  }
105
- };
106
- MediaTailor.prototype.createProgram = function (args, optionsOrCb, cb) {
107
- var command = new CreateProgramCommand(args);
100
+ }
101
+ createProgram(args, optionsOrCb, cb) {
102
+ const command = new CreateProgramCommand(args);
108
103
  if (typeof optionsOrCb === "function") {
109
104
  this.send(command, optionsOrCb);
110
105
  }
111
106
  else if (typeof cb === "function") {
112
107
  if (typeof optionsOrCb !== "object")
113
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
109
  this.send(command, optionsOrCb || {}, cb);
115
110
  }
116
111
  else {
117
112
  return this.send(command, optionsOrCb);
118
113
  }
119
- };
120
- MediaTailor.prototype.createSourceLocation = function (args, optionsOrCb, cb) {
121
- var command = new CreateSourceLocationCommand(args);
114
+ }
115
+ createSourceLocation(args, optionsOrCb, cb) {
116
+ const command = new CreateSourceLocationCommand(args);
122
117
  if (typeof optionsOrCb === "function") {
123
118
  this.send(command, optionsOrCb);
124
119
  }
125
120
  else if (typeof cb === "function") {
126
121
  if (typeof optionsOrCb !== "object")
127
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
123
  this.send(command, optionsOrCb || {}, cb);
129
124
  }
130
125
  else {
131
126
  return this.send(command, optionsOrCb);
132
127
  }
133
- };
134
- MediaTailor.prototype.createVodSource = function (args, optionsOrCb, cb) {
135
- var command = new CreateVodSourceCommand(args);
128
+ }
129
+ createVodSource(args, optionsOrCb, cb) {
130
+ const command = new CreateVodSourceCommand(args);
136
131
  if (typeof optionsOrCb === "function") {
137
132
  this.send(command, optionsOrCb);
138
133
  }
139
134
  else if (typeof cb === "function") {
140
135
  if (typeof optionsOrCb !== "object")
141
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
136
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
137
  this.send(command, optionsOrCb || {}, cb);
143
138
  }
144
139
  else {
145
140
  return this.send(command, optionsOrCb);
146
141
  }
147
- };
148
- MediaTailor.prototype.deleteChannel = function (args, optionsOrCb, cb) {
149
- var command = new DeleteChannelCommand(args);
142
+ }
143
+ deleteChannel(args, optionsOrCb, cb) {
144
+ const command = new DeleteChannelCommand(args);
150
145
  if (typeof optionsOrCb === "function") {
151
146
  this.send(command, optionsOrCb);
152
147
  }
153
148
  else if (typeof cb === "function") {
154
149
  if (typeof optionsOrCb !== "object")
155
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
150
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
151
  this.send(command, optionsOrCb || {}, cb);
157
152
  }
158
153
  else {
159
154
  return this.send(command, optionsOrCb);
160
155
  }
161
- };
162
- MediaTailor.prototype.deleteChannelPolicy = function (args, optionsOrCb, cb) {
163
- var command = new DeleteChannelPolicyCommand(args);
156
+ }
157
+ deleteChannelPolicy(args, optionsOrCb, cb) {
158
+ const command = new DeleteChannelPolicyCommand(args);
164
159
  if (typeof optionsOrCb === "function") {
165
160
  this.send(command, optionsOrCb);
166
161
  }
167
162
  else if (typeof cb === "function") {
168
163
  if (typeof optionsOrCb !== "object")
169
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
164
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
165
  this.send(command, optionsOrCb || {}, cb);
171
166
  }
172
167
  else {
173
168
  return this.send(command, optionsOrCb);
174
169
  }
175
- };
176
- MediaTailor.prototype.deleteLiveSource = function (args, optionsOrCb, cb) {
177
- var command = new DeleteLiveSourceCommand(args);
170
+ }
171
+ deleteLiveSource(args, optionsOrCb, cb) {
172
+ const command = new DeleteLiveSourceCommand(args);
178
173
  if (typeof optionsOrCb === "function") {
179
174
  this.send(command, optionsOrCb);
180
175
  }
181
176
  else if (typeof cb === "function") {
182
177
  if (typeof optionsOrCb !== "object")
183
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
178
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
179
  this.send(command, optionsOrCb || {}, cb);
185
180
  }
186
181
  else {
187
182
  return this.send(command, optionsOrCb);
188
183
  }
189
- };
190
- MediaTailor.prototype.deletePlaybackConfiguration = function (args, optionsOrCb, cb) {
191
- var command = new DeletePlaybackConfigurationCommand(args);
184
+ }
185
+ deletePlaybackConfiguration(args, optionsOrCb, cb) {
186
+ const command = new DeletePlaybackConfigurationCommand(args);
192
187
  if (typeof optionsOrCb === "function") {
193
188
  this.send(command, optionsOrCb);
194
189
  }
195
190
  else if (typeof cb === "function") {
196
191
  if (typeof optionsOrCb !== "object")
197
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
192
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
193
  this.send(command, optionsOrCb || {}, cb);
199
194
  }
200
195
  else {
201
196
  return this.send(command, optionsOrCb);
202
197
  }
203
- };
204
- MediaTailor.prototype.deletePrefetchSchedule = function (args, optionsOrCb, cb) {
205
- var command = new DeletePrefetchScheduleCommand(args);
198
+ }
199
+ deletePrefetchSchedule(args, optionsOrCb, cb) {
200
+ const command = new DeletePrefetchScheduleCommand(args);
206
201
  if (typeof optionsOrCb === "function") {
207
202
  this.send(command, optionsOrCb);
208
203
  }
209
204
  else if (typeof cb === "function") {
210
205
  if (typeof optionsOrCb !== "object")
211
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
206
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
207
  this.send(command, optionsOrCb || {}, cb);
213
208
  }
214
209
  else {
215
210
  return this.send(command, optionsOrCb);
216
211
  }
217
- };
218
- MediaTailor.prototype.deleteProgram = function (args, optionsOrCb, cb) {
219
- var command = new DeleteProgramCommand(args);
212
+ }
213
+ deleteProgram(args, optionsOrCb, cb) {
214
+ const command = new DeleteProgramCommand(args);
220
215
  if (typeof optionsOrCb === "function") {
221
216
  this.send(command, optionsOrCb);
222
217
  }
223
218
  else if (typeof cb === "function") {
224
219
  if (typeof optionsOrCb !== "object")
225
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
220
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
221
  this.send(command, optionsOrCb || {}, cb);
227
222
  }
228
223
  else {
229
224
  return this.send(command, optionsOrCb);
230
225
  }
231
- };
232
- MediaTailor.prototype.deleteSourceLocation = function (args, optionsOrCb, cb) {
233
- var command = new DeleteSourceLocationCommand(args);
226
+ }
227
+ deleteSourceLocation(args, optionsOrCb, cb) {
228
+ const command = new DeleteSourceLocationCommand(args);
234
229
  if (typeof optionsOrCb === "function") {
235
230
  this.send(command, optionsOrCb);
236
231
  }
237
232
  else if (typeof cb === "function") {
238
233
  if (typeof optionsOrCb !== "object")
239
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
234
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
235
  this.send(command, optionsOrCb || {}, cb);
241
236
  }
242
237
  else {
243
238
  return this.send(command, optionsOrCb);
244
239
  }
245
- };
246
- MediaTailor.prototype.deleteVodSource = function (args, optionsOrCb, cb) {
247
- var command = new DeleteVodSourceCommand(args);
240
+ }
241
+ deleteVodSource(args, optionsOrCb, cb) {
242
+ const command = new DeleteVodSourceCommand(args);
248
243
  if (typeof optionsOrCb === "function") {
249
244
  this.send(command, optionsOrCb);
250
245
  }
251
246
  else if (typeof cb === "function") {
252
247
  if (typeof optionsOrCb !== "object")
253
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
248
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
249
  this.send(command, optionsOrCb || {}, cb);
255
250
  }
256
251
  else {
257
252
  return this.send(command, optionsOrCb);
258
253
  }
259
- };
260
- MediaTailor.prototype.describeChannel = function (args, optionsOrCb, cb) {
261
- var command = new DescribeChannelCommand(args);
254
+ }
255
+ describeChannel(args, optionsOrCb, cb) {
256
+ const command = new DescribeChannelCommand(args);
262
257
  if (typeof optionsOrCb === "function") {
263
258
  this.send(command, optionsOrCb);
264
259
  }
265
260
  else if (typeof cb === "function") {
266
261
  if (typeof optionsOrCb !== "object")
267
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
262
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
263
  this.send(command, optionsOrCb || {}, cb);
269
264
  }
270
265
  else {
271
266
  return this.send(command, optionsOrCb);
272
267
  }
273
- };
274
- MediaTailor.prototype.describeLiveSource = function (args, optionsOrCb, cb) {
275
- var command = new DescribeLiveSourceCommand(args);
268
+ }
269
+ describeLiveSource(args, optionsOrCb, cb) {
270
+ const command = new DescribeLiveSourceCommand(args);
276
271
  if (typeof optionsOrCb === "function") {
277
272
  this.send(command, optionsOrCb);
278
273
  }
279
274
  else if (typeof cb === "function") {
280
275
  if (typeof optionsOrCb !== "object")
281
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
276
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
277
  this.send(command, optionsOrCb || {}, cb);
283
278
  }
284
279
  else {
285
280
  return this.send(command, optionsOrCb);
286
281
  }
287
- };
288
- MediaTailor.prototype.describeProgram = function (args, optionsOrCb, cb) {
289
- var command = new DescribeProgramCommand(args);
282
+ }
283
+ describeProgram(args, optionsOrCb, cb) {
284
+ const command = new DescribeProgramCommand(args);
290
285
  if (typeof optionsOrCb === "function") {
291
286
  this.send(command, optionsOrCb);
292
287
  }
293
288
  else if (typeof cb === "function") {
294
289
  if (typeof optionsOrCb !== "object")
295
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
290
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
291
  this.send(command, optionsOrCb || {}, cb);
297
292
  }
298
293
  else {
299
294
  return this.send(command, optionsOrCb);
300
295
  }
301
- };
302
- MediaTailor.prototype.describeSourceLocation = function (args, optionsOrCb, cb) {
303
- var command = new DescribeSourceLocationCommand(args);
296
+ }
297
+ describeSourceLocation(args, optionsOrCb, cb) {
298
+ const command = new DescribeSourceLocationCommand(args);
304
299
  if (typeof optionsOrCb === "function") {
305
300
  this.send(command, optionsOrCb);
306
301
  }
307
302
  else if (typeof cb === "function") {
308
303
  if (typeof optionsOrCb !== "object")
309
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
304
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
305
  this.send(command, optionsOrCb || {}, cb);
311
306
  }
312
307
  else {
313
308
  return this.send(command, optionsOrCb);
314
309
  }
315
- };
316
- MediaTailor.prototype.describeVodSource = function (args, optionsOrCb, cb) {
317
- var command = new DescribeVodSourceCommand(args);
310
+ }
311
+ describeVodSource(args, optionsOrCb, cb) {
312
+ const command = new DescribeVodSourceCommand(args);
318
313
  if (typeof optionsOrCb === "function") {
319
314
  this.send(command, optionsOrCb);
320
315
  }
321
316
  else if (typeof cb === "function") {
322
317
  if (typeof optionsOrCb !== "object")
323
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
318
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
319
  this.send(command, optionsOrCb || {}, cb);
325
320
  }
326
321
  else {
327
322
  return this.send(command, optionsOrCb);
328
323
  }
329
- };
330
- MediaTailor.prototype.getChannelPolicy = function (args, optionsOrCb, cb) {
331
- var command = new GetChannelPolicyCommand(args);
324
+ }
325
+ getChannelPolicy(args, optionsOrCb, cb) {
326
+ const command = new GetChannelPolicyCommand(args);
332
327
  if (typeof optionsOrCb === "function") {
333
328
  this.send(command, optionsOrCb);
334
329
  }
335
330
  else if (typeof cb === "function") {
336
331
  if (typeof optionsOrCb !== "object")
337
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
332
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
333
  this.send(command, optionsOrCb || {}, cb);
339
334
  }
340
335
  else {
341
336
  return this.send(command, optionsOrCb);
342
337
  }
343
- };
344
- MediaTailor.prototype.getChannelSchedule = function (args, optionsOrCb, cb) {
345
- var command = new GetChannelScheduleCommand(args);
338
+ }
339
+ getChannelSchedule(args, optionsOrCb, cb) {
340
+ const command = new GetChannelScheduleCommand(args);
346
341
  if (typeof optionsOrCb === "function") {
347
342
  this.send(command, optionsOrCb);
348
343
  }
349
344
  else if (typeof cb === "function") {
350
345
  if (typeof optionsOrCb !== "object")
351
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
346
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
347
  this.send(command, optionsOrCb || {}, cb);
353
348
  }
354
349
  else {
355
350
  return this.send(command, optionsOrCb);
356
351
  }
357
- };
358
- MediaTailor.prototype.getPlaybackConfiguration = function (args, optionsOrCb, cb) {
359
- var command = new GetPlaybackConfigurationCommand(args);
352
+ }
353
+ getPlaybackConfiguration(args, optionsOrCb, cb) {
354
+ const command = new GetPlaybackConfigurationCommand(args);
360
355
  if (typeof optionsOrCb === "function") {
361
356
  this.send(command, optionsOrCb);
362
357
  }
363
358
  else if (typeof cb === "function") {
364
359
  if (typeof optionsOrCb !== "object")
365
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
360
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
361
  this.send(command, optionsOrCb || {}, cb);
367
362
  }
368
363
  else {
369
364
  return this.send(command, optionsOrCb);
370
365
  }
371
- };
372
- MediaTailor.prototype.getPrefetchSchedule = function (args, optionsOrCb, cb) {
373
- var command = new GetPrefetchScheduleCommand(args);
366
+ }
367
+ getPrefetchSchedule(args, optionsOrCb, cb) {
368
+ const command = new GetPrefetchScheduleCommand(args);
374
369
  if (typeof optionsOrCb === "function") {
375
370
  this.send(command, optionsOrCb);
376
371
  }
377
372
  else if (typeof cb === "function") {
378
373
  if (typeof optionsOrCb !== "object")
379
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
374
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
375
  this.send(command, optionsOrCb || {}, cb);
381
376
  }
382
377
  else {
383
378
  return this.send(command, optionsOrCb);
384
379
  }
385
- };
386
- MediaTailor.prototype.listAlerts = function (args, optionsOrCb, cb) {
387
- var command = new ListAlertsCommand(args);
380
+ }
381
+ listAlerts(args, optionsOrCb, cb) {
382
+ const command = new ListAlertsCommand(args);
388
383
  if (typeof optionsOrCb === "function") {
389
384
  this.send(command, optionsOrCb);
390
385
  }
391
386
  else if (typeof cb === "function") {
392
387
  if (typeof optionsOrCb !== "object")
393
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
388
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
389
  this.send(command, optionsOrCb || {}, cb);
395
390
  }
396
391
  else {
397
392
  return this.send(command, optionsOrCb);
398
393
  }
399
- };
400
- MediaTailor.prototype.listChannels = function (args, optionsOrCb, cb) {
401
- var command = new ListChannelsCommand(args);
394
+ }
395
+ listChannels(args, optionsOrCb, cb) {
396
+ const command = new ListChannelsCommand(args);
402
397
  if (typeof optionsOrCb === "function") {
403
398
  this.send(command, optionsOrCb);
404
399
  }
405
400
  else if (typeof cb === "function") {
406
401
  if (typeof optionsOrCb !== "object")
407
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
402
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
403
  this.send(command, optionsOrCb || {}, cb);
409
404
  }
410
405
  else {
411
406
  return this.send(command, optionsOrCb);
412
407
  }
413
- };
414
- MediaTailor.prototype.listLiveSources = function (args, optionsOrCb, cb) {
415
- var command = new ListLiveSourcesCommand(args);
408
+ }
409
+ listLiveSources(args, optionsOrCb, cb) {
410
+ const command = new ListLiveSourcesCommand(args);
416
411
  if (typeof optionsOrCb === "function") {
417
412
  this.send(command, optionsOrCb);
418
413
  }
419
414
  else if (typeof cb === "function") {
420
415
  if (typeof optionsOrCb !== "object")
421
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
416
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
417
  this.send(command, optionsOrCb || {}, cb);
423
418
  }
424
419
  else {
425
420
  return this.send(command, optionsOrCb);
426
421
  }
427
- };
428
- MediaTailor.prototype.listPlaybackConfigurations = function (args, optionsOrCb, cb) {
429
- var command = new ListPlaybackConfigurationsCommand(args);
422
+ }
423
+ listPlaybackConfigurations(args, optionsOrCb, cb) {
424
+ const command = new ListPlaybackConfigurationsCommand(args);
430
425
  if (typeof optionsOrCb === "function") {
431
426
  this.send(command, optionsOrCb);
432
427
  }
433
428
  else if (typeof cb === "function") {
434
429
  if (typeof optionsOrCb !== "object")
435
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
430
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
431
  this.send(command, optionsOrCb || {}, cb);
437
432
  }
438
433
  else {
439
434
  return this.send(command, optionsOrCb);
440
435
  }
441
- };
442
- MediaTailor.prototype.listPrefetchSchedules = function (args, optionsOrCb, cb) {
443
- var command = new ListPrefetchSchedulesCommand(args);
436
+ }
437
+ listPrefetchSchedules(args, optionsOrCb, cb) {
438
+ const command = new ListPrefetchSchedulesCommand(args);
444
439
  if (typeof optionsOrCb === "function") {
445
440
  this.send(command, optionsOrCb);
446
441
  }
447
442
  else if (typeof cb === "function") {
448
443
  if (typeof optionsOrCb !== "object")
449
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
444
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
450
445
  this.send(command, optionsOrCb || {}, cb);
451
446
  }
452
447
  else {
453
448
  return this.send(command, optionsOrCb);
454
449
  }
455
- };
456
- MediaTailor.prototype.listSourceLocations = function (args, optionsOrCb, cb) {
457
- var command = new ListSourceLocationsCommand(args);
450
+ }
451
+ listSourceLocations(args, optionsOrCb, cb) {
452
+ const command = new ListSourceLocationsCommand(args);
458
453
  if (typeof optionsOrCb === "function") {
459
454
  this.send(command, optionsOrCb);
460
455
  }
461
456
  else if (typeof cb === "function") {
462
457
  if (typeof optionsOrCb !== "object")
463
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
458
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
464
459
  this.send(command, optionsOrCb || {}, cb);
465
460
  }
466
461
  else {
467
462
  return this.send(command, optionsOrCb);
468
463
  }
469
- };
470
- MediaTailor.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
471
- var command = new ListTagsForResourceCommand(args);
464
+ }
465
+ listTagsForResource(args, optionsOrCb, cb) {
466
+ const command = new ListTagsForResourceCommand(args);
472
467
  if (typeof optionsOrCb === "function") {
473
468
  this.send(command, optionsOrCb);
474
469
  }
475
470
  else if (typeof cb === "function") {
476
471
  if (typeof optionsOrCb !== "object")
477
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
472
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
478
473
  this.send(command, optionsOrCb || {}, cb);
479
474
  }
480
475
  else {
481
476
  return this.send(command, optionsOrCb);
482
477
  }
483
- };
484
- MediaTailor.prototype.listVodSources = function (args, optionsOrCb, cb) {
485
- var command = new ListVodSourcesCommand(args);
478
+ }
479
+ listVodSources(args, optionsOrCb, cb) {
480
+ const command = new ListVodSourcesCommand(args);
486
481
  if (typeof optionsOrCb === "function") {
487
482
  this.send(command, optionsOrCb);
488
483
  }
489
484
  else if (typeof cb === "function") {
490
485
  if (typeof optionsOrCb !== "object")
491
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
486
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
492
487
  this.send(command, optionsOrCb || {}, cb);
493
488
  }
494
489
  else {
495
490
  return this.send(command, optionsOrCb);
496
491
  }
497
- };
498
- MediaTailor.prototype.putChannelPolicy = function (args, optionsOrCb, cb) {
499
- var command = new PutChannelPolicyCommand(args);
492
+ }
493
+ putChannelPolicy(args, optionsOrCb, cb) {
494
+ const command = new PutChannelPolicyCommand(args);
500
495
  if (typeof optionsOrCb === "function") {
501
496
  this.send(command, optionsOrCb);
502
497
  }
503
498
  else if (typeof cb === "function") {
504
499
  if (typeof optionsOrCb !== "object")
505
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
500
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
506
501
  this.send(command, optionsOrCb || {}, cb);
507
502
  }
508
503
  else {
509
504
  return this.send(command, optionsOrCb);
510
505
  }
511
- };
512
- MediaTailor.prototype.putPlaybackConfiguration = function (args, optionsOrCb, cb) {
513
- var command = new PutPlaybackConfigurationCommand(args);
506
+ }
507
+ putPlaybackConfiguration(args, optionsOrCb, cb) {
508
+ const command = new PutPlaybackConfigurationCommand(args);
514
509
  if (typeof optionsOrCb === "function") {
515
510
  this.send(command, optionsOrCb);
516
511
  }
517
512
  else if (typeof cb === "function") {
518
513
  if (typeof optionsOrCb !== "object")
519
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
514
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
520
515
  this.send(command, optionsOrCb || {}, cb);
521
516
  }
522
517
  else {
523
518
  return this.send(command, optionsOrCb);
524
519
  }
525
- };
526
- MediaTailor.prototype.startChannel = function (args, optionsOrCb, cb) {
527
- var command = new StartChannelCommand(args);
520
+ }
521
+ startChannel(args, optionsOrCb, cb) {
522
+ const command = new StartChannelCommand(args);
528
523
  if (typeof optionsOrCb === "function") {
529
524
  this.send(command, optionsOrCb);
530
525
  }
531
526
  else if (typeof cb === "function") {
532
527
  if (typeof optionsOrCb !== "object")
533
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
528
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
534
529
  this.send(command, optionsOrCb || {}, cb);
535
530
  }
536
531
  else {
537
532
  return this.send(command, optionsOrCb);
538
533
  }
539
- };
540
- MediaTailor.prototype.stopChannel = function (args, optionsOrCb, cb) {
541
- var command = new StopChannelCommand(args);
534
+ }
535
+ stopChannel(args, optionsOrCb, cb) {
536
+ const command = new StopChannelCommand(args);
542
537
  if (typeof optionsOrCb === "function") {
543
538
  this.send(command, optionsOrCb);
544
539
  }
545
540
  else if (typeof cb === "function") {
546
541
  if (typeof optionsOrCb !== "object")
547
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
542
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
548
543
  this.send(command, optionsOrCb || {}, cb);
549
544
  }
550
545
  else {
551
546
  return this.send(command, optionsOrCb);
552
547
  }
553
- };
554
- MediaTailor.prototype.tagResource = function (args, optionsOrCb, cb) {
555
- var command = new TagResourceCommand(args);
548
+ }
549
+ tagResource(args, optionsOrCb, cb) {
550
+ const command = new TagResourceCommand(args);
556
551
  if (typeof optionsOrCb === "function") {
557
552
  this.send(command, optionsOrCb);
558
553
  }
559
554
  else if (typeof cb === "function") {
560
555
  if (typeof optionsOrCb !== "object")
561
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
556
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
562
557
  this.send(command, optionsOrCb || {}, cb);
563
558
  }
564
559
  else {
565
560
  return this.send(command, optionsOrCb);
566
561
  }
567
- };
568
- MediaTailor.prototype.untagResource = function (args, optionsOrCb, cb) {
569
- var command = new UntagResourceCommand(args);
562
+ }
563
+ untagResource(args, optionsOrCb, cb) {
564
+ const command = new UntagResourceCommand(args);
570
565
  if (typeof optionsOrCb === "function") {
571
566
  this.send(command, optionsOrCb);
572
567
  }
573
568
  else if (typeof cb === "function") {
574
569
  if (typeof optionsOrCb !== "object")
575
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
570
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
576
571
  this.send(command, optionsOrCb || {}, cb);
577
572
  }
578
573
  else {
579
574
  return this.send(command, optionsOrCb);
580
575
  }
581
- };
582
- MediaTailor.prototype.updateChannel = function (args, optionsOrCb, cb) {
583
- var command = new UpdateChannelCommand(args);
576
+ }
577
+ updateChannel(args, optionsOrCb, cb) {
578
+ const command = new UpdateChannelCommand(args);
584
579
  if (typeof optionsOrCb === "function") {
585
580
  this.send(command, optionsOrCb);
586
581
  }
587
582
  else if (typeof cb === "function") {
588
583
  if (typeof optionsOrCb !== "object")
589
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
584
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
590
585
  this.send(command, optionsOrCb || {}, cb);
591
586
  }
592
587
  else {
593
588
  return this.send(command, optionsOrCb);
594
589
  }
595
- };
596
- MediaTailor.prototype.updateLiveSource = function (args, optionsOrCb, cb) {
597
- var command = new UpdateLiveSourceCommand(args);
590
+ }
591
+ updateLiveSource(args, optionsOrCb, cb) {
592
+ const command = new UpdateLiveSourceCommand(args);
598
593
  if (typeof optionsOrCb === "function") {
599
594
  this.send(command, optionsOrCb);
600
595
  }
601
596
  else if (typeof cb === "function") {
602
597
  if (typeof optionsOrCb !== "object")
603
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
598
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
604
599
  this.send(command, optionsOrCb || {}, cb);
605
600
  }
606
601
  else {
607
602
  return this.send(command, optionsOrCb);
608
603
  }
609
- };
610
- MediaTailor.prototype.updateSourceLocation = function (args, optionsOrCb, cb) {
611
- var command = new UpdateSourceLocationCommand(args);
604
+ }
605
+ updateSourceLocation(args, optionsOrCb, cb) {
606
+ const command = new UpdateSourceLocationCommand(args);
612
607
  if (typeof optionsOrCb === "function") {
613
608
  this.send(command, optionsOrCb);
614
609
  }
615
610
  else if (typeof cb === "function") {
616
611
  if (typeof optionsOrCb !== "object")
617
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
612
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
618
613
  this.send(command, optionsOrCb || {}, cb);
619
614
  }
620
615
  else {
621
616
  return this.send(command, optionsOrCb);
622
617
  }
623
- };
624
- MediaTailor.prototype.updateVodSource = function (args, optionsOrCb, cb) {
625
- var command = new UpdateVodSourceCommand(args);
618
+ }
619
+ updateVodSource(args, optionsOrCb, cb) {
620
+ const command = new UpdateVodSourceCommand(args);
626
621
  if (typeof optionsOrCb === "function") {
627
622
  this.send(command, optionsOrCb);
628
623
  }
629
624
  else if (typeof cb === "function") {
630
625
  if (typeof optionsOrCb !== "object")
631
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
626
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
632
627
  this.send(command, optionsOrCb || {}, cb);
633
628
  }
634
629
  else {
635
630
  return this.send(command, optionsOrCb);
636
631
  }
637
- };
638
- return MediaTailor;
639
- }(MediaTailorClient));
640
- export { MediaTailor };
632
+ }
633
+ }