Skip to main content

programs

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

Overview

Nameprograms
TypeResource
Idaws.mediatailor.programs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ad_breaksarrayThe ad break configuration settings.
arnstringThe ARN of the program.
audience_mediaarrayThe list of AudienceMedia defined in program.
channel_namestringThe name of the channel that the program belongs to.
clip_rangeobjectClip range configuration for the VOD source associated with the program.
creation_timestring (date-time)The timestamp of when the program was created.
duration_millisinteger (int64)The duration of the live program in milliseconds.
live_source_namestringThe name of the LiveSource for this Program.
program_namestringThe name of the program.
scheduled_start_timestring (date-time)The date and time that the program is scheduled to start in ISO 8601 format and Coordinated Universal Time (UTC). For example, the value 2021-03-27T17:48:16.751Z represents March 27, 2021 at 17:48:16.751 UTC.
source_location_namestringThe source location name.
tagsobjectThe tags assigned to the program. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
vod_source_namestringThe name that's used to refer to a VOD source.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_programselectchannel_name, program_name, regionDescribes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
create_programinsertchannel_name, program_name, region, ScheduleConfiguration, SourceLocationNameCreates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
update_programupdatechannel_name, program_name, region, ScheduleConfigurationUpdates a program within a channel.
delete_programdeletechannel_name, program_name, regionDeletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

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_namestringThe name of the channel.
program_namestringThe name of the program.
regionstringAWS region (default: us-east-1)

SELECT examples

Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

SELECT
ad_breaks,
arn,
audience_media,
channel_name,
clip_range,
creation_time,
duration_millis,
live_source_name,
program_name,
scheduled_start_time,
source_location_name,
tags,
vod_source_name
FROM aws.mediatailor.programs
WHERE channel_name = '{{ channel_name }}' -- required
AND program_name = '{{ program_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

INSERT INTO aws.mediatailor.programs (
AdBreaks,
LiveSourceName,
ScheduleConfiguration,
SourceLocationName,
VodSourceName,
AudienceMedia,
Tags,
channel_name,
program_name,
region
)
SELECT
'{{ AdBreaks }}',
'{{ LiveSourceName }}',
'{{ ScheduleConfiguration }}' /* required */,
'{{ SourceLocationName }}' /* required */,
'{{ VodSourceName }}',
'{{ AudienceMedia }}',
'{{ Tags }}',
'{{ channel_name }}',
'{{ program_name }}',
'{{ region }}'
RETURNING
ad_breaks,
arn,
audience_media,
channel_name,
clip_range,
creation_time,
duration_millis,
live_source_name,
program_name,
scheduled_start_time,
source_location_name,
tags,
vod_source_name
;

UPDATE examples

Updates a program within a channel.

UPDATE aws.mediatailor.programs
SET
AdBreaks = '{{ AdBreaks }}',
ScheduleConfiguration = '{{ ScheduleConfiguration }}',
AudienceMedia = '{{ AudienceMedia }}'
WHERE
channel_name = '{{ channel_name }}' --required
AND program_name = '{{ program_name }}' --required
AND region = '{{ region }}' --required
AND ScheduleConfiguration = '{{ ScheduleConfiguration }}' --required
RETURNING
ad_breaks,
arn,
audience_media,
channel_name,
clip_range,
creation_time,
duration_millis,
live_source_name,
program_name,
scheduled_start_time,
source_location_name,
tags,
vod_source_name;

DELETE examples

Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

DELETE FROM aws.mediatailor.programs
WHERE channel_name = '{{ channel_name }}' --required
AND program_name = '{{ program_name }}' --required
AND region = '{{ region }}' --required
;