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

com.pulumi.gcp.networksecurity.kotlin.inputs.AuthzPolicyHttpRuleFromNotSourceArgs.kt Maven / Gradle / Ivy

@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.AuthzPolicyHttpRuleFromNotSourceArgs.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 principals A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
 * Limited to 5 principals.
 * Structure is documented below.
 * @property resources A list of resources to match against the resource of the source VM of a request.
 * Limited to 5 resources.
 * Structure is documented below.
 */
public data class AuthzPolicyHttpRuleFromNotSourceArgs(
    public val principals: Output>? = null,
    public val resources: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromNotSourceArgs = com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromNotSourceArgs.builder()
        .principals(
            principals?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .resources(
            resources?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    private var resources: Output>? = null

    /**
     * @param value A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("paeexlwtmvygftaa")
    public suspend fun principals(`value`: Output>) {
        this.principals = value
    }

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

    /**
     * @param values A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("sxnadqspfurxjwlb")
    public suspend fun principals(values: List>) {
        this.principals = Output.all(values)
    }

    /**
     * @param value A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("xgynvrhqqaurcjlc")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

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

    /**
     * @param values A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("blbfgrcsryjrnvrp")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("ditxrlfeymwxqtsx")
    public suspend fun principals(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param argument A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("jkmwfpndpppmjcvq")
    public suspend fun principals(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourcePrincipalArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.principals = mapped
    }

    /**
     * @param argument A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("urmpepseyavpduaq")
    public suspend fun principals(vararg argument: suspend AuthzPolicyHttpRuleFromNotSourcePrincipalArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourcePrincipalArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.principals = mapped
    }

    /**
     * @param argument A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("wrfuqaktrqhwgimw")
    public suspend fun principals(argument: suspend AuthzPolicyHttpRuleFromNotSourcePrincipalArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromNotSourcePrincipalArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.principals = mapped
    }

    /**
     * @param values A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified.
     * Limited to 5 principals.
     * Structure is documented below.
     */
    @JvmName("npstrtawhjvcqqym")
    public suspend fun principals(vararg values: AuthzPolicyHttpRuleFromNotSourcePrincipalArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param value A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("djsnwiwevposguqo")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param argument A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("nyarjfxswedgxbte")
    public suspend fun resources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param argument A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("oisllhcqgrrvctna")
    public suspend fun resources(vararg argument: suspend AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param argument A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("rdtkrurcjjcvqfpv")
    public suspend fun resources(argument: suspend AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param values A list of resources to match against the resource of the source VM of a request.
     * Limited to 5 resources.
     * Structure is documented below.
     */
    @JvmName("ghibibostqpxwlqi")
    public suspend fun resources(vararg values: AuthzPolicyHttpRuleFromNotSourceResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    internal fun build(): AuthzPolicyHttpRuleFromNotSourceArgs = AuthzPolicyHttpRuleFromNotSourceArgs(
        principals = principals,
        resources = resources,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy