
com.pulumi.awsnative.verifiedpermissions.kotlin.inputs.IdentitySourceOpenIdConnectConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.verifiedpermissions.kotlin.inputs
import com.pulumi.awsnative.verifiedpermissions.inputs.IdentitySourceOpenIdConnectConfigurationArgs.builder
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property entityIdPrefix
* @property groupConfiguration
* @property issuer
* @property tokenSelection
*/
public data class IdentitySourceOpenIdConnectConfigurationArgs(
public val entityIdPrefix: Output? = null,
public val groupConfiguration: Output? = null,
public val issuer: Output,
public val tokenSelection: Output>,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.verifiedpermissions.inputs.IdentitySourceOpenIdConnectConfigurationArgs =
com.pulumi.awsnative.verifiedpermissions.inputs.IdentitySourceOpenIdConnectConfigurationArgs.builder()
.entityIdPrefix(entityIdPrefix?.applyValue({ args0 -> args0 }))
.groupConfiguration(
groupConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.issuer(issuer.applyValue({ args0 -> args0 }))
.tokenSelection(
tokenSelection.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
).build()
}
/**
* Builder for [IdentitySourceOpenIdConnectConfigurationArgs].
*/
@PulumiTagMarker
public class IdentitySourceOpenIdConnectConfigurationArgsBuilder internal constructor() {
private var entityIdPrefix: Output? = null
private var groupConfiguration: Output? = null
private var issuer: Output? = null
private var tokenSelection:
Output>? =
null
/**
* @param value
*/
@JvmName("pnhvijfxojepwlmo")
public suspend fun entityIdPrefix(`value`: Output) {
this.entityIdPrefix = value
}
/**
* @param value
*/
@JvmName("hnxaptyggtpmxuqg")
public suspend fun groupConfiguration(`value`: Output) {
this.groupConfiguration = value
}
/**
* @param value
*/
@JvmName("ruguqbqblrwgyiln")
public suspend fun issuer(`value`: Output) {
this.issuer = value
}
/**
* @param value
*/
@JvmName("oocmpbjcvaherujx")
public suspend fun tokenSelection(`value`: Output>) {
this.tokenSelection = value
}
/**
* @param value
*/
@JvmName("hfxrlewoutixooof")
public suspend fun entityIdPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.entityIdPrefix = mapped
}
/**
* @param value
*/
@JvmName("wlyjbeuglraqxbqm")
public suspend fun groupConfiguration(`value`: IdentitySourceOpenIdConnectGroupConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupConfiguration = mapped
}
/**
* @param argument
*/
@JvmName("sxowkwldoqylastx")
public suspend fun groupConfiguration(argument: suspend IdentitySourceOpenIdConnectGroupConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = IdentitySourceOpenIdConnectGroupConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.groupConfiguration = mapped
}
/**
* @param value
*/
@JvmName("orkxjpvoycqnlsim")
public suspend fun issuer(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.issuer = mapped
}
/**
* @param value
*/
@JvmName("shtukwblodtusgge")
public suspend fun tokenSelection(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tokenSelection = mapped
}
/**
* @param value
*/
@JvmName("qpexynjouegunmbo")
public fun tokenSelection(`value`: IdentitySourceOpenIdConnectTokenSelection0PropertiesArgs) {
val toBeMapped = Either.ofLeft<
IdentitySourceOpenIdConnectTokenSelection0PropertiesArgs,
IdentitySourceOpenIdConnectTokenSelection1PropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tokenSelection = mapped
}
/**
* @param value
*/
@JvmName("ivwaodicqbsnpitm")
public fun tokenSelection(`value`: IdentitySourceOpenIdConnectTokenSelection1PropertiesArgs) {
val toBeMapped = Either.ofRight<
IdentitySourceOpenIdConnectTokenSelection0PropertiesArgs,
IdentitySourceOpenIdConnectTokenSelection1PropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tokenSelection = mapped
}
internal fun build(): IdentitySourceOpenIdConnectConfigurationArgs =
IdentitySourceOpenIdConnectConfigurationArgs(
entityIdPrefix = entityIdPrefix,
groupConfiguration = groupConfiguration,
issuer = issuer ?: throw PulumiNullFieldException("issuer"),
tokenSelection = tokenSelection ?: throw PulumiNullFieldException("tokenSelection"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy