
com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointHlsEncryptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediapackage.kotlin.inputs
import com.pulumi.awsnative.mediapackage.inputs.OriginEndpointHlsEncryptionArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.enums.OriginEndpointHlsEncryptionEncryptionMethod
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* An HTTP Live Streaming (HLS) encryption configuration.
* @property constantInitializationVector A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
* @property encryptionMethod The encryption method to use.
* @property keyRotationIntervalSeconds Interval (in seconds) between each encryption key rotation.
* @property repeatExtXKey When enabled, the EXT-X-KEY tag will be repeated in output manifests.
* @property spekeKeyProvider Parameters for the SPEKE key provider.
*/
public data class OriginEndpointHlsEncryptionArgs(
public val constantInitializationVector: Output? = null,
public val encryptionMethod: Output? = null,
public val keyRotationIntervalSeconds: Output? = null,
public val repeatExtXKey: Output? = null,
public val spekeKeyProvider: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.OriginEndpointHlsEncryptionArgs =
com.pulumi.awsnative.mediapackage.inputs.OriginEndpointHlsEncryptionArgs.builder()
.constantInitializationVector(constantInitializationVector?.applyValue({ args0 -> args0 }))
.encryptionMethod(encryptionMethod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.keyRotationIntervalSeconds(keyRotationIntervalSeconds?.applyValue({ args0 -> args0 }))
.repeatExtXKey(repeatExtXKey?.applyValue({ args0 -> args0 }))
.spekeKeyProvider(
spekeKeyProvider.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [OriginEndpointHlsEncryptionArgs].
*/
@PulumiTagMarker
public class OriginEndpointHlsEncryptionArgsBuilder internal constructor() {
private var constantInitializationVector: Output? = null
private var encryptionMethod: Output? = null
private var keyRotationIntervalSeconds: Output? = null
private var repeatExtXKey: Output? = null
private var spekeKeyProvider: Output? = null
/**
* @param value A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
*/
@JvmName("dbovgbaqlmcxtdvf")
public suspend fun constantInitializationVector(`value`: Output) {
this.constantInitializationVector = value
}
/**
* @param value The encryption method to use.
*/
@JvmName("bakukegxrbeidwnv")
public suspend fun encryptionMethod(`value`: Output) {
this.encryptionMethod = value
}
/**
* @param value Interval (in seconds) between each encryption key rotation.
*/
@JvmName("qlbhxnswxvsoraot")
public suspend fun keyRotationIntervalSeconds(`value`: Output) {
this.keyRotationIntervalSeconds = value
}
/**
* @param value When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
@JvmName("tqhtqhdkulcmxgrk")
public suspend fun repeatExtXKey(`value`: Output) {
this.repeatExtXKey = value
}
/**
* @param value Parameters for the SPEKE key provider.
*/
@JvmName("xfdupmonmheqywsc")
public suspend fun spekeKeyProvider(`value`: Output) {
this.spekeKeyProvider = value
}
/**
* @param value A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
*/
@JvmName("nsyqvyftjyqsinqt")
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("qefmumvpakjnetjg")
public suspend fun encryptionMethod(`value`: OriginEndpointHlsEncryptionEncryptionMethod?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryptionMethod = mapped
}
/**
* @param value Interval (in seconds) between each encryption key rotation.
*/
@JvmName("ivxfertuvpljdcrj")
public suspend fun keyRotationIntervalSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyRotationIntervalSeconds = mapped
}
/**
* @param value When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
@JvmName("dpntsaodhsyyeigj")
public suspend fun repeatExtXKey(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repeatExtXKey = mapped
}
/**
* @param value Parameters for the SPEKE key provider.
*/
@JvmName("bjbslbtvsnojimma")
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("whseekyhoupfrbey")
public suspend fun spekeKeyProvider(argument: suspend OriginEndpointSpekeKeyProviderArgsBuilder.() -> Unit) {
val toBeMapped = OriginEndpointSpekeKeyProviderArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spekeKeyProvider = mapped
}
internal fun build(): OriginEndpointHlsEncryptionArgs = OriginEndpointHlsEncryptionArgs(
constantInitializationVector = constantInitializationVector,
encryptionMethod = encryptionMethod,
keyRotationIntervalSeconds = keyRotationIntervalSeconds,
repeatExtXKey = repeatExtXKey,
spekeKeyProvider = spekeKeyProvider ?: throw PulumiNullFieldException("spekeKeyProvider"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy