createChannelGroup

Create a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.

Samples


fun main() { 
   //sampleStart 
   // Creating a Channel Group
val resp = mediaPackageV2Client.createChannelGroup {
    channelGroupName = "exampleChannelGroup"
    description = "Description for exampleChannelGroup"
    tags = mapOf<String, String>(
        "key1" to "value1",
        "key2" to "value2"
    )
} 
   //sampleEnd
}