ChannelPlacementGroup
Learn how to create, update, and manage AWS MediaLive ChannelPlacementGroups using Alchemy Cloud Control.
The ChannelPlacementGroup resource allows you to manage AWS MediaLive ChannelPlacementGroups to optimize the placement of your media live channels.
Minimal Example
Section titled “Minimal Example”Create a basic ChannelPlacementGroup with required properties and one optional tag.
import AWS from "alchemy/aws/control";
const channelPlacementGroup = await AWS.MediaLive.ChannelPlacementGroup("basicPlacementGroup", { clusterId: "myClusterId", tags: [{ Key: "Environment", Value: "Production" }]});
Advanced Configuration
Section titled “Advanced Configuration”Configure a ChannelPlacementGroup with multiple nodes and a specific name.
const advancedChannelPlacementGroup = await AWS.MediaLive.ChannelPlacementGroup("advancedPlacementGroup", { clusterId: "myClusterId", nodes: ["node1", "node2", "node3"], name: "AdvancedGroup"});
Adoption of Existing Resources
Section titled “Adoption of Existing Resources”Create a ChannelPlacementGroup that adopts an existing resource instead of failing if it already exists.
const adoptedChannelPlacementGroup = await AWS.MediaLive.ChannelPlacementGroup("adoptedPlacementGroup", { clusterId: "existingClusterId", adopt: true});
Tagging for Resource Management
Section titled “Tagging for Resource Management”Create a ChannelPlacementGroup with multiple tags for better resource management.
const taggedChannelPlacementGroup = await AWS.MediaLive.ChannelPlacementGroup("taggedPlacementGroup", { clusterId: "myClusterId", tags: [ { Key: "Project", Value: "MediaProject" }, { Key: "Owner", Value: "TeamA" } ]});