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

com.pulumi.awsnative.mediapackage.kotlin.inputs.PackagingConfigurationCmafEncryptionArgs.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.PackagingConfigurationCmafEncryptionArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A CMAF encryption configuration.
 * @property spekeKeyProvider Parameters for the SPEKE key provider.
 */
public data class PackagingConfigurationCmafEncryptionArgs(
    public val spekeKeyProvider: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.PackagingConfigurationCmafEncryptionArgs =
        com.pulumi.awsnative.mediapackage.inputs.PackagingConfigurationCmafEncryptionArgs.builder()
            .spekeKeyProvider(
                spekeKeyProvider.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PackagingConfigurationCmafEncryptionArgs].
 */
@PulumiTagMarker
public class PackagingConfigurationCmafEncryptionArgsBuilder internal constructor() {
    private var spekeKeyProvider: Output? = null

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

    /**
     * @param value Parameters for the SPEKE key provider.
     */
    @JvmName("pelraqwsmwhrprfe")
    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("xxdkjeovxodxpmlk")
    public suspend fun spekeKeyProvider(argument: suspend PackagingConfigurationSpekeKeyProviderArgsBuilder.() -> Unit) {
        val toBeMapped = PackagingConfigurationSpekeKeyProviderArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.spekeKeyProvider = mapped
    }

    internal fun build(): PackagingConfigurationCmafEncryptionArgs =
        PackagingConfigurationCmafEncryptionArgs(
            spekeKeyProvider = spekeKeyProvider ?: throw PulumiNullFieldException("spekeKeyProvider"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy