@aws-sdk/client-mediatailor 3.72.0 → 3.76.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 (48) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/MediaTailor.js +75 -0
  3. package/dist-cjs/commands/CreateLiveSourceCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteLiveSourceCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeLiveSourceCommand.js +36 -0
  6. package/dist-cjs/commands/ListLiveSourcesCommand.js +36 -0
  7. package/dist-cjs/commands/UpdateLiveSourceCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +85 -14
  10. package/dist-cjs/pagination/ListLiveSourcesPaginator.js +35 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +499 -2
  13. package/dist-es/MediaTailor.js +75 -0
  14. package/dist-es/commands/CreateLiveSourceCommand.js +39 -0
  15. package/dist-es/commands/DeleteLiveSourceCommand.js +39 -0
  16. package/dist-es/commands/DescribeLiveSourceCommand.js +39 -0
  17. package/dist-es/commands/ListLiveSourcesCommand.js +39 -0
  18. package/dist-es/commands/UpdateLiveSourceCommand.js +39 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +58 -9
  21. package/dist-es/pagination/ListLiveSourcesPaginator.js +74 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +607 -13
  24. package/dist-types/MediaTailor.d.ts +35 -0
  25. package/dist-types/MediaTailorClient.d.ts +7 -2
  26. package/dist-types/commands/CreateLiveSourceCommand.d.ts +35 -0
  27. package/dist-types/commands/DeleteLiveSourceCommand.d.ts +35 -0
  28. package/dist-types/commands/DescribeLiveSourceCommand.d.ts +35 -0
  29. package/dist-types/commands/ListLiveSourcesCommand.d.ts +35 -0
  30. package/dist-types/commands/UpdateLiveSourceCommand.d.ts +35 -0
  31. package/dist-types/commands/index.d.ts +5 -0
  32. package/dist-types/models/models_0.d.ts +387 -39
  33. package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  36. package/dist-types/ts3.4/MediaTailor.d.ts +25 -0
  37. package/dist-types/ts3.4/MediaTailorClient.d.ts +7 -2
  38. package/dist-types/ts3.4/commands/CreateLiveSourceCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/DeleteLiveSourceCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/DescribeLiveSourceCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListLiveSourcesCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/UpdateLiveSourceCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +217 -19
  45. package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +4 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  48. package/package.json +9 -9
@@ -1,18 +1,21 @@
1
1
  import { __extends } from "tslib";
2
2
  import { ConfigureLogsForPlaybackConfigurationCommand, } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
3
3
  import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
4
+ import { CreateLiveSourceCommand, } from "./commands/CreateLiveSourceCommand";
4
5
  import { CreatePrefetchScheduleCommand, } from "./commands/CreatePrefetchScheduleCommand";
5
6
  import { CreateProgramCommand, } from "./commands/CreateProgramCommand";
6
7
  import { CreateSourceLocationCommand, } from "./commands/CreateSourceLocationCommand";
7
8
  import { CreateVodSourceCommand, } from "./commands/CreateVodSourceCommand";
8
9
  import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
9
10
  import { DeleteChannelPolicyCommand, } from "./commands/DeleteChannelPolicyCommand";
11
+ import { DeleteLiveSourceCommand, } from "./commands/DeleteLiveSourceCommand";
10
12
  import { DeletePlaybackConfigurationCommand, } from "./commands/DeletePlaybackConfigurationCommand";
11
13
  import { DeletePrefetchScheduleCommand, } from "./commands/DeletePrefetchScheduleCommand";
12
14
  import { DeleteProgramCommand, } from "./commands/DeleteProgramCommand";
13
15
  import { DeleteSourceLocationCommand, } from "./commands/DeleteSourceLocationCommand";
14
16
  import { DeleteVodSourceCommand, } from "./commands/DeleteVodSourceCommand";
15
17
  import { DescribeChannelCommand, } from "./commands/DescribeChannelCommand";
18
+ import { DescribeLiveSourceCommand, } from "./commands/DescribeLiveSourceCommand";
16
19
  import { DescribeProgramCommand, } from "./commands/DescribeProgramCommand";
17
20
  import { DescribeSourceLocationCommand, } from "./commands/DescribeSourceLocationCommand";
18
21
  import { DescribeVodSourceCommand, } from "./commands/DescribeVodSourceCommand";
@@ -22,6 +25,7 @@ import { GetPlaybackConfigurationCommand, } from "./commands/GetPlaybackConfigur
22
25
  import { GetPrefetchScheduleCommand, } from "./commands/GetPrefetchScheduleCommand";
23
26
  import { ListAlertsCommand } from "./commands/ListAlertsCommand";
24
27
  import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
28
+ import { ListLiveSourcesCommand, } from "./commands/ListLiveSourcesCommand";
25
29
  import { ListPlaybackConfigurationsCommand, } from "./commands/ListPlaybackConfigurationsCommand";
26
30
  import { ListPrefetchSchedulesCommand, } from "./commands/ListPrefetchSchedulesCommand";
27
31
  import { ListSourceLocationsCommand, } from "./commands/ListSourceLocationsCommand";
@@ -34,6 +38,7 @@ import { StopChannelCommand } from "./commands/StopChannelCommand";
34
38
  import { TagResourceCommand } from "./commands/TagResourceCommand";
35
39
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
36
40
  import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
41
+ import { UpdateLiveSourceCommand, } from "./commands/UpdateLiveSourceCommand";
37
42
  import { UpdateSourceLocationCommand, } from "./commands/UpdateSourceLocationCommand";
38
43
  import { UpdateVodSourceCommand, } from "./commands/UpdateVodSourceCommand";
39
44
  import { MediaTailorClient } from "./MediaTailorClient";
@@ -70,6 +75,20 @@ var MediaTailor = (function (_super) {
70
75
  return this.send(command, optionsOrCb);
71
76
  }
72
77
  };
78
+ MediaTailor.prototype.createLiveSource = function (args, optionsOrCb, cb) {
79
+ var command = new CreateLiveSourceCommand(args);
80
+ if (typeof optionsOrCb === "function") {
81
+ this.send(command, optionsOrCb);
82
+ }
83
+ else if (typeof cb === "function") {
84
+ if (typeof optionsOrCb !== "object")
85
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
86
+ this.send(command, optionsOrCb || {}, cb);
87
+ }
88
+ else {
89
+ return this.send(command, optionsOrCb);
90
+ }
91
+ };
73
92
  MediaTailor.prototype.createPrefetchSchedule = function (args, optionsOrCb, cb) {
74
93
  var command = new CreatePrefetchScheduleCommand(args);
75
94
  if (typeof optionsOrCb === "function") {
@@ -154,6 +173,20 @@ var MediaTailor = (function (_super) {
154
173
  return this.send(command, optionsOrCb);
155
174
  }
156
175
  };
176
+ MediaTailor.prototype.deleteLiveSource = function (args, optionsOrCb, cb) {
177
+ var command = new DeleteLiveSourceCommand(args);
178
+ if (typeof optionsOrCb === "function") {
179
+ this.send(command, optionsOrCb);
180
+ }
181
+ else if (typeof cb === "function") {
182
+ if (typeof optionsOrCb !== "object")
183
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
184
+ this.send(command, optionsOrCb || {}, cb);
185
+ }
186
+ else {
187
+ return this.send(command, optionsOrCb);
188
+ }
189
+ };
157
190
  MediaTailor.prototype.deletePlaybackConfiguration = function (args, optionsOrCb, cb) {
158
191
  var command = new DeletePlaybackConfigurationCommand(args);
159
192
  if (typeof optionsOrCb === "function") {
@@ -238,6 +271,20 @@ var MediaTailor = (function (_super) {
238
271
  return this.send(command, optionsOrCb);
239
272
  }
240
273
  };
274
+ MediaTailor.prototype.describeLiveSource = function (args, optionsOrCb, cb) {
275
+ var command = new DescribeLiveSourceCommand(args);
276
+ if (typeof optionsOrCb === "function") {
277
+ this.send(command, optionsOrCb);
278
+ }
279
+ else if (typeof cb === "function") {
280
+ if (typeof optionsOrCb !== "object")
281
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
282
+ this.send(command, optionsOrCb || {}, cb);
283
+ }
284
+ else {
285
+ return this.send(command, optionsOrCb);
286
+ }
287
+ };
241
288
  MediaTailor.prototype.describeProgram = function (args, optionsOrCb, cb) {
242
289
  var command = new DescribeProgramCommand(args);
243
290
  if (typeof optionsOrCb === "function") {
@@ -364,6 +411,20 @@ var MediaTailor = (function (_super) {
364
411
  return this.send(command, optionsOrCb);
365
412
  }
366
413
  };
414
+ MediaTailor.prototype.listLiveSources = function (args, optionsOrCb, cb) {
415
+ var command = new ListLiveSourcesCommand(args);
416
+ if (typeof optionsOrCb === "function") {
417
+ this.send(command, optionsOrCb);
418
+ }
419
+ else if (typeof cb === "function") {
420
+ if (typeof optionsOrCb !== "object")
421
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
422
+ this.send(command, optionsOrCb || {}, cb);
423
+ }
424
+ else {
425
+ return this.send(command, optionsOrCb);
426
+ }
427
+ };
367
428
  MediaTailor.prototype.listPlaybackConfigurations = function (args, optionsOrCb, cb) {
368
429
  var command = new ListPlaybackConfigurationsCommand(args);
369
430
  if (typeof optionsOrCb === "function") {
@@ -532,6 +593,20 @@ var MediaTailor = (function (_super) {
532
593
  return this.send(command, optionsOrCb);
533
594
  }
534
595
  };
596
+ MediaTailor.prototype.updateLiveSource = function (args, optionsOrCb, cb) {
597
+ var command = new UpdateLiveSourceCommand(args);
598
+ if (typeof optionsOrCb === "function") {
599
+ this.send(command, optionsOrCb);
600
+ }
601
+ else if (typeof cb === "function") {
602
+ if (typeof optionsOrCb !== "object")
603
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
604
+ this.send(command, optionsOrCb || {}, cb);
605
+ }
606
+ else {
607
+ return this.send(command, optionsOrCb);
608
+ }
609
+ };
535
610
  MediaTailor.prototype.updateSourceLocation = function (args, optionsOrCb, cb) {
536
611
  var command = new UpdateSourceLocationCommand(args);
537
612
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateLiveSourceRequest, CreateLiveSourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateLiveSourceCommand, serializeAws_restJson1CreateLiveSourceCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateLiveSourceCommand = (function (_super) {
7
+ __extends(CreateLiveSourceCommand, _super);
8
+ function CreateLiveSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateLiveSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaTailorClient";
18
+ var commandName = "CreateLiveSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateLiveSourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateLiveSourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLiveSourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateLiveSourceCommand(input, context);
33
+ };
34
+ CreateLiveSourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateLiveSourceCommand(output, context);
36
+ };
37
+ return CreateLiveSourceCommand;
38
+ }($Command));
39
+ export { CreateLiveSourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteLiveSourceRequest, DeleteLiveSourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteLiveSourceCommand, serializeAws_restJson1DeleteLiveSourceCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteLiveSourceCommand = (function (_super) {
7
+ __extends(DeleteLiveSourceCommand, _super);
8
+ function DeleteLiveSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteLiveSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaTailorClient";
18
+ var commandName = "DeleteLiveSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteLiveSourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteLiveSourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLiveSourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteLiveSourceCommand(input, context);
33
+ };
34
+ DeleteLiveSourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteLiveSourceCommand(output, context);
36
+ };
37
+ return DeleteLiveSourceCommand;
38
+ }($Command));
39
+ export { DeleteLiveSourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeLiveSourceRequest, DescribeLiveSourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeLiveSourceCommand, serializeAws_restJson1DescribeLiveSourceCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeLiveSourceCommand = (function (_super) {
7
+ __extends(DescribeLiveSourceCommand, _super);
8
+ function DescribeLiveSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeLiveSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaTailorClient";
18
+ var commandName = "DescribeLiveSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeLiveSourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeLiveSourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeLiveSourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeLiveSourceCommand(input, context);
33
+ };
34
+ DescribeLiveSourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeLiveSourceCommand(output, context);
36
+ };
37
+ return DescribeLiveSourceCommand;
38
+ }($Command));
39
+ export { DescribeLiveSourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListLiveSourcesRequest, ListLiveSourcesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListLiveSourcesCommand, serializeAws_restJson1ListLiveSourcesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListLiveSourcesCommand = (function (_super) {
7
+ __extends(ListLiveSourcesCommand, _super);
8
+ function ListLiveSourcesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListLiveSourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaTailorClient";
18
+ var commandName = "ListLiveSourcesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListLiveSourcesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListLiveSourcesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListLiveSourcesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListLiveSourcesCommand(input, context);
33
+ };
34
+ ListLiveSourcesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListLiveSourcesCommand(output, context);
36
+ };
37
+ return ListLiveSourcesCommand;
38
+ }($Command));
39
+ export { ListLiveSourcesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateLiveSourceRequest, UpdateLiveSourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateLiveSourceCommand, serializeAws_restJson1UpdateLiveSourceCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateLiveSourceCommand = (function (_super) {
7
+ __extends(UpdateLiveSourceCommand, _super);
8
+ function UpdateLiveSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateLiveSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaTailorClient";
18
+ var commandName = "UpdateLiveSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateLiveSourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateLiveSourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLiveSourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateLiveSourceCommand(input, context);
33
+ };
34
+ UpdateLiveSourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateLiveSourceCommand(output, context);
36
+ };
37
+ return UpdateLiveSourceCommand;
38
+ }($Command));
39
+ export { UpdateLiveSourceCommand };
@@ -1,17 +1,20 @@
1
1
  export * from "./ConfigureLogsForPlaybackConfigurationCommand";
2
2
  export * from "./CreateChannelCommand";
3
+ export * from "./CreateLiveSourceCommand";
3
4
  export * from "./CreatePrefetchScheduleCommand";
4
5
  export * from "./CreateProgramCommand";
5
6
  export * from "./CreateSourceLocationCommand";
6
7
  export * from "./CreateVodSourceCommand";
7
8
  export * from "./DeleteChannelCommand";
8
9
  export * from "./DeleteChannelPolicyCommand";
10
+ export * from "./DeleteLiveSourceCommand";
9
11
  export * from "./DeletePlaybackConfigurationCommand";
10
12
  export * from "./DeletePrefetchScheduleCommand";
11
13
  export * from "./DeleteProgramCommand";
12
14
  export * from "./DeleteSourceLocationCommand";
13
15
  export * from "./DeleteVodSourceCommand";
14
16
  export * from "./DescribeChannelCommand";
17
+ export * from "./DescribeLiveSourceCommand";
15
18
  export * from "./DescribeProgramCommand";
16
19
  export * from "./DescribeSourceLocationCommand";
17
20
  export * from "./DescribeVodSourceCommand";
@@ -21,6 +24,7 @@ export * from "./GetPlaybackConfigurationCommand";
21
24
  export * from "./GetPrefetchScheduleCommand";
22
25
  export * from "./ListAlertsCommand";
23
26
  export * from "./ListChannelsCommand";
27
+ export * from "./ListLiveSourcesCommand";
24
28
  export * from "./ListPlaybackConfigurationsCommand";
25
29
  export * from "./ListPrefetchSchedulesCommand";
26
30
  export * from "./ListSourceLocationsCommand";
@@ -33,5 +37,6 @@ export * from "./StopChannelCommand";
33
37
  export * from "./TagResourceCommand";
34
38
  export * from "./UntagResourceCommand";
35
39
  export * from "./UpdateChannelCommand";
40
+ export * from "./UpdateLiveSourceCommand";
36
41
  export * from "./UpdateSourceLocationCommand";
37
42
  export * from "./UpdateVodSourceCommand";
@@ -44,6 +44,19 @@ export var Channel;
44
44
  (function (Channel) {
45
45
  Channel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
46
  })(Channel || (Channel = {}));
47
+ export var Type;
48
+ (function (Type) {
49
+ Type["DASH"] = "DASH";
50
+ Type["HLS"] = "HLS";
51
+ })(Type || (Type = {}));
52
+ export var HttpPackageConfiguration;
53
+ (function (HttpPackageConfiguration) {
54
+ HttpPackageConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
+ })(HttpPackageConfiguration || (HttpPackageConfiguration = {}));
56
+ export var LiveSource;
57
+ (function (LiveSource) {
58
+ LiveSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
59
+ })(LiveSource || (LiveSource = {}));
47
60
  export var Mode;
48
61
  (function (Mode) {
49
62
  Mode["BEHIND_LIVE_EDGE"] = "BEHIND_LIVE_EDGE";
@@ -148,15 +161,6 @@ export var SourceLocation;
148
161
  (function (SourceLocation) {
149
162
  SourceLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
163
  })(SourceLocation || (SourceLocation = {}));
151
- export var Type;
152
- (function (Type) {
153
- Type["DASH"] = "DASH";
154
- Type["HLS"] = "HLS";
155
- })(Type || (Type = {}));
156
- export var HttpPackageConfiguration;
157
- (function (HttpPackageConfiguration) {
158
- HttpPackageConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- })(HttpPackageConfiguration || (HttpPackageConfiguration = {}));
160
164
  export var VodSource;
161
165
  (function (VodSource) {
162
166
  VodSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -196,6 +200,11 @@ export var PlaybackMode;
196
200
  PlaybackMode["LINEAR"] = "LINEAR";
197
201
  PlaybackMode["LOOP"] = "LOOP";
198
202
  })(PlaybackMode || (PlaybackMode = {}));
203
+ export var Tier;
204
+ (function (Tier) {
205
+ Tier["BASIC"] = "BASIC";
206
+ Tier["STANDARD"] = "STANDARD";
207
+ })(Tier || (Tier = {}));
199
208
  export var CreateChannelRequest;
200
209
  (function (CreateChannelRequest) {
201
210
  CreateChannelRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -204,6 +213,14 @@ export var CreateChannelResponse;
204
213
  (function (CreateChannelResponse) {
205
214
  CreateChannelResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
215
  })(CreateChannelResponse || (CreateChannelResponse = {}));
216
+ export var CreateLiveSourceRequest;
217
+ (function (CreateLiveSourceRequest) {
218
+ CreateLiveSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
+ })(CreateLiveSourceRequest || (CreateLiveSourceRequest = {}));
220
+ export var CreateLiveSourceResponse;
221
+ (function (CreateLiveSourceResponse) {
222
+ CreateLiveSourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
+ })(CreateLiveSourceResponse || (CreateLiveSourceResponse = {}));
207
224
  export var CreatePrefetchScheduleRequest;
208
225
  (function (CreatePrefetchScheduleRequest) {
209
226
  CreatePrefetchScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -269,6 +286,14 @@ export var DeleteChannelPolicyResponse;
269
286
  (function (DeleteChannelPolicyResponse) {
270
287
  DeleteChannelPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
288
  })(DeleteChannelPolicyResponse || (DeleteChannelPolicyResponse = {}));
289
+ export var DeleteLiveSourceRequest;
290
+ (function (DeleteLiveSourceRequest) {
291
+ DeleteLiveSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
+ })(DeleteLiveSourceRequest || (DeleteLiveSourceRequest = {}));
293
+ export var DeleteLiveSourceResponse;
294
+ (function (DeleteLiveSourceResponse) {
295
+ DeleteLiveSourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
+ })(DeleteLiveSourceResponse || (DeleteLiveSourceResponse = {}));
272
297
  export var DeletePlaybackConfigurationRequest;
273
298
  (function (DeletePlaybackConfigurationRequest) {
274
299
  DeletePlaybackConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -317,6 +342,14 @@ export var DescribeChannelResponse;
317
342
  (function (DescribeChannelResponse) {
318
343
  DescribeChannelResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
319
344
  })(DescribeChannelResponse || (DescribeChannelResponse = {}));
345
+ export var DescribeLiveSourceRequest;
346
+ (function (DescribeLiveSourceRequest) {
347
+ DescribeLiveSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
348
+ })(DescribeLiveSourceRequest || (DescribeLiveSourceRequest = {}));
349
+ export var DescribeLiveSourceResponse;
350
+ (function (DescribeLiveSourceResponse) {
351
+ DescribeLiveSourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
+ })(DescribeLiveSourceResponse || (DescribeLiveSourceResponse = {}));
320
353
  export var DescribeProgramRequest;
321
354
  (function (DescribeProgramRequest) {
322
355
  DescribeProgramRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -389,6 +422,14 @@ export var ListChannelsResponse;
389
422
  (function (ListChannelsResponse) {
390
423
  ListChannelsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
391
424
  })(ListChannelsResponse || (ListChannelsResponse = {}));
425
+ export var ListLiveSourcesRequest;
426
+ (function (ListLiveSourcesRequest) {
427
+ ListLiveSourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
428
+ })(ListLiveSourcesRequest || (ListLiveSourcesRequest = {}));
429
+ export var ListLiveSourcesResponse;
430
+ (function (ListLiveSourcesResponse) {
431
+ ListLiveSourcesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
432
+ })(ListLiveSourcesResponse || (ListLiveSourcesResponse = {}));
392
433
  export var ListPlaybackConfigurationsRequest;
393
434
  (function (ListPlaybackConfigurationsRequest) {
394
435
  ListPlaybackConfigurationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -477,6 +518,14 @@ export var UpdateChannelResponse;
477
518
  (function (UpdateChannelResponse) {
478
519
  UpdateChannelResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
479
520
  })(UpdateChannelResponse || (UpdateChannelResponse = {}));
521
+ export var UpdateLiveSourceRequest;
522
+ (function (UpdateLiveSourceRequest) {
523
+ UpdateLiveSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
524
+ })(UpdateLiveSourceRequest || (UpdateLiveSourceRequest = {}));
525
+ export var UpdateLiveSourceResponse;
526
+ (function (UpdateLiveSourceResponse) {
527
+ UpdateLiveSourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
528
+ })(UpdateLiveSourceResponse || (UpdateLiveSourceResponse = {}));
480
529
  export var UpdateSourceLocationRequest;
481
530
  (function (UpdateSourceLocationRequest) {
482
531
  UpdateSourceLocationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListLiveSourcesCommand, } from "../commands/ListLiveSourcesCommand";
3
+ import { MediaTailor } from "../MediaTailor";
4
+ import { MediaTailorClient } from "../MediaTailorClient";
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 ListLiveSourcesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
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.listLiveSources.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListLiveSources(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListLiveSources_1() {
39
+ var token, hasNext, page;
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 MediaTailor)) 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 MediaTailorClient)) 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 MediaTailor | MediaTailorClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -2,6 +2,7 @@ export * from "./GetChannelSchedulePaginator";
2
2
  export * from "./Interfaces";
3
3
  export * from "./ListAlertsPaginator";
4
4
  export * from "./ListChannelsPaginator";
5
+ export * from "./ListLiveSourcesPaginator";
5
6
  export * from "./ListPlaybackConfigurationsPaginator";
6
7
  export * from "./ListPrefetchSchedulesPaginator";
7
8
  export * from "./ListSourceLocationsPaginator";