com.pulumi.gcp.cloudscheduler.kotlin.inputs.JobHttpTargetOidcTokenArgs.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.cloudscheduler.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOidcTokenArgs.builder
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
/**
*
* @property audience Audience to be used when generating OIDC token. If not specified,
* the URI specified in target will be used.
* @property serviceAccountEmail Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
public data class JobHttpTargetOidcTokenArgs(
public val audience: Output? = null,
public val serviceAccountEmail: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOidcTokenArgs =
com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOidcTokenArgs.builder()
.audience(audience?.applyValue({ args0 -> args0 }))
.serviceAccountEmail(serviceAccountEmail.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobHttpTargetOidcTokenArgs].
*/
@PulumiTagMarker
public class JobHttpTargetOidcTokenArgsBuilder internal constructor() {
private var audience: Output? = null
private var serviceAccountEmail: Output? = null
/**
* @param value Audience to be used when generating OIDC token. If not specified,
* the URI specified in target will be used.
*/
@JvmName("ndqbfoumjcdtbvhu")
public suspend fun audience(`value`: Output) {
this.audience = value
}
/**
* @param value Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
@JvmName("utndmpnykoqwyebu")
public suspend fun serviceAccountEmail(`value`: Output) {
this.serviceAccountEmail = value
}
/**
* @param value Audience to be used when generating OIDC token. If not specified,
* the URI specified in target will be used.
*/
@JvmName("hmcsjmgeoryookyw")
public suspend fun audience(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.audience = mapped
}
/**
* @param value Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
@JvmName("sllumeyycxwiufmn")
public suspend fun serviceAccountEmail(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceAccountEmail = mapped
}
internal fun build(): JobHttpTargetOidcTokenArgs = JobHttpTargetOidcTokenArgs(
audience = audience,
serviceAccountEmail = serviceAccountEmail ?: throw PulumiNullFieldException("serviceAccountEmail"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy