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

com.pulumi.gcp.networksecurity.kotlin.inputs.AuthzPolicyHttpRuleFromArgs.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.20.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property notSources Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
 * Structure is documented below.
 * @property sources Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
 * Structure is documented below.
 */
public data class AuthzPolicyHttpRuleFromArgs(
    public val notSources: Output>? = null,
    public val sources: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromArgs.builder()
            .notSources(
                notSources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var sources: Output>? = null

    /**
     * @param value Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("iwsbptotceejulrl")
    public suspend fun notSources(`value`: Output>) {
        this.notSources = value
    }

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

    /**
     * @param values Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("gwikcanfuhnofcyy")
    public suspend fun notSources(values: List>) {
        this.notSources = Output.all(values)
    }

    /**
     * @param value Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("wuytittuleymlhbk")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("blpekrqhvvgkqqjy")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("tjaonqtbqfyinbrj")
    public suspend fun notSources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notSources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("nitmwcafkymlncuw")
    public suspend fun notSources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notSources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("nqjouvsqcurtdijr")
    public suspend fun notSources(vararg argument: suspend AuthzPolicyHttpRuleFromNotSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notSources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("ayinejwciewuwukt")
    public suspend fun notSources(argument: suspend AuthzPolicyHttpRuleFromNotSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromNotSourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.notSources = mapped
    }

    /**
     * @param values Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("tvbigeqruertsttj")
    public suspend fun notSources(vararg values: AuthzPolicyHttpRuleFromNotSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notSources = mapped
    }

    /**
     * @param value Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("pflteobdskbmqwbn")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("suwmrxbewfkgjpmp")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("kdwgomccgujdptfh")
    public suspend fun sources(vararg argument: suspend AuthzPolicyHttpRuleFromSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("coyicxwwnqqlprao")
    public suspend fun sources(argument: suspend AuthzPolicyHttpRuleFromSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromSourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 5 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.
     * Structure is documented below.
     */
    @JvmName("ebabwwapgpygwnhb")
    public suspend fun sources(vararg values: AuthzPolicyHttpRuleFromSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    internal fun build(): AuthzPolicyHttpRuleFromArgs = AuthzPolicyHttpRuleFromArgs(
        notSources = notSources,
        sources = sources,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy