com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionAuthConfigOauth2JwtBearerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.integrationconnectors.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2JwtBearerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property clientKey Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate.
* This private key will be used to sign JWTs used for the jwt-bearer authorization grant.
* Specified in the form as: projects/*/secrets/*/versions/*.
* @property jwtClaims JwtClaims providers fields to generate the token.
* */*/*/
*/
public data class ConnectionAuthConfigOauth2JwtBearerArgs(
public val clientKey: Output? = null,
public val jwtClaims: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2JwtBearerArgs =
com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2JwtBearerArgs.builder()
.clientKey(clientKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.jwtClaims(jwtClaims?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnectionAuthConfigOauth2JwtBearerArgs].
*/
@PulumiTagMarker
public class ConnectionAuthConfigOauth2JwtBearerArgsBuilder internal constructor() {
private var clientKey: Output? = null
private var jwtClaims: Output? = null
/**
* @param value Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate.
* This private key will be used to sign JWTs used for the jwt-bearer authorization grant.
* Specified in the form as: projects/*/secrets/*/versions/*.
* */*/*/
*/
@JvmName("pjpscjmavpvinglg")
public suspend fun clientKey(`value`: Output) {
this.clientKey = value
}
/**
* @param value JwtClaims providers fields to generate the token.
*/
@JvmName("vffncxnpwcvtqxgu")
public suspend fun jwtClaims(`value`: Output) {
this.jwtClaims = value
}
/**
* @param value Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate.
* This private key will be used to sign JWTs used for the jwt-bearer authorization grant.
* Specified in the form as: projects/*/secrets/*/versions/*.
* */*/*/
*/
@JvmName("yjgrihbsnwwufumr")
public suspend fun clientKey(`value`: ConnectionAuthConfigOauth2JwtBearerClientKeyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientKey = mapped
}
/**
* @param argument Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate.
* This private key will be used to sign JWTs used for the jwt-bearer authorization grant.
* Specified in the form as: projects/*/secrets/*/versions/*.
* */*/*/
*/
@JvmName("cmmbjtbsiguyebju")
public suspend fun clientKey(argument: suspend ConnectionAuthConfigOauth2JwtBearerClientKeyArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionAuthConfigOauth2JwtBearerClientKeyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clientKey = mapped
}
/**
* @param value JwtClaims providers fields to generate the token.
*/
@JvmName("hfmnlpvsldwxirmw")
public suspend fun jwtClaims(`value`: ConnectionAuthConfigOauth2JwtBearerJwtClaimsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.jwtClaims = mapped
}
/**
* @param argument JwtClaims providers fields to generate the token.
*/
@JvmName("yaqmwcxdctnhdkyp")
public suspend fun jwtClaims(argument: suspend ConnectionAuthConfigOauth2JwtBearerJwtClaimsArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionAuthConfigOauth2JwtBearerJwtClaimsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.jwtClaims = mapped
}
internal fun build(): ConnectionAuthConfigOauth2JwtBearerArgs =
ConnectionAuthConfigOauth2JwtBearerArgs(
clientKey = clientKey,
jwtClaims = jwtClaims,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy