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

com.pulumi.awsnative.mediapackage.kotlin.ChannelArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediapackage.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.mediapackage.ChannelArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.inputs.ChannelHlsIngestArgs
import com.pulumi.awsnative.mediapackage.kotlin.inputs.ChannelHlsIngestArgsBuilder
import com.pulumi.awsnative.mediapackage.kotlin.inputs.ChannelLogConfigurationArgs
import com.pulumi.awsnative.mediapackage.kotlin.inputs.ChannelLogConfigurationArgsBuilder
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 schema for AWS::MediaPackage::Channel
 * @property awsId The ID of the Channel.
 * @property description A short text description of the Channel.
 * @property egressAccessLogs The configuration parameters for egress access logging.
 * @property hlsIngest An HTTP Live Streaming (HLS) ingest resource configuration.
 * @property ingressAccessLogs The configuration parameters for egress access logging.
 * @property tags A collection of tags associated with a resource
 */
public data class ChannelArgs(
    public val awsId: Output? = null,
    public val description: Output? = null,
    public val egressAccessLogs: Output? = null,
    public val hlsIngest: Output? = null,
    public val ingressAccessLogs: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.ChannelArgs =
        com.pulumi.awsnative.mediapackage.ChannelArgs.builder()
            .awsId(awsId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .egressAccessLogs(egressAccessLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hlsIngest(hlsIngest?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ingressAccessLogs(ingressAccessLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var description: Output? = null

    private var egressAccessLogs: Output? = null

    private var hlsIngest: Output? = null

    private var ingressAccessLogs: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of the Channel.
     */
    @JvmName("useqsjtiuahpybyg")
    public suspend fun awsId(`value`: Output) {
        this.awsId = value
    }

    /**
     * @param value A short text description of the Channel.
     */
    @JvmName("otmecloausmyhlbr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("ughbrpkslyrjmctw")
    public suspend fun egressAccessLogs(`value`: Output) {
        this.egressAccessLogs = value
    }

    /**
     * @param value An HTTP Live Streaming (HLS) ingest resource configuration.
     */
    @JvmName("cxbfctfrfuhhcnba")
    public suspend fun hlsIngest(`value`: Output) {
        this.hlsIngest = value
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("jfbbmngikjxedmud")
    public suspend fun ingressAccessLogs(`value`: Output) {
        this.ingressAccessLogs = value
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("wwphxbajqlvqapmp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("qfqhtdchjylphuyi")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value A short text description of the Channel.
     */
    @JvmName("ardgxsahljckdebr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("ysdhxkgiyebafnfj")
    public suspend fun egressAccessLogs(`value`: ChannelLogConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressAccessLogs = mapped
    }

    /**
     * @param argument The configuration parameters for egress access logging.
     */
    @JvmName("fuifbchpknnndjyo")
    public suspend fun egressAccessLogs(argument: suspend ChannelLogConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelLogConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.egressAccessLogs = mapped
    }

    /**
     * @param value An HTTP Live Streaming (HLS) ingest resource configuration.
     */
    @JvmName("untvjyunsmkvacia")
    public suspend fun hlsIngest(`value`: ChannelHlsIngestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hlsIngest = mapped
    }

    /**
     * @param argument An HTTP Live Streaming (HLS) ingest resource configuration.
     */
    @JvmName("dwilltfgymggomwb")
    public suspend fun hlsIngest(argument: suspend ChannelHlsIngestArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelHlsIngestArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.hlsIngest = mapped
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("emderudvosgeocmv")
    public suspend fun ingressAccessLogs(`value`: ChannelLogConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressAccessLogs = mapped
    }

    /**
     * @param argument The configuration parameters for egress access logging.
     */
    @JvmName("gdglqeaauerieuto")
    public suspend fun ingressAccessLogs(argument: suspend ChannelLogConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelLogConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ingressAccessLogs = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("luymleblhogwxqes")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("qgrinuysjrhapkyi")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("lfufjeqqacpwbteq")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("mhwouelanvsojpgp")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("yrcpalghdoynyhsy")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ChannelArgs = ChannelArgs(
        awsId = awsId,
        description = description,
        egressAccessLogs = egressAccessLogs,
        hlsIngest = hlsIngest,
        ingressAccessLogs = ingressAccessLogs,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy