channels
Creates, updates, deletes or gets a channel
resource or lists channels
in a region
Overview
Name | channels |
Type | Resource |
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. |
Id | aws.mediapackagev2.channels |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The Amazon Resource Name (ARN) associated with the resource. |
channel_group_name | string | |
channel_name | string | |
created_at | string | The date and time the channel was created. |
description | string | Enter any descriptive text that helps you to identify the channel. |
ingest_endpoints | array | The list of ingest endpoints. |
modified_at | string | The date and time the channel was modified. |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ChannelGroupName, ChannelName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediapackagev2.channels (
ChannelGroupName,
ChannelName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediapackagev2.channels (
ChannelGroupName,
ChannelName,
Description,
Tags,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: channel
props:
- name: ChannelGroupName
value: '{{ ChannelGroupName }}'
- name: ChannelName
value: '{{ ChannelName }}'
- name: Description
value: '{{ Description }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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