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

com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs.EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs.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.EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs.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 conditionExpression The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement would be able to access the resource only if this condition evaluates to true for their request.
 * https://cloud.google.com/iam/docs/conditions-overview#attributes.
 * @property role IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.
 */
public data class EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs(
    public val conditionExpression: Output? = null,
    public val role: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs =
        com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs.builder()
            .conditionExpression(conditionExpression?.applyValue({ args0 -> args0 }))
            .role(role.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs].
 */
@PulumiTagMarker
public class EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgsBuilder internal constructor() {
    private var conditionExpression: Output? = null

    private var role: Output? = null

    /**
     * @param value The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement would be able to access the resource only if this condition evaluates to true for their request.
     * https://cloud.google.com/iam/docs/conditions-overview#attributes.
     */
    @JvmName("okfbxodgrewgtaaq")
    public suspend fun conditionExpression(`value`: Output) {
        this.conditionExpression = value
    }

    /**
     * @param value IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.
     */
    @JvmName("reomuyqmojgaktnj")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement would be able to access the resource only if this condition evaluates to true for their request.
     * https://cloud.google.com/iam/docs/conditions-overview#attributes.
     */
    @JvmName("skolwsfonuotajhk")
    public suspend fun conditionExpression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditionExpression = mapped
    }

    /**
     * @param value IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.
     */
    @JvmName("hfcqvpmttinuwlcq")
    public suspend fun role(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.role = mapped
    }

    internal fun build(): EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs =
        EntitlementPrivilegedAccessGcpIamAccessRoleBindingArgs(
            conditionExpression = conditionExpression,
            role = role ?: throw PulumiNullFieldException("role"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy