Skip to main content

channels

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

Overview

Namechannels
TypeResource
Description

Represents an entry point into AWS Elemental MediaPackage for an ABR video content stream sent from an upstream encoder such as AWS Elemental MediaLive. The channel continuously analyzes the content that it receives and prepares it to be distributed to consumers via one or more origin endpoints.

Idawscc.mediapackagev2.channels

Fields

NameDatatypeDescription
arnstring<p>The Amazon Resource Name (ARN) associated with the resource.</p>
channel_group_namestring
channel_namestring
created_atstring<p>The date and time the channel was created.</p>
descriptionstring<p>Enter any descriptive text that helps you to identify the channel.</p>
ingest_endpointsarray<p>The list of ingest endpoints.</p>
input_switch_configurationobject<p>The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive.</p>
input_typestring
modified_atstring<p>The date and time the channel was modified.</p>
output_header_configurationobject<p>The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN.</p>
ingest_endpoint_urlsarray
tagsarray
regionstringAWS region.

For more information, see AWS::MediaPackageV2::Channel.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelGroupName, ChannelName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual channel.

SELECT
region,
arn,
channel_group_name,
channel_name,
created_at,
description,
ingest_endpoints,
input_switch_configuration,
input_type,
modified_at,
output_header_configuration,
ingest_endpoint_urls,
tags
FROM awscc.mediapackagev2.channels
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.mediapackagev2.channels (
ChannelGroupName,
ChannelName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediapackagev2.channels
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

mediapackagev2:TagResource,
mediapackagev2:CreateChannel

Read

mediapackagev2:GetChannel

Update

mediapackagev2:TagResource,
mediapackagev2:UntagResource,
mediapackagev2:ListTagsForResource,
mediapackagev2:UpdateChannel

Delete

mediapackagev2:GetChannel,
mediapackagev2:DeleteChannel

List

mediapackagev2:ListChannels