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
Idaws.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

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

SELECT examples

Gets all channel_placement_groups in a region.

SELECT
region,
arn,
channels,
cluster_id,
id,
name,
nodes,
state,
tags
FROM aws.medialive.channel_placement_groups
WHERE region = 'us-east-1';

Gets all properties from an individual channel_placement_group.

SELECT
region,
arn,
channels,
cluster_id,
id,
name,
nodes,
state,
tags
FROM aws.medialive.channel_placement_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Id>|<ClusterId>';

INSERT example

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

/*+ create */
INSERT INTO aws.medialive.channel_placement_groups (
ClusterId,
Name,
Nodes,
Tags,
region
)
SELECT
'{{ ClusterId }}',
'{{ Name }}',
'{{ Nodes }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.medialive.channel_placement_groups
WHERE data__Identifier = '<Id|ClusterId>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

medialive:DescribeChannelPlacementGroup,
medialive:ListTagsForResource

Update

medialive:UpdateChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup,
medialive:CreateTags,
medialive:DeleteTags,
medialive:ListTagsForResource

Delete

medialive:DeleteChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup

List

medialive:ListChannelPlacementGroups