Skip to main content

channel_groups

Creates, updates, deletes or gets a channel_group resource or lists channel_groups in a region

Overview

Namechannel_groups
TypeResource
Description

Represents a channel group that facilitates the grouping of multiple channels.

Idaws.mediapackagev2.channel_groups

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) associated with the resource.

channel_group_namestring
created_atstring

The date and time the channel group was created.

descriptionstring

Enter any descriptive text that helps you to identify the channel group.

egress_domainstring

The 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

The date and time the channel group was modified.

tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all channel_groups in a region.

SELECT
region,
arn,
channel_group_name,
created_at,
description,
egress_domain,
modified_at,
tags
FROM aws.mediapackagev2.channel_groups
WHERE region = 'us-east-1';

Gets all properties from an individual channel_group.

SELECT
region,
arn,
channel_group_name,
created_at,
description,
egress_domain,
modified_at,
tags
FROM aws.mediapackagev2.channel_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.mediapackagev2.channel_groups (
ChannelGroupName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediapackagev2.channel_groups
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

mediapackagev2:TagResource,
mediapackagev2:CreateChannelGroup

Read

mediapackagev2:GetChannelGroup

Update

mediapackagev2:TagResource,
mediapackagev2:UntagResource,
mediapackagev2:ListTagsForResource,
mediapackagev2:UpdateChannelGroup

Delete

mediapackagev2:GetChannelGroup,
mediapackagev2:DeleteChannelGroup

List

mediapackagev2:ListChannelGroups