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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ivs.kotlin

import com.pulumi.awsnative.ivs.EncoderConfigurationArgs.builder
import com.pulumi.awsnative.ivs.kotlin.inputs.VideoPropertiesArgs
import com.pulumi.awsnative.ivs.kotlin.inputs.VideoPropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::IVS::EncoderConfiguration.
 * @property name Encoder configuration name.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property video Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
 */
public data class EncoderConfigurationArgs(
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val video: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ivs.EncoderConfigurationArgs =
        com.pulumi.awsnative.ivs.EncoderConfigurationArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .video(video?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EncoderConfigurationArgs].
 */
@PulumiTagMarker
public class EncoderConfigurationArgsBuilder internal constructor() {
    private var name: Output? = null

    private var tags: Output>? = null

    private var video: Output? = null

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

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fdtylgljmkitvkky")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("xulsufhbjgviqtpx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
     */
    @JvmName("edsrtddqugvtprat")
    public suspend fun video(`value`: Output) {
        this.video = value
    }

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

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("oyfnhrfecmydlayl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("vhlheqdheqtlukxr")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("bfqtskbctmguphls")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("yixnlwxkvvptlkor")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("qyvbgakenammgply")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
     */
    @JvmName("lwgxahlovcelrats")
    public suspend fun video(`value`: VideoPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.video = mapped
    }

    /**
     * @param argument Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
     */
    @JvmName("sgfxpmrbgpqxtvhg")
    public suspend fun video(argument: suspend VideoPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = VideoPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.video = mapped
    }

    internal fun build(): EncoderConfigurationArgs = EncoderConfigurationArgs(
        name = name,
        tags = tags,
        video = video,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy