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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterSpecIngressPolicyIngressFromArgs.kt Maven / Gradle / Ivy

@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.ServicePerimeterSpecIngressPolicyIngressFromArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property identities A list of identities that are allowed access through this ingress policy.
 * Should be in the format of email address. The email address should represent
 * individual user or service account only.
 * @property identityType Specifies the type of identities that are allowed access from outside the
 * perimeter. If left unspecified, then members of `identities` field will be
 * allowed access.
 * Possible values are: `IDENTITY_TYPE_UNSPECIFIED`, `ANY_IDENTITY`, `ANY_USER_ACCOUNT`, `ANY_SERVICE_ACCOUNT`.
 * @property sources Sources that this `IngressPolicy` authorizes access from.
 * Structure is documented below.
 */
public data class ServicePerimeterSpecIngressPolicyIngressFromArgs(
    public val identities: Output>? = null,
    public val identityType: Output? = null,
    public val sources: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyIngressFromArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyIngressFromArgs.builder()
            .identities(identities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .identityType(identityType?.applyValue({ args0 -> args0 }))
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var identityType: Output? = null

    private var sources: Output>? = null

    /**
     * @param value A list of identities that are allowed access through this ingress policy.
     * Should be in the format of email address. The email address should represent
     * individual user or service account only.
     */
    @JvmName("qlbccojddywxfmli")
    public suspend fun identities(`value`: Output>) {
        this.identities = value
    }

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

    /**
     * @param values A list of identities that are allowed access through this ingress policy.
     * Should be in the format of email address. The email address should represent
     * individual user or service account only.
     */
    @JvmName("lowwlllaylkixwds")
    public suspend fun identities(values: List>) {
        this.identities = Output.all(values)
    }

    /**
     * @param value Specifies the type of identities that are allowed access from outside the
     * perimeter. If left unspecified, then members of `identities` field will be
     * allowed access.
     * Possible values are: `IDENTITY_TYPE_UNSPECIFIED`, `ANY_IDENTITY`, `ANY_USER_ACCOUNT`, `ANY_SERVICE_ACCOUNT`.
     */
    @JvmName("xcgafamncclflivg")
    public suspend fun identityType(`value`: Output) {
        this.identityType = value
    }

    /**
     * @param value Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("byvsibnmswkljjur")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("deccbxerrjfidrie")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value A list of identities that are allowed access through this ingress policy.
     * Should be in the format of email address. The email address should represent
     * individual user or service account only.
     */
    @JvmName("jajpdnmkesqjqred")
    public suspend fun identities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identities = mapped
    }

    /**
     * @param values A list of identities that are allowed access through this ingress policy.
     * Should be in the format of email address. The email address should represent
     * individual user or service account only.
     */
    @JvmName("cpifjtrirgxcvnsb")
    public suspend fun identities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identities = mapped
    }

    /**
     * @param value Specifies the type of identities that are allowed access from outside the
     * perimeter. If left unspecified, then members of `identities` field will be
     * allowed access.
     * Possible values are: `IDENTITY_TYPE_UNSPECIFIED`, `ANY_IDENTITY`, `ANY_USER_ACCOUNT`, `ANY_SERVICE_ACCOUNT`.
     */
    @JvmName("jhvwxiwbiolyngbl")
    public suspend fun identityType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityType = mapped
    }

    /**
     * @param value Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("idyfownxcglpusyf")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("uvgntagghejylkcp")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("aigpmbldmoypjadc")
    public suspend fun sources(vararg argument: suspend ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("esogefrvkmjhtacl")
    public suspend fun sources(argument: suspend ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values Sources that this `IngressPolicy` authorizes access from.
     * Structure is documented below.
     */
    @JvmName("myqqynwrnkpnqtja")
    public suspend fun sources(vararg values: ServicePerimeterSpecIngressPolicyIngressFromSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    internal fun build(): ServicePerimeterSpecIngressPolicyIngressFromArgs =
        ServicePerimeterSpecIngressPolicyIngressFromArgs(
            identities = identities,
            identityType = identityType,
            sources = sources,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy