com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointCmafPackageArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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