Skip to content
v2.275.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ChannelPlacementGroupProps Struct ​

Properties for creating a MediaLive Channel Placement Group.

Example ​

ts
declare const stack: Stack;
declare const cluster: medialive.ICluster;
declare const input: medialive.IInput;
declare const video: medialive.EncodeConfiguration;
declare const bucket: s3.IBucket;

const cpg = new medialive.ChannelPlacementGroup(stack, 'CPG', {
  channelPlacementGroupName: 'my-cpg',
  cluster,
});

new medialive.Channel(stack, 'AnywhereChannel', {
  inputs: [{ input }],
  anywhereSettings: { cluster, channelPlacementGroup: cpg },
  outputGroups: [
    medialive.OutputGroupConfiguration.hls({
      name: 'hls',
      destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
      outputs: [{ encodes: [video], outputName: 'hls_out' }],
    }),
  ],
});

Properties ​

channelPlacementGroupNameoptionalstringchannel_placement_group_nameoptionalstrchannelPlacementGroupNameoptionalStringChannelPlacementGroupNameoptionalstringChannelPlacementGroupNameoptional*string#
The name of the channel placement group.

Default: auto-generated name

clusterIClusterRefclusterIClusterRefclusterIClusterRefClusterIClusterRefClusterIClusterRefrequired#
The cluster this channel placement group belongs to.
nodesoptionalstring[]nodesoptionaltyping.List[str]nodesoptionalList<String>Nodesoptionalstring[]Nodesoptional*[]*string#
List of node IDs for the channel placement group.

Default: no nodes

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
Tags to add to the channel placement group.

Default: no tags