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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildAvailableSecretsArgs.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.cloudbuild.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerBuildAvailableSecretsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property secretManagers Pairs a secret environment variable with a SecretVersion in Secret Manager.
 * Structure is documented below.
 */
public data class TriggerBuildAvailableSecretsArgs(
    public val secretManagers: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildAvailableSecretsArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerBuildAvailableSecretsArgs.builder()
            .secretManagers(
                secretManagers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TriggerBuildAvailableSecretsArgs].
 */
@PulumiTagMarker
public class TriggerBuildAvailableSecretsArgsBuilder internal constructor() {
    private var secretManagers: Output>? = null

    /**
     * @param value Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("bxgcsurvqsvlkbyd")
    public suspend fun secretManagers(`value`: Output>) {
        this.secretManagers = value
    }

    @JvmName("eqqcihiijkthohpc")
    public suspend fun secretManagers(vararg values: Output) {
        this.secretManagers = Output.all(values.asList())
    }

    /**
     * @param values Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("hockykeefqrcdwln")
    public suspend fun secretManagers(values: List>) {
        this.secretManagers = Output.all(values)
    }

    /**
     * @param value Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("tfloesxmtxrlkgek")
    public suspend fun secretManagers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretManagers = mapped
    }

    /**
     * @param argument Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("mvnkighegjnxfawp")
    public suspend fun secretManagers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TriggerBuildAvailableSecretsSecretManagerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.secretManagers = mapped
    }

    /**
     * @param argument Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("iytwtywpmunsvtrd")
    public suspend fun secretManagers(vararg argument: suspend TriggerBuildAvailableSecretsSecretManagerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TriggerBuildAvailableSecretsSecretManagerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.secretManagers = mapped
    }

    /**
     * @param argument Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("dcdwiwthjnqhuttu")
    public suspend fun secretManagers(argument: suspend TriggerBuildAvailableSecretsSecretManagerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TriggerBuildAvailableSecretsSecretManagerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.secretManagers = mapped
    }

    /**
     * @param values Pairs a secret environment variable with a SecretVersion in Secret Manager.
     * Structure is documented below.
     */
    @JvmName("wflakawagxmutvda")
    public suspend fun secretManagers(vararg values: TriggerBuildAvailableSecretsSecretManagerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretManagers = mapped
    }

    internal fun build(): TriggerBuildAvailableSecretsArgs = TriggerBuildAvailableSecretsArgs(
        secretManagers = secretManagers ?: throw PulumiNullFieldException("secretManagers"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy