Skip to content
v2.278.0

CfnChannelProps Struct ​

Properties for defining a CfnChannel.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivs as ivs } from 'aws-cdk-lib';
const cfnChannelProps: ivs.CfnChannelProps = {
  authorized: false,
  containerFormat: 'containerFormat',
  insecureIngest: false,
  latencyMode: 'latencyMode',
  multitrackInputConfiguration: {
    enabled: false,
    maximumResolution: 'maximumResolution',
    policy: 'policy',
  },
  name: 'name',
  preset: 'preset',
  recordingConfigurationArn: 'recordingConfigurationArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  type: 'type',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ivs as ivs

cfn_channel_props = ivs.CfnChannelProps(
    authorized=False,
    container_format="containerFormat",
    insecure_ingest=False,
    latency_mode="latencyMode",
    multitrack_input_configuration=ivs.CfnChannel.MultitrackInputConfigurationProperty(
        enabled=False,
        maximum_resolution="maximumResolution",
        policy="policy"
    ),
    name="name",
    preset="preset",
    recording_configuration_arn="recordingConfigurationArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    type="type"
)
java
// 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.*;

CfnChannelProps cfnChannelProps = CfnChannelProps.builder()
        .authorized(false)
        .containerFormat("containerFormat")
        .insecureIngest(false)
        .latencyMode("latencyMode")
        .multitrackInputConfiguration(MultitrackInputConfigurationProperty.builder()
                .enabled(false)
                .maximumResolution("maximumResolution")
                .policy("policy")
                .build())
        .name("name")
        .preset("preset")
        .recordingConfigurationArn("recordingConfigurationArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .type("type")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Ivs;

var cfnChannelProps = new CfnChannelProps {
    Authorized = false,
    ContainerFormat = "containerFormat",
    InsecureIngest = false,
    LatencyMode = "latencyMode",
    MultitrackInputConfiguration = new MultitrackInputConfigurationProperty {
        Enabled = false,
        MaximumResolution = "maximumResolution",
        Policy = "policy"
    },
    Name = "name",
    Preset = "preset",
    RecordingConfigurationArn = "recordingConfigurationArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Type = "type"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnChannelProps := &CfnChannelProps{
	Authorized: jsii.Boolean(false),
	ContainerFormat: jsii.String("containerFormat"),
	InsecureIngest: jsii.Boolean(false),
	LatencyMode: jsii.String("latencyMode"),
	MultitrackInputConfiguration: &MultitrackInputConfigurationProperty{
		Enabled: jsii.Boolean(false),
		MaximumResolution: jsii.String("maximumResolution"),
		Policy: jsii.String("policy"),
	},
	Name: jsii.String("name"),
	Preset: jsii.String("preset"),
	RecordingConfigurationArn: jsii.String("recordingConfigurationArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Type: jsii.String("type"),
}

Properties ​

authorizedoptionalboolean | IResolvableauthorizedoptionaltyping.Union[bool, IResolvable]authorizedoptionalBooleanAuthorizedoptionalboolAuthorizedoptionalinterface{} = false #
Whether the channel is authorized.

Default : false

containerFormatoptionalstringcontainer_formatoptionalstrcontainerFormatoptionalStringContainerFormatoptionalstringContainerFormatoptional*string = "TS" #
Indicates which content-packaging format is used (MPEG-TS or fMP4).

If multitrackInputConfiguration is specified and enabled is true , then containerFormat is required and must be set to FRAGMENTED_MP4 . Otherwise, containerFormat may be set to TS or FRAGMENTED_MP4 . Default: TS .

insecureIngestoptionalboolean | IResolvableinsecure_ingestoptionaltyping.Union[bool, IResolvable]insecureIngestoptionalBooleanInsecureIngestoptionalboolInsecureIngestoptionalinterface{} = false #
Whether the channel allows insecure RTMP ingest.

Default : false

latencyModeoptionalstringlatency_modeoptionalstrlatencyModeoptionalStringLatencyModeoptionalstringLatencyModeoptional*string = "LOW" #
Channel latency mode. Valid values:.
notes
  • 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, LOW and NORMAL correspond to Ultra-low and Standard , respectively.

Default : LOW

multitrackInputConfigurationoptionalIResolvable | CfnChannel.MultitrackInputConfigurationPropertymultitrack_input_configurationoptionaltyping.Union[IResolvable, MultitrackInputConfigurationProperty]multitrackInputConfigurationoptionalIResolvableMultitrackInputConfigurationoptionalIResolvableMultitrackInputConfigurationoptionalinterface{} #
Object specifying multitrack input configuration.

Default: no multitrack input configuration is specified.

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string = "-" #
Channel name.
presetoptionalstringpresetoptionalstrpresetoptionalStringPresetoptionalstringPresetoptional*string #
An optional transcode preset for the channel.

This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY . For other channel types ( BASIC and STANDARD ), preset is the empty string ("").

recordingConfigurationArnoptionalstring | IRecordingConfigurationRefrecording_configuration_arnoptionaltyping.Union[str, IRecordingConfigurationRef]recordingConfigurationArnoptionalStringRecordingConfigurationArnoptionalstringRecordingConfigurationArnoptionalinterface{} = "" #
The ARN of a RecordingConfiguration resource.
notes

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)

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.

For more information, see Tag .

typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string = "STANDARD" #
The channel type, which determines the allowable resolution and bitrate.
notes

If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. For details, see Channel Types .

Default : STANDARD