
com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointDashEncryptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediapackage.kotlin.inputs
import com.pulumi.awsnative.mediapackage.inputs.OriginEndpointDashEncryptionArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
* @property keyRotationIntervalSeconds Time (in seconds) between each encryption key rotation.
* @property spekeKeyProvider Parameters for the SPEKE key provider.
*/
public data class OriginEndpointDashEncryptionArgs(
public val keyRotationIntervalSeconds: Output? = null,
public val spekeKeyProvider: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.OriginEndpointDashEncryptionArgs =
com.pulumi.awsnative.mediapackage.inputs.OriginEndpointDashEncryptionArgs.builder()
.keyRotationIntervalSeconds(keyRotationIntervalSeconds?.applyValue({ args0 -> args0 }))
.spekeKeyProvider(
spekeKeyProvider.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [OriginEndpointDashEncryptionArgs].
*/
@PulumiTagMarker
public class OriginEndpointDashEncryptionArgsBuilder internal constructor() {
private var keyRotationIntervalSeconds: Output? = null
private var spekeKeyProvider: Output? = null
/**
* @param value Time (in seconds) between each encryption key rotation.
*/
@JvmName("fvwjbgomxmpheixg")
public suspend fun keyRotationIntervalSeconds(`value`: Output) {
this.keyRotationIntervalSeconds = value
}
/**
* @param value Parameters for the SPEKE key provider.
*/
@JvmName("mmywvtlnnemeytic")
public suspend fun spekeKeyProvider(`value`: Output) {
this.spekeKeyProvider = value
}
/**
* @param value Time (in seconds) between each encryption key rotation.
*/
@JvmName("cvhvuupyajdhoapn")
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("kgeefaewmjnmqwqp")
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("fjttvnafkhlcxyni")
public suspend fun spekeKeyProvider(argument: suspend OriginEndpointSpekeKeyProviderArgsBuilder.() -> Unit) {
val toBeMapped = OriginEndpointSpekeKeyProviderArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spekeKeyProvider = mapped
}
internal fun build(): OriginEndpointDashEncryptionArgs = OriginEndpointDashEncryptionArgs(
keyRotationIntervalSeconds = keyRotationIntervalSeconds,
spekeKeyProvider = spekeKeyProvider ?: throw PulumiNullFieldException("spekeKeyProvider"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy