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

com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputEncryption.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediaconnect.kotlin.outputs

import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputEncryptionAlgorithm
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputEncryptionKeyType
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 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 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.
 */
public data class FlowOutputEncryption(
    public val algorithm: FlowOutputEncryptionAlgorithm? = null,
    public val keyType: FlowOutputEncryptionKeyType? = null,
    public val roleArn: String,
    public val secretArn: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.mediaconnect.outputs.FlowOutputEncryption): FlowOutputEncryption = FlowOutputEncryption(
            algorithm = javaType.algorithm().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputEncryptionAlgorithm.Companion.toKotlin(args0)
                })
            }).orElse(null),
            keyType = javaType.keyType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputEncryptionKeyType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            roleArn = javaType.roleArn(),
            secretArn = javaType.secretArn(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy