@aws-sdk/client-mediatailor 3.262.0 → 3.263.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/dist-cjs/MediaTailor.js +15 -0
- package/dist-cjs/commands/UpdateProgramCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +22 -2
- package/dist-cjs/protocols/Aws_restJson1.js +124 -2
- package/dist-es/MediaTailor.js +15 -0
- package/dist-es/commands/UpdateProgramCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/protocols/Aws_restJson1.js +120 -0
- package/dist-types/MediaTailor.d.ts +7 -0
- package/dist-types/MediaTailorClient.d.ts +3 -2
- package/dist-types/commands/UpdateProgramCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +139 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/MediaTailor.d.ts +17 -0
- package/dist-types/ts3.4/MediaTailorClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateProgramCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +48 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/dist-cjs/MediaTailor.js
CHANGED
|
@@ -42,6 +42,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
42
42
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
43
43
|
const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
|
|
44
44
|
const UpdateLiveSourceCommand_1 = require("./commands/UpdateLiveSourceCommand");
|
|
45
|
+
const UpdateProgramCommand_1 = require("./commands/UpdateProgramCommand");
|
|
45
46
|
const UpdateSourceLocationCommand_1 = require("./commands/UpdateSourceLocationCommand");
|
|
46
47
|
const UpdateVodSourceCommand_1 = require("./commands/UpdateVodSourceCommand");
|
|
47
48
|
const MediaTailorClient_1 = require("./MediaTailorClient");
|
|
@@ -620,6 +621,20 @@ class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
|
620
621
|
return this.send(command, optionsOrCb);
|
|
621
622
|
}
|
|
622
623
|
}
|
|
624
|
+
updateProgram(args, optionsOrCb, cb) {
|
|
625
|
+
const command = new UpdateProgramCommand_1.UpdateProgramCommand(args);
|
|
626
|
+
if (typeof optionsOrCb === "function") {
|
|
627
|
+
this.send(command, optionsOrCb);
|
|
628
|
+
}
|
|
629
|
+
else if (typeof cb === "function") {
|
|
630
|
+
if (typeof optionsOrCb !== "object")
|
|
631
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
632
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
633
|
+
}
|
|
634
|
+
else {
|
|
635
|
+
return this.send(command, optionsOrCb);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
623
638
|
updateSourceLocation(args, optionsOrCb, cb) {
|
|
624
639
|
const command = new UpdateSourceLocationCommand_1.UpdateSourceLocationCommand(args);
|
|
625
640
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProgramCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class UpdateProgramCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateProgramCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MediaTailorClient";
|
|
28
|
+
const commandName = "UpdateProgramCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UpdateProgramRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.UpdateProgramResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateProgramCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateProgramCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateProgramCommand = UpdateProgramCommand;
|
|
@@ -42,5 +42,6 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
|
42
42
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
43
43
|
tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
|
|
44
44
|
tslib_1.__exportStar(require("./UpdateLiveSourceCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./UpdateProgramCommand"), exports);
|
|
45
46
|
tslib_1.__exportStar(require("./UpdateSourceLocationCommand"), exports);
|
|
46
47
|
tslib_1.__exportStar(require("./UpdateVodSourceCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteChannelPolicyRequestFilterSensitiveLog = exports.VodSourceFilterSensitiveLog = exports.SourceLocationFilterSensitiveLog = exports.HttpConfigurationFilterSensitiveLog = exports.DefaultSegmentDeliveryConfigurationFilterSensitiveLog = exports.AccessConfigurationFilterSensitiveLog = exports.SecretsManagerAccessTokenConfigurationFilterSensitiveLog = exports.SegmentDeliveryConfigurationFilterSensitiveLog = exports.ScheduleEntryFilterSensitiveLog = exports.ScheduleAdBreakFilterSensitiveLog = exports.PrefetchScheduleFilterSensitiveLog = exports.PrefetchRetrievalFilterSensitiveLog = exports.PrefetchConsumptionFilterSensitiveLog = exports.PlaybackConfigurationFilterSensitiveLog = exports.ManifestProcessingRulesFilterSensitiveLog = exports.AdMarkerPassthroughFilterSensitiveLog = exports.LogConfigurationFilterSensitiveLog = exports.LivePreRollConfigurationFilterSensitiveLog = exports.HlsConfigurationFilterSensitiveLog = exports.DashConfigurationFilterSensitiveLog = exports.CdnConfigurationFilterSensitiveLog = exports.BumperFilterSensitiveLog = exports.AvailSuppressionFilterSensitiveLog = exports.LiveSourceFilterSensitiveLog = exports.HttpPackageConfigurationFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.ResponseOutputItemFilterSensitiveLog = exports.HlsPlaylistSettingsFilterSensitiveLog = exports.DashPlaylistSettingsFilterSensitiveLog = exports.LogConfigurationForChannelFilterSensitiveLog = exports.AvailMatchingCriteriaFilterSensitiveLog = exports.AlertFilterSensitiveLog = exports.AdBreakFilterSensitiveLog = exports.TimeSignalMessageFilterSensitiveLog = exports.SegmentationDescriptorFilterSensitiveLog = exports.SpliceInsertMessageFilterSensitiveLog = exports.SlateSourceFilterSensitiveLog = exports.RelativePosition = exports.ChannelState = exports.Tier = exports.PlaybackMode = exports.BadRequestException = exports.AccessType = exports.ScheduleEntryType = exports.OriginManifestType = exports.Mode = exports.Type = exports.LogType = exports.Operator = exports.MessageType = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateVodSourceResponseFilterSensitiveLog = exports.UpdateVodSourceRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateSourceLocationResponseFilterSensitiveLog = exports.UpdateSourceLocationRequestFilterSensitiveLog = exports.PutPlaybackConfigurationResponseFilterSensitiveLog = exports.PutPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateLiveSourceResponseFilterSensitiveLog = exports.UpdateLiveSourceRequestFilterSensitiveLog = exports.ListVodSourcesResponseFilterSensitiveLog = exports.ListVodSourcesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSourceLocationsResponseFilterSensitiveLog = exports.ListSourceLocationsRequestFilterSensitiveLog = exports.ListPrefetchSchedulesResponseFilterSensitiveLog = exports.ListPrefetchSchedulesRequestFilterSensitiveLog = exports.ListPlaybackConfigurationsResponseFilterSensitiveLog = exports.ListPlaybackConfigurationsRequestFilterSensitiveLog = exports.ListLiveSourcesResponseFilterSensitiveLog = exports.ListLiveSourcesRequestFilterSensitiveLog = exports.ListAlertsResponseFilterSensitiveLog = exports.ListAlertsRequestFilterSensitiveLog = exports.GetPrefetchScheduleResponseFilterSensitiveLog = exports.GetPrefetchScheduleRequestFilterSensitiveLog = exports.GetPlaybackConfigurationResponseFilterSensitiveLog = exports.GetPlaybackConfigurationRequestFilterSensitiveLog = exports.DescribeVodSourceResponseFilterSensitiveLog = exports.DescribeVodSourceRequestFilterSensitiveLog = exports.DescribeSourceLocationResponseFilterSensitiveLog = exports.DescribeSourceLocationRequestFilterSensitiveLog = exports.DescribeLiveSourceResponseFilterSensitiveLog = exports.DescribeLiveSourceRequestFilterSensitiveLog = exports.DeleteVodSourceResponseFilterSensitiveLog = exports.DeleteVodSourceRequestFilterSensitiveLog = exports.DeleteSourceLocationResponseFilterSensitiveLog = void 0;
|
|
4
|
+
exports.DeleteLiveSourceResponseFilterSensitiveLog = exports.DeleteLiveSourceRequestFilterSensitiveLog = exports.DashConfigurationForPutFilterSensitiveLog = exports.CreateVodSourceResponseFilterSensitiveLog = exports.CreateVodSourceRequestFilterSensitiveLog = exports.CreateSourceLocationResponseFilterSensitiveLog = exports.CreateSourceLocationRequestFilterSensitiveLog = exports.CreatePrefetchScheduleResponseFilterSensitiveLog = exports.CreatePrefetchScheduleRequestFilterSensitiveLog = exports.CreateLiveSourceResponseFilterSensitiveLog = exports.CreateLiveSourceRequestFilterSensitiveLog = exports.ConfigureLogsForPlaybackConfigurationResponseFilterSensitiveLog = exports.ConfigureLogsForPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateChannelResponseFilterSensitiveLog = exports.UpdateChannelRequestFilterSensitiveLog = exports.StopChannelResponseFilterSensitiveLog = exports.StopChannelRequestFilterSensitiveLog = exports.StartChannelResponseFilterSensitiveLog = exports.StartChannelRequestFilterSensitiveLog = exports.UpdateProgramResponseFilterSensitiveLog = exports.UpdateProgramRequestFilterSensitiveLog = exports.UpdateProgramScheduleConfigurationFilterSensitiveLog = exports.UpdateProgramTransitionFilterSensitiveLog = exports.DescribeProgramResponseFilterSensitiveLog = exports.DescribeProgramRequestFilterSensitiveLog = exports.DeleteProgramResponseFilterSensitiveLog = exports.DeleteProgramRequestFilterSensitiveLog = exports.CreateProgramResponseFilterSensitiveLog = exports.CreateProgramRequestFilterSensitiveLog = exports.ScheduleConfigurationFilterSensitiveLog = exports.TransitionFilterSensitiveLog = exports.ClipRangeFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetChannelScheduleResponseFilterSensitiveLog = exports.GetChannelScheduleRequestFilterSensitiveLog = exports.DescribeChannelResponseFilterSensitiveLog = exports.DescribeChannelRequestFilterSensitiveLog = exports.DeleteChannelResponseFilterSensitiveLog = exports.DeleteChannelRequestFilterSensitiveLog = exports.CreateChannelResponseFilterSensitiveLog = exports.CreateChannelRequestFilterSensitiveLog = exports.RequestOutputItemFilterSensitiveLog = exports.ConfigureLogsForChannelResponseFilterSensitiveLog = exports.ConfigureLogsForChannelRequestFilterSensitiveLog = exports.PutChannelPolicyResponseFilterSensitiveLog = exports.PutChannelPolicyRequestFilterSensitiveLog = exports.GetChannelPolicyResponseFilterSensitiveLog = exports.GetChannelPolicyRequestFilterSensitiveLog = exports.DeleteChannelPolicyResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateVodSourceResponseFilterSensitiveLog = exports.UpdateVodSourceRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateSourceLocationResponseFilterSensitiveLog = exports.UpdateSourceLocationRequestFilterSensitiveLog = exports.PutPlaybackConfigurationResponseFilterSensitiveLog = exports.PutPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateLiveSourceResponseFilterSensitiveLog = exports.UpdateLiveSourceRequestFilterSensitiveLog = exports.ListVodSourcesResponseFilterSensitiveLog = exports.ListVodSourcesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSourceLocationsResponseFilterSensitiveLog = exports.ListSourceLocationsRequestFilterSensitiveLog = exports.ListPrefetchSchedulesResponseFilterSensitiveLog = exports.ListPrefetchSchedulesRequestFilterSensitiveLog = exports.ListPlaybackConfigurationsResponseFilterSensitiveLog = exports.ListPlaybackConfigurationsRequestFilterSensitiveLog = exports.ListLiveSourcesResponseFilterSensitiveLog = exports.ListLiveSourcesRequestFilterSensitiveLog = exports.ListAlertsResponseFilterSensitiveLog = exports.ListAlertsRequestFilterSensitiveLog = exports.GetPrefetchScheduleResponseFilterSensitiveLog = exports.GetPrefetchScheduleRequestFilterSensitiveLog = exports.GetPlaybackConfigurationResponseFilterSensitiveLog = exports.GetPlaybackConfigurationRequestFilterSensitiveLog = exports.DescribeVodSourceResponseFilterSensitiveLog = exports.DescribeVodSourceRequestFilterSensitiveLog = exports.DescribeSourceLocationResponseFilterSensitiveLog = exports.DescribeSourceLocationRequestFilterSensitiveLog = exports.DescribeLiveSourceResponseFilterSensitiveLog = exports.DescribeLiveSourceRequestFilterSensitiveLog = exports.DeleteVodSourceResponseFilterSensitiveLog = exports.DeleteVodSourceRequestFilterSensitiveLog = exports.DeleteSourceLocationResponseFilterSensitiveLog = exports.DeleteSourceLocationRequestFilterSensitiveLog = exports.DeletePrefetchScheduleResponseFilterSensitiveLog = exports.DeletePrefetchScheduleRequestFilterSensitiveLog = exports.DeletePlaybackConfigurationResponseFilterSensitiveLog = exports.DeletePlaybackConfigurationRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const MediaTailorServiceException_1 = require("./MediaTailorServiceException");
|
|
7
7
|
var MessageType;
|
|
8
8
|
(function (MessageType) {
|
|
@@ -296,6 +296,10 @@ const ListChannelsResponseFilterSensitiveLog = (obj) => ({
|
|
|
296
296
|
...obj,
|
|
297
297
|
});
|
|
298
298
|
exports.ListChannelsResponseFilterSensitiveLog = ListChannelsResponseFilterSensitiveLog;
|
|
299
|
+
const ClipRangeFilterSensitiveLog = (obj) => ({
|
|
300
|
+
...obj,
|
|
301
|
+
});
|
|
302
|
+
exports.ClipRangeFilterSensitiveLog = ClipRangeFilterSensitiveLog;
|
|
299
303
|
const TransitionFilterSensitiveLog = (obj) => ({
|
|
300
304
|
...obj,
|
|
301
305
|
});
|
|
@@ -328,6 +332,22 @@ const DescribeProgramResponseFilterSensitiveLog = (obj) => ({
|
|
|
328
332
|
...obj,
|
|
329
333
|
});
|
|
330
334
|
exports.DescribeProgramResponseFilterSensitiveLog = DescribeProgramResponseFilterSensitiveLog;
|
|
335
|
+
const UpdateProgramTransitionFilterSensitiveLog = (obj) => ({
|
|
336
|
+
...obj,
|
|
337
|
+
});
|
|
338
|
+
exports.UpdateProgramTransitionFilterSensitiveLog = UpdateProgramTransitionFilterSensitiveLog;
|
|
339
|
+
const UpdateProgramScheduleConfigurationFilterSensitiveLog = (obj) => ({
|
|
340
|
+
...obj,
|
|
341
|
+
});
|
|
342
|
+
exports.UpdateProgramScheduleConfigurationFilterSensitiveLog = UpdateProgramScheduleConfigurationFilterSensitiveLog;
|
|
343
|
+
const UpdateProgramRequestFilterSensitiveLog = (obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
});
|
|
346
|
+
exports.UpdateProgramRequestFilterSensitiveLog = UpdateProgramRequestFilterSensitiveLog;
|
|
347
|
+
const UpdateProgramResponseFilterSensitiveLog = (obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
});
|
|
350
|
+
exports.UpdateProgramResponseFilterSensitiveLog = UpdateProgramResponseFilterSensitiveLog;
|
|
331
351
|
const StartChannelRequestFilterSensitiveLog = (obj) => ({
|
|
332
352
|
...obj,
|
|
333
353
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateLiveSourceCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListLiveSourcesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeLiveSourceCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteLiveSourceCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreatePrefetchScheduleCommand = exports.deserializeAws_restJson1CreateLiveSourceCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.deserializeAws_restJson1ConfigureLogsForChannelCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateProgramCommand = exports.serializeAws_restJson1UpdateLiveSourceCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPrefetchSchedulesCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListLiveSourcesCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPrefetchScheduleCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeLiveSourceCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePrefetchScheduleCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteLiveSourceCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreatePrefetchScheduleCommand = exports.serializeAws_restJson1CreateLiveSourceCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.serializeAws_restJson1ConfigureLogsForChannelCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateProgramCommand = exports.deserializeAws_restJson1UpdateLiveSourceCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListLiveSourcesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeLiveSourceCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteLiveSourceCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = exports.deserializeAws_restJson1CreateSourceLocationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const MediaTailorServiceException_1 = require("../models/MediaTailorServiceException");
|
|
@@ -905,6 +905,33 @@ const serializeAws_restJson1UpdateLiveSourceCommand = async (input, context) =>
|
|
|
905
905
|
});
|
|
906
906
|
};
|
|
907
907
|
exports.serializeAws_restJson1UpdateLiveSourceCommand = serializeAws_restJson1UpdateLiveSourceCommand;
|
|
908
|
+
const serializeAws_restJson1UpdateProgramCommand = async (input, context) => {
|
|
909
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
910
|
+
const headers = {
|
|
911
|
+
"content-type": "application/json",
|
|
912
|
+
};
|
|
913
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
914
|
+
"/channel/{ChannelName}/program/{ProgramName}";
|
|
915
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
916
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
917
|
+
let body;
|
|
918
|
+
body = JSON.stringify({
|
|
919
|
+
...(input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
|
|
920
|
+
...(input.ScheduleConfiguration != null && {
|
|
921
|
+
ScheduleConfiguration: serializeAws_restJson1UpdateProgramScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
922
|
+
}),
|
|
923
|
+
});
|
|
924
|
+
return new protocol_http_1.HttpRequest({
|
|
925
|
+
protocol,
|
|
926
|
+
hostname,
|
|
927
|
+
port,
|
|
928
|
+
method: "PUT",
|
|
929
|
+
headers,
|
|
930
|
+
path: resolvedPath,
|
|
931
|
+
body,
|
|
932
|
+
});
|
|
933
|
+
};
|
|
934
|
+
exports.serializeAws_restJson1UpdateProgramCommand = serializeAws_restJson1UpdateProgramCommand;
|
|
908
935
|
const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context) => {
|
|
909
936
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
910
937
|
const headers = {
|
|
@@ -1187,9 +1214,15 @@ const deserializeAws_restJson1CreateProgramCommand = async (output, context) =>
|
|
|
1187
1214
|
if (data.ChannelName != null) {
|
|
1188
1215
|
contents.ChannelName = (0, smithy_client_1.expectString)(data.ChannelName);
|
|
1189
1216
|
}
|
|
1217
|
+
if (data.ClipRange != null) {
|
|
1218
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
1219
|
+
}
|
|
1190
1220
|
if (data.CreationTime != null) {
|
|
1191
1221
|
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
1192
1222
|
}
|
|
1223
|
+
if (data.DurationMillis != null) {
|
|
1224
|
+
contents.DurationMillis = (0, smithy_client_1.expectLong)(data.DurationMillis);
|
|
1225
|
+
}
|
|
1193
1226
|
if (data.LiveSourceName != null) {
|
|
1194
1227
|
contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
|
|
1195
1228
|
}
|
|
@@ -1641,9 +1674,15 @@ const deserializeAws_restJson1DescribeProgramCommand = async (output, context) =
|
|
|
1641
1674
|
if (data.ChannelName != null) {
|
|
1642
1675
|
contents.ChannelName = (0, smithy_client_1.expectString)(data.ChannelName);
|
|
1643
1676
|
}
|
|
1677
|
+
if (data.ClipRange != null) {
|
|
1678
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
1679
|
+
}
|
|
1644
1680
|
if (data.CreationTime != null) {
|
|
1645
1681
|
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
1646
1682
|
}
|
|
1683
|
+
if (data.DurationMillis != null) {
|
|
1684
|
+
contents.DurationMillis = (0, smithy_client_1.expectLong)(data.DurationMillis);
|
|
1685
|
+
}
|
|
1647
1686
|
if (data.LiveSourceName != null) {
|
|
1648
1687
|
contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
|
|
1649
1688
|
}
|
|
@@ -2529,6 +2568,64 @@ const deserializeAws_restJson1UpdateLiveSourceCommandError = async (output, cont
|
|
|
2529
2568
|
errorCode,
|
|
2530
2569
|
});
|
|
2531
2570
|
};
|
|
2571
|
+
const deserializeAws_restJson1UpdateProgramCommand = async (output, context) => {
|
|
2572
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2573
|
+
return deserializeAws_restJson1UpdateProgramCommandError(output, context);
|
|
2574
|
+
}
|
|
2575
|
+
const contents = map({
|
|
2576
|
+
$metadata: deserializeMetadata(output),
|
|
2577
|
+
});
|
|
2578
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2579
|
+
if (data.AdBreaks != null) {
|
|
2580
|
+
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
2581
|
+
}
|
|
2582
|
+
if (data.Arn != null) {
|
|
2583
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2584
|
+
}
|
|
2585
|
+
if (data.ChannelName != null) {
|
|
2586
|
+
contents.ChannelName = (0, smithy_client_1.expectString)(data.ChannelName);
|
|
2587
|
+
}
|
|
2588
|
+
if (data.ClipRange != null) {
|
|
2589
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
2590
|
+
}
|
|
2591
|
+
if (data.CreationTime != null) {
|
|
2592
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
2593
|
+
}
|
|
2594
|
+
if (data.DurationMillis != null) {
|
|
2595
|
+
contents.DurationMillis = (0, smithy_client_1.expectLong)(data.DurationMillis);
|
|
2596
|
+
}
|
|
2597
|
+
if (data.LiveSourceName != null) {
|
|
2598
|
+
contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
|
|
2599
|
+
}
|
|
2600
|
+
if (data.ProgramName != null) {
|
|
2601
|
+
contents.ProgramName = (0, smithy_client_1.expectString)(data.ProgramName);
|
|
2602
|
+
}
|
|
2603
|
+
if (data.ScheduledStartTime != null) {
|
|
2604
|
+
contents.ScheduledStartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.ScheduledStartTime)));
|
|
2605
|
+
}
|
|
2606
|
+
if (data.SourceLocationName != null) {
|
|
2607
|
+
contents.SourceLocationName = (0, smithy_client_1.expectString)(data.SourceLocationName);
|
|
2608
|
+
}
|
|
2609
|
+
if (data.VodSourceName != null) {
|
|
2610
|
+
contents.VodSourceName = (0, smithy_client_1.expectString)(data.VodSourceName);
|
|
2611
|
+
}
|
|
2612
|
+
return contents;
|
|
2613
|
+
};
|
|
2614
|
+
exports.deserializeAws_restJson1UpdateProgramCommand = deserializeAws_restJson1UpdateProgramCommand;
|
|
2615
|
+
const deserializeAws_restJson1UpdateProgramCommandError = async (output, context) => {
|
|
2616
|
+
const parsedOutput = {
|
|
2617
|
+
...output,
|
|
2618
|
+
body: await parseErrorBody(output.body, context),
|
|
2619
|
+
};
|
|
2620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
|
+
const parsedBody = parsedOutput.body;
|
|
2622
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2623
|
+
output,
|
|
2624
|
+
parsedBody,
|
|
2625
|
+
exceptionCtor: MediaTailorServiceException_1.MediaTailorServiceException,
|
|
2626
|
+
errorCode,
|
|
2627
|
+
});
|
|
2628
|
+
};
|
|
2532
2629
|
const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, context) => {
|
|
2533
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2534
2631
|
return deserializeAws_restJson1UpdateSourceLocationCommandError(output, context);
|
|
@@ -2720,6 +2817,11 @@ const serializeAws_restJson1CdnConfiguration = (input, context) => {
|
|
|
2720
2817
|
...(input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
2721
2818
|
};
|
|
2722
2819
|
};
|
|
2820
|
+
const serializeAws_restJson1ClipRange = (input, context) => {
|
|
2821
|
+
return {
|
|
2822
|
+
...(input.EndOffsetMillis != null && { EndOffsetMillis: input.EndOffsetMillis }),
|
|
2823
|
+
};
|
|
2824
|
+
};
|
|
2723
2825
|
const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
2724
2826
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2725
2827
|
if (value === null) {
|
|
@@ -2833,6 +2935,7 @@ const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
|
2833
2935
|
};
|
|
2834
2936
|
const serializeAws_restJson1ScheduleConfiguration = (input, context) => {
|
|
2835
2937
|
return {
|
|
2938
|
+
...(input.ClipRange != null && { ClipRange: serializeAws_restJson1ClipRange(input.ClipRange, context) }),
|
|
2836
2939
|
...(input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
2837
2940
|
};
|
|
2838
2941
|
};
|
|
@@ -2898,6 +3001,20 @@ const serializeAws_restJson1Transition = (input, context) => {
|
|
|
2898
3001
|
...(input.Type != null && { Type: input.Type }),
|
|
2899
3002
|
};
|
|
2900
3003
|
};
|
|
3004
|
+
const serializeAws_restJson1UpdateProgramScheduleConfiguration = (input, context) => {
|
|
3005
|
+
return {
|
|
3006
|
+
...(input.ClipRange != null && { ClipRange: serializeAws_restJson1ClipRange(input.ClipRange, context) }),
|
|
3007
|
+
...(input.Transition != null && {
|
|
3008
|
+
Transition: serializeAws_restJson1UpdateProgramTransition(input.Transition, context),
|
|
3009
|
+
}),
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
3012
|
+
const serializeAws_restJson1UpdateProgramTransition = (input, context) => {
|
|
3013
|
+
return {
|
|
3014
|
+
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
3015
|
+
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
2901
3018
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
2902
3019
|
const retVal = (output || [])
|
|
2903
3020
|
.filter((e) => e != null)
|
|
@@ -3134,6 +3251,11 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3134
3251
|
Tier: (0, smithy_client_1.expectString)(output.Tier),
|
|
3135
3252
|
};
|
|
3136
3253
|
};
|
|
3254
|
+
const deserializeAws_restJson1ClipRange = (output, context) => {
|
|
3255
|
+
return {
|
|
3256
|
+
EndOffsetMillis: (0, smithy_client_1.expectLong)(output.EndOffsetMillis),
|
|
3257
|
+
};
|
|
3258
|
+
};
|
|
3137
3259
|
const deserializeAws_restJson1ConfigurationAliasesResponse = (output, context) => {
|
|
3138
3260
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3139
3261
|
if (value === null) {
|
package/dist-es/MediaTailor.js
CHANGED
|
@@ -39,6 +39,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
39
39
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
40
40
|
import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
|
|
41
41
|
import { UpdateLiveSourceCommand, } from "./commands/UpdateLiveSourceCommand";
|
|
42
|
+
import { UpdateProgramCommand, } from "./commands/UpdateProgramCommand";
|
|
42
43
|
import { UpdateSourceLocationCommand, } from "./commands/UpdateSourceLocationCommand";
|
|
43
44
|
import { UpdateVodSourceCommand, } from "./commands/UpdateVodSourceCommand";
|
|
44
45
|
import { MediaTailorClient } from "./MediaTailorClient";
|
|
@@ -617,6 +618,20 @@ export class MediaTailor extends MediaTailorClient {
|
|
|
617
618
|
return this.send(command, optionsOrCb);
|
|
618
619
|
}
|
|
619
620
|
}
|
|
621
|
+
updateProgram(args, optionsOrCb, cb) {
|
|
622
|
+
const command = new UpdateProgramCommand(args);
|
|
623
|
+
if (typeof optionsOrCb === "function") {
|
|
624
|
+
this.send(command, optionsOrCb);
|
|
625
|
+
}
|
|
626
|
+
else if (typeof cb === "function") {
|
|
627
|
+
if (typeof optionsOrCb !== "object")
|
|
628
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
629
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
return this.send(command, optionsOrCb);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
620
635
|
updateSourceLocation(args, optionsOrCb, cb) {
|
|
621
636
|
const command = new UpdateSourceLocationCommand(args);
|
|
622
637
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateProgramRequestFilterSensitiveLog, UpdateProgramResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateProgramCommand, serializeAws_restJson1UpdateProgramCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateProgramCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProgramCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MediaTailorClient";
|
|
25
|
+
const commandName = "UpdateProgramCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateProgramRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateProgramResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateProgramCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateProgramCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -39,5 +39,6 @@ export * from "./TagResourceCommand";
|
|
|
39
39
|
export * from "./UntagResourceCommand";
|
|
40
40
|
export * from "./UpdateChannelCommand";
|
|
41
41
|
export * from "./UpdateLiveSourceCommand";
|
|
42
|
+
export * from "./UpdateProgramCommand";
|
|
42
43
|
export * from "./UpdateSourceLocationCommand";
|
|
43
44
|
export * from "./UpdateVodSourceCommand";
|
|
@@ -235,6 +235,9 @@ export const ListChannelsRequestFilterSensitiveLog = (obj) => ({
|
|
|
235
235
|
export const ListChannelsResponseFilterSensitiveLog = (obj) => ({
|
|
236
236
|
...obj,
|
|
237
237
|
});
|
|
238
|
+
export const ClipRangeFilterSensitiveLog = (obj) => ({
|
|
239
|
+
...obj,
|
|
240
|
+
});
|
|
238
241
|
export const TransitionFilterSensitiveLog = (obj) => ({
|
|
239
242
|
...obj,
|
|
240
243
|
});
|
|
@@ -259,6 +262,18 @@ export const DescribeProgramRequestFilterSensitiveLog = (obj) => ({
|
|
|
259
262
|
export const DescribeProgramResponseFilterSensitiveLog = (obj) => ({
|
|
260
263
|
...obj,
|
|
261
264
|
});
|
|
265
|
+
export const UpdateProgramTransitionFilterSensitiveLog = (obj) => ({
|
|
266
|
+
...obj,
|
|
267
|
+
});
|
|
268
|
+
export const UpdateProgramScheduleConfigurationFilterSensitiveLog = (obj) => ({
|
|
269
|
+
...obj,
|
|
270
|
+
});
|
|
271
|
+
export const UpdateProgramRequestFilterSensitiveLog = (obj) => ({
|
|
272
|
+
...obj,
|
|
273
|
+
});
|
|
274
|
+
export const UpdateProgramResponseFilterSensitiveLog = (obj) => ({
|
|
275
|
+
...obj,
|
|
276
|
+
});
|
|
262
277
|
export const StartChannelRequestFilterSensitiveLog = (obj) => ({
|
|
263
278
|
...obj,
|
|
264
279
|
});
|
|
@@ -860,6 +860,32 @@ export const serializeAws_restJson1UpdateLiveSourceCommand = async (input, conte
|
|
|
860
860
|
body,
|
|
861
861
|
});
|
|
862
862
|
};
|
|
863
|
+
export const serializeAws_restJson1UpdateProgramCommand = async (input, context) => {
|
|
864
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
865
|
+
const headers = {
|
|
866
|
+
"content-type": "application/json",
|
|
867
|
+
};
|
|
868
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
869
|
+
"/channel/{ChannelName}/program/{ProgramName}";
|
|
870
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
871
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
872
|
+
let body;
|
|
873
|
+
body = JSON.stringify({
|
|
874
|
+
...(input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
|
|
875
|
+
...(input.ScheduleConfiguration != null && {
|
|
876
|
+
ScheduleConfiguration: serializeAws_restJson1UpdateProgramScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
877
|
+
}),
|
|
878
|
+
});
|
|
879
|
+
return new __HttpRequest({
|
|
880
|
+
protocol,
|
|
881
|
+
hostname,
|
|
882
|
+
port,
|
|
883
|
+
method: "PUT",
|
|
884
|
+
headers,
|
|
885
|
+
path: resolvedPath,
|
|
886
|
+
body,
|
|
887
|
+
});
|
|
888
|
+
};
|
|
863
889
|
export const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context) => {
|
|
864
890
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
865
891
|
const headers = {
|
|
@@ -1135,9 +1161,15 @@ export const deserializeAws_restJson1CreateProgramCommand = async (output, conte
|
|
|
1135
1161
|
if (data.ChannelName != null) {
|
|
1136
1162
|
contents.ChannelName = __expectString(data.ChannelName);
|
|
1137
1163
|
}
|
|
1164
|
+
if (data.ClipRange != null) {
|
|
1165
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
1166
|
+
}
|
|
1138
1167
|
if (data.CreationTime != null) {
|
|
1139
1168
|
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1140
1169
|
}
|
|
1170
|
+
if (data.DurationMillis != null) {
|
|
1171
|
+
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
1172
|
+
}
|
|
1141
1173
|
if (data.LiveSourceName != null) {
|
|
1142
1174
|
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1143
1175
|
}
|
|
@@ -1576,9 +1608,15 @@ export const deserializeAws_restJson1DescribeProgramCommand = async (output, con
|
|
|
1576
1608
|
if (data.ChannelName != null) {
|
|
1577
1609
|
contents.ChannelName = __expectString(data.ChannelName);
|
|
1578
1610
|
}
|
|
1611
|
+
if (data.ClipRange != null) {
|
|
1612
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
1613
|
+
}
|
|
1579
1614
|
if (data.CreationTime != null) {
|
|
1580
1615
|
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1581
1616
|
}
|
|
1617
|
+
if (data.DurationMillis != null) {
|
|
1618
|
+
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
1619
|
+
}
|
|
1582
1620
|
if (data.LiveSourceName != null) {
|
|
1583
1621
|
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1584
1622
|
}
|
|
@@ -2441,6 +2479,63 @@ const deserializeAws_restJson1UpdateLiveSourceCommandError = async (output, cont
|
|
|
2441
2479
|
errorCode,
|
|
2442
2480
|
});
|
|
2443
2481
|
};
|
|
2482
|
+
export const deserializeAws_restJson1UpdateProgramCommand = async (output, context) => {
|
|
2483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2484
|
+
return deserializeAws_restJson1UpdateProgramCommandError(output, context);
|
|
2485
|
+
}
|
|
2486
|
+
const contents = map({
|
|
2487
|
+
$metadata: deserializeMetadata(output),
|
|
2488
|
+
});
|
|
2489
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2490
|
+
if (data.AdBreaks != null) {
|
|
2491
|
+
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
2492
|
+
}
|
|
2493
|
+
if (data.Arn != null) {
|
|
2494
|
+
contents.Arn = __expectString(data.Arn);
|
|
2495
|
+
}
|
|
2496
|
+
if (data.ChannelName != null) {
|
|
2497
|
+
contents.ChannelName = __expectString(data.ChannelName);
|
|
2498
|
+
}
|
|
2499
|
+
if (data.ClipRange != null) {
|
|
2500
|
+
contents.ClipRange = deserializeAws_restJson1ClipRange(data.ClipRange, context);
|
|
2501
|
+
}
|
|
2502
|
+
if (data.CreationTime != null) {
|
|
2503
|
+
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
2504
|
+
}
|
|
2505
|
+
if (data.DurationMillis != null) {
|
|
2506
|
+
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
2507
|
+
}
|
|
2508
|
+
if (data.LiveSourceName != null) {
|
|
2509
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
2510
|
+
}
|
|
2511
|
+
if (data.ProgramName != null) {
|
|
2512
|
+
contents.ProgramName = __expectString(data.ProgramName);
|
|
2513
|
+
}
|
|
2514
|
+
if (data.ScheduledStartTime != null) {
|
|
2515
|
+
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
2516
|
+
}
|
|
2517
|
+
if (data.SourceLocationName != null) {
|
|
2518
|
+
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2519
|
+
}
|
|
2520
|
+
if (data.VodSourceName != null) {
|
|
2521
|
+
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2522
|
+
}
|
|
2523
|
+
return contents;
|
|
2524
|
+
};
|
|
2525
|
+
const deserializeAws_restJson1UpdateProgramCommandError = async (output, context) => {
|
|
2526
|
+
const parsedOutput = {
|
|
2527
|
+
...output,
|
|
2528
|
+
body: await parseErrorBody(output.body, context),
|
|
2529
|
+
};
|
|
2530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
|
+
const parsedBody = parsedOutput.body;
|
|
2532
|
+
throwDefaultError({
|
|
2533
|
+
output,
|
|
2534
|
+
parsedBody,
|
|
2535
|
+
exceptionCtor: __BaseException,
|
|
2536
|
+
errorCode,
|
|
2537
|
+
});
|
|
2538
|
+
};
|
|
2444
2539
|
export const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, context) => {
|
|
2445
2540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2446
2541
|
return deserializeAws_restJson1UpdateSourceLocationCommandError(output, context);
|
|
@@ -2630,6 +2725,11 @@ const serializeAws_restJson1CdnConfiguration = (input, context) => {
|
|
|
2630
2725
|
...(input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
2631
2726
|
};
|
|
2632
2727
|
};
|
|
2728
|
+
const serializeAws_restJson1ClipRange = (input, context) => {
|
|
2729
|
+
return {
|
|
2730
|
+
...(input.EndOffsetMillis != null && { EndOffsetMillis: input.EndOffsetMillis }),
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2633
2733
|
const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
2634
2734
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2635
2735
|
if (value === null) {
|
|
@@ -2743,6 +2843,7 @@ const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
|
2743
2843
|
};
|
|
2744
2844
|
const serializeAws_restJson1ScheduleConfiguration = (input, context) => {
|
|
2745
2845
|
return {
|
|
2846
|
+
...(input.ClipRange != null && { ClipRange: serializeAws_restJson1ClipRange(input.ClipRange, context) }),
|
|
2746
2847
|
...(input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
2747
2848
|
};
|
|
2748
2849
|
};
|
|
@@ -2808,6 +2909,20 @@ const serializeAws_restJson1Transition = (input, context) => {
|
|
|
2808
2909
|
...(input.Type != null && { Type: input.Type }),
|
|
2809
2910
|
};
|
|
2810
2911
|
};
|
|
2912
|
+
const serializeAws_restJson1UpdateProgramScheduleConfiguration = (input, context) => {
|
|
2913
|
+
return {
|
|
2914
|
+
...(input.ClipRange != null && { ClipRange: serializeAws_restJson1ClipRange(input.ClipRange, context) }),
|
|
2915
|
+
...(input.Transition != null && {
|
|
2916
|
+
Transition: serializeAws_restJson1UpdateProgramTransition(input.Transition, context),
|
|
2917
|
+
}),
|
|
2918
|
+
};
|
|
2919
|
+
};
|
|
2920
|
+
const serializeAws_restJson1UpdateProgramTransition = (input, context) => {
|
|
2921
|
+
return {
|
|
2922
|
+
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
2923
|
+
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2811
2926
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
2812
2927
|
const retVal = (output || [])
|
|
2813
2928
|
.filter((e) => e != null)
|
|
@@ -3044,6 +3159,11 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3044
3159
|
Tier: __expectString(output.Tier),
|
|
3045
3160
|
};
|
|
3046
3161
|
};
|
|
3162
|
+
const deserializeAws_restJson1ClipRange = (output, context) => {
|
|
3163
|
+
return {
|
|
3164
|
+
EndOffsetMillis: __expectLong(output.EndOffsetMillis),
|
|
3165
|
+
};
|
|
3166
|
+
};
|
|
3047
3167
|
const deserializeAws_restJson1ConfigurationAliasesResponse = (output, context) => {
|
|
3048
3168
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3049
3169
|
if (value === null) {
|
|
@@ -40,6 +40,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
40
40
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
41
41
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
42
42
|
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "./commands/UpdateLiveSourceCommand";
|
|
43
|
+
import { UpdateProgramCommandInput, UpdateProgramCommandOutput } from "./commands/UpdateProgramCommand";
|
|
43
44
|
import { UpdateSourceLocationCommandInput, UpdateSourceLocationCommandOutput } from "./commands/UpdateSourceLocationCommand";
|
|
44
45
|
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "./commands/UpdateVodSourceCommand";
|
|
45
46
|
import { MediaTailorClient } from "./MediaTailorClient";
|
|
@@ -294,6 +295,12 @@ export declare class MediaTailor extends MediaTailorClient {
|
|
|
294
295
|
updateLiveSource(args: UpdateLiveSourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLiveSourceCommandOutput>;
|
|
295
296
|
updateLiveSource(args: UpdateLiveSourceCommandInput, cb: (err: any, data?: UpdateLiveSourceCommandOutput) => void): void;
|
|
296
297
|
updateLiveSource(args: UpdateLiveSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLiveSourceCommandOutput) => void): void;
|
|
298
|
+
/**
|
|
299
|
+
* <p>Updates a program within a channel.</p>
|
|
300
|
+
*/
|
|
301
|
+
updateProgram(args: UpdateProgramCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProgramCommandOutput>;
|
|
302
|
+
updateProgram(args: UpdateProgramCommandInput, cb: (err: any, data?: UpdateProgramCommandOutput) => void): void;
|
|
303
|
+
updateProgram(args: UpdateProgramCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProgramCommandOutput) => void): void;
|
|
297
304
|
/**
|
|
298
305
|
* <p>Updates a source location. A source location is a container for sources. For more information about source locations, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/channel-assembly-source-locations.html">Working with source locations</a> in the <i>MediaTailor User Guide</i>.</p>
|
|
299
306
|
*/
|
|
@@ -48,11 +48,12 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
48
48
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
49
49
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
50
50
|
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "./commands/UpdateLiveSourceCommand";
|
|
51
|
+
import { UpdateProgramCommandInput, UpdateProgramCommandOutput } from "./commands/UpdateProgramCommand";
|
|
51
52
|
import { UpdateSourceLocationCommandInput, UpdateSourceLocationCommandOutput } from "./commands/UpdateSourceLocationCommand";
|
|
52
53
|
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "./commands/UpdateVodSourceCommand";
|
|
53
54
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
54
|
-
export declare type ServiceInputTypes = ConfigureLogsForChannelCommandInput | ConfigureLogsForPlaybackConfigurationCommandInput | CreateChannelCommandInput | CreateLiveSourceCommandInput | CreatePrefetchScheduleCommandInput | CreateProgramCommandInput | CreateSourceLocationCommandInput | CreateVodSourceCommandInput | DeleteChannelCommandInput | DeleteChannelPolicyCommandInput | DeleteLiveSourceCommandInput | DeletePlaybackConfigurationCommandInput | DeletePrefetchScheduleCommandInput | DeleteProgramCommandInput | DeleteSourceLocationCommandInput | DeleteVodSourceCommandInput | DescribeChannelCommandInput | DescribeLiveSourceCommandInput | DescribeProgramCommandInput | DescribeSourceLocationCommandInput | DescribeVodSourceCommandInput | GetChannelPolicyCommandInput | GetChannelScheduleCommandInput | GetPlaybackConfigurationCommandInput | GetPrefetchScheduleCommandInput | ListAlertsCommandInput | ListChannelsCommandInput | ListLiveSourcesCommandInput | ListPlaybackConfigurationsCommandInput | ListPrefetchSchedulesCommandInput | ListSourceLocationsCommandInput | ListTagsForResourceCommandInput | ListVodSourcesCommandInput | PutChannelPolicyCommandInput | PutPlaybackConfigurationCommandInput | StartChannelCommandInput | StopChannelCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateLiveSourceCommandInput | UpdateSourceLocationCommandInput | UpdateVodSourceCommandInput;
|
|
55
|
-
export declare type ServiceOutputTypes = ConfigureLogsForChannelCommandOutput | ConfigureLogsForPlaybackConfigurationCommandOutput | CreateChannelCommandOutput | CreateLiveSourceCommandOutput | CreatePrefetchScheduleCommandOutput | CreateProgramCommandOutput | CreateSourceLocationCommandOutput | CreateVodSourceCommandOutput | DeleteChannelCommandOutput | DeleteChannelPolicyCommandOutput | DeleteLiveSourceCommandOutput | DeletePlaybackConfigurationCommandOutput | DeletePrefetchScheduleCommandOutput | DeleteProgramCommandOutput | DeleteSourceLocationCommandOutput | DeleteVodSourceCommandOutput | DescribeChannelCommandOutput | DescribeLiveSourceCommandOutput | DescribeProgramCommandOutput | DescribeSourceLocationCommandOutput | DescribeVodSourceCommandOutput | GetChannelPolicyCommandOutput | GetChannelScheduleCommandOutput | GetPlaybackConfigurationCommandOutput | GetPrefetchScheduleCommandOutput | ListAlertsCommandOutput | ListChannelsCommandOutput | ListLiveSourcesCommandOutput | ListPlaybackConfigurationsCommandOutput | ListPrefetchSchedulesCommandOutput | ListSourceLocationsCommandOutput | ListTagsForResourceCommandOutput | ListVodSourcesCommandOutput | PutChannelPolicyCommandOutput | PutPlaybackConfigurationCommandOutput | StartChannelCommandOutput | StopChannelCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateLiveSourceCommandOutput | UpdateSourceLocationCommandOutput | UpdateVodSourceCommandOutput;
|
|
55
|
+
export declare type ServiceInputTypes = ConfigureLogsForChannelCommandInput | ConfigureLogsForPlaybackConfigurationCommandInput | CreateChannelCommandInput | CreateLiveSourceCommandInput | CreatePrefetchScheduleCommandInput | CreateProgramCommandInput | CreateSourceLocationCommandInput | CreateVodSourceCommandInput | DeleteChannelCommandInput | DeleteChannelPolicyCommandInput | DeleteLiveSourceCommandInput | DeletePlaybackConfigurationCommandInput | DeletePrefetchScheduleCommandInput | DeleteProgramCommandInput | DeleteSourceLocationCommandInput | DeleteVodSourceCommandInput | DescribeChannelCommandInput | DescribeLiveSourceCommandInput | DescribeProgramCommandInput | DescribeSourceLocationCommandInput | DescribeVodSourceCommandInput | GetChannelPolicyCommandInput | GetChannelScheduleCommandInput | GetPlaybackConfigurationCommandInput | GetPrefetchScheduleCommandInput | ListAlertsCommandInput | ListChannelsCommandInput | ListLiveSourcesCommandInput | ListPlaybackConfigurationsCommandInput | ListPrefetchSchedulesCommandInput | ListSourceLocationsCommandInput | ListTagsForResourceCommandInput | ListVodSourcesCommandInput | PutChannelPolicyCommandInput | PutPlaybackConfigurationCommandInput | StartChannelCommandInput | StopChannelCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateLiveSourceCommandInput | UpdateProgramCommandInput | UpdateSourceLocationCommandInput | UpdateVodSourceCommandInput;
|
|
56
|
+
export declare type ServiceOutputTypes = ConfigureLogsForChannelCommandOutput | ConfigureLogsForPlaybackConfigurationCommandOutput | CreateChannelCommandOutput | CreateLiveSourceCommandOutput | CreatePrefetchScheduleCommandOutput | CreateProgramCommandOutput | CreateSourceLocationCommandOutput | CreateVodSourceCommandOutput | DeleteChannelCommandOutput | DeleteChannelPolicyCommandOutput | DeleteLiveSourceCommandOutput | DeletePlaybackConfigurationCommandOutput | DeletePrefetchScheduleCommandOutput | DeleteProgramCommandOutput | DeleteSourceLocationCommandOutput | DeleteVodSourceCommandOutput | DescribeChannelCommandOutput | DescribeLiveSourceCommandOutput | DescribeProgramCommandOutput | DescribeSourceLocationCommandOutput | DescribeVodSourceCommandOutput | GetChannelPolicyCommandOutput | GetChannelScheduleCommandOutput | GetPlaybackConfigurationCommandOutput | GetPrefetchScheduleCommandOutput | ListAlertsCommandOutput | ListChannelsCommandOutput | ListLiveSourcesCommandOutput | ListPlaybackConfigurationsCommandOutput | ListPrefetchSchedulesCommandOutput | ListSourceLocationsCommandOutput | ListTagsForResourceCommandOutput | ListVodSourcesCommandOutput | PutChannelPolicyCommandOutput | PutPlaybackConfigurationCommandOutput | StartChannelCommandOutput | StopChannelCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateLiveSourceCommandOutput | UpdateProgramCommandOutput | UpdateSourceLocationCommandOutput | UpdateVodSourceCommandOutput;
|
|
56
57
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
57
58
|
/**
|
|
58
59
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
5
|
+
import { UpdateProgramRequest, UpdateProgramResponse } from "../models/models_0";
|
|
6
|
+
export interface UpdateProgramCommandInput extends UpdateProgramRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateProgramCommandOutput extends UpdateProgramResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Updates a program within a channel.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { MediaTailorClient, UpdateProgramCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
16
|
+
* // const { MediaTailorClient, UpdateProgramCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
17
|
+
* const client = new MediaTailorClient(config);
|
|
18
|
+
* const command = new UpdateProgramCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link UpdateProgramCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link UpdateProgramCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link MediaTailorClientResolvedConfig | config} for MediaTailorClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class UpdateProgramCommand extends $Command<UpdateProgramCommandInput, UpdateProgramCommandOutput, MediaTailorClientResolvedConfig> {
|
|
28
|
+
readonly input: UpdateProgramCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: UpdateProgramCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateProgramCommandInput, UpdateProgramCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -39,5 +39,6 @@ export * from "./TagResourceCommand";
|
|
|
39
39
|
export * from "./UntagResourceCommand";
|
|
40
40
|
export * from "./UpdateChannelCommand";
|
|
41
41
|
export * from "./UpdateLiveSourceCommand";
|
|
42
|
+
export * from "./UpdateProgramCommand";
|
|
42
43
|
export * from "./UpdateSourceLocationCommand";
|
|
43
44
|
export * from "./UpdateVodSourceCommand";
|
|
@@ -1095,6 +1095,15 @@ export interface ListChannelsResponse {
|
|
|
1095
1095
|
*/
|
|
1096
1096
|
NextToken?: string;
|
|
1097
1097
|
}
|
|
1098
|
+
/**
|
|
1099
|
+
* <p>Clip range configuration for the VOD source associated with the program.</p>
|
|
1100
|
+
*/
|
|
1101
|
+
export interface ClipRange {
|
|
1102
|
+
/**
|
|
1103
|
+
* <p>The end offset of the clip range, in milliseconds, starting from the beginning of the VOD source associated with the program.</p>
|
|
1104
|
+
*/
|
|
1105
|
+
EndOffsetMillis: number | undefined;
|
|
1106
|
+
}
|
|
1098
1107
|
export declare enum RelativePosition {
|
|
1099
1108
|
AFTER_PROGRAM = "AFTER_PROGRAM",
|
|
1100
1109
|
BEFORE_PROGRAM = "BEFORE_PROGRAM"
|
|
@@ -1140,6 +1149,10 @@ export interface ScheduleConfiguration {
|
|
|
1140
1149
|
* <p>Program transition configurations.</p>
|
|
1141
1150
|
*/
|
|
1142
1151
|
Transition: Transition | undefined;
|
|
1152
|
+
/**
|
|
1153
|
+
* <p>Program clip range configuration.</p>
|
|
1154
|
+
*/
|
|
1155
|
+
ClipRange?: ClipRange;
|
|
1143
1156
|
}
|
|
1144
1157
|
export interface CreateProgramRequest {
|
|
1145
1158
|
/**
|
|
@@ -1208,6 +1221,14 @@ export interface CreateProgramResponse {
|
|
|
1208
1221
|
* <p>The name that's used to refer to a VOD source.</p>
|
|
1209
1222
|
*/
|
|
1210
1223
|
VodSourceName?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* <p>The clip range configuration settings.</p>
|
|
1226
|
+
*/
|
|
1227
|
+
ClipRange?: ClipRange;
|
|
1228
|
+
/**
|
|
1229
|
+
* <p>The duration of the live program in milliseconds.</p>
|
|
1230
|
+
*/
|
|
1231
|
+
DurationMillis?: number;
|
|
1211
1232
|
}
|
|
1212
1233
|
export interface DeleteProgramRequest {
|
|
1213
1234
|
/**
|
|
@@ -1268,6 +1289,104 @@ export interface DescribeProgramResponse {
|
|
|
1268
1289
|
* <p>The name that's used to refer to a VOD source.</p>
|
|
1269
1290
|
*/
|
|
1270
1291
|
VodSourceName?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* <p>The clip range configuration settings.</p>
|
|
1294
|
+
*/
|
|
1295
|
+
ClipRange?: ClipRange;
|
|
1296
|
+
/**
|
|
1297
|
+
* <p>The duration of the live program in milliseconds.</p>
|
|
1298
|
+
*/
|
|
1299
|
+
DurationMillis?: number;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* <p>Program transition configuration.</p>
|
|
1303
|
+
*/
|
|
1304
|
+
export interface UpdateProgramTransition {
|
|
1305
|
+
/**
|
|
1306
|
+
* <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
|
|
1307
|
+
*/
|
|
1308
|
+
ScheduledStartTimeMillis?: number;
|
|
1309
|
+
/**
|
|
1310
|
+
* <p>The duration of the live program in seconds.</p>
|
|
1311
|
+
*/
|
|
1312
|
+
DurationMillis?: number;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* <p>Schedule configuration parameters.</p>
|
|
1316
|
+
*/
|
|
1317
|
+
export interface UpdateProgramScheduleConfiguration {
|
|
1318
|
+
/**
|
|
1319
|
+
* <p>Program transition configuration.</p>
|
|
1320
|
+
*/
|
|
1321
|
+
Transition?: UpdateProgramTransition;
|
|
1322
|
+
/**
|
|
1323
|
+
* <p>Program clip range configuration.</p>
|
|
1324
|
+
*/
|
|
1325
|
+
ClipRange?: ClipRange;
|
|
1326
|
+
}
|
|
1327
|
+
export interface UpdateProgramRequest {
|
|
1328
|
+
/**
|
|
1329
|
+
* <p>The ad break configuration settings.</p>
|
|
1330
|
+
*/
|
|
1331
|
+
AdBreaks?: AdBreak[];
|
|
1332
|
+
/**
|
|
1333
|
+
* <p>The name of the channel for this Program.</p>
|
|
1334
|
+
*/
|
|
1335
|
+
ChannelName: string | undefined;
|
|
1336
|
+
/**
|
|
1337
|
+
* <p>The name of the Program.</p>
|
|
1338
|
+
*/
|
|
1339
|
+
ProgramName: string | undefined;
|
|
1340
|
+
/**
|
|
1341
|
+
* <p>The schedule configuration settings.</p>
|
|
1342
|
+
*/
|
|
1343
|
+
ScheduleConfiguration: UpdateProgramScheduleConfiguration | undefined;
|
|
1344
|
+
}
|
|
1345
|
+
export interface UpdateProgramResponse {
|
|
1346
|
+
/**
|
|
1347
|
+
* <p>The ad break configuration settings.</p>
|
|
1348
|
+
*/
|
|
1349
|
+
AdBreaks?: AdBreak[];
|
|
1350
|
+
/**
|
|
1351
|
+
* <p>The ARN to assign to the program.</p>
|
|
1352
|
+
*/
|
|
1353
|
+
Arn?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* <p>The name to assign to the channel for this program.</p>
|
|
1356
|
+
*/
|
|
1357
|
+
ChannelName?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* <p>The time the program was created.</p>
|
|
1360
|
+
*/
|
|
1361
|
+
CreationTime?: Date;
|
|
1362
|
+
/**
|
|
1363
|
+
* <p>The name to assign to this program.</p>
|
|
1364
|
+
*/
|
|
1365
|
+
ProgramName?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* <p>The name to assign to the source location for this program.</p>
|
|
1368
|
+
*/
|
|
1369
|
+
SourceLocationName?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* <p>The name that's used to refer to a VOD source.</p>
|
|
1372
|
+
*/
|
|
1373
|
+
VodSourceName?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* <p>The name of the LiveSource for this Program.</p>
|
|
1376
|
+
*/
|
|
1377
|
+
LiveSourceName?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* <p>The clip range configuration settings.</p>
|
|
1380
|
+
*/
|
|
1381
|
+
ClipRange?: ClipRange;
|
|
1382
|
+
/**
|
|
1383
|
+
* <p>The duration of the live program in milliseconds.</p>
|
|
1384
|
+
*/
|
|
1385
|
+
DurationMillis?: number;
|
|
1386
|
+
/**
|
|
1387
|
+
* <p>The scheduled start time for this Program.</p>
|
|
1388
|
+
*/
|
|
1389
|
+
ScheduledStartTime?: Date;
|
|
1271
1390
|
}
|
|
1272
1391
|
export interface StartChannelRequest {
|
|
1273
1392
|
/**
|
|
@@ -2570,6 +2689,10 @@ export declare const ListChannelsRequestFilterSensitiveLog: (obj: ListChannelsRe
|
|
|
2570
2689
|
* @internal
|
|
2571
2690
|
*/
|
|
2572
2691
|
export declare const ListChannelsResponseFilterSensitiveLog: (obj: ListChannelsResponse) => any;
|
|
2692
|
+
/**
|
|
2693
|
+
* @internal
|
|
2694
|
+
*/
|
|
2695
|
+
export declare const ClipRangeFilterSensitiveLog: (obj: ClipRange) => any;
|
|
2573
2696
|
/**
|
|
2574
2697
|
* @internal
|
|
2575
2698
|
*/
|
|
@@ -2602,6 +2725,22 @@ export declare const DescribeProgramRequestFilterSensitiveLog: (obj: DescribePro
|
|
|
2602
2725
|
* @internal
|
|
2603
2726
|
*/
|
|
2604
2727
|
export declare const DescribeProgramResponseFilterSensitiveLog: (obj: DescribeProgramResponse) => any;
|
|
2728
|
+
/**
|
|
2729
|
+
* @internal
|
|
2730
|
+
*/
|
|
2731
|
+
export declare const UpdateProgramTransitionFilterSensitiveLog: (obj: UpdateProgramTransition) => any;
|
|
2732
|
+
/**
|
|
2733
|
+
* @internal
|
|
2734
|
+
*/
|
|
2735
|
+
export declare const UpdateProgramScheduleConfigurationFilterSensitiveLog: (obj: UpdateProgramScheduleConfiguration) => any;
|
|
2736
|
+
/**
|
|
2737
|
+
* @internal
|
|
2738
|
+
*/
|
|
2739
|
+
export declare const UpdateProgramRequestFilterSensitiveLog: (obj: UpdateProgramRequest) => any;
|
|
2740
|
+
/**
|
|
2741
|
+
* @internal
|
|
2742
|
+
*/
|
|
2743
|
+
export declare const UpdateProgramResponseFilterSensitiveLog: (obj: UpdateProgramResponse) => any;
|
|
2605
2744
|
/**
|
|
2606
2745
|
* @internal
|
|
2607
2746
|
*/
|
|
@@ -41,6 +41,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/T
|
|
|
41
41
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
42
42
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../commands/UpdateChannelCommand";
|
|
43
43
|
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "../commands/UpdateLiveSourceCommand";
|
|
44
|
+
import { UpdateProgramCommandInput, UpdateProgramCommandOutput } from "../commands/UpdateProgramCommand";
|
|
44
45
|
import { UpdateSourceLocationCommandInput, UpdateSourceLocationCommandOutput } from "../commands/UpdateSourceLocationCommand";
|
|
45
46
|
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "../commands/UpdateVodSourceCommand";
|
|
46
47
|
export declare const serializeAws_restJson1ConfigureLogsForChannelCommand: (input: ConfigureLogsForChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -84,6 +85,7 @@ export declare const serializeAws_restJson1TagResourceCommand: (input: TagResour
|
|
|
84
85
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
86
|
export declare const serializeAws_restJson1UpdateChannelCommand: (input: UpdateChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
86
87
|
export declare const serializeAws_restJson1UpdateLiveSourceCommand: (input: UpdateLiveSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
88
|
+
export declare const serializeAws_restJson1UpdateProgramCommand: (input: UpdateProgramCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
87
89
|
export declare const serializeAws_restJson1UpdateSourceLocationCommand: (input: UpdateSourceLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
88
90
|
export declare const serializeAws_restJson1UpdateVodSourceCommand: (input: UpdateVodSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
89
91
|
export declare const deserializeAws_restJson1ConfigureLogsForChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConfigureLogsForChannelCommandOutput>;
|
|
@@ -127,5 +129,6 @@ export declare const deserializeAws_restJson1TagResourceCommand: (output: __Http
|
|
|
127
129
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
128
130
|
export declare const deserializeAws_restJson1UpdateChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateChannelCommandOutput>;
|
|
129
131
|
export declare const deserializeAws_restJson1UpdateLiveSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateLiveSourceCommandOutput>;
|
|
132
|
+
export declare const deserializeAws_restJson1UpdateProgramCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateProgramCommandOutput>;
|
|
130
133
|
export declare const deserializeAws_restJson1UpdateSourceLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSourceLocationCommandOutput>;
|
|
131
134
|
export declare const deserializeAws_restJson1UpdateVodSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateVodSourceCommandOutput>;
|
|
@@ -163,6 +163,10 @@ import {
|
|
|
163
163
|
UpdateLiveSourceCommandInput,
|
|
164
164
|
UpdateLiveSourceCommandOutput,
|
|
165
165
|
} from "./commands/UpdateLiveSourceCommand";
|
|
166
|
+
import {
|
|
167
|
+
UpdateProgramCommandInput,
|
|
168
|
+
UpdateProgramCommandOutput,
|
|
169
|
+
} from "./commands/UpdateProgramCommand";
|
|
166
170
|
import {
|
|
167
171
|
UpdateSourceLocationCommandInput,
|
|
168
172
|
UpdateSourceLocationCommandOutput,
|
|
@@ -712,6 +716,19 @@ export declare class MediaTailor extends MediaTailorClient {
|
|
|
712
716
|
options: __HttpHandlerOptions,
|
|
713
717
|
cb: (err: any, data?: UpdateLiveSourceCommandOutput) => void
|
|
714
718
|
): void;
|
|
719
|
+
updateProgram(
|
|
720
|
+
args: UpdateProgramCommandInput,
|
|
721
|
+
options?: __HttpHandlerOptions
|
|
722
|
+
): Promise<UpdateProgramCommandOutput>;
|
|
723
|
+
updateProgram(
|
|
724
|
+
args: UpdateProgramCommandInput,
|
|
725
|
+
cb: (err: any, data?: UpdateProgramCommandOutput) => void
|
|
726
|
+
): void;
|
|
727
|
+
updateProgram(
|
|
728
|
+
args: UpdateProgramCommandInput,
|
|
729
|
+
options: __HttpHandlerOptions,
|
|
730
|
+
cb: (err: any, data?: UpdateProgramCommandOutput) => void
|
|
731
|
+
): void;
|
|
715
732
|
updateSourceLocation(
|
|
716
733
|
args: UpdateSourceLocationCommandInput,
|
|
717
734
|
options?: __HttpHandlerOptions
|
|
@@ -208,6 +208,10 @@ import {
|
|
|
208
208
|
UpdateLiveSourceCommandInput,
|
|
209
209
|
UpdateLiveSourceCommandOutput,
|
|
210
210
|
} from "./commands/UpdateLiveSourceCommand";
|
|
211
|
+
import {
|
|
212
|
+
UpdateProgramCommandInput,
|
|
213
|
+
UpdateProgramCommandOutput,
|
|
214
|
+
} from "./commands/UpdateProgramCommand";
|
|
211
215
|
import {
|
|
212
216
|
UpdateSourceLocationCommandInput,
|
|
213
217
|
UpdateSourceLocationCommandOutput,
|
|
@@ -263,6 +267,7 @@ export declare type ServiceInputTypes =
|
|
|
263
267
|
| UntagResourceCommandInput
|
|
264
268
|
| UpdateChannelCommandInput
|
|
265
269
|
| UpdateLiveSourceCommandInput
|
|
270
|
+
| UpdateProgramCommandInput
|
|
266
271
|
| UpdateSourceLocationCommandInput
|
|
267
272
|
| UpdateVodSourceCommandInput;
|
|
268
273
|
export declare type ServiceOutputTypes =
|
|
@@ -307,6 +312,7 @@ export declare type ServiceOutputTypes =
|
|
|
307
312
|
| UntagResourceCommandOutput
|
|
308
313
|
| UpdateChannelCommandOutput
|
|
309
314
|
| UpdateLiveSourceCommandOutput
|
|
315
|
+
| UpdateProgramCommandOutput
|
|
310
316
|
| UpdateSourceLocationCommandOutput
|
|
311
317
|
| UpdateVodSourceCommandOutput;
|
|
312
318
|
export interface ClientDefaults
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
MediaTailorClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../MediaTailorClient";
|
|
14
|
+
import {
|
|
15
|
+
UpdateProgramRequest,
|
|
16
|
+
UpdateProgramResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export interface UpdateProgramCommandInput extends UpdateProgramRequest {}
|
|
19
|
+
export interface UpdateProgramCommandOutput
|
|
20
|
+
extends UpdateProgramResponse,
|
|
21
|
+
__MetadataBearer {}
|
|
22
|
+
export declare class UpdateProgramCommand extends $Command<
|
|
23
|
+
UpdateProgramCommandInput,
|
|
24
|
+
UpdateProgramCommandOutput,
|
|
25
|
+
MediaTailorClientResolvedConfig
|
|
26
|
+
> {
|
|
27
|
+
readonly input: UpdateProgramCommandInput;
|
|
28
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
29
|
+
constructor(input: UpdateProgramCommandInput);
|
|
30
|
+
resolveMiddleware(
|
|
31
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
32
|
+
configuration: MediaTailorClientResolvedConfig,
|
|
33
|
+
options?: __HttpHandlerOptions
|
|
34
|
+
): Handler<UpdateProgramCommandInput, UpdateProgramCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -39,5 +39,6 @@ export * from "./TagResourceCommand";
|
|
|
39
39
|
export * from "./UntagResourceCommand";
|
|
40
40
|
export * from "./UpdateChannelCommand";
|
|
41
41
|
export * from "./UpdateLiveSourceCommand";
|
|
42
|
+
export * from "./UpdateProgramCommand";
|
|
42
43
|
export * from "./UpdateSourceLocationCommand";
|
|
43
44
|
export * from "./UpdateVodSourceCommand";
|
|
@@ -353,6 +353,9 @@ export interface ListChannelsResponse {
|
|
|
353
353
|
Items?: Channel[];
|
|
354
354
|
NextToken?: string;
|
|
355
355
|
}
|
|
356
|
+
export interface ClipRange {
|
|
357
|
+
EndOffsetMillis: number | undefined;
|
|
358
|
+
}
|
|
356
359
|
export declare enum RelativePosition {
|
|
357
360
|
AFTER_PROGRAM = "AFTER_PROGRAM",
|
|
358
361
|
BEFORE_PROGRAM = "BEFORE_PROGRAM",
|
|
@@ -366,6 +369,7 @@ export interface Transition {
|
|
|
366
369
|
}
|
|
367
370
|
export interface ScheduleConfiguration {
|
|
368
371
|
Transition: Transition | undefined;
|
|
372
|
+
ClipRange?: ClipRange;
|
|
369
373
|
}
|
|
370
374
|
export interface CreateProgramRequest {
|
|
371
375
|
AdBreaks?: AdBreak[];
|
|
@@ -386,6 +390,8 @@ export interface CreateProgramResponse {
|
|
|
386
390
|
ScheduledStartTime?: Date;
|
|
387
391
|
SourceLocationName?: string;
|
|
388
392
|
VodSourceName?: string;
|
|
393
|
+
ClipRange?: ClipRange;
|
|
394
|
+
DurationMillis?: number;
|
|
389
395
|
}
|
|
390
396
|
export interface DeleteProgramRequest {
|
|
391
397
|
ChannelName: string | undefined;
|
|
@@ -406,6 +412,35 @@ export interface DescribeProgramResponse {
|
|
|
406
412
|
ScheduledStartTime?: Date;
|
|
407
413
|
SourceLocationName?: string;
|
|
408
414
|
VodSourceName?: string;
|
|
415
|
+
ClipRange?: ClipRange;
|
|
416
|
+
DurationMillis?: number;
|
|
417
|
+
}
|
|
418
|
+
export interface UpdateProgramTransition {
|
|
419
|
+
ScheduledStartTimeMillis?: number;
|
|
420
|
+
DurationMillis?: number;
|
|
421
|
+
}
|
|
422
|
+
export interface UpdateProgramScheduleConfiguration {
|
|
423
|
+
Transition?: UpdateProgramTransition;
|
|
424
|
+
ClipRange?: ClipRange;
|
|
425
|
+
}
|
|
426
|
+
export interface UpdateProgramRequest {
|
|
427
|
+
AdBreaks?: AdBreak[];
|
|
428
|
+
ChannelName: string | undefined;
|
|
429
|
+
ProgramName: string | undefined;
|
|
430
|
+
ScheduleConfiguration: UpdateProgramScheduleConfiguration | undefined;
|
|
431
|
+
}
|
|
432
|
+
export interface UpdateProgramResponse {
|
|
433
|
+
AdBreaks?: AdBreak[];
|
|
434
|
+
Arn?: string;
|
|
435
|
+
ChannelName?: string;
|
|
436
|
+
CreationTime?: Date;
|
|
437
|
+
ProgramName?: string;
|
|
438
|
+
SourceLocationName?: string;
|
|
439
|
+
VodSourceName?: string;
|
|
440
|
+
LiveSourceName?: string;
|
|
441
|
+
ClipRange?: ClipRange;
|
|
442
|
+
DurationMillis?: number;
|
|
443
|
+
ScheduledStartTime?: Date;
|
|
409
444
|
}
|
|
410
445
|
export interface StartChannelRequest {
|
|
411
446
|
ChannelName: string | undefined;
|
|
@@ -908,6 +943,7 @@ export declare const ListChannelsRequestFilterSensitiveLog: (
|
|
|
908
943
|
export declare const ListChannelsResponseFilterSensitiveLog: (
|
|
909
944
|
obj: ListChannelsResponse
|
|
910
945
|
) => any;
|
|
946
|
+
export declare const ClipRangeFilterSensitiveLog: (obj: ClipRange) => any;
|
|
911
947
|
export declare const TransitionFilterSensitiveLog: (obj: Transition) => any;
|
|
912
948
|
export declare const ScheduleConfigurationFilterSensitiveLog: (
|
|
913
949
|
obj: ScheduleConfiguration
|
|
@@ -930,6 +966,18 @@ export declare const DescribeProgramRequestFilterSensitiveLog: (
|
|
|
930
966
|
export declare const DescribeProgramResponseFilterSensitiveLog: (
|
|
931
967
|
obj: DescribeProgramResponse
|
|
932
968
|
) => any;
|
|
969
|
+
export declare const UpdateProgramTransitionFilterSensitiveLog: (
|
|
970
|
+
obj: UpdateProgramTransition
|
|
971
|
+
) => any;
|
|
972
|
+
export declare const UpdateProgramScheduleConfigurationFilterSensitiveLog: (
|
|
973
|
+
obj: UpdateProgramScheduleConfiguration
|
|
974
|
+
) => any;
|
|
975
|
+
export declare const UpdateProgramRequestFilterSensitiveLog: (
|
|
976
|
+
obj: UpdateProgramRequest
|
|
977
|
+
) => any;
|
|
978
|
+
export declare const UpdateProgramResponseFilterSensitiveLog: (
|
|
979
|
+
obj: UpdateProgramResponse
|
|
980
|
+
) => any;
|
|
933
981
|
export declare const StartChannelRequestFilterSensitiveLog: (
|
|
934
982
|
obj: StartChannelRequest
|
|
935
983
|
) => any;
|
|
@@ -167,6 +167,10 @@ import {
|
|
|
167
167
|
UpdateLiveSourceCommandInput,
|
|
168
168
|
UpdateLiveSourceCommandOutput,
|
|
169
169
|
} from "../commands/UpdateLiveSourceCommand";
|
|
170
|
+
import {
|
|
171
|
+
UpdateProgramCommandInput,
|
|
172
|
+
UpdateProgramCommandOutput,
|
|
173
|
+
} from "../commands/UpdateProgramCommand";
|
|
170
174
|
import {
|
|
171
175
|
UpdateSourceLocationCommandInput,
|
|
172
176
|
UpdateSourceLocationCommandOutput,
|
|
@@ -339,6 +343,10 @@ export declare const serializeAws_restJson1UpdateLiveSourceCommand: (
|
|
|
339
343
|
input: UpdateLiveSourceCommandInput,
|
|
340
344
|
context: __SerdeContext
|
|
341
345
|
) => Promise<__HttpRequest>;
|
|
346
|
+
export declare const serializeAws_restJson1UpdateProgramCommand: (
|
|
347
|
+
input: UpdateProgramCommandInput,
|
|
348
|
+
context: __SerdeContext
|
|
349
|
+
) => Promise<__HttpRequest>;
|
|
342
350
|
export declare const serializeAws_restJson1UpdateSourceLocationCommand: (
|
|
343
351
|
input: UpdateSourceLocationCommandInput,
|
|
344
352
|
context: __SerdeContext
|
|
@@ -511,6 +519,10 @@ export declare const deserializeAws_restJson1UpdateLiveSourceCommand: (
|
|
|
511
519
|
output: __HttpResponse,
|
|
512
520
|
context: __SerdeContext
|
|
513
521
|
) => Promise<UpdateLiveSourceCommandOutput>;
|
|
522
|
+
export declare const deserializeAws_restJson1UpdateProgramCommand: (
|
|
523
|
+
output: __HttpResponse,
|
|
524
|
+
context: __SerdeContext
|
|
525
|
+
) => Promise<UpdateProgramCommandOutput>;
|
|
514
526
|
export declare const deserializeAws_restJson1UpdateSourceLocationCommand: (
|
|
515
527
|
output: __HttpResponse,
|
|
516
528
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediatailor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.263.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|