ChannelGroupProps
- class aws_cdk.aws_mediapackagev2_alpha.ChannelGroupProps(*, channel_group_name=None, description=None, removal_policy=None, tags=None)
Bases:
object(experimental) Properties for the Channel Group.
- Parameters:
channel_group_name (
Optional[str]) – (experimental) The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region. Default: autogenerateddescription (
Optional[str]) – (experimental) The description for your channel group. Default: - no descriptionremoval_policy (
Optional[RemovalPolicy]) – (experimental) Policy to apply when the channel group is removed from the stack. Even though MediaPackage ChannelGroups, Channels and OriginEndpoints are technically stateful, their contents are transient and it is common to add and remove these while rearchitecting your application. The default is thereforeDESTROY. Change it toRETAINif the content (in a lookback window) are so valuable that accidentally losing it would be unacceptable. Default: RemovalPolicy.DESTROYtags (
Optional[Mapping[str,str]]) – (experimental) Tags to add to the Channel Group. Default: - No tagging
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# stack: Stack # Create a channel group group = ChannelGroup(stack, "MyChannelGroup", channel_group_name="my-channel-group" ) # Add a channel using the factory method channel = group.add_channel("MyChannel", channel_name="my-channel", input=InputConfiguration.cmaf() ) # Add an origin endpoint using the factory method endpoint = channel.add_origin_endpoint("MyEndpoint", origin_endpoint_name="my-endpoint", segment=Segment.cmaf(), manifests=[Manifest.hls(manifest_name="index")] )
Attributes
- channel_group_name
(experimental) The name that describes the channel group.
The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
- Default:
autogenerated
- Stability:
experimental
- description
(experimental) The description for your channel group.
- Default:
no description
- Stability:
experimental
- removal_policy
(experimental) Policy to apply when the channel group is removed from the stack.
Even though MediaPackage ChannelGroups, Channels and OriginEndpoints are technically stateful, their contents are transient and it is common to add and remove these while rearchitecting your application. The default is therefore
DESTROY. Change it toRETAINif the content (in a lookback window) are so valuable that accidentally losing it would be unacceptable.- Default:
RemovalPolicy.DESTROY
- Stability:
experimental
- tags
(experimental) Tags to add to the Channel Group.
- Default:
No tagging
- Stability:
experimental