ChannelGroup
The ChannelGroup resource lets you manage AWS MediaPackageV2 ChannelGroups for organizing multiple channels under a single group.
Minimal Example
Section titled “Minimal Example”Create a basic ChannelGroup with a name and description:
import AWS from "alchemy/aws/control";
const basicChannelGroup = await AWS.MediaPackageV2.ChannelGroup("basicChannelGroup", {  ChannelGroupName: "MyChannelGroup",  Description: "This is a basic channel group for content delivery.",});Advanced Configuration
Section titled “Advanced Configuration”Create a ChannelGroup with tags for better organization and management:
const taggedChannelGroup = await AWS.MediaPackageV2.ChannelGroup("taggedChannelGroup", {  ChannelGroupName: "MyTaggedChannelGroup",  Description: "This channel group includes tags for categorization.",  Tags: [    { Key: "Environment", Value: "Production" },    { Key: "Department", Value: "Media" }  ],});Adoption of Existing Resources
Section titled “Adoption of Existing Resources”Create a ChannelGroup while adopting an existing resource if it already exists:
const adoptedChannelGroup = await AWS.MediaPackageV2.ChannelGroup("adoptedChannelGroup", {  ChannelGroupName: "ExistingChannelGroup",  Description: "Adopting an existing channel group without failure.",  adopt: true,});Use Case: Multi-Channel Organization
Section titled “Use Case: Multi-Channel Organization”Create a ChannelGroup for organizing multiple channels for a streaming service:
const streamingChannelGroup = await AWS.MediaPackageV2.ChannelGroup("streamingChannelGroup", {  ChannelGroupName: "StreamingServiceChannels",  Description: "A channel group for organizing all streaming service channels.",  Tags: [    { Key: "Service", Value: "Streaming" },    { Key: "Type", Value: "Live" }  ],});These examples demonstrate how to create and configure AWS MediaPackageV2 ChannelGroups using Alchemy, from basic setups to more advanced configurations including resource adoption and tagging.