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

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.

input_switch_configurationobject

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive.

input_typestring
modified_atstring

The date and time the channel was modified.

output_header_configurationobject

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN.

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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.mediapackagev2.channels
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

mediapackagev2:TagResource,
mediapackagev2:CreateChannel