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

com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs.EntitlementPrivilegedAccessArgs.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.12.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.EntitlementPrivilegedAccessArgs.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.jvm.JvmName

/**
 *
 * @property gcpIamAccess GcpIamAccess represents IAM based access control on a GCP resource. Refer to https://cloud.google.com/iam/docs to understand more about IAM.
 * Structure is documented below.
 */
public data class EntitlementPrivilegedAccessArgs(
    public val gcpIamAccess: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementPrivilegedAccessArgs =
        com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementPrivilegedAccessArgs.builder()
            .gcpIamAccess(gcpIamAccess.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EntitlementPrivilegedAccessArgs].
 */
@PulumiTagMarker
public class EntitlementPrivilegedAccessArgsBuilder internal constructor() {
    private var gcpIamAccess: Output? = null

    /**
     * @param value GcpIamAccess represents IAM based access control on a GCP resource. Refer to https://cloud.google.com/iam/docs to understand more about IAM.
     * Structure is documented below.
     */
    @JvmName("klateligcttpmxax")
    public suspend fun gcpIamAccess(`value`: Output) {
        this.gcpIamAccess = value
    }

    /**
     * @param value GcpIamAccess represents IAM based access control on a GCP resource. Refer to https://cloud.google.com/iam/docs to understand more about IAM.
     * Structure is documented below.
     */
    @JvmName("whelqpbnweyogcam")
    public suspend fun gcpIamAccess(`value`: EntitlementPrivilegedAccessGcpIamAccessArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gcpIamAccess = mapped
    }

    /**
     * @param argument GcpIamAccess represents IAM based access control on a GCP resource. Refer to https://cloud.google.com/iam/docs to understand more about IAM.
     * Structure is documented below.
     */
    @JvmName("bkonpaonkxivbbrs")
    public suspend fun gcpIamAccess(argument: suspend EntitlementPrivilegedAccessGcpIamAccessArgsBuilder.() -> Unit) {
        val toBeMapped = EntitlementPrivilegedAccessGcpIamAccessArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.gcpIamAccess = mapped
    }

    internal fun build(): EntitlementPrivilegedAccessArgs = EntitlementPrivilegedAccessArgs(
        gcpIamAccess = gcpIamAccess ?: throw PulumiNullFieldException("gcpIamAccess"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy