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

com.pulumi.awsnative.mediapackage.kotlin.inputs.OriginEndpointAuthorizationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediapackage.kotlin.inputs

import com.pulumi.awsnative.mediapackage.inputs.OriginEndpointAuthorizationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * CDN Authorization credentials
 * @property cdnIdentifierSecret The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.
 * @property secretsRoleArn The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.
 */
public data class OriginEndpointAuthorizationArgs(
    public val cdnIdentifierSecret: Output,
    public val secretsRoleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.inputs.OriginEndpointAuthorizationArgs =
        com.pulumi.awsnative.mediapackage.inputs.OriginEndpointAuthorizationArgs.builder()
            .cdnIdentifierSecret(cdnIdentifierSecret.applyValue({ args0 -> args0 }))
            .secretsRoleArn(secretsRoleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OriginEndpointAuthorizationArgs].
 */
@PulumiTagMarker
public class OriginEndpointAuthorizationArgsBuilder internal constructor() {
    private var cdnIdentifierSecret: Output? = null

    private var secretsRoleArn: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.
     */
    @JvmName("tmmcniwsdehrforr")
    public suspend fun cdnIdentifierSecret(`value`: Output) {
        this.cdnIdentifierSecret = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.
     */
    @JvmName("rvnyfimjlrocjlkm")
    public suspend fun secretsRoleArn(`value`: Output) {
        this.secretsRoleArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.
     */
    @JvmName("vtfxbmhjpfpnxfsd")
    public suspend fun cdnIdentifierSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cdnIdentifierSecret = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.
     */
    @JvmName("ciebyhvfvugingog")
    public suspend fun secretsRoleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretsRoleArn = mapped
    }

    internal fun build(): OriginEndpointAuthorizationArgs = OriginEndpointAuthorizationArgs(
        cdnIdentifierSecret = cdnIdentifierSecret ?: throw PulumiNullFieldException("cdnIdentifierSecret"),
        secretsRoleArn = secretsRoleArn ?: throw PulumiNullFieldException("secretsRoleArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy