Skip to main content

channel_placement_groups

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

Overview

Namechannel_placement_groups
TypeResource
Idaws.medialive.channel_placement_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
channelsarrayPlaceholder documentation for __listOf__string
cluster_idstringPlaceholder documentation for __string
idstringPlaceholder documentation for __string
namestringPlaceholder documentation for __string
nodesarrayPlaceholder documentation for __listOf__string
statestringThe current state of the ChannelPlacementGroup. (UNASSIGNED, ASSIGNING, ASSIGNED, DELETING, DELETE_FAILED, DELETED, UNASSIGNING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_channel_placement_groupselectchannel_placement_group_id, cluster_id, regionGet details about a ChannelPlacementGroup.
list_channel_placement_groupsselectcluster_id, regionmaxResults, nextTokenRetrieve the list of ChannelPlacementGroups in the specified Cluster.
create_channel_placement_groupinsertcluster_id, regionCreate a ChannelPlacementGroup in the specified Cluster. As part of the create operation, you specify the Nodes to attach the group to.After you create a ChannelPlacementGroup, you add Channels to the group (you do this by modifying the Channels to add them to a specific group). You now have an association of Channels to ChannelPlacementGroup, and ChannelPlacementGroup to Nodes. This association means that all the Channels in the group are able to run on any of the Nodes associated with the group.
update_channel_placement_groupupdatechannel_placement_group_id, cluster_id, regionChange the settings for a ChannelPlacementGroup.
delete_channel_placement_groupdeletechannel_placement_group_id, cluster_id, regionDelete the specified ChannelPlacementGroup that exists in the specified Cluster.

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_placement_group_idstringThe ID of the channel placement group.
cluster_idstringThe ID of the cluster.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of items to return.
nextTokenstringThe token to retrieve the next page of results.

SELECT examples

Get details about a ChannelPlacementGroup.

SELECT
arn,
channels,
cluster_id,
id,
name,
nodes,
state
FROM aws.medialive.channel_placement_groups
WHERE channel_placement_group_id = '{{ channel_placement_group_id }}' -- required
AND cluster_id = '{{ cluster_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a ChannelPlacementGroup in the specified Cluster. As part of the create operation, you specify the Nodes to attach the group to.After you create a ChannelPlacementGroup, you add Channels to the group (you do this by modifying the Channels to add them to a specific group). You now have an association of Channels to ChannelPlacementGroup, and ChannelPlacementGroup to Nodes. This association means that all the Channels in the group are able to run on any of the Nodes associated with the group.

INSERT INTO aws.medialive.channel_placement_groups (
Name,
Nodes,
RequestId,
Tags,
cluster_id,
region
)
SELECT
'{{ Name }}',
'{{ Nodes }}',
'{{ RequestId }}',
'{{ Tags }}',
'{{ cluster_id }}',
'{{ region }}'
RETURNING
arn,
channels,
cluster_id,
id,
name,
nodes,
state
;

UPDATE examples

Change the settings for a ChannelPlacementGroup.

UPDATE aws.medialive.channel_placement_groups
SET
Name = '{{ Name }}',
Nodes = '{{ Nodes }}'
WHERE
channel_placement_group_id = '{{ channel_placement_group_id }}' --required
AND cluster_id = '{{ cluster_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
channels,
cluster_id,
id,
name,
nodes,
state;

DELETE examples

Delete the specified ChannelPlacementGroup that exists in the specified Cluster.

DELETE FROM aws.medialive.channel_placement_groups
WHERE channel_placement_group_id = '{{ channel_placement_group_id }}' --required
AND cluster_id = '{{ cluster_id }}' --required
AND region = '{{ region }}' --required
;