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

com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCenc.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property clearKeyEncryption A `clear_key_encryption` block as defined below. Changing this forces a new Streaming Policy to be created.
 * @property clearTracks One or more `clear_track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
 * @property contentKeyToTrackMappings One or more `content_key_to_track_mapping` blocks as defined below. Changing this forces a new Streaming Policy to be created.
 * @property defaultContentKey A `default_content_key` block as defined below. Changing this forces a new Streaming Policy to be created.
 * @property drmPlayready A `drm_playready` block as defined below. Changing this forces a new Streaming Policy to be created.
 * @property drmWidevineCustomLicenseAcquisitionUrlTemplate The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 * @property enabledProtocols A `enabled_protocols` block as defined below. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyCommonEncryptionCenc(
    public val clearKeyEncryption: StreamingPolicyCommonEncryptionCencClearKeyEncryption? = null,
    public val clearTracks: List? = null,
    public val contentKeyToTrackMappings: List? = null,
    public val defaultContentKey: StreamingPolicyCommonEncryptionCencDefaultContentKey? = null,
    public val drmPlayready: StreamingPolicyCommonEncryptionCencDrmPlayready? = null,
    public val drmWidevineCustomLicenseAcquisitionUrlTemplate: String? = null,
    public val enabledProtocols: StreamingPolicyCommonEncryptionCencEnabledProtocols? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.media.outputs.StreamingPolicyCommonEncryptionCenc): StreamingPolicyCommonEncryptionCenc = StreamingPolicyCommonEncryptionCenc(
            clearKeyEncryption = javaType.clearKeyEncryption().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencClearKeyEncryption.Companion.toKotlin(args0)
                })
            }).orElse(null),
            clearTracks = javaType.clearTracks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencClearTrack.Companion.toKotlin(args0)
                })
            }),
            contentKeyToTrackMappings = javaType.contentKeyToTrackMappings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMapping.Companion.toKotlin(args0)
                })
            }),
            defaultContentKey = javaType.defaultContentKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencDefaultContentKey.Companion.toKotlin(args0)
                })
            }).orElse(null),
            drmPlayready = javaType.drmPlayready().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencDrmPlayready.Companion.toKotlin(args0)
                })
            }).orElse(null),
            drmWidevineCustomLicenseAcquisitionUrlTemplate = javaType.drmWidevineCustomLicenseAcquisitionUrlTemplate().map({ args0 ->
                args0
            }).orElse(null),
            enabledProtocols = javaType.enabledProtocols().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyCommonEncryptionCencEnabledProtocols.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy