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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildAvailableSecretsSecretManagerArgs.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.TriggerBuildAvailableSecretsSecretManagerArgs.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 env Environment variable name to associate with the secret. Secret environment
 * variables must be unique across all of a build's secrets, and must be used
 * by at least one build step.
 * @property versionName Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
 * */*/*/
 */
public data class TriggerBuildAvailableSecretsSecretManagerArgs(
    public val env: Output,
    public val versionName: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildAvailableSecretsSecretManagerArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerBuildAvailableSecretsSecretManagerArgs.builder()
            .env(env.applyValue({ args0 -> args0 }))
            .versionName(versionName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerBuildAvailableSecretsSecretManagerArgs].
 */
@PulumiTagMarker
public class TriggerBuildAvailableSecretsSecretManagerArgsBuilder internal constructor() {
    private var env: Output? = null

    private var versionName: Output? = null

    /**
     * @param value Environment variable name to associate with the secret. Secret environment
     * variables must be unique across all of a build's secrets, and must be used
     * by at least one build step.
     */
    @JvmName("icwneqaynxdiyycm")
    public suspend fun env(`value`: Output) {
        this.env = value
    }

    /**
     * @param value Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
     * */*/*/
     */
    @JvmName("xhgurgsydpflqmyu")
    public suspend fun versionName(`value`: Output) {
        this.versionName = value
    }

    /**
     * @param value Environment variable name to associate with the secret. Secret environment
     * variables must be unique across all of a build's secrets, and must be used
     * by at least one build step.
     */
    @JvmName("yqwwpxpgvbskwnoc")
    public suspend fun env(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.env = mapped
    }

    /**
     * @param value Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
     * */*/*/
     */
    @JvmName("xfvoiapbnuoeynge")
    public suspend fun versionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.versionName = mapped
    }

    internal fun build(): TriggerBuildAvailableSecretsSecretManagerArgs =
        TriggerBuildAvailableSecretsSecretManagerArgs(
            env = env ?: throw PulumiNullFieldException("env"),
            versionName = versionName ?: throw PulumiNullFieldException("versionName"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy