![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.media.kotlin.inputs.ContentKeyPolicyPolicyOptionTokenRestrictionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.media.kotlin.inputs
import com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionTokenRestrictionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property alternateKeys One or more `alternate_key` block as defined above.
* @property audience The audience for the token.
* @property issuer The token issuer.
* @property openIdConnectDiscoveryDocument The OpenID connect discovery document.
* @property primaryRsaTokenKeyExponent The RSA parameter exponent.
* @property primaryRsaTokenKeyModulus The RSA parameter modulus.
* @property primarySymmetricTokenKey The key value of the key. Specifies a symmetric key for token validation.
* @property primaryX509TokenKeyRaw The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). Specifies a certificate for token validation.
* @property requiredClaims One or more `required_claim` blocks as defined above.
* @property tokenType The type of token. Supported values are `Jwt` or `Swt`.
* > **NOTE:** Each token_restriction can only have one type of primary verification key: if you want to use RSA you must provide `primary_rsa_token_key_exponent` and `primary_rsa_token_key_modulus`, if you want to use symmetric you need to provide `primary_symmetric_token_key` and for x509 you must provide `primary_x509_token_key_raw`. For more information about Token access please refer to
*/
public data class ContentKeyPolicyPolicyOptionTokenRestrictionArgs(
public val alternateKeys: Output>? = null,
public val audience: Output? = null,
public val issuer: Output? = null,
public val openIdConnectDiscoveryDocument: Output? = null,
public val primaryRsaTokenKeyExponent: Output? = null,
public val primaryRsaTokenKeyModulus: Output? = null,
public val primarySymmetricTokenKey: Output? = null,
public val primaryX509TokenKeyRaw: Output? = null,
public val requiredClaims: Output>? = null,
public val tokenType: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionTokenRestrictionArgs =
com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionTokenRestrictionArgs.builder()
.alternateKeys(
alternateKeys?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.audience(audience?.applyValue({ args0 -> args0 }))
.issuer(issuer?.applyValue({ args0 -> args0 }))
.openIdConnectDiscoveryDocument(openIdConnectDiscoveryDocument?.applyValue({ args0 -> args0 }))
.primaryRsaTokenKeyExponent(primaryRsaTokenKeyExponent?.applyValue({ args0 -> args0 }))
.primaryRsaTokenKeyModulus(primaryRsaTokenKeyModulus?.applyValue({ args0 -> args0 }))
.primarySymmetricTokenKey(primarySymmetricTokenKey?.applyValue({ args0 -> args0 }))
.primaryX509TokenKeyRaw(primaryX509TokenKeyRaw?.applyValue({ args0 -> args0 }))
.requiredClaims(
requiredClaims?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tokenType(tokenType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContentKeyPolicyPolicyOptionTokenRestrictionArgs].
*/
@PulumiTagMarker
public class ContentKeyPolicyPolicyOptionTokenRestrictionArgsBuilder internal constructor() {
private var alternateKeys:
Output>? = null
private var audience: Output? = null
private var issuer: Output? = null
private var openIdConnectDiscoveryDocument: Output? = null
private var primaryRsaTokenKeyExponent: Output? = null
private var primaryRsaTokenKeyModulus: Output? = null
private var primarySymmetricTokenKey: Output? = null
private var primaryX509TokenKeyRaw: Output? = null
private var requiredClaims:
Output>? = null
private var tokenType: Output? = null
/**
* @param value One or more `alternate_key` block as defined above.
*/
@JvmName("ydnnxnfsslxymrym")
public suspend fun alternateKeys(`value`: Output>) {
this.alternateKeys = value
}
@JvmName("iknvpoatcimcvira")
public suspend fun alternateKeys(vararg values: Output) {
this.alternateKeys = Output.all(values.asList())
}
/**
* @param values One or more `alternate_key` block as defined above.
*/
@JvmName("tfxdwforitpcmjvq")
public suspend fun alternateKeys(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy