Skip to main content

channels

Creates, updates, deletes or gets a channel resource or lists channels in a region

Overview

Namechannels
TypeResource
DescriptionDefinition of AWS::MediaTailor::Channel Resource Type
Idaws.mediatailor.channels

Fields

NameDatatypeDescription
arnstring

The ARN of the channel.

audiencesarray

The list of audiences defined in channel.

channel_namestring
filler_slateobject

Slate VOD source configuration.

log_configurationobject

The log configuration for the channel.

outputsarray

The channel's output properties.

playback_modestring
tagsarrayThe tags to assign to the channel.
tierstring
time_shift_configurationobject

The configuration for time-shifted viewing.

regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelName, Outputs, PlaybackMode, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all channels in a region.

SELECT
region,
arn,
audiences,
channel_name,
filler_slate,
log_configuration,
outputs,
playback_mode,
tags,
tier,
time_shift_configuration
FROM aws.mediatailor.channels
WHERE region = 'us-east-1';

Gets all properties from an individual channel.

SELECT
region,
arn,
audiences,
channel_name,
filler_slate,
log_configuration,
outputs,
playback_mode,
tags,
tier,
time_shift_configuration
FROM aws.mediatailor.channels
WHERE region = 'us-east-1' AND data__Identifier = '<ChannelName>';

INSERT example

Use the following StackQL query and manifest file to create a new channel resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediatailor.channels (
ChannelName,
Outputs,
PlaybackMode,
region
)
SELECT
'{{ ChannelName }}',
'{{ Outputs }}',
'{{ PlaybackMode }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediatailor.channels
WHERE data__Identifier = '<ChannelName>'
AND region = 'us-east-1';

Permissions

To operate on the channels resource, the following permissions are required:

Create

mediatailor:CreateChannel,
mediatailor:TagResource,
mediatailor:ConfigureLogsForChannel,
iam:CreateServiceLinkedRole,
mediatailor:DescribeChannel

Read

mediatailor:DescribeChannel

Update

mediatailor:UpdateChannel,
mediatailor:TagResource,
mediatailor:UntagResource,
iam:CreateServiceLinkedRole,
mediatailor:ConfigureLogsForChannel,
mediatailor:DescribeChannel

Delete

mediatailor:DeleteChannel,
mediatailor:DescribeChannel

List

mediatailor:ListChannels