Skip to main content

channel_groups

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

Overview

Namechannel_groups
TypeResource
Idaws.mediapackagev2.channel_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) associated with the resource.
channel_group_namestringThe name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
created_atstring (date-time)The date and time the channel group was created.
descriptionstringThe description for your channel group.
e_tagstringThe current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource. (pattern: <code>[\S]+</code>)
egress_domainstringThe output domain where the source stream should be sent. Integrate the domain with a downstream CDN (such as Amazon CloudFront) or playback device.
modified_atstring (date-time)The date and time the channel group was modified.
tagsobjectThe comma-separated list of tag key:value pairs assigned to the channel group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_channel_groupselectchannel_group_name, regionRetrieves the specified channel group that's configured in AWS Elemental MediaPackage.
list_channel_groupsselectregionmaxResults, nextTokenRetrieves all channel groups that are configured in Elemental MediaPackage.
create_channel_groupinsertregion, ChannelGroupNamex-amzn-client-tokenCreate a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.
update_channel_groupupdatechannel_group_name, regionx-amzn-update-if-matchUpdate the specified channel group. You can edit the description on a channel group for easier identification later from the AWS Elemental MediaPackage console. You can't edit the name of the channel group. Any edits you make that impact the video output may not be reflected for a few minutes.
delete_channel_groupdeletechannel_group_name, regionDelete a channel group. You must delete the channel group's channels and origin endpoints before you can delete the channel group. If you delete a channel group, you'll lose access to the egress domain and will have to create a new channel group to replace it.

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
channel_group_namestringThe name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response.
nextTokenstringThe pagination token from the GET list request. Use the token to fetch the next page of results.
x-amzn-client-tokenstringA unique, case-sensitive token that you provide to ensure the idempotency of the request.
x-amzn-update-if-matchstringThe expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's current entity tag, the update request will be rejected.

SELECT examples

Retrieves the specified channel group that's configured in AWS Elemental MediaPackage.

SELECT
arn,
channel_group_name,
created_at,
description,
e_tag,
egress_domain,
modified_at,
tags
FROM aws.mediapackagev2.channel_groups
WHERE channel_group_name = '{{ channel_group_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.

INSERT INTO aws.mediapackagev2.channel_groups (
ChannelGroupName,
Description,
Tags,
region,
`x-amzn-client-token`
)
SELECT
'{{ ChannelGroupName }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ region }}',
'{{ x-amzn-client-token }}'
RETURNING
arn,
channel_group_name,
created_at,
description,
e_tag,
egress_domain,
modified_at,
tags
;

UPDATE examples

Update the specified channel group. You can edit the description on a channel group for easier identification later from the AWS Elemental MediaPackage console. You can't edit the name of the channel group. Any edits you make that impact the video output may not be reflected for a few minutes.

UPDATE aws.mediapackagev2.channel_groups
SET
Description = '{{ Description }}'
WHERE
channel_group_name = '{{ channel_group_name }}' --required
AND region = '{{ region }}' --required
AND `x-amzn-update-if-match` = '{{ x-amzn-update-if-match}}'
RETURNING
arn,
channel_group_name,
created_at,
description,
e_tag,
egress_domain,
modified_at,
tags;

DELETE examples

Delete a channel group. You must delete the channel group's channels and origin endpoints before you can delete the channel group. If you delete a channel group, you'll lose access to the egress domain and will have to create a new channel group to replace it.

DELETE FROM aws.mediapackagev2.channel_groups
WHERE channel_group_name = '{{ channel_group_name }}' --required
AND region = '{{ region }}' --required
;