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

com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointCmafPackageArgs.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.inputs

import com.pulumi.awsnative.mediapackage.inputs.OriginEndpointCmafPackageArgs.builder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A Common Media Application Format (CMAF) packaging configuration.
 * @property encryption Parameters for encrypting content.
 * @property hlsManifests A list of HLS manifest configurations
 * @property segmentDurationSeconds Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
 * @property segmentPrefix An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.
 * @property streamSelection Limitations for outputs from the endpoint, based on the video bitrate.
 */
public data class OriginEndpointCmafPackageArgs(
    public val encryption: Output? = null,
    public val hlsManifests: Output>? = null,
    public val segmentDurationSeconds: Output? = null,
    public val segmentPrefix: Output? = null,
    public val streamSelection: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.OriginEndpointCmafPackageArgs =
        com.pulumi.awsnative.mediapackage.inputs.OriginEndpointCmafPackageArgs.builder()
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hlsManifests(
                hlsManifests?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .segmentDurationSeconds(segmentDurationSeconds?.applyValue({ args0 -> args0 }))
            .segmentPrefix(segmentPrefix?.applyValue({ args0 -> args0 }))
            .streamSelection(
                streamSelection?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [OriginEndpointCmafPackageArgs].
 */
@PulumiTagMarker
public class OriginEndpointCmafPackageArgsBuilder internal constructor() {
    private var encryption: Output? = null

    private var hlsManifests: Output>? = null

    private var segmentDurationSeconds: Output? = null

    private var segmentPrefix: Output? = null

    private var streamSelection: Output? = null

    /**
     * @param value Parameters for encrypting content.
     */
    @JvmName("bnsysboitwjnsbnq")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value A list of HLS manifest configurations
     */
    @JvmName("qikwqcdfswqemixb")
    public suspend fun hlsManifests(`value`: Output>) {
        this.hlsManifests = value
    }

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

    /**
     * @param values A list of HLS manifest configurations
     */
    @JvmName("varjcxeyamdskasv")
    public suspend fun hlsManifests(values: List>) {
        this.hlsManifests = Output.all(values)
    }

    /**
     * @param value Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
     */
    @JvmName("yykdwnoxncmpdtpt")
    public suspend fun segmentDurationSeconds(`value`: Output) {
        this.segmentDurationSeconds = value
    }

    /**
     * @param value An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.
     */
    @JvmName("awuhtrcptrygecmo")
    public suspend fun segmentPrefix(`value`: Output) {
        this.segmentPrefix = value
    }

    /**
     * @param value Limitations for outputs from the endpoint, based on the video bitrate.
     */
    @JvmName("xhgtjqooifaxdesb")
    public suspend fun streamSelection(`value`: Output) {
        this.streamSelection = value
    }

    /**
     * @param value Parameters for encrypting content.
     */
    @JvmName("qjhdkgujigpcycta")
    public suspend fun encryption(`value`: OriginEndpointCmafEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument Parameters for encrypting content.
     */
    @JvmName("qkxlfqururuhhyjn")
    public suspend fun encryption(argument: suspend OriginEndpointCmafEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = OriginEndpointCmafEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value A list of HLS manifest configurations
     */
    @JvmName("xbopepeltndkdbog")
    public suspend fun hlsManifests(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hlsManifests = mapped
    }

    /**
     * @param argument A list of HLS manifest configurations
     */
    @JvmName("pekgqdkedmjlwmlw")
    public suspend fun hlsManifests(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OriginEndpointHlsManifestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.hlsManifests = mapped
    }

    /**
     * @param argument A list of HLS manifest configurations
     */
    @JvmName("pfodamdppigrxcxb")
    public suspend fun hlsManifests(vararg argument: suspend OriginEndpointHlsManifestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OriginEndpointHlsManifestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.hlsManifests = mapped
    }

    /**
     * @param argument A list of HLS manifest configurations
     */
    @JvmName("ieeymqrpdswyhrbe")
    public suspend fun hlsManifests(argument: suspend OriginEndpointHlsManifestArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OriginEndpointHlsManifestArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.hlsManifests = mapped
    }

    /**
     * @param values A list of HLS manifest configurations
     */
    @JvmName("xaqbbeguqulyrirs")
    public suspend fun hlsManifests(vararg values: OriginEndpointHlsManifestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hlsManifests = mapped
    }

    /**
     * @param value Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
     */
    @JvmName("eiyfigyymwxaslvh")
    public suspend fun segmentDurationSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.segmentDurationSeconds = mapped
    }

    /**
     * @param value An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.
     */
    @JvmName("ujdryvaljayfecgn")
    public suspend fun segmentPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.segmentPrefix = mapped
    }

    /**
     * @param value Limitations for outputs from the endpoint, based on the video bitrate.
     */
    @JvmName("wpjwqcffvkyqwbil")
    public suspend fun streamSelection(`value`: OriginEndpointStreamSelectionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamSelection = mapped
    }

    /**
     * @param argument Limitations for outputs from the endpoint, based on the video bitrate.
     */
    @JvmName("jhpswoyhcoqqtgtw")
    public suspend fun streamSelection(argument: suspend OriginEndpointStreamSelectionArgsBuilder.() -> Unit) {
        val toBeMapped = OriginEndpointStreamSelectionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.streamSelection = mapped
    }

    internal fun build(): OriginEndpointCmafPackageArgs = OriginEndpointCmafPackageArgs(
        encryption = encryption,
        hlsManifests = hlsManifests,
        segmentDurationSeconds = segmentDurationSeconds,
        segmentPrefix = segmentPrefix,
        streamSelection = streamSelection,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy