com.pulumi.awsnative.ivs.kotlin.outputs.GetChannelResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ivs.kotlin.outputs
import com.pulumi.awsnative.ivs.kotlin.enums.ChannelLatencyMode
import com.pulumi.awsnative.ivs.kotlin.enums.ChannelPreset
import com.pulumi.awsnative.ivs.kotlin.enums.ChannelType
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn Channel ARN is automatically generated on creation and assigned as the unique identifier.
* @property authorized Whether the channel is authorized.
* @property ingestEndpoint Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming software.
* @property insecureIngest Whether the channel allows insecure ingest.
* @property latencyMode Channel latency mode.
* @property name Channel
* @property playbackUrl Channel Playback URL.
* @property preset 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 ("").
* @property recordingConfigurationArn Recording Configuration ARN. A value other than an empty string indicates that recording is enabled. Default: "" (recording is disabled).
* @property tags A list of key-value pairs that contain metadata for the asset model.
* @property type Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.
*/
public data class GetChannelResult(
public val arn: String? = null,
public val authorized: Boolean? = null,
public val ingestEndpoint: String? = null,
public val insecureIngest: Boolean? = null,
public val latencyMode: ChannelLatencyMode? = null,
public val name: String? = null,
public val playbackUrl: String? = null,
public val preset: ChannelPreset? = null,
public val recordingConfigurationArn: String? = null,
public val tags: List? = null,
public val type: ChannelType? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ivs.outputs.GetChannelResult): GetChannelResult = GetChannelResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
authorized = javaType.authorized().map({ args0 -> args0 }).orElse(null),
ingestEndpoint = javaType.ingestEndpoint().map({ args0 -> args0 }).orElse(null),
insecureIngest = javaType.insecureIngest().map({ args0 -> args0 }).orElse(null),
latencyMode = javaType.latencyMode().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ivs.kotlin.enums.ChannelLatencyMode.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
playbackUrl = javaType.playbackUrl().map({ args0 -> args0 }).orElse(null),
preset = javaType.preset().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ivs.kotlin.enums.ChannelPreset.Companion.toKotlin(args0)
})
}).orElse(null),
recordingConfigurationArn = javaType.recordingConfigurationArn().map({ args0 ->
args0
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
type = javaType.type().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ivs.kotlin.enums.ChannelType.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}