ChannelProps
- class aws_cdk.aws_mediapackagev2_alpha.ChannelProps(*, channel_name=None, description=None, input=None, removal_policy=None, tags=None, channel_group)
Bases:
ChannelOptions(experimental) Properties to set on a Channel.
- Parameters:
channel_name (
Optional[str]) – (experimental) The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group. Default: autogenerateddescription (
Optional[str]) – (experimental) Enter any descriptive text that helps you to identify the channel. Default: no descriptioninput (
Optional[InputConfiguration]) – (experimental) Input configuration for the channel. Use InputConfiguration.hls() or InputConfiguration.cmaf() to create the configuration. Default: InputConfiguration.cmaf()removal_policy (
Optional[RemovalPolicy]) – (experimental) Policy to apply when the channel 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. Default: No taggingchannel_group (
IChannelGroup) – (experimental) Channel Group to add this Channel to.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# stack: Stack group = ChannelGroup(stack, "MyChannelGroup", channel_group_name="my-test-channel-group" ) channel = Channel(stack, "MyChannel", channel_group=group, channel_name="my-testchannel", input=InputConfiguration.cmaf() ) endpoint = OriginEndpoint(stack, "MyOriginEndpoint", channel=channel, origin_endpoint_name="my-test-endpoint", segment=Segment.cmaf(), manifests=[Manifest.hls( manifest_name="index" )] )
Attributes
- channel_group
(experimental) Channel Group to add this Channel to.
- Stability:
experimental
- channel_name
(experimental) The name that describes the channel.
The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
- Default:
autogenerated
- Stability:
experimental
- description
(experimental) Enter any descriptive text that helps you to identify the channel.
- Default:
no description
- Stability:
experimental
- input
(experimental) Input configuration for the channel.
Use InputConfiguration.hls() or InputConfiguration.cmaf() to create the configuration.
- Default:
InputConfiguration.cmaf()
- Stability:
experimental
- removal_policy
(experimental) Policy to apply when the channel 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.
- Default:
No tagging
- Stability:
experimental