Class ChannelPlacementGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.medialive.alpha.ChannelPlacementGroup
All Implemented Interfaces:
IEnvironmentAware, IChannelPlacementGroupRef, IResource, IChannelPlacementGroup, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:41.003Z") @Stability(Experimental) public class ChannelPlacementGroup extends Resource implements IChannelPlacementGroup
(experimental) Defines an AWS Elemental MediaLive Channel Placement Group.

A channel placement group assigns channels to specific nodes within a cluster.

Example:

 Stack stack;
 ICluster cluster;
 IInput input;
 EncodeConfiguration video;
 IBucket bucket;
 ChannelPlacementGroup cpg = ChannelPlacementGroup.Builder.create(stack, "CPG")
         .channelPlacementGroupName("my-cpg")
         .cluster(cluster)
         .build();
 Channel.Builder.create(stack, "AnywhereChannel")
         .inputs(List.of(InputAttachment.builder().input(input).build()))
         .anywhereSettings(AnywhereSettings.builder().cluster(cluster).channelPlacementGroup(cpg).build())
         .outputGroups(List.of(OutputGroupConfiguration.hls(HlsOutputGroupProps.builder()
                 .name("hls")
                 .destinations(List.of(OutputDestination.toBucket(bucket, "live/stream")))
                 .outputs(List.of(HlsOutputDefinition.builder().encodes(List.of(video)).outputName("hls_out").build()))
                 .build())))
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String PROPERTY_INJECTION_ID
      (experimental) Uniquely identifies this class.
  • Constructor Details

    • ChannelPlacementGroup

      protected ChannelPlacementGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • ChannelPlacementGroup

      protected ChannelPlacementGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ChannelPlacementGroup

      @Stability(Experimental) public ChannelPlacementGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ChannelPlacementGroupProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details