com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointCmafPackage.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 OriginEndpointCmafPackage(
public val encryption: OriginEndpointCmafEncryption? = null,
public val hlsManifests: List? = null,
public val segmentDurationSeconds: Int? = null,
public val segmentPrefix: String? = null,
public val streamSelection: OriginEndpointStreamSelection? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.mediapackage.outputs.OriginEndpointCmafPackage): OriginEndpointCmafPackage = OriginEndpointCmafPackage(
encryption = javaType.encryption().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointCmafEncryption.Companion.toKotlin(args0)
})
}).orElse(null),
hlsManifests = javaType.hlsManifests().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointHlsManifest.Companion.toKotlin(args0)
})
}),
segmentDurationSeconds = javaType.segmentDurationSeconds().map({ args0 -> args0 }).orElse(null),
segmentPrefix = javaType.segmentPrefix().map({ args0 -> args0 }).orElse(null),
streamSelection = javaType.streamSelection().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointStreamSelection.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}