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

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

package com.pulumi.awsnative.mediapackage.kotlin.inputs

import com.pulumi.awsnative.mediapackage.inputs.PackagingConfigurationHlsEncryptionArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.enums.PackagingConfigurationHlsEncryptionEncryptionMethod
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * An HTTP Live Streaming (HLS) encryption configuration.
 * @property constantInitializationVector An HTTP Live Streaming (HLS) encryption configuration.
 * @property encryptionMethod The encryption method to use.
 * @property spekeKeyProvider Parameters for the SPEKE key provider.
 */
public data class PackagingConfigurationHlsEncryptionArgs(
    public val constantInitializationVector: Output? = null,
    public val encryptionMethod: Output? = null,
    public val spekeKeyProvider: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.PackagingConfigurationHlsEncryptionArgs =
        com.pulumi.awsnative.mediapackage.inputs.PackagingConfigurationHlsEncryptionArgs.builder()
            .constantInitializationVector(constantInitializationVector?.applyValue({ args0 -> args0 }))
            .encryptionMethod(encryptionMethod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .spekeKeyProvider(
                spekeKeyProvider.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PackagingConfigurationHlsEncryptionArgs].
 */
@PulumiTagMarker
public class PackagingConfigurationHlsEncryptionArgsBuilder internal constructor() {
    private var constantInitializationVector: Output? = null

    private var encryptionMethod: Output? = null

    private var spekeKeyProvider: Output? = null

    /**
     * @param value An HTTP Live Streaming (HLS) encryption configuration.
     */
    @JvmName("ocmgeltmcgjyrlhi")
    public suspend fun constantInitializationVector(`value`: Output) {
        this.constantInitializationVector = value
    }

    /**
     * @param value The encryption method to use.
     */
    @JvmName("hwcwyaxuipofogyh")
    public suspend fun encryptionMethod(`value`: Output) {
        this.encryptionMethod = value
    }

    /**
     * @param value Parameters for the SPEKE key provider.
     */
    @JvmName("ohchjsyfdmrkduwo")
    public suspend fun spekeKeyProvider(`value`: Output) {
        this.spekeKeyProvider = value
    }

    /**
     * @param value An HTTP Live Streaming (HLS) encryption configuration.
     */
    @JvmName("naexheqrajclyqhb")
    public suspend fun constantInitializationVector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.constantInitializationVector = mapped
    }

    /**
     * @param value The encryption method to use.
     */
    @JvmName("ndrtjbnusrnstwrm")
    public suspend fun encryptionMethod(`value`: PackagingConfigurationHlsEncryptionEncryptionMethod?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionMethod = mapped
    }

    /**
     * @param value Parameters for the SPEKE key provider.
     */
    @JvmName("qpwygnuvakwbrdvx")
    public suspend fun spekeKeyProvider(`value`: PackagingConfigurationSpekeKeyProviderArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.spekeKeyProvider = mapped
    }

    /**
     * @param argument Parameters for the SPEKE key provider.
     */
    @JvmName("gtkntokcostwricp")
    public suspend fun spekeKeyProvider(argument: suspend PackagingConfigurationSpekeKeyProviderArgsBuilder.() -> Unit) {
        val toBeMapped = PackagingConfigurationSpekeKeyProviderArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.spekeKeyProvider = mapped
    }

    internal fun build(): PackagingConfigurationHlsEncryptionArgs =
        PackagingConfigurationHlsEncryptionArgs(
            constantInitializationVector = constantInitializationVector,
            encryptionMethod = encryptionMethod,
            spekeKeyProvider = spekeKeyProvider ?: throw PulumiNullFieldException("spekeKeyProvider"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy