com.pulumi.gcp.serviceaccount.kotlin.inputs.GetAccountAccessTokenPlainArgs.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.serviceaccount.kotlin.inputs
import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAccountAccessToken.
* @property delegates Delegate chain of approvals needed to perform full impersonation. Specify the fully qualified service account name. (e.g. `["projects/-/serviceAccounts/delegate-svc-account@project-id.iam.gserviceaccount.com"]`)
* @property lifetime Lifetime of the impersonated token (defaults to its max: `3600s`).
* @property scopes The scopes the new credential should have (e.g. `["cloud-platform"]`)
* @property targetServiceAccount The service account _to_ impersonate (e.g. `[email protected]`)
*/
public data class GetAccountAccessTokenPlainArgs(
public val delegates: List? = null,
public val lifetime: String? = null,
public val scopes: List,
public val targetServiceAccount: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenPlainArgs =
com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenPlainArgs.builder()
.delegates(delegates?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.lifetime(lifetime?.let({ args0 -> args0 }))
.scopes(scopes.let({ args0 -> args0.map({ args0 -> args0 }) }))
.targetServiceAccount(targetServiceAccount.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetAccountAccessTokenPlainArgs].
*/
@PulumiTagMarker
public class GetAccountAccessTokenPlainArgsBuilder internal constructor() {
private var delegates: List? = null
private var lifetime: String? = null
private var scopes: List? = null
private var targetServiceAccount: String? = null
/**
* @param value Delegate chain of approvals needed to perform full impersonation. Specify the fully qualified service account name. (e.g. `["projects/-/serviceAccounts/delegate-svc-account@project-id.iam.gserviceaccount.com"]`)
*/
@JvmName("bhuneubuwihsgwrx")
public suspend fun delegates(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.delegates = mapped
}
/**
* @param values Delegate chain of approvals needed to perform full impersonation. Specify the fully qualified service account name. (e.g. `["projects/-/serviceAccounts/delegate-svc-account@project-id.iam.gserviceaccount.com"]`)
*/
@JvmName("rbwcyvlkkcymdjmi")
public suspend fun delegates(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.delegates = mapped
}
/**
* @param value Lifetime of the impersonated token (defaults to its max: `3600s`).
*/
@JvmName("pbaershkucqyjsqb")
public suspend fun lifetime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.lifetime = mapped
}
/**
* @param value The scopes the new credential should have (e.g. `["cloud-platform"]`)
*/
@JvmName("rwpcfustxeowyfop")
public suspend fun scopes(`value`: List) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scopes = mapped
}
/**
* @param values The scopes the new credential should have (e.g. `["cloud-platform"]`)
*/
@JvmName("kigdqcnmsrjtmbee")
public suspend fun scopes(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.scopes = mapped
}
/**
* @param value The service account _to_ impersonate (e.g. `[email protected]`)
*/
@JvmName("kempcujcvcejcbqw")
public suspend fun targetServiceAccount(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.targetServiceAccount = mapped
}
internal fun build(): GetAccountAccessTokenPlainArgs = GetAccountAccessTokenPlainArgs(
delegates = delegates,
lifetime = lifetime,
scopes = scopes ?: throw PulumiNullFieldException("scopes"),
targetServiceAccount = targetServiceAccount ?: throw
PulumiNullFieldException("targetServiceAccount"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy