com.pulumi.azure.media.kotlin.inputs.LiveEventInputArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.media.kotlin.inputs
import com.pulumi.azure.media.inputs.LiveEventInputArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 LiveEventInputArgs(
public val accessToken: Output? = null,
public val endpoints: Output>? = null,
public val ipAccessControlAllows: Output>? = null,
public val keyFrameIntervalDuration: Output? = null,
public val streamingProtocol: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.media.inputs.LiveEventInputArgs =
com.pulumi.azure.media.inputs.LiveEventInputArgs.builder()
.accessToken(accessToken?.applyValue({ args0 -> args0 }))
.endpoints(
endpoints?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.ipAccessControlAllows(
ipAccessControlAllows?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.keyFrameIntervalDuration(keyFrameIntervalDuration?.applyValue({ args0 -> args0 }))
.streamingProtocol(streamingProtocol?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LiveEventInputArgs].
*/
@PulumiTagMarker
public class LiveEventInputArgsBuilder internal constructor() {
private var accessToken: Output? = null
private var endpoints: Output>? = null
private var ipAccessControlAllows: Output>? = null
private var keyFrameIntervalDuration: Output? = null
private var streamingProtocol: Output? = null
/**
* @param value 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.
*/
@JvmName("rvfjflptqpbytesk")
public suspend fun accessToken(`value`: Output) {
this.accessToken = value
}
/**
* @param value
*/
@JvmName("kpygbojymhtjyrwo")
public suspend fun endpoints(`value`: Output>) {
this.endpoints = value
}
@JvmName("xovtxdsropcydaly")
public suspend fun endpoints(vararg values: Output) {
this.endpoints = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("awjgrdompavqprnl")
public suspend fun endpoints(values: List