All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.serviceaccount.kotlin.inputs.GetAccountJwtPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.serviceaccount.kotlin.inputs

import com.pulumi.gcp.serviceaccount.inputs.GetAccountJwtPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getAccountJwt.
 * @property delegates Delegate chain of approvals needed to perform full impersonation. Specify the fully qualified service account name.
 * @property expiresIn Number of seconds until the JWT expires. If set and non-zero an `exp` claim will be added to the payload derived from the current timestamp plus expires_in seconds.
 * @property payload The JSON-encoded JWT claims set to include in the self-signed JWT.
 * @property targetServiceAccount The email of the service account that will sign the JWT.
 */
public data class GetAccountJwtPlainArgs(
    public val delegates: List? = null,
    public val expiresIn: Int? = null,
    public val payload: String,
    public val targetServiceAccount: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.serviceaccount.inputs.GetAccountJwtPlainArgs =
        com.pulumi.gcp.serviceaccount.inputs.GetAccountJwtPlainArgs.builder()
            .delegates(delegates?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .expiresIn(expiresIn?.let({ args0 -> args0 }))
            .payload(payload.let({ args0 -> args0 }))
            .targetServiceAccount(targetServiceAccount.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAccountJwtPlainArgs].
 */
@PulumiTagMarker
public class GetAccountJwtPlainArgsBuilder internal constructor() {
    private var delegates: List? = null

    private var expiresIn: Int? = null

    private var payload: String? = null

    private var targetServiceAccount: String? = null

    /**
     * @param value Delegate chain of approvals needed to perform full impersonation. Specify the fully qualified service account name.
     */
    @JvmName("hjevktajunjbbehf")
    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.
     */
    @JvmName("qsckxuonqgeiokvw")
    public suspend fun delegates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.delegates = mapped
    }

    /**
     * @param value Number of seconds until the JWT expires. If set and non-zero an `exp` claim will be added to the payload derived from the current timestamp plus expires_in seconds.
     */
    @JvmName("cslxlywenddwgwkl")
    public suspend fun expiresIn(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.expiresIn = mapped
    }

    /**
     * @param value The JSON-encoded JWT claims set to include in the self-signed JWT.
     */
    @JvmName("wbllsgyvewunfspy")
    public suspend fun payload(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.payload = mapped
    }

    /**
     * @param value The email of the service account that will sign the JWT.
     */
    @JvmName("marltkdagqgllfyt")
    public suspend fun targetServiceAccount(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.targetServiceAccount = mapped
    }

    internal fun build(): GetAccountJwtPlainArgs = GetAccountJwtPlainArgs(
        delegates = delegates,
        expiresIn = expiresIn,
        payload = payload ?: throw PulumiNullFieldException("payload"),
        targetServiceAccount = targetServiceAccount ?: throw
            PulumiNullFieldException("targetServiceAccount"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy