![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowSourceEncryption.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediaconnect.kotlin.outputs
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowSourceEncryptionAlgorithm
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowSourceEncryptionKeyType
import kotlin.String
import kotlin.Suppress
/**
* Information about the encryption of the flow.
* @property algorithm The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
* @property constantInitializationVector A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
* @property deviceId The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
* @property keyType The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
* @property region The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
* @property resourceId An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
* @property roleArn The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
* @property secretArn The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
* @property url The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
*/
public data class FlowSourceEncryption(
public val algorithm: FlowSourceEncryptionAlgorithm? = null,
public val constantInitializationVector: String? = null,
public val deviceId: String? = null,
public val keyType: FlowSourceEncryptionKeyType? = null,
public val region: String? = null,
public val resourceId: String? = null,
public val roleArn: String,
public val secretArn: String? = null,
public val url: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.mediaconnect.outputs.FlowSourceEncryption): FlowSourceEncryption = FlowSourceEncryption(
algorithm = javaType.algorithm().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowSourceEncryptionAlgorithm.Companion.toKotlin(args0)
})
}).orElse(null),
constantInitializationVector = javaType.constantInitializationVector().map({ args0 ->
args0
}).orElse(null),
deviceId = javaType.deviceId().map({ args0 -> args0 }).orElse(null),
keyType = javaType.keyType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowSourceEncryptionKeyType.Companion.toKotlin(args0)
})
}).orElse(null),
region = javaType.region().map({ args0 -> args0 }).orElse(null),
resourceId = javaType.resourceId().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn(),
secretArn = javaType.secretArn().map({ args0 -> args0 }).orElse(null),
url = javaType.url().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy