Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idaws.mediatailor.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the channel.
audiencesarrayThe list of audiences defined in channel.
channel_namestringThe name of the channel.
channel_statestringIndicates whether the channel is in a running state or not. (RUNNING, STOPPED)
creation_timestring (date-time)The timestamp of when the channel was created.
filler_slateobjectSlate VOD source configuration.
last_modified_timestring (date-time)The timestamp of when the channel was last modified.
log_configurationobjectThe log configuration for the channel.
outputsarrayThe channel's output properties.
playback_modestringThe channel's playback mode.
tagsobjectThe tags assigned to the channel. 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.
tierstringThe channel's tier.
time_shift_configurationobjectThe configuration for time-shifted viewing.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_channelselectchannel_name, regionDescribes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
list_channelsselectregionmaxResults, nextTokenRetrieves information about the channels that are associated with the current AWS account.
create_channelinsertchannel_name, region, PlaybackModeCreates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
update_channelupdatechannel_name, regionUpdates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
delete_channeldeletechannel_name, regionDeletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
configure_logs_for_channelexecregion, ChannelName, LogTypesConfigures Amazon CloudWatch log settings for a channel.
start_channelexecchannel_name, regionStarts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
stop_channelexecchannel_name, regionStops a channel. For information about MediaTailor channels, see Working with channels 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.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of channels that you want MediaTailor to return in response to the current request. If there are more than MaxResults channels, use the value of NextToken in the response to get the next page of results. The default value is 100. MediaTailor uses DynamoDB-based pagination, which means that a response might contain fewer than MaxResults items, including 0 items, even when more results are available. To retrieve all results, you must continue making requests using the NextToken value from each response until the response no longer includes a NextToken value.
nextTokenstringPagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. For the first ListChannels request, omit this value. For subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. Continue making requests until the response no longer includes a NextToken value, which indicates that all results have been retrieved.

SELECT examples

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

SELECT
arn,
audiences,
channel_name,
channel_state,
creation_time,
filler_slate,
last_modified_time,
log_configuration,
outputs,
playback_mode,
tags,
tier,
time_shift_configuration
FROM aws.mediatailor.channels
WHERE channel_name = '{{ channel_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.mediatailor.channels (
FillerSlate,
Outputs,
PlaybackMode,
Tags,
Tier,
TimeShiftConfiguration,
Audiences,
channel_name,
region
)
SELECT
'{{ FillerSlate }}',
'{{ Outputs }}',
'{{ PlaybackMode }}' /* required */,
'{{ Tags }}',
'{{ Tier }}',
'{{ TimeShiftConfiguration }}',
'{{ Audiences }}',
'{{ channel_name }}',
'{{ region }}'
RETURNING
arn,
audiences,
channel_name,
channel_state,
creation_time,
filler_slate,
last_modified_time,
outputs,
playback_mode,
tags,
tier,
time_shift_configuration
;

UPDATE examples

Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

UPDATE aws.mediatailor.channels
SET
FillerSlate = '{{ FillerSlate }}',
Outputs = '{{ Outputs }}',
TimeShiftConfiguration = '{{ TimeShiftConfiguration }}',
Audiences = '{{ Audiences }}'
WHERE
channel_name = '{{ channel_name }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
audiences,
channel_name,
channel_state,
creation_time,
filler_slate,
last_modified_time,
outputs,
playback_mode,
tags,
tier,
time_shift_configuration;

DELETE examples

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

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

Lifecycle Methods

Configures Amazon CloudWatch log settings for a channel.

EXEC aws.mediatailor.channels.configure_logs_for_channel
@region='{{ region }}' --required
@@json=
'{
"ChannelName": "{{ ChannelName }}",
"LogTypes": "{{ LogTypes }}"
}'
;