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

com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointSpekeKeyProvider.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediapackage.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
 * @property certificateArn An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service.
 * @property encryptionContractConfiguration Use `encryptionContractConfiguration` to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.
 * @property resourceId The resource ID to include in key requests.
 * @property roleArn An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
 * @property systemIds The system IDs to include in key requests.
 * @property url The URL of the external key provider service.
 */
public data class OriginEndpointSpekeKeyProvider(
    public val certificateArn: String? = null,
    public val encryptionContractConfiguration: OriginEndpointEncryptionContractConfiguration? = null,
    public val resourceId: String,
    public val roleArn: String,
    public val systemIds: List,
    public val url: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.mediapackage.outputs.OriginEndpointSpekeKeyProvider): OriginEndpointSpekeKeyProvider = OriginEndpointSpekeKeyProvider(
            certificateArn = javaType.certificateArn().map({ args0 -> args0 }).orElse(null),
            encryptionContractConfiguration = javaType.encryptionContractConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediapackage.kotlin.outputs.OriginEndpointEncryptionContractConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            resourceId = javaType.resourceId(),
            roleArn = javaType.roleArn(),
            systemIds = javaType.systemIds().map({ args0 -> args0 }),
            url = javaType.url(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy