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

com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointCmafEncryptionArgs.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.OriginEndpointCmafEncryptionArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.enums.OriginEndpointCmafEncryptionEncryptionMethod
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A Common Media Application Format (CMAF) encryption configuration.
 * @property constantInitializationVector An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
 * @property encryptionMethod The encryption method used
 * @property keyRotationIntervalSeconds Time (in seconds) between each encryption key rotation.
 * @property spekeKeyProvider Parameters for the SPEKE key provider.
 */
public data class OriginEndpointCmafEncryptionArgs(
    public val constantInitializationVector: Output? = null,
    public val encryptionMethod: Output? = null,
    public val keyRotationIntervalSeconds: Output? = null,
    public val spekeKeyProvider: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.OriginEndpointCmafEncryptionArgs =
        com.pulumi.awsnative.mediapackage.inputs.OriginEndpointCmafEncryptionArgs.builder()
            .constantInitializationVector(constantInitializationVector?.applyValue({ args0 -> args0 }))
            .encryptionMethod(encryptionMethod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyRotationIntervalSeconds(keyRotationIntervalSeconds?.applyValue({ args0 -> args0 }))
            .spekeKeyProvider(
                spekeKeyProvider.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var encryptionMethod: Output? = null

    private var keyRotationIntervalSeconds: Output? = null

    private var spekeKeyProvider: Output? = null

    /**
     * @param value An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
     */
    @JvmName("suqtndovrhobjqge")
    public suspend fun constantInitializationVector(`value`: Output) {
        this.constantInitializationVector = value
    }

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

    /**
     * @param value Time (in seconds) between each encryption key rotation.
     */
    @JvmName("rjqivslwoiyucjqc")
    public suspend fun keyRotationIntervalSeconds(`value`: Output) {
        this.keyRotationIntervalSeconds = value
    }

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

    /**
     * @param value An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
     */
    @JvmName("rbjggdkiswjblssd")
    public suspend fun constantInitializationVector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.constantInitializationVector = mapped
    }

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

    /**
     * @param value Time (in seconds) between each encryption key rotation.
     */
    @JvmName("tbtdkhgvsphsiepg")
    public suspend fun keyRotationIntervalSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyRotationIntervalSeconds = mapped
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy