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

com.pulumi.gcp.networksecurity.kotlin.inputs.AuthzPolicyHttpRuleFromSourceArgs.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.AuthzPolicyHttpRuleFromSourceArgs.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 AuthzPolicyHttpRuleFromSourceArgs(
    public val principals: Output>? = null,
    public val resources: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromSourceArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromSourceArgs.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 [AuthzPolicyHttpRuleFromSourceArgs].
 */
@PulumiTagMarker
public class AuthzPolicyHttpRuleFromSourceArgsBuilder 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("jgehslppcqyisjkd")
    public suspend fun principals(`value`: Output>) {
        this.principals = value
    }

    @JvmName("lakpdhkdfbqurfii")
    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("deyjmpacgslnumxo")
    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("jqxmevrexnhnjuni")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

    @JvmName("xkaywxgcpqiodlmt")
    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("twmchfqnknlkuknv")
    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("hqblcgxjigfrtjgd")
    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("jvfcecdbcuuyfwuu")
    public suspend fun principals(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourcePrincipalArgsBuilder().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("figwcobjsaydujdv")
    public suspend fun principals(vararg argument: suspend AuthzPolicyHttpRuleFromSourcePrincipalArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourcePrincipalArgsBuilder().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("wuxwrpyqsnybablr")
    public suspend fun principals(argument: suspend AuthzPolicyHttpRuleFromSourcePrincipalArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromSourcePrincipalArgsBuilder().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("prnicxahsmqoiqqv")
    public suspend fun principals(vararg values: AuthzPolicyHttpRuleFromSourcePrincipalArgs) {
        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("nijvofjhwfftveuy")
    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("hlyfjumbrkxrorli")
    public suspend fun resources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourceResourceArgsBuilder().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("wdosmjuqvxkedfxx")
    public suspend fun resources(vararg argument: suspend AuthzPolicyHttpRuleFromSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AuthzPolicyHttpRuleFromSourceResourceArgsBuilder().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("hkbivrcbwmovktnt")
    public suspend fun resources(argument: suspend AuthzPolicyHttpRuleFromSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AuthzPolicyHttpRuleFromSourceResourceArgsBuilder().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("rxlgykldalwbhlir")
    public suspend fun resources(vararg values: AuthzPolicyHttpRuleFromSourceResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy