@aws-sdk/client-mediatailor 3.74.0 → 3.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/MediaTailor.js +75 -0
- package/dist-cjs/commands/CreateLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/DeleteLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/DescribeLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/ListLiveSourcesCommand.js +36 -0
- package/dist-cjs/commands/UpdateLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +85 -14
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +2 -1
- package/dist-cjs/pagination/ListAlertsPaginator.js +2 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -1
- package/dist-cjs/pagination/ListLiveSourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +2 -1
- package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +2 -1
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +2 -1
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +2 -1
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +499 -2
- package/dist-es/MediaTailor.js +75 -0
- package/dist-es/commands/CreateLiveSourceCommand.js +39 -0
- package/dist-es/commands/DeleteLiveSourceCommand.js +39 -0
- package/dist-es/commands/DescribeLiveSourceCommand.js +39 -0
- package/dist-es/commands/ListLiveSourcesCommand.js +39 -0
- package/dist-es/commands/UpdateLiveSourceCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +58 -9
- package/dist-es/pagination/GetChannelSchedulePaginator.js +3 -2
- package/dist-es/pagination/ListAlertsPaginator.js +3 -2
- package/dist-es/pagination/ListChannelsPaginator.js +3 -2
- package/dist-es/pagination/ListLiveSourcesPaginator.js +75 -0
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +3 -2
- package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +3 -2
- package/dist-es/pagination/ListSourceLocationsPaginator.js +3 -2
- package/dist-es/pagination/ListVodSourcesPaginator.js +3 -2
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +607 -13
- package/dist-types/MediaTailor.d.ts +35 -0
- package/dist-types/MediaTailorClient.d.ts +7 -2
- package/dist-types/commands/CreateLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/ListLiveSourcesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +387 -39
- package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/MediaTailor.d.ts +25 -0
- package/dist-types/ts3.4/MediaTailorClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLiveSourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +217 -19
- package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-mediatailor
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **client-mediatailor:** This release introduces tiered channels and adds support for live sources. Customers using a STANDARD channel can now create programs using live sources. ([75fac5e](https://github.com/aws/aws-sdk-js-v3/commit/75fac5e8a6789fd78f26f97e336b1a3df340ed33))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-mediatailor
|
package/dist-cjs/MediaTailor.js
CHANGED
|
@@ -3,18 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MediaTailor = void 0;
|
|
4
4
|
const ConfigureLogsForPlaybackConfigurationCommand_1 = require("./commands/ConfigureLogsForPlaybackConfigurationCommand");
|
|
5
5
|
const CreateChannelCommand_1 = require("./commands/CreateChannelCommand");
|
|
6
|
+
const CreateLiveSourceCommand_1 = require("./commands/CreateLiveSourceCommand");
|
|
6
7
|
const CreatePrefetchScheduleCommand_1 = require("./commands/CreatePrefetchScheduleCommand");
|
|
7
8
|
const CreateProgramCommand_1 = require("./commands/CreateProgramCommand");
|
|
8
9
|
const CreateSourceLocationCommand_1 = require("./commands/CreateSourceLocationCommand");
|
|
9
10
|
const CreateVodSourceCommand_1 = require("./commands/CreateVodSourceCommand");
|
|
10
11
|
const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
|
|
11
12
|
const DeleteChannelPolicyCommand_1 = require("./commands/DeleteChannelPolicyCommand");
|
|
13
|
+
const DeleteLiveSourceCommand_1 = require("./commands/DeleteLiveSourceCommand");
|
|
12
14
|
const DeletePlaybackConfigurationCommand_1 = require("./commands/DeletePlaybackConfigurationCommand");
|
|
13
15
|
const DeletePrefetchScheduleCommand_1 = require("./commands/DeletePrefetchScheduleCommand");
|
|
14
16
|
const DeleteProgramCommand_1 = require("./commands/DeleteProgramCommand");
|
|
15
17
|
const DeleteSourceLocationCommand_1 = require("./commands/DeleteSourceLocationCommand");
|
|
16
18
|
const DeleteVodSourceCommand_1 = require("./commands/DeleteVodSourceCommand");
|
|
17
19
|
const DescribeChannelCommand_1 = require("./commands/DescribeChannelCommand");
|
|
20
|
+
const DescribeLiveSourceCommand_1 = require("./commands/DescribeLiveSourceCommand");
|
|
18
21
|
const DescribeProgramCommand_1 = require("./commands/DescribeProgramCommand");
|
|
19
22
|
const DescribeSourceLocationCommand_1 = require("./commands/DescribeSourceLocationCommand");
|
|
20
23
|
const DescribeVodSourceCommand_1 = require("./commands/DescribeVodSourceCommand");
|
|
@@ -24,6 +27,7 @@ const GetPlaybackConfigurationCommand_1 = require("./commands/GetPlaybackConfigu
|
|
|
24
27
|
const GetPrefetchScheduleCommand_1 = require("./commands/GetPrefetchScheduleCommand");
|
|
25
28
|
const ListAlertsCommand_1 = require("./commands/ListAlertsCommand");
|
|
26
29
|
const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
|
|
30
|
+
const ListLiveSourcesCommand_1 = require("./commands/ListLiveSourcesCommand");
|
|
27
31
|
const ListPlaybackConfigurationsCommand_1 = require("./commands/ListPlaybackConfigurationsCommand");
|
|
28
32
|
const ListPrefetchSchedulesCommand_1 = require("./commands/ListPrefetchSchedulesCommand");
|
|
29
33
|
const ListSourceLocationsCommand_1 = require("./commands/ListSourceLocationsCommand");
|
|
@@ -36,6 +40,7 @@ const StopChannelCommand_1 = require("./commands/StopChannelCommand");
|
|
|
36
40
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
37
41
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
38
42
|
const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
|
|
43
|
+
const UpdateLiveSourceCommand_1 = require("./commands/UpdateLiveSourceCommand");
|
|
39
44
|
const UpdateSourceLocationCommand_1 = require("./commands/UpdateSourceLocationCommand");
|
|
40
45
|
const UpdateVodSourceCommand_1 = require("./commands/UpdateVodSourceCommand");
|
|
41
46
|
const MediaTailorClient_1 = require("./MediaTailorClient");
|
|
@@ -68,6 +73,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
68
73
|
return this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
75
|
}
|
|
76
|
+
createLiveSource(args, optionsOrCb, cb) {
|
|
77
|
+
const command = new CreateLiveSourceCommand_1.CreateLiveSourceCommand(args);
|
|
78
|
+
if (typeof optionsOrCb === "function") {
|
|
79
|
+
this.send(command, optionsOrCb);
|
|
80
|
+
}
|
|
81
|
+
else if (typeof cb === "function") {
|
|
82
|
+
if (typeof optionsOrCb !== "object")
|
|
83
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
return this.send(command, optionsOrCb);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
71
90
|
createPrefetchSchedule(args, optionsOrCb, cb) {
|
|
72
91
|
const command = new CreatePrefetchScheduleCommand_1.CreatePrefetchScheduleCommand(args);
|
|
73
92
|
if (typeof optionsOrCb === "function") {
|
|
@@ -152,6 +171,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
152
171
|
return this.send(command, optionsOrCb);
|
|
153
172
|
}
|
|
154
173
|
}
|
|
174
|
+
deleteLiveSource(args, optionsOrCb, cb) {
|
|
175
|
+
const command = new DeleteLiveSourceCommand_1.DeleteLiveSourceCommand(args);
|
|
176
|
+
if (typeof optionsOrCb === "function") {
|
|
177
|
+
this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
else if (typeof cb === "function") {
|
|
180
|
+
if (typeof optionsOrCb !== "object")
|
|
181
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return this.send(command, optionsOrCb);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
155
188
|
deletePlaybackConfiguration(args, optionsOrCb, cb) {
|
|
156
189
|
const command = new DeletePlaybackConfigurationCommand_1.DeletePlaybackConfigurationCommand(args);
|
|
157
190
|
if (typeof optionsOrCb === "function") {
|
|
@@ -236,6 +269,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
236
269
|
return this.send(command, optionsOrCb);
|
|
237
270
|
}
|
|
238
271
|
}
|
|
272
|
+
describeLiveSource(args, optionsOrCb, cb) {
|
|
273
|
+
const command = new DescribeLiveSourceCommand_1.DescribeLiveSourceCommand(args);
|
|
274
|
+
if (typeof optionsOrCb === "function") {
|
|
275
|
+
this.send(command, optionsOrCb);
|
|
276
|
+
}
|
|
277
|
+
else if (typeof cb === "function") {
|
|
278
|
+
if (typeof optionsOrCb !== "object")
|
|
279
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return this.send(command, optionsOrCb);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
239
286
|
describeProgram(args, optionsOrCb, cb) {
|
|
240
287
|
const command = new DescribeProgramCommand_1.DescribeProgramCommand(args);
|
|
241
288
|
if (typeof optionsOrCb === "function") {
|
|
@@ -362,6 +409,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
362
409
|
return this.send(command, optionsOrCb);
|
|
363
410
|
}
|
|
364
411
|
}
|
|
412
|
+
listLiveSources(args, optionsOrCb, cb) {
|
|
413
|
+
const command = new ListLiveSourcesCommand_1.ListLiveSourcesCommand(args);
|
|
414
|
+
if (typeof optionsOrCb === "function") {
|
|
415
|
+
this.send(command, optionsOrCb);
|
|
416
|
+
}
|
|
417
|
+
else if (typeof cb === "function") {
|
|
418
|
+
if (typeof optionsOrCb !== "object")
|
|
419
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
return this.send(command, optionsOrCb);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
365
426
|
listPlaybackConfigurations(args, optionsOrCb, cb) {
|
|
366
427
|
const command = new ListPlaybackConfigurationsCommand_1.ListPlaybackConfigurationsCommand(args);
|
|
367
428
|
if (typeof optionsOrCb === "function") {
|
|
@@ -530,6 +591,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
530
591
|
return this.send(command, optionsOrCb);
|
|
531
592
|
}
|
|
532
593
|
}
|
|
594
|
+
updateLiveSource(args, optionsOrCb, cb) {
|
|
595
|
+
const command = new UpdateLiveSourceCommand_1.UpdateLiveSourceCommand(args);
|
|
596
|
+
if (typeof optionsOrCb === "function") {
|
|
597
|
+
this.send(command, optionsOrCb);
|
|
598
|
+
}
|
|
599
|
+
else if (typeof cb === "function") {
|
|
600
|
+
if (typeof optionsOrCb !== "object")
|
|
601
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
602
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
605
|
+
return this.send(command, optionsOrCb);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
533
608
|
updateSourceLocation(args, optionsOrCb, cb) {
|
|
534
609
|
const command = new UpdateSourceLocationCommand_1.UpdateSourceLocationCommand(args);
|
|
535
610
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLiveSourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateLiveSourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaTailorClient";
|
|
18
|
+
const commandName = "CreateLiveSourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateLiveSourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateLiveSourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateLiveSourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateLiveSourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateLiveSourceCommand = CreateLiveSourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteLiveSourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteLiveSourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaTailorClient";
|
|
18
|
+
const commandName = "DeleteLiveSourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteLiveSourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteLiveSourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteLiveSourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteLiveSourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteLiveSourceCommand = DeleteLiveSourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLiveSourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DescribeLiveSourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaTailorClient";
|
|
18
|
+
const commandName = "DescribeLiveSourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeLiveSourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeLiveSourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeLiveSourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeLiveSourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeLiveSourceCommand = DescribeLiveSourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListLiveSourcesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListLiveSourcesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaTailorClient";
|
|
18
|
+
const commandName = "ListLiveSourcesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListLiveSourcesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListLiveSourcesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListLiveSourcesCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListLiveSourcesCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListLiveSourcesCommand = ListLiveSourcesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateLiveSourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateLiveSourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "MediaTailorClient";
|
|
18
|
+
const commandName = "UpdateLiveSourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateLiveSourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateLiveSourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateLiveSourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateLiveSourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateLiveSourceCommand = UpdateLiveSourceCommand;
|
|
@@ -3,18 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./ConfigureLogsForPlaybackConfigurationCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateChannelCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreateLiveSourceCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreatePrefetchScheduleCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateProgramCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateSourceLocationCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateVodSourceCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteChannelPolicyCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DeleteLiveSourceCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DeletePlaybackConfigurationCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DeletePrefetchScheduleCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./DeleteProgramCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./DeleteSourceLocationCommand"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./DeleteVodSourceCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./DescribeChannelCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DescribeLiveSourceCommand"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./DescribeProgramCommand"), exports);
|
|
19
22
|
tslib_1.__exportStar(require("./DescribeSourceLocationCommand"), exports);
|
|
20
23
|
tslib_1.__exportStar(require("./DescribeVodSourceCommand"), exports);
|
|
@@ -24,6 +27,7 @@ tslib_1.__exportStar(require("./GetPlaybackConfigurationCommand"), exports);
|
|
|
24
27
|
tslib_1.__exportStar(require("./GetPrefetchScheduleCommand"), exports);
|
|
25
28
|
tslib_1.__exportStar(require("./ListAlertsCommand"), exports);
|
|
26
29
|
tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./ListLiveSourcesCommand"), exports);
|
|
27
31
|
tslib_1.__exportStar(require("./ListPlaybackConfigurationsCommand"), exports);
|
|
28
32
|
tslib_1.__exportStar(require("./ListPrefetchSchedulesCommand"), exports);
|
|
29
33
|
tslib_1.__exportStar(require("./ListSourceLocationsCommand"), exports);
|
|
@@ -36,5 +40,6 @@ tslib_1.__exportStar(require("./StopChannelCommand"), exports);
|
|
|
36
40
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
37
41
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
38
42
|
tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./UpdateLiveSourceCommand"), exports);
|
|
39
44
|
tslib_1.__exportStar(require("./UpdateSourceLocationCommand"), exports);
|
|
40
45
|
tslib_1.__exportStar(require("./UpdateVodSourceCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateVodSourceResponse = exports.UpdateVodSourceRequest = exports.UpdateSourceLocationResponse = exports.UpdateSourceLocationRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopChannelResponse = exports.StopChannelRequest = exports.StartChannelResponse = exports.StartChannelRequest = exports.PutPlaybackConfigurationResponse = exports.PutPlaybackConfigurationRequest = exports.PutChannelPolicyResponse = exports.PutChannelPolicyRequest = exports.ListVodSourcesResponse = exports.ListVodSourcesRequest = exports.ListTagsForResourceResponse = void 0;
|
|
3
|
+
exports.CreateLiveSourceRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.Tier = exports.PlaybackMode = exports.RequestOutputItem = exports.ConfigureLogsForPlaybackConfigurationResponse = exports.ConfigureLogsForPlaybackConfigurationRequest = exports.ChannelState = exports.BadRequestException = exports.VodSource = exports.SourceLocation = exports.HttpConfiguration = exports.DefaultSegmentDeliveryConfiguration = exports.AccessConfiguration = exports.SecretsManagerAccessTokenConfiguration = exports.AccessType = exports.SegmentDeliveryConfiguration = exports.ScheduleEntry = exports.ScheduleEntryType = exports.ScheduleAdBreak = exports.PrefetchSchedule = exports.PrefetchRetrieval = exports.PrefetchConsumption = exports.PlaybackConfiguration = exports.ManifestProcessingRules = exports.AdMarkerPassthrough = exports.LogConfiguration = exports.LivePreRollConfiguration = exports.HlsConfiguration = exports.DashConfiguration = exports.OriginManifestType = exports.CdnConfiguration = exports.Bumper = exports.AvailSuppression = exports.Mode = exports.LiveSource = exports.HttpPackageConfiguration = exports.Type = exports.Channel = exports.ResponseOutputItem = exports.HlsPlaylistSettings = exports.DashPlaylistSettings = exports.AvailMatchingCriteria = exports.Operator = exports.Alert = exports.AdBreak = exports.SpliceInsertMessage = exports.SlateSource = exports.MessageType = void 0;
|
|
4
|
+
exports.ListChannelsRequest = exports.ListAlertsResponse = exports.ListAlertsRequest = exports.GetPrefetchScheduleResponse = exports.GetPrefetchScheduleRequest = exports.GetPlaybackConfigurationResponse = exports.GetPlaybackConfigurationRequest = exports.GetChannelScheduleResponse = exports.GetChannelScheduleRequest = exports.GetChannelPolicyResponse = exports.GetChannelPolicyRequest = exports.DescribeVodSourceResponse = exports.DescribeVodSourceRequest = exports.DescribeSourceLocationResponse = exports.DescribeSourceLocationRequest = exports.DescribeProgramResponse = exports.DescribeProgramRequest = exports.DescribeLiveSourceResponse = exports.DescribeLiveSourceRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteVodSourceResponse = exports.DeleteVodSourceRequest = exports.DeleteSourceLocationResponse = exports.DeleteSourceLocationRequest = exports.DeleteProgramResponse = exports.DeleteProgramRequest = exports.DeletePrefetchScheduleResponse = exports.DeletePrefetchScheduleRequest = exports.DeletePlaybackConfigurationResponse = exports.DeletePlaybackConfigurationRequest = exports.DeleteLiveSourceResponse = exports.DeleteLiveSourceRequest = exports.DeleteChannelPolicyResponse = exports.DeleteChannelPolicyRequest = exports.DeleteChannelResponse = exports.DeleteChannelRequest = exports.DashConfigurationForPut = exports.CreateVodSourceResponse = exports.CreateVodSourceRequest = exports.CreateSourceLocationResponse = exports.CreateSourceLocationRequest = exports.CreateProgramResponse = exports.CreateProgramRequest = exports.ScheduleConfiguration = exports.Transition = exports.RelativePosition = exports.CreatePrefetchScheduleResponse = exports.CreatePrefetchScheduleRequest = exports.CreateLiveSourceResponse = void 0;
|
|
5
|
+
exports.UpdateVodSourceResponse = exports.UpdateVodSourceRequest = exports.UpdateSourceLocationResponse = exports.UpdateSourceLocationRequest = exports.UpdateLiveSourceResponse = exports.UpdateLiveSourceRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopChannelResponse = exports.StopChannelRequest = exports.StartChannelResponse = exports.StartChannelRequest = exports.PutPlaybackConfigurationResponse = exports.PutPlaybackConfigurationRequest = exports.PutChannelPolicyResponse = exports.PutChannelPolicyRequest = exports.ListVodSourcesResponse = exports.ListVodSourcesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSourceLocationsResponse = exports.ListSourceLocationsRequest = exports.ListPrefetchSchedulesResponse = exports.ListPrefetchSchedulesRequest = exports.ListPlaybackConfigurationsResponse = exports.ListPlaybackConfigurationsRequest = exports.ListLiveSourcesResponse = exports.ListLiveSourcesRequest = exports.ListChannelsResponse = void 0;
|
|
6
6
|
const MediaTailorServiceException_1 = require("./MediaTailorServiceException");
|
|
7
7
|
var MessageType;
|
|
8
8
|
(function (MessageType) {
|
|
@@ -66,6 +66,23 @@ var Channel;
|
|
|
66
66
|
...obj,
|
|
67
67
|
});
|
|
68
68
|
})(Channel = exports.Channel || (exports.Channel = {}));
|
|
69
|
+
var Type;
|
|
70
|
+
(function (Type) {
|
|
71
|
+
Type["DASH"] = "DASH";
|
|
72
|
+
Type["HLS"] = "HLS";
|
|
73
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
74
|
+
var HttpPackageConfiguration;
|
|
75
|
+
(function (HttpPackageConfiguration) {
|
|
76
|
+
HttpPackageConfiguration.filterSensitiveLog = (obj) => ({
|
|
77
|
+
...obj,
|
|
78
|
+
});
|
|
79
|
+
})(HttpPackageConfiguration = exports.HttpPackageConfiguration || (exports.HttpPackageConfiguration = {}));
|
|
80
|
+
var LiveSource;
|
|
81
|
+
(function (LiveSource) {
|
|
82
|
+
LiveSource.filterSensitiveLog = (obj) => ({
|
|
83
|
+
...obj,
|
|
84
|
+
});
|
|
85
|
+
})(LiveSource = exports.LiveSource || (exports.LiveSource = {}));
|
|
69
86
|
var Mode;
|
|
70
87
|
(function (Mode) {
|
|
71
88
|
Mode["BEHIND_LIVE_EDGE"] = "BEHIND_LIVE_EDGE";
|
|
@@ -212,17 +229,6 @@ var SourceLocation;
|
|
|
212
229
|
...obj,
|
|
213
230
|
});
|
|
214
231
|
})(SourceLocation = exports.SourceLocation || (exports.SourceLocation = {}));
|
|
215
|
-
var Type;
|
|
216
|
-
(function (Type) {
|
|
217
|
-
Type["DASH"] = "DASH";
|
|
218
|
-
Type["HLS"] = "HLS";
|
|
219
|
-
})(Type = exports.Type || (exports.Type = {}));
|
|
220
|
-
var HttpPackageConfiguration;
|
|
221
|
-
(function (HttpPackageConfiguration) {
|
|
222
|
-
HttpPackageConfiguration.filterSensitiveLog = (obj) => ({
|
|
223
|
-
...obj,
|
|
224
|
-
});
|
|
225
|
-
})(HttpPackageConfiguration = exports.HttpPackageConfiguration || (exports.HttpPackageConfiguration = {}));
|
|
226
232
|
var VodSource;
|
|
227
233
|
(function (VodSource) {
|
|
228
234
|
VodSource.filterSensitiveLog = (obj) => ({
|
|
@@ -271,6 +277,11 @@ var PlaybackMode;
|
|
|
271
277
|
PlaybackMode["LINEAR"] = "LINEAR";
|
|
272
278
|
PlaybackMode["LOOP"] = "LOOP";
|
|
273
279
|
})(PlaybackMode = exports.PlaybackMode || (exports.PlaybackMode = {}));
|
|
280
|
+
var Tier;
|
|
281
|
+
(function (Tier) {
|
|
282
|
+
Tier["BASIC"] = "BASIC";
|
|
283
|
+
Tier["STANDARD"] = "STANDARD";
|
|
284
|
+
})(Tier = exports.Tier || (exports.Tier = {}));
|
|
274
285
|
var CreateChannelRequest;
|
|
275
286
|
(function (CreateChannelRequest) {
|
|
276
287
|
CreateChannelRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -283,6 +294,18 @@ var CreateChannelResponse;
|
|
|
283
294
|
...obj,
|
|
284
295
|
});
|
|
285
296
|
})(CreateChannelResponse = exports.CreateChannelResponse || (exports.CreateChannelResponse = {}));
|
|
297
|
+
var CreateLiveSourceRequest;
|
|
298
|
+
(function (CreateLiveSourceRequest) {
|
|
299
|
+
CreateLiveSourceRequest.filterSensitiveLog = (obj) => ({
|
|
300
|
+
...obj,
|
|
301
|
+
});
|
|
302
|
+
})(CreateLiveSourceRequest = exports.CreateLiveSourceRequest || (exports.CreateLiveSourceRequest = {}));
|
|
303
|
+
var CreateLiveSourceResponse;
|
|
304
|
+
(function (CreateLiveSourceResponse) {
|
|
305
|
+
CreateLiveSourceResponse.filterSensitiveLog = (obj) => ({
|
|
306
|
+
...obj,
|
|
307
|
+
});
|
|
308
|
+
})(CreateLiveSourceResponse = exports.CreateLiveSourceResponse || (exports.CreateLiveSourceResponse = {}));
|
|
286
309
|
var CreatePrefetchScheduleRequest;
|
|
287
310
|
(function (CreatePrefetchScheduleRequest) {
|
|
288
311
|
CreatePrefetchScheduleRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -378,6 +401,18 @@ var DeleteChannelPolicyResponse;
|
|
|
378
401
|
...obj,
|
|
379
402
|
});
|
|
380
403
|
})(DeleteChannelPolicyResponse = exports.DeleteChannelPolicyResponse || (exports.DeleteChannelPolicyResponse = {}));
|
|
404
|
+
var DeleteLiveSourceRequest;
|
|
405
|
+
(function (DeleteLiveSourceRequest) {
|
|
406
|
+
DeleteLiveSourceRequest.filterSensitiveLog = (obj) => ({
|
|
407
|
+
...obj,
|
|
408
|
+
});
|
|
409
|
+
})(DeleteLiveSourceRequest = exports.DeleteLiveSourceRequest || (exports.DeleteLiveSourceRequest = {}));
|
|
410
|
+
var DeleteLiveSourceResponse;
|
|
411
|
+
(function (DeleteLiveSourceResponse) {
|
|
412
|
+
DeleteLiveSourceResponse.filterSensitiveLog = (obj) => ({
|
|
413
|
+
...obj,
|
|
414
|
+
});
|
|
415
|
+
})(DeleteLiveSourceResponse = exports.DeleteLiveSourceResponse || (exports.DeleteLiveSourceResponse = {}));
|
|
381
416
|
var DeletePlaybackConfigurationRequest;
|
|
382
417
|
(function (DeletePlaybackConfigurationRequest) {
|
|
383
418
|
DeletePlaybackConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -450,6 +485,18 @@ var DescribeChannelResponse;
|
|
|
450
485
|
...obj,
|
|
451
486
|
});
|
|
452
487
|
})(DescribeChannelResponse = exports.DescribeChannelResponse || (exports.DescribeChannelResponse = {}));
|
|
488
|
+
var DescribeLiveSourceRequest;
|
|
489
|
+
(function (DescribeLiveSourceRequest) {
|
|
490
|
+
DescribeLiveSourceRequest.filterSensitiveLog = (obj) => ({
|
|
491
|
+
...obj,
|
|
492
|
+
});
|
|
493
|
+
})(DescribeLiveSourceRequest = exports.DescribeLiveSourceRequest || (exports.DescribeLiveSourceRequest = {}));
|
|
494
|
+
var DescribeLiveSourceResponse;
|
|
495
|
+
(function (DescribeLiveSourceResponse) {
|
|
496
|
+
DescribeLiveSourceResponse.filterSensitiveLog = (obj) => ({
|
|
497
|
+
...obj,
|
|
498
|
+
});
|
|
499
|
+
})(DescribeLiveSourceResponse = exports.DescribeLiveSourceResponse || (exports.DescribeLiveSourceResponse = {}));
|
|
453
500
|
var DescribeProgramRequest;
|
|
454
501
|
(function (DescribeProgramRequest) {
|
|
455
502
|
DescribeProgramRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -558,6 +605,18 @@ var ListChannelsResponse;
|
|
|
558
605
|
...obj,
|
|
559
606
|
});
|
|
560
607
|
})(ListChannelsResponse = exports.ListChannelsResponse || (exports.ListChannelsResponse = {}));
|
|
608
|
+
var ListLiveSourcesRequest;
|
|
609
|
+
(function (ListLiveSourcesRequest) {
|
|
610
|
+
ListLiveSourcesRequest.filterSensitiveLog = (obj) => ({
|
|
611
|
+
...obj,
|
|
612
|
+
});
|
|
613
|
+
})(ListLiveSourcesRequest = exports.ListLiveSourcesRequest || (exports.ListLiveSourcesRequest = {}));
|
|
614
|
+
var ListLiveSourcesResponse;
|
|
615
|
+
(function (ListLiveSourcesResponse) {
|
|
616
|
+
ListLiveSourcesResponse.filterSensitiveLog = (obj) => ({
|
|
617
|
+
...obj,
|
|
618
|
+
});
|
|
619
|
+
})(ListLiveSourcesResponse = exports.ListLiveSourcesResponse || (exports.ListLiveSourcesResponse = {}));
|
|
561
620
|
var ListPlaybackConfigurationsRequest;
|
|
562
621
|
(function (ListPlaybackConfigurationsRequest) {
|
|
563
622
|
ListPlaybackConfigurationsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -690,6 +749,18 @@ var UpdateChannelResponse;
|
|
|
690
749
|
...obj,
|
|
691
750
|
});
|
|
692
751
|
})(UpdateChannelResponse = exports.UpdateChannelResponse || (exports.UpdateChannelResponse = {}));
|
|
752
|
+
var UpdateLiveSourceRequest;
|
|
753
|
+
(function (UpdateLiveSourceRequest) {
|
|
754
|
+
UpdateLiveSourceRequest.filterSensitiveLog = (obj) => ({
|
|
755
|
+
...obj,
|
|
756
|
+
});
|
|
757
|
+
})(UpdateLiveSourceRequest = exports.UpdateLiveSourceRequest || (exports.UpdateLiveSourceRequest = {}));
|
|
758
|
+
var UpdateLiveSourceResponse;
|
|
759
|
+
(function (UpdateLiveSourceResponse) {
|
|
760
|
+
UpdateLiveSourceResponse.filterSensitiveLog = (obj) => ({
|
|
761
|
+
...obj,
|
|
762
|
+
});
|
|
763
|
+
})(UpdateLiveSourceResponse = exports.UpdateLiveSourceResponse || (exports.UpdateLiveSourceResponse = {}));
|
|
693
764
|
var UpdateSourceLocationRequest;
|
|
694
765
|
(function (UpdateSourceLocationRequest) {
|
|
695
766
|
UpdateSourceLocationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -27,8 +27,9 @@ async function* paginateGetChannelSchedule(config, input, ...additionalArguments
|
|
|
27
27
|
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListAlerts(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListChannels(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListLiveSources = void 0;
|
|
4
|
+
const ListLiveSourcesCommand_1 = require("../commands/ListLiveSourcesCommand");
|
|
5
|
+
const MediaTailor_1 = require("../MediaTailor");
|
|
6
|
+
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListLiveSourcesCommand_1.ListLiveSourcesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listLiveSources(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListLiveSources(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof MediaTailor_1.MediaTailor) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListLiveSources = paginateListLiveSources;
|
|
@@ -27,8 +27,9 @@ async function* paginateListPlaybackConfigurations(config, input, ...additionalA
|
|
|
27
27
|
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|