ChannelPlacementGroupProps

class aws_cdk.aws_medialive_alpha.ChannelPlacementGroupProps(*, cluster, channel_placement_group_name=None, nodes=None, tags=None)

Bases: object

(experimental) Properties for creating a MediaLive Channel Placement Group.

Parameters:
  • cluster (IClusterRef) – (experimental) The cluster this channel placement group belongs to.

  • channel_placement_group_name (Optional[str]) – (experimental) The name of the channel placement group. Default: - auto-generated name

  • nodes (Optional[Sequence[str]]) – (experimental) List of node IDs for the channel placement group. Default: - no nodes

  • tags (Optional[Mapping[str, str]]) – (experimental) Tags to add to the channel placement group. Default: - no tags

Stability:

experimental

ExampleMetadata:

infused

Example:

# stack: Stack
# cluster: medialive.ICluster
# input: medialive.IInput
# video: medialive.EncodeConfiguration
# bucket: s3.IBucket


cpg = medialive.ChannelPlacementGroup(stack, "CPG",
    channel_placement_group_name="my-cpg",
    cluster=cluster
)

medialive.Channel(stack, "AnywhereChannel",
    inputs=[medialive.InputAttachment(input=input)],
    anywhere_settings=medialive.AnywhereSettings(cluster=cluster, channel_placement_group=cpg),
    output_groups=[
        medialive.OutputGroupConfiguration.hls(
            name="hls",
            destinations=[medialive.OutputDestination.to_bucket(bucket, "live/stream")],
            outputs=[medialive.HlsOutputDefinition(encodes=[video], output_name="hls_out")]
        )
    ]
)

Attributes

channel_placement_group_name

(experimental) The name of the channel placement group.

Default:
  • auto-generated name

Stability:

experimental

cluster

(experimental) The cluster this channel placement group belongs to.

Stability:

experimental

nodes

(experimental) List of node IDs for the channel placement group.

Default:
  • no nodes

Stability:

experimental

tags

(experimental) Tags to add to the channel placement group.

Default:
  • no tags

Stability:

experimental