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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterSpecEgressPolicyArgs.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.ServicePerimeterSpecEgressPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property egressFrom Defines conditions on the source of a request causing this `EgressPolicy` to apply.
 * Structure is documented below.
 * @property egressTo Defines the conditions on the `ApiOperation` and destination resources that
 * cause this `EgressPolicy` to apply.
 * Structure is documented below.
 */
public data class ServicePerimeterSpecEgressPolicyArgs(
    public val egressFrom: Output? = null,
    public val egressTo: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecEgressPolicyArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecEgressPolicyArgs.builder()
            .egressFrom(egressFrom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .egressTo(egressTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServicePerimeterSpecEgressPolicyArgs].
 */
@PulumiTagMarker
public class ServicePerimeterSpecEgressPolicyArgsBuilder internal constructor() {
    private var egressFrom: Output? = null

    private var egressTo: Output? = null

    /**
     * @param value Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("xlquksxivyoshhjx")
    public suspend fun egressFrom(`value`: Output) {
        this.egressFrom = value
    }

    /**
     * @param value Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("pypertsqtseetebc")
    public suspend fun egressTo(`value`: Output) {
        this.egressTo = value
    }

    /**
     * @param value Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("nrpeypqcwgahlnpw")
    public suspend fun egressFrom(`value`: ServicePerimeterSpecEgressPolicyEgressFromArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressFrom = mapped
    }

    /**
     * @param argument Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("uwdqbeqfeyoxdnmx")
    public suspend fun egressFrom(argument: suspend ServicePerimeterSpecEgressPolicyEgressFromArgsBuilder.() -> Unit) {
        val toBeMapped = ServicePerimeterSpecEgressPolicyEgressFromArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.egressFrom = mapped
    }

    /**
     * @param value Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("uhvmbjbahhhobnpo")
    public suspend fun egressTo(`value`: ServicePerimeterSpecEgressPolicyEgressToArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressTo = mapped
    }

    /**
     * @param argument Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("kbkdmnojsvnhgtic")
    public suspend fun egressTo(argument: suspend ServicePerimeterSpecEgressPolicyEgressToArgsBuilder.() -> Unit) {
        val toBeMapped = ServicePerimeterSpecEgressPolicyEgressToArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.egressTo = mapped
    }

    internal fun build(): ServicePerimeterSpecEgressPolicyArgs = ServicePerimeterSpecEgressPolicyArgs(
        egressFrom = egressFrom,
        egressTo = egressTo,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy