Skip to main content

channel_placement_groups

Creates, updates, deletes or gets a channel_placement_group resource or lists channel_placement_groups in a region

Overview

Namechannel_placement_groups
TypeResource
DescriptionDefinition of AWS::MediaLive::ChannelPlacementGroup Resource Type
Idawscc.medialive.channel_placement_groups

Fields

NameDatatypeDescription
arnstringThe ARN of the channel placement group.
channelsarrayList of channel IDs added to the channel placement group.
cluster_idstringThe ID of the cluster the node is on.
idstringUnique internal identifier.
namestringThe name of the channel placement group.
nodesarrayList of nodes added to the channel placement group
statestringThe current state of the ChannelPlacementGroupState
tagsarrayA collection of key-value pairs.
regionstringAWS region.

For more information, see AWS::MediaLive::ChannelPlacementGroup.

Methods

NameResourceAccessible byRequired Params
create_resourcechannel_placement_groupsINSERTregion
delete_resourcechannel_placement_groupsDELETEIdentifier, region
update_resourcechannel_placement_groupsUPDATEIdentifier, PatchDocument, region
list_resourceschannel_placement_groups_list_onlySELECTregion
get_resourcechannel_placement_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual channel_placement_group.

SELECT
region,
arn,
channels,
cluster_id,
id,
name,
nodes,
state,
tags
FROM awscc.medialive.channel_placement_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}|{{ cluster_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.medialive.channel_placement_groups (
ClusterId,
Name,
Nodes,
Tags,
region
)
SELECT
'{{ cluster_id }}',
'{{ name }}',
'{{ nodes }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a channel_placement_group resource, using stack-deploy.

/*+ update */
UPDATE awscc.medialive.channel_placement_groups
SET PatchDocument = string('{{ {
"Name": name,
"Nodes": nodes,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}|{{ cluster_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.medialive.channel_placement_groups
WHERE
Identifier = '{{ id }}|{{ cluster_id }}' AND
region = 'us-east-1';

Permissions

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

medialive:CreateChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup,
medialive:CreateTags,
medialive:ListTagsForResource