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

com.pulumi.awsnative.mediapackage.kotlin.outputs.PackagingConfigurationCmafPackage.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediapackage.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 * A CMAF packaging configuration.
 * @property encryption Parameters for encrypting content.
 * @property hlsManifests A list of HLS manifest configurations.
 * @property includeEncoderConfigurationInSegments When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.
 * @property segmentDurationSeconds Duration (in seconds) of each segment. Actual segments are rounded to the nearest multiple of the source fragment duration.
 */
public data class PackagingConfigurationCmafPackage(
    public val encryption: PackagingConfigurationCmafEncryption? = null,
    public val hlsManifests: List,
    public val includeEncoderConfigurationInSegments: Boolean? = null,
    public val segmentDurationSeconds: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.mediapackage.outputs.PackagingConfigurationCmafPackage): PackagingConfigurationCmafPackage = PackagingConfigurationCmafPackage(
            encryption = javaType.encryption().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediapackage.kotlin.outputs.PackagingConfigurationCmafEncryption.Companion.toKotlin(args0)
                })
            }).orElse(null),
            hlsManifests = javaType.hlsManifests().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediapackage.kotlin.outputs.PackagingConfigurationHlsManifest.Companion.toKotlin(args0)
                })
            }),
            includeEncoderConfigurationInSegments = javaType.includeEncoderConfigurationInSegments().map({ args0 ->
                args0
            }).orElse(null),
            segmentDurationSeconds = javaType.segmentDurationSeconds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy