com.pulumi.awsnative.mediapackagev2.kotlin.outputs.OriginEndpointSegment.kt Maven / Gradle / Ivy
Show all versions of pulumi-aws-native-kotlin Show documentation
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediapackagev2.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* The segment configuration, including the segment name, duration, and other configuration values.
* @property encryption Whether to use encryption for the segment.
* @property includeIframeOnlyStreams When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
* @property scte The SCTE-35 configuration associated with the segment.
* @property segmentDurationSeconds The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
* @property segmentName The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
* @property tsIncludeDvbSubtitles By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
* @property tsUseAudioRenditionGroup When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
*/
public data class OriginEndpointSegment(
public val encryption: OriginEndpointEncryption? = null,
public val includeIframeOnlyStreams: Boolean? = null,
public val scte: OriginEndpointScte? = null,
public val segmentDurationSeconds: Int? = null,
public val segmentName: String? = null,
public val tsIncludeDvbSubtitles: Boolean? = null,
public val tsUseAudioRenditionGroup: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.mediapackagev2.outputs.OriginEndpointSegment): OriginEndpointSegment = OriginEndpointSegment(
encryption = javaType.encryption().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediapackagev2.kotlin.outputs.OriginEndpointEncryption.Companion.toKotlin(args0)
})
}).orElse(null),
includeIframeOnlyStreams = javaType.includeIframeOnlyStreams().map({ args0 -> args0 }).orElse(null),
scte = javaType.scte().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediapackagev2.kotlin.outputs.OriginEndpointScte.Companion.toKotlin(args0)
})
}).orElse(null),
segmentDurationSeconds = javaType.segmentDurationSeconds().map({ args0 -> args0 }).orElse(null),
segmentName = javaType.segmentName().map({ args0 -> args0 }).orElse(null),
tsIncludeDvbSubtitles = javaType.tsIncludeDvbSubtitles().map({ args0 -> args0 }).orElse(null),
tsUseAudioRenditionGroup = javaType.tsUseAudioRenditionGroup().map({ args0 -> args0 }).orElse(null),
)
}
}