Skip to main content

channels

Creates, updates, deletes, gets or lists a channels resource.

Overview

Namechannels
TypeResource
Idaws.mediapackage.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) assigned to the Channel.
created_atstringThe date and time the Channel was created.
descriptionstringA short text description of the Channel.
egress_access_logsobjectConfigure egress access logging.
hls_ingestobjectAn HTTP Live Streaming (HLS) ingest resource configuration.
idstringThe ID of the Channel.
ingress_access_logsobjectConfigure ingress access logging.
tagsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_channelselectid, regionGets details about a Channel.
list_channelsselectregionmaxResults, nextTokenReturns a collection of Channels.
create_channelinsertregionCreates a new Channel.
update_channelupdateid, regionUpdates an existing Channel.
delete_channeldeleteid, regionDeletes an existing Channel.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the Channel to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerUpper bound on number of records to return.
nextTokenstringA token used to resume pagination from the end of a previous request.

SELECT examples

Gets details about a Channel.

SELECT
arn,
created_at,
description,
egress_access_logs,
hls_ingest,
id,
ingress_access_logs,
tags
FROM aws.mediapackage.channels
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new Channel.

INSERT INTO aws.mediapackage.channels (
Description,
Id,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ Id }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
created_at,
description,
egress_access_logs,
hls_ingest,
id,
ingress_access_logs,
tags
;

UPDATE examples

Updates an existing Channel.

UPDATE aws.mediapackage.channels
SET
Description = '{{ Description }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
created_at,
description,
egress_access_logs,
hls_ingest,
id,
ingress_access_logs,
tags;

DELETE examples

Deletes an existing Channel.

DELETE FROM aws.mediapackage.channels
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;