Interface ChannelOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ChannelProps
- All Known Implementing Classes:
ChannelOptions.Jsii$Proxy,ChannelProps.Jsii$Proxy
Used when creating a channel via ChannelGroup.addChannel().
Example:
Stack stack;
// Create a channel group
ChannelGroup group = ChannelGroup.Builder.create(stack, "MyChannelGroup")
.channelGroupName("my-channel-group")
.build();
// Add a channel using the factory method
Channel channel = group.addChannel("MyChannel", ChannelOptions.builder()
.channelName("my-channel")
.input(InputConfiguration.cmaf())
.build());
// Add an origin endpoint using the factory method
OriginEndpoint endpoint = channel.addOriginEndpoint("MyEndpoint", OriginEndpointOptions.builder()
.originEndpointName("my-endpoint")
.segment(Segment.cmaf())
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forChannelOptionsstatic final classAn implementation forChannelOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelOptions.Builderbuilder()default String(experimental) The name that describes the channel.default String(experimental) Enter any descriptive text that helps you to identify the channel.default InputConfigurationgetInput()(experimental) Input configuration for the channel.default RemovalPolicy(experimental) Policy to apply when the channel is removed from the stack.getTags()(experimental) Tags to add to the Channel.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getChannelName
(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
-
getDescription
(experimental) Enter any descriptive text that helps you to identify the channel.Default: no description
-
getInput
(experimental) Input configuration for the channel.Use InputConfiguration.hls() or InputConfiguration.cmaf() to create the configuration.
Default: InputConfiguration.cmaf()
-
getRemovalPolicy
(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
-
getTags
(experimental) Tags to add to the Channel.Default: No tagging
-
builder
- Returns:
- a
ChannelOptions.BuilderofChannelOptions
-