Skip to main content

schedules

Creates, updates, deletes, gets or lists a schedules resource.

Overview

Nameschedules
TypeResource
Idaws.medialive.schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_namestringPlaceholder documentation for __string
schedule_action_settingsobjectSettings for this schedule action.
schedule_action_start_settingsobjectThe time for the action to start in the channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_scheduleselectchannel_id, regionmaxResults, nextTokenGet a channel schedule
delete_scheduledeletechannel_id, regionDelete all schedule actions on a channel.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channel_idstringId of the channel whose schedule is being deleted.
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring

SELECT examples

Get a channel schedule

SELECT
action_name,
schedule_action_settings,
schedule_action_start_settings
FROM aws.medialive.schedules
WHERE channel_id = '{{ channel_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples

Delete all schedule actions on a channel.

DELETE FROM aws.medialive.schedules
WHERE channel_id = '{{ channel_id }}' --required
AND region = '{{ region }}' --required
;