All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ivs.kotlin.ChannelArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ivs.kotlin

import com.pulumi.awsnative.ivs.ChannelArgs.builder
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.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::IVS::Channel
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property authorized Whether the channel is authorized.
 * @property insecureIngest Whether the channel allows insecure ingest.
 * @property latencyMode Channel latency mode.
 * @property name Channel
 * @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 ChannelArgs(
    public val authorized: Output? = null,
    public val insecureIngest: Output? = null,
    public val latencyMode: Output? = null,
    public val name: Output? = null,
    public val preset: Output? = null,
    public val recordingConfigurationArn: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ivs.ChannelArgs =
        com.pulumi.awsnative.ivs.ChannelArgs.builder()
            .authorized(authorized?.applyValue({ args0 -> args0 }))
            .insecureIngest(insecureIngest?.applyValue({ args0 -> args0 }))
            .latencyMode(latencyMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .preset(preset?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .recordingConfigurationArn(recordingConfigurationArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ChannelArgs].
 */
@PulumiTagMarker
public class ChannelArgsBuilder internal constructor() {
    private var authorized: Output? = null

    private var insecureIngest: Output? = null

    private var latencyMode: Output? = null

    private var name: Output? = null

    private var preset: Output? = null

    private var recordingConfigurationArn: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value Whether the channel is authorized.
     */
    @JvmName("djlhkygfswytseeh")
    public suspend fun authorized(`value`: Output) {
        this.authorized = value
    }

    /**
     * @param value Whether the channel allows insecure ingest.
     */
    @JvmName("dsckpsndvdejxgfu")
    public suspend fun insecureIngest(`value`: Output) {
        this.insecureIngest = value
    }

    /**
     * @param value Channel latency mode.
     */
    @JvmName("cgvhysggtdermpeh")
    public suspend fun latencyMode(`value`: Output) {
        this.latencyMode = value
    }

    /**
     * @param value Channel
     */
    @JvmName("fhmqmcxuhbcipmqd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value 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 ("").
     */
    @JvmName("ohksylynmqwcqcqf")
    public suspend fun preset(`value`: Output) {
        this.preset = value
    }

    /**
     * @param value Recording Configuration ARN. A value other than an empty string indicates that recording is enabled. Default: "" (recording is disabled).
     */
    @JvmName("obcrkpgcdemlprjf")
    public suspend fun recordingConfigurationArn(`value`: Output) {
        this.recordingConfigurationArn = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("oovqkbgorqvlyvyn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ooskgxkxtvrqrusj")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("khpphdenxbqusifn")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.
     */
    @JvmName("kbtvhgsbkdtjslkt")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Whether the channel is authorized.
     */
    @JvmName("evavfidleyqwalaw")
    public suspend fun authorized(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorized = mapped
    }

    /**
     * @param value Whether the channel allows insecure ingest.
     */
    @JvmName("hcnxpwihvfossget")
    public suspend fun insecureIngest(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insecureIngest = mapped
    }

    /**
     * @param value Channel latency mode.
     */
    @JvmName("wyojrltmpwmwfcrh")
    public suspend fun latencyMode(`value`: ChannelLatencyMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.latencyMode = mapped
    }

    /**
     * @param value Channel
     */
    @JvmName("slgsvptkbxmxwied")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value 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 ("").
     */
    @JvmName("iosvoarxlnpurshf")
    public suspend fun preset(`value`: ChannelPreset?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preset = mapped
    }

    /**
     * @param value Recording Configuration ARN. A value other than an empty string indicates that recording is enabled. Default: "" (recording is disabled).
     */
    @JvmName("napanxktwrwkieyg")
    public suspend fun recordingConfigurationArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordingConfigurationArn = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("qyatgyksvemeqnhs")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("mhaivqkilulggovm")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("wjgefcjhdejcrftx")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("kclyslxopvrsbatr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("setbnlkgydbfwtng")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.
     */
    @JvmName("pwpijwhpqwrnvels")
    public suspend fun type(`value`: ChannelType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ChannelArgs = ChannelArgs(
        authorized = authorized,
        insecureIngest = insecureIngest,
        latencyMode = latencyMode,
        name = name,
        preset = preset,
        recordingConfigurationArn = recordingConfigurationArn,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy