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

com.pulumi.azure.media.kotlin.outputs.StreamingPolicyEnvelopeEncryption.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property customKeysAcquisitionUrlTemplate The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 * @property defaultContentKey A `default_content_key` block as defined above. Changing this forces a new Streaming Policy to be created.
 * @property enabledProtocols A `enabled_protocols` block as defined above. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyEnvelopeEncryption(
    public val customKeysAcquisitionUrlTemplate: String? = null,
    public val defaultContentKey: StreamingPolicyEnvelopeEncryptionDefaultContentKey? = null,
    public val enabledProtocols: StreamingPolicyEnvelopeEncryptionEnabledProtocols? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.media.outputs.StreamingPolicyEnvelopeEncryption):
            StreamingPolicyEnvelopeEncryption = StreamingPolicyEnvelopeEncryption(
            customKeysAcquisitionUrlTemplate = javaType.customKeysAcquisitionUrlTemplate().map({ args0 ->
                args0
            }).orElse(null),
            defaultContentKey = javaType.defaultContentKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyEnvelopeEncryptionDefaultContentKey.Companion.toKotlin(args0)
                })
            }).orElse(null),
            enabledProtocols = javaType.enabledProtocols().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.media.kotlin.outputs.StreamingPolicyEnvelopeEncryptionEnabledProtocols.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy