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

com.pulumi.gcp.developerconnect.kotlin.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.developerconnect.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.developerconnect.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.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 oauthTokenSecretVersion Required. A SecretManager resource containing the OAuth token
 * that authorizes the connection.
 * Format: `projects/*/secrets/*/versions/*`.
 * @property username (Output)
 * Output only. The username associated with this token.
 * */*/*/
 */
public data class ConnectionGithubConfigAuthorizerCredentialArgs(
    public val oauthTokenSecretVersion: Output,
    public val username: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.developerconnect.inputs.ConnectionGithubConfigAuthorizerCredentialArgs =
        com.pulumi.gcp.developerconnect.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.builder()
            .oauthTokenSecretVersion(oauthTokenSecretVersion.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionGithubConfigAuthorizerCredentialArgs].
 */
@PulumiTagMarker
public class ConnectionGithubConfigAuthorizerCredentialArgsBuilder internal constructor() {
    private var oauthTokenSecretVersion: Output? = null

    private var username: Output? = null

    /**
     * @param value Required. A SecretManager resource containing the OAuth token
     * that authorizes the connection.
     * Format: `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("khocnnxhtrdrtwlk")
    public suspend fun oauthTokenSecretVersion(`value`: Output) {
        this.oauthTokenSecretVersion = value
    }

    /**
     * @param value (Output)
     * Output only. The username associated with this token.
     */
    @JvmName("ylnwaiesqffpwusf")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Required. A SecretManager resource containing the OAuth token
     * that authorizes the connection.
     * Format: `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("hamcutxicndukias")
    public suspend fun oauthTokenSecretVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthTokenSecretVersion = mapped
    }

    /**
     * @param value (Output)
     * Output only. The username associated with this token.
     */
    @JvmName("aruvppacvbeostlc")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): ConnectionGithubConfigAuthorizerCredentialArgs =
        ConnectionGithubConfigAuthorizerCredentialArgs(
            oauthTokenSecretVersion = oauthTokenSecretVersion ?: throw
                PulumiNullFieldException("oauthTokenSecretVersion"),
            username = username,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy