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

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

package com.pulumi.vault.gcp.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.gcp.inputs.SecretStaticAccountBindingArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property resource Resource or resource path for which IAM policy information will be bound. The resource path may be specified in a few different [formats](https://www.vaultproject.io/docs/secrets/gcp/index.html#bindings).
 * @property roles List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
 */
public data class SecretStaticAccountBindingArgs(
    public val resource: Output,
    public val roles: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.gcp.inputs.SecretStaticAccountBindingArgs =
        com.pulumi.vault.gcp.inputs.SecretStaticAccountBindingArgs.builder()
            .resource(resource.applyValue({ args0 -> args0 }))
            .roles(roles.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SecretStaticAccountBindingArgs].
 */
@PulumiTagMarker
public class SecretStaticAccountBindingArgsBuilder internal constructor() {
    private var resource: Output? = null

    private var roles: Output>? = null

    /**
     * @param value Resource or resource path for which IAM policy information will be bound. The resource path may be specified in a few different [formats](https://www.vaultproject.io/docs/secrets/gcp/index.html#bindings).
     */
    @JvmName("saaurigwaovsvqsk")
    public suspend fun resource(`value`: Output) {
        this.resource = value
    }

    /**
     * @param value List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
     */
    @JvmName("fktuhxugcraoaryj")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

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

    /**
     * @param values List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
     */
    @JvmName("llmtggjsktugjhpj")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

    /**
     * @param value Resource or resource path for which IAM policy information will be bound. The resource path may be specified in a few different [formats](https://www.vaultproject.io/docs/secrets/gcp/index.html#bindings).
     */
    @JvmName("jnybttyycvsybosv")
    public suspend fun resource(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resource = mapped
    }

    /**
     * @param value List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
     */
    @JvmName("ydxojnovwoavguix")
    public suspend fun roles(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param values List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
     */
    @JvmName("vphexkiurowhslsx")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    internal fun build(): SecretStaticAccountBindingArgs = SecretStaticAccountBindingArgs(
        resource = resource ?: throw PulumiNullFieldException("resource"),
        roles = roles ?: throw PulumiNullFieldException("roles"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy