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.

Idaws.mediapackagev2.channels

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) associated with the resource.

channel_group_namestring
channel_namestring
created_atstring

The date and time the channel was created.

descriptionstring

Enter any descriptive text that helps you to identify the channel.

ingest_endpointsarray

The list of ingest endpoints.

modified_atstring

The date and time the channel was modified.

tagsarray
regionstringAWS region.

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 channels in a region.

SELECT
region,
arn,
channel_group_name,
channel_name,
created_at,
description,
ingest_endpoints,
modified_at,
tags
FROM aws.mediapackagev2.channels
WHERE region = 'us-east-1';

Gets all properties from an individual channel.

SELECT
region,
arn,
channel_group_name,
channel_name,
created_at,
description,
ingest_endpoints,
modified_at,
tags
FROM aws.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 aws.mediapackagev2.channels (
ChannelGroupName,
ChannelName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.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