Skip to main content

channels

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

Overview

Namechannels
TypeResource
DescriptionResource schema for AWS::MediaPackage::Channel
Idaws.mediapackage.channels

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) assigned to the Channel.
idstringThe ID of the Channel.
descriptionstringA short text description of the Channel.
hls_ingestobjectAn HTTP Live Streaming (HLS) ingest resource configuration.
tagsarrayA collection of tags associated with a resource
egress_access_logsobjectThe configuration parameters for egress access logging.
ingress_access_logsobjectThe configuration parameters for egress access logging.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTId, 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,
id,
description,
hls_ingest,
tags,
egress_access_logs,
ingress_access_logs
FROM aws.mediapackage.channels
WHERE region = 'us-east-1';

Gets all properties from an individual channel.

SELECT
region,
arn,
id,
description,
hls_ingest,
tags,
egress_access_logs,
ingress_access_logs
FROM aws.mediapackage.channels
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.mediapackage.channels (
Id,
region
)
SELECT
'{{ Id }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

mediapackage:CreateChannel,
mediapackage:DescribeChannel,
mediapackage:UpdateChannel,
mediapackage:TagResource,
mediapackage:ConfigureLogs,
iam:CreateServiceLinkedRole

Read

mediapackage:DescribeChannel

Update

mediapackage:UpdateChannel,
mediapackage:ConfigureLogs,
iam:CreateServiceLinkedRole

Delete

mediapackage:DeleteChannel

List

mediapackage:ListChannels