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

NameResourceAccessible byRequired Params
create_resourcechannelsINSERTChannelGroupName, ChannelName, region
delete_resourcechannelsDELETEIdentifier, region
update_resourcechannelsUPDATEIdentifier, PatchDocument, region
list_resourceschannels_list_onlySELECTregion
get_resourcechannelsSELECTIdentifier, 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
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
'{{ channel_group_name }}',
'{{ channel_name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.mediapackagev2.channels
SET PatchDocument = string('{{ {
"Description": description,
"InputSwitchConfiguration": input_switch_configuration,
"OutputHeaderConfiguration": output_header_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediapackagev2.channels
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

mediapackagev2:TagResource,
mediapackagev2:CreateChannel