batch_update_schedule
(**kwargs)¶Update a channel schedule
See also: AWS API Documentation
Request Syntax
response = client.batch_update_schedule(
ChannelId='string',
Creates={
'ScheduleActions': [
{
'ActionName': 'string',
'ScheduleActionSettings': {
'HlsId3SegmentTaggingSettings': {
'Tag': 'string'
},
'HlsTimedMetadataSettings': {
'Id3': 'string'
},
'InputPrepareSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'InputSwitchSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'MotionGraphicsImageActivateSettings': {
'Duration': 123,
'PasswordParam': 'string',
'Url': 'string',
'Username': 'string'
},
'MotionGraphicsImageDeactivateSettings': {}
,
'PauseStateSettings': {
'Pipelines': [
{
'PipelineId': 'PIPELINE_0'|'PIPELINE_1'
},
]
},
'Scte35InputSettings': {
'InputAttachmentNameReference': 'string',
'Mode': 'FIXED'|'FOLLOW_ACTIVE'
},
'Scte35ReturnToNetworkSettings': {
'SpliceEventId': 123
},
'Scte35SpliceInsertSettings': {
'Duration': 123,
'SpliceEventId': 123
},
'Scte35TimeSignalSettings': {
'Scte35Descriptors': [
{
'Scte35DescriptorSettings': {
'SegmentationDescriptorScte35DescriptorSettings': {
'DeliveryRestrictions': {
'ArchiveAllowedFlag': 'ARCHIVE_NOT_ALLOWED'|'ARCHIVE_ALLOWED',
'DeviceRestrictions': 'NONE'|'RESTRICT_GROUP0'|'RESTRICT_GROUP1'|'RESTRICT_GROUP2',
'NoRegionalBlackoutFlag': 'REGIONAL_BLACKOUT'|'NO_REGIONAL_BLACKOUT',
'WebDeliveryAllowedFlag': 'WEB_DELIVERY_NOT_ALLOWED'|'WEB_DELIVERY_ALLOWED'
},
'SegmentNum': 123,
'SegmentationCancelIndicator': 'SEGMENTATION_EVENT_NOT_CANCELED'|'SEGMENTATION_EVENT_CANCELED',
'SegmentationDuration': 123,
'SegmentationEventId': 123,
'SegmentationTypeId': 123,
'SegmentationUpid': 'string',
'SegmentationUpidType': 123,
'SegmentsExpected': 123,
'SubSegmentNum': 123,
'SubSegmentsExpected': 123
}
}
},
]
},
'StaticImageActivateSettings': {
'Duration': 123,
'FadeIn': 123,
'FadeOut': 123,
'Height': 123,
'Image': {
'PasswordParam': 'string',
'Uri': 'string',
'Username': 'string'
},
'ImageX': 123,
'ImageY': 123,
'Layer': 123,
'Opacity': 123,
'Width': 123
},
'StaticImageDeactivateSettings': {
'FadeOut': 123,
'Layer': 123
}
},
'ScheduleActionStartSettings': {
'FixedModeScheduleActionStartSettings': {
'Time': 'string'
},
'FollowModeScheduleActionStartSettings': {
'FollowPoint': 'END'|'START',
'ReferenceActionName': 'string'
},
'ImmediateModeScheduleActionStartSettings': {}
}
},
]
},
Deletes={
'ActionNames': [
'string',
]
}
)
Schedule actions to create in the schedule.
Schedule actions to delete from the schedule.
dict
Response Syntax
{
'Creates': {
'ScheduleActions': [
{
'ActionName': 'string',
'ScheduleActionSettings': {
'HlsId3SegmentTaggingSettings': {
'Tag': 'string'
},
'HlsTimedMetadataSettings': {
'Id3': 'string'
},
'InputPrepareSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'InputSwitchSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'MotionGraphicsImageActivateSettings': {
'Duration': 123,
'PasswordParam': 'string',
'Url': 'string',
'Username': 'string'
},
'MotionGraphicsImageDeactivateSettings': {},
'PauseStateSettings': {
'Pipelines': [
{
'PipelineId': 'PIPELINE_0'|'PIPELINE_1'
},
]
},
'Scte35InputSettings': {
'InputAttachmentNameReference': 'string',
'Mode': 'FIXED'|'FOLLOW_ACTIVE'
},
'Scte35ReturnToNetworkSettings': {
'SpliceEventId': 123
},
'Scte35SpliceInsertSettings': {
'Duration': 123,
'SpliceEventId': 123
},
'Scte35TimeSignalSettings': {
'Scte35Descriptors': [
{
'Scte35DescriptorSettings': {
'SegmentationDescriptorScte35DescriptorSettings': {
'DeliveryRestrictions': {
'ArchiveAllowedFlag': 'ARCHIVE_NOT_ALLOWED'|'ARCHIVE_ALLOWED',
'DeviceRestrictions': 'NONE'|'RESTRICT_GROUP0'|'RESTRICT_GROUP1'|'RESTRICT_GROUP2',
'NoRegionalBlackoutFlag': 'REGIONAL_BLACKOUT'|'NO_REGIONAL_BLACKOUT',
'WebDeliveryAllowedFlag': 'WEB_DELIVERY_NOT_ALLOWED'|'WEB_DELIVERY_ALLOWED'
},
'SegmentNum': 123,
'SegmentationCancelIndicator': 'SEGMENTATION_EVENT_NOT_CANCELED'|'SEGMENTATION_EVENT_CANCELED',
'SegmentationDuration': 123,
'SegmentationEventId': 123,
'SegmentationTypeId': 123,
'SegmentationUpid': 'string',
'SegmentationUpidType': 123,
'SegmentsExpected': 123,
'SubSegmentNum': 123,
'SubSegmentsExpected': 123
}
}
},
]
},
'StaticImageActivateSettings': {
'Duration': 123,
'FadeIn': 123,
'FadeOut': 123,
'Height': 123,
'Image': {
'PasswordParam': 'string',
'Uri': 'string',
'Username': 'string'
},
'ImageX': 123,
'ImageY': 123,
'Layer': 123,
'Opacity': 123,
'Width': 123
},
'StaticImageDeactivateSettings': {
'FadeOut': 123,
'Layer': 123
}
},
'ScheduleActionStartSettings': {
'FixedModeScheduleActionStartSettings': {
'Time': 'string'
},
'FollowModeScheduleActionStartSettings': {
'FollowPoint': 'END'|'START',
'ReferenceActionName': 'string'
},
'ImmediateModeScheduleActionStartSettings': {}
}
},
]
},
'Deletes': {
'ScheduleActions': [
{
'ActionName': 'string',
'ScheduleActionSettings': {
'HlsId3SegmentTaggingSettings': {
'Tag': 'string'
},
'HlsTimedMetadataSettings': {
'Id3': 'string'
},
'InputPrepareSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'InputSwitchSettings': {
'InputAttachmentNameReference': 'string',
'InputClippingSettings': {
'InputTimecodeSource': 'ZEROBASED'|'EMBEDDED',
'StartTimecode': {
'Timecode': 'string'
},
'StopTimecode': {
'LastFrameClippingBehavior': 'EXCLUDE_LAST_FRAME'|'INCLUDE_LAST_FRAME',
'Timecode': 'string'
}
},
'UrlPath': [
'string',
]
},
'MotionGraphicsImageActivateSettings': {
'Duration': 123,
'PasswordParam': 'string',
'Url': 'string',
'Username': 'string'
},
'MotionGraphicsImageDeactivateSettings': {},
'PauseStateSettings': {
'Pipelines': [
{
'PipelineId': 'PIPELINE_0'|'PIPELINE_1'
},
]
},
'Scte35InputSettings': {
'InputAttachmentNameReference': 'string',
'Mode': 'FIXED'|'FOLLOW_ACTIVE'
},
'Scte35ReturnToNetworkSettings': {
'SpliceEventId': 123
},
'Scte35SpliceInsertSettings': {
'Duration': 123,
'SpliceEventId': 123
},
'Scte35TimeSignalSettings': {
'Scte35Descriptors': [
{
'Scte35DescriptorSettings': {
'SegmentationDescriptorScte35DescriptorSettings': {
'DeliveryRestrictions': {
'ArchiveAllowedFlag': 'ARCHIVE_NOT_ALLOWED'|'ARCHIVE_ALLOWED',
'DeviceRestrictions': 'NONE'|'RESTRICT_GROUP0'|'RESTRICT_GROUP1'|'RESTRICT_GROUP2',
'NoRegionalBlackoutFlag': 'REGIONAL_BLACKOUT'|'NO_REGIONAL_BLACKOUT',
'WebDeliveryAllowedFlag': 'WEB_DELIVERY_NOT_ALLOWED'|'WEB_DELIVERY_ALLOWED'
},
'SegmentNum': 123,
'SegmentationCancelIndicator': 'SEGMENTATION_EVENT_NOT_CANCELED'|'SEGMENTATION_EVENT_CANCELED',
'SegmentationDuration': 123,
'SegmentationEventId': 123,
'SegmentationTypeId': 123,
'SegmentationUpid': 'string',
'SegmentationUpidType': 123,
'SegmentsExpected': 123,
'SubSegmentNum': 123,
'SubSegmentsExpected': 123
}
}
},
]
},
'StaticImageActivateSettings': {
'Duration': 123,
'FadeIn': 123,
'FadeOut': 123,
'Height': 123,
'Image': {
'PasswordParam': 'string',
'Uri': 'string',
'Username': 'string'
},
'ImageX': 123,
'ImageY': 123,
'Layer': 123,
'Opacity': 123,
'Width': 123
},
'StaticImageDeactivateSettings': {
'FadeOut': 123,
'Layer': 123
}
},
'ScheduleActionStartSettings': {
'FixedModeScheduleActionStartSettings': {
'Time': 'string'
},
'FollowModeScheduleActionStartSettings': {
'FollowPoint': 'END'|'START',
'ReferenceActionName': 'string'
},
'ImmediateModeScheduleActionStartSettings': {}
}
},
]
}
}
Response Structure
Exceptions
MediaLive.Client.exceptions.BadRequestException
MediaLive.Client.exceptions.UnprocessableEntityException
MediaLive.Client.exceptions.InternalServerErrorException
MediaLive.Client.exceptions.ForbiddenException
MediaLive.Client.exceptions.BadGatewayException
MediaLive.Client.exceptions.NotFoundException
MediaLive.Client.exceptions.GatewayTimeoutException
MediaLive.Client.exceptions.TooManyRequestsException