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

com.pulumi.gcp.secretmanager.kotlin.inputs.GetSecretVersionAccessPlainArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.secretmanager.kotlin.inputs

import com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs.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

/**
 * A collection of arguments for invoking getSecretVersionAccess.
 * @property project The project to get the secret version for. If it
 * is not provided, the provider project is used.
 * @property secret The secret to get the secret version for.
 * @property version The version of the secret to get. If it
 * is not provided, the latest version is retrieved.
 */
public data class GetSecretVersionAccessPlainArgs(
    public val project: String? = null,
    public val secret: String,
    public val version: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs =
        com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs.builder()
            .project(project?.let({ args0 -> args0 }))
            .secret(secret.let({ args0 -> args0 }))
            .version(version?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetSecretVersionAccessPlainArgs].
 */
@PulumiTagMarker
public class GetSecretVersionAccessPlainArgsBuilder internal constructor() {
    private var project: String? = null

    private var secret: String? = null

    private var version: String? = null

    /**
     * @param value The project to get the secret version for. If it
     * is not provided, the provider project is used.
     */
    @JvmName("klgkwxquwxaompwd")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value The secret to get the secret version for.
     */
    @JvmName("pwpfxhiguupsbbdv")
    public suspend fun secret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.secret = mapped
    }

    /**
     * @param value The version of the secret to get. If it
     * is not provided, the latest version is retrieved.
     */
    @JvmName("khklqdxgbaqinsjk")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.version = mapped
    }

    internal fun build(): GetSecretVersionAccessPlainArgs = GetSecretVersionAccessPlainArgs(
        project = project,
        secret = secret ?: throw PulumiNullFieldException("secret"),
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy