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

com.pulumi.azure.media.kotlin.outputs.LiveEventInput.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property accessToken A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
 * @property endpoints
 * @property ipAccessControlAllows One or more `ip_access_control_allow` blocks as defined below.
 * @property keyFrameIntervalDuration ISO 8601 time duration of the key frame interval duration of the input. This value sets the `EXT-X-TARGETDURATION` property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when `type` is set to `Encoding`.
 * @property streamingProtocol The input protocol for the live event. Allowed values are `FragmentedMP4` and `RTMP`. Changing this forces a new resource to be created.
 */
public data class LiveEventInput(
    public val accessToken: String? = null,
    public val endpoints: List? = null,
    public val ipAccessControlAllows: List? = null,
    public val keyFrameIntervalDuration: String? = null,
    public val streamingProtocol: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.media.outputs.LiveEventInput): LiveEventInput =
            LiveEventInput(
                accessToken = javaType.accessToken().map({ args0 -> args0 }).orElse(null),
                endpoints = javaType.endpoints().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.media.kotlin.outputs.LiveEventInputEndpoint.Companion.toKotlin(args0)
                    })
                }),
                ipAccessControlAllows = javaType.ipAccessControlAllows().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.media.kotlin.outputs.LiveEventInputIpAccessControlAllow.Companion.toKotlin(args0)
                    })
                }),
                keyFrameIntervalDuration = javaType.keyFrameIntervalDuration().map({ args0 -> args0 }).orElse(null),
                streamingProtocol = javaType.streamingProtocol().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy