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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelCustomArgs.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.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelCustomArgs.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 expr Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
 * This page details the objects and attributes that are used to the build the CEL expressions for
 * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
 * Structure is documented below.
 */
public data class AccessLevelCustomArgs(
    public val expr: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelCustomArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelCustomArgs.builder()
            .expr(expr.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AccessLevelCustomArgs].
 */
@PulumiTagMarker
public class AccessLevelCustomArgsBuilder internal constructor() {
    private var expr: Output? = null

    /**
     * @param value Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("sdyjmkdmpionnjyr")
    public suspend fun expr(`value`: Output) {
        this.expr = value
    }

    /**
     * @param value Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("vgglgyqmjxnijdmr")
    public suspend fun expr(`value`: AccessLevelCustomExprArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expr = mapped
    }

    /**
     * @param argument Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("jvveqhykmhplnpfx")
    public suspend fun expr(argument: suspend AccessLevelCustomExprArgsBuilder.() -> Unit) {
        val toBeMapped = AccessLevelCustomExprArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.expr = mapped
    }

    internal fun build(): AccessLevelCustomArgs = AccessLevelCustomArgs(
        expr = expr ?: throw PulumiNullFieldException("expr"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy