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

com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs.EntitlementEligibleUserArgs.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.privilegedaccessmanager.kotlin.inputs

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

/**
 *
 * @property principals Users who are being allowed for the operation. Each entry should be a valid v1 IAM Principal Identifier. Format for these is documented at "https://cloud.google.com/iam/docs/principal-identifiers#v1"
 */
public data class EntitlementEligibleUserArgs(
    public val principals: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementEligibleUserArgs =
        com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementEligibleUserArgs.builder()
            .principals(principals.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value Users who are being allowed for the operation. Each entry should be a valid v1 IAM Principal Identifier. Format for these is documented at "https://cloud.google.com/iam/docs/principal-identifiers#v1"
     */
    @JvmName("bfdppqvlveigtacl")
    public suspend fun principals(`value`: Output>) {
        this.principals = value
    }

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

    /**
     * @param values Users who are being allowed for the operation. Each entry should be a valid v1 IAM Principal Identifier. Format for these is documented at "https://cloud.google.com/iam/docs/principal-identifiers#v1"
     */
    @JvmName("otdhvcafbrtyhvoq")
    public suspend fun principals(values: List>) {
        this.principals = Output.all(values)
    }

    /**
     * @param value Users who are being allowed for the operation. Each entry should be a valid v1 IAM Principal Identifier. Format for these is documented at "https://cloud.google.com/iam/docs/principal-identifiers#v1"
     */
    @JvmName("vnskdvrrqoagftap")
    public suspend fun principals(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param values Users who are being allowed for the operation. Each entry should be a valid v1 IAM Principal Identifier. Format for these is documented at "https://cloud.google.com/iam/docs/principal-identifiers#v1"
     */
    @JvmName("bmbsnadmwwqjacdg")
    public suspend fun principals(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    internal fun build(): EntitlementEligibleUserArgs = EntitlementEligibleUserArgs(
        principals = principals ?: throw PulumiNullFieldException("principals"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy