@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.106Z") @Stability(value=Stable) public class CfnChannel extends CfnResource implements IInspectable
The AWS::IVS::Channel resource specifies an channel. A channel stores configuration information related to your live stream. For more information, see CreateChannel in the Amazon Interactive Video Service API Reference .
By default, the IVS API CreateChannel endpoint creates a stream key in addition to a channel. The Channel resource does not create a stream key; to create a stream key, use the StreamKey resource instead.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ivs.*;
CfnChannel cfnChannel = CfnChannel.Builder.create(this, "MyCfnChannel")
.authorized(false)
.latencyMode("latencyMode")
.name("name")
.recordingConfigurationArn("recordingConfigurationArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnChannel.Builder
A fluent builder for
CfnChannel. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnChannel(software.constructs.Construct scope,
String id)
Create a new `AWS::IVS::Channel`.
|
|
CfnChannel(software.constructs.Construct scope,
String id,
CfnChannelProps props)
Create a new `AWS::IVS::Channel`.
|
protected |
CfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnChannel(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The channel ARN.
|
String |
getAttrIngestEndpoint()
Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming software.
|
String |
getAttrPlaybackUrl()
Channel playback URL.
|
Object |
getAuthorized()
Whether the channel is authorized.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getLatencyMode()
Channel latency mode.
|
String |
getName()
Channel name.
|
String |
getRecordingConfigurationArn()
The ARN of a RecordingConfiguration resource.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getType()
The channel type, which determines the allowable resolution and bitrate.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAuthorized(Boolean value)
Whether the channel is authorized.
|
void |
setAuthorized(IResolvable value)
Whether the channel is authorized.
|
void |
setLatencyMode(String value)
Channel latency mode.
|
void |
setName(String value)
Channel name.
|
void |
setRecordingConfigurationArn(String value)
The ARN of a RecordingConfiguration resource.
|
void |
setType(String value)
The channel type, which determines the allowable resolution and bitrate.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnChannel(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnChannel(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnChannelProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnChannel(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
For example: arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh
@Stability(value=Stable) @NotNull public String getAttrIngestEndpoint()
For example: a1b2c3d4e5f6.global-contribute.live-video.net
@Stability(value=Stable) @NotNull public String getAttrPlaybackUrl()
For example: https://a1b2c3d4e5f6.us-west-2.playback.live-video.net/api/video/v1/us-west-2.123456789012.channel.abcdEFGH.m3u8
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @Nullable public Object getAuthorized()
Default : false
@Stability(value=Stable)
public void setAuthorized(@Nullable
Boolean value)
Default : false
@Stability(value=Stable)
public void setAuthorized(@Nullable
IResolvable value)
Default : false
@Stability(value=Stable) @Nullable public String getLatencyMode()
NORMAL : Use NORMAL to broadcast and deliver live video up to Full HD.LOW : Use LOW for near real-time interactions with viewers.
In the console,
LOWandNORMALcorrespond toUltra-lowandStandard, respectively.
Default : LOW
@Stability(value=Stable)
public void setLatencyMode(@Nullable
String value)
NORMAL : Use NORMAL to broadcast and deliver live video up to Full HD.LOW : Use LOW for near real-time interactions with viewers.
In the console,
LOWandNORMALcorrespond toUltra-lowandStandard, respectively.
Default : LOW
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRecordingConfigurationArn()
An empty string indicates that recording is disabled for the channel. A RecordingConfiguration ARN indicates that recording is enabled using the specified recording configuration. See the RecordingConfiguration resource for more information and an example.
Default : "" (empty string, recording is disabled)
@Stability(value=Stable)
public void setRecordingConfigurationArn(@Nullable
String value)
An empty string indicates that recording is disabled for the channel. A RecordingConfiguration ARN indicates that recording is enabled using the specified recording configuration. See the RecordingConfiguration resource for more information and an example.
Default : "" (empty string, recording is disabled)
@Stability(value=Stable) @Nullable public String getType()
If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. Valid values:
STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.BASIC : delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
Default : STANDARD
@Stability(value=Stable)
public void setType(@Nullable
String value)
If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. Valid values:
STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.BASIC : delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
Default : STANDARD
Copyright © 2022. All rights reserved.