ChannelGroup
Source:
src/AWS/MediaPackageV2/ChannelGroup.ts
An AWS Elemental MediaPackage v2 channel group — the top-level container for channels and origin endpoints. All channels and origin endpoints in a group share one egress domain, giving downstream players and CDNs predictable URLs for stream delivery.
Creating a Channel Group
Section titled “Creating a Channel Group”Basic Channel Group
import * as MediaPackageV2 from "alchemy/AWS/MediaPackageV2";
const group = yield* MediaPackageV2.ChannelGroup("Live");Channel Group with Description and Tags
const group = yield* MediaPackageV2.ChannelGroup("Live", { description: "Live sports streams", tags: { team: "media" },});Egress Domain
Section titled “Egress Domain”const group = yield* MediaPackageV2.ChannelGroup("Live");// e.g. abcde.egress.xyz.mediapackagev2.us-east-1.amazonaws.comconst domain = group.egressDomain;