channel_placement_groups
Creates, updates, deletes or gets a channel_placement_group resource or lists channel_placement_groups in a region
Overview
| Name | channel_placement_groups |
| Type | Resource |
| Description | Definition of AWS::MediaLive::ChannelPlacementGroup Resource Type |
| Id | awscc.medialive.channel_placement_groups |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the channel placement group. |
channels | array | List of channel IDs added to the channel placement group. |
cluster_id | string | The ID of the cluster the node is on. |
id | string | Unique internal identifier. |
name | string | The name of the channel placement group. |
nodes | array | List of nodes added to the channel placement group |
state | string | The current state of the ChannelPlacementGroupState |
tags | array | A collection of key-value pairs. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
cluster_id | string | The ID of the cluster the node is on. |
id | string | Unique internal identifier. |
region | string | AWS region. |
For more information, see AWS::MediaLive::ChannelPlacementGroup.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | channel_placement_groups | INSERT | region |
delete_resource | channel_placement_groups | DELETE | Identifier, region |
update_resource | channel_placement_groups | UPDATE | Identifier, PatchDocument, region |
list_resources | channel_placement_groups_list_only | SELECT | region |
get_resource | channel_placement_groups | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all channel_placement_groups in a region.
SELECT
region,
id,
cluster_id
FROM awscc.medialive.channel_placement_groups_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new channel_placement_group resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.medialive.channel_placement_groups (
ClusterId,
Name,
Nodes,
Tags,
region
)
SELECT
'{{ cluster_id }}',
'{{ name }}',
'{{ nodes }}',
'{{ tags }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.medialive.channel_placement_groups (
ClusterId,
Name,
Nodes,
Tags,
region
)
SELECT
'{{ cluster_id }}',
'{{ name }}',
'{{ nodes }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: channel_placement_group
props:
- name: cluster_id
value: '{{ cluster_id }}'
- name: name
value: '{{ name }}'
- name: nodes
value:
- '{{ nodes[0] }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
medialive:CreateChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup,
medialive:CreateTags,
medialive:ListTagsForResource
medialive:DescribeChannelPlacementGroup,
medialive:ListTagsForResource
medialive:UpdateChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup,
medialive:CreateTags,
medialive:DeleteTags,
medialive:ListTagsForResource
medialive:DeleteChannelPlacementGroup,
medialive:DescribeChannelPlacementGroup
medialive:ListChannelPlacementGroups