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

com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs.NonResourcePolicyRulePatchArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.NonResourcePolicyRulePatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
 * @property nonResourceURLs `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
 *   - "/healthz" is legal
 *   - "/hea*" is illegal
 *   - "/hea" is legal but matches nothing
 *   - "/hea/*" also matches nothing
 *   - "/healthz/*" matches all per-component health checks.
 * "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
 * @property verbs `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
 * */*/
 */
public data class NonResourcePolicyRulePatchArgs(
    public val nonResourceURLs: Output>? = null,
    public val verbs: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.NonResourcePolicyRulePatchArgs =
        com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.NonResourcePolicyRulePatchArgs.builder()
            .nonResourceURLs(nonResourceURLs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .verbs(verbs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var verbs: Output>? = null

    /**
     * @param value `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
     *   - "/healthz" is legal
     *   - "/hea*" is illegal
     *   - "/hea" is legal but matches nothing
     *   - "/hea/*" also matches nothing
     *   - "/healthz/*" matches all per-component health checks.
     * "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
     * */*/
     */
    @JvmName("armffkufvcwktgeo")
    public suspend fun nonResourceURLs(`value`: Output>) {
        this.nonResourceURLs = value
    }

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

    /**
     * @param values `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
     *   - "/healthz" is legal
     *   - "/hea*" is illegal
     *   - "/hea" is legal but matches nothing
     *   - "/hea/*" also matches nothing
     *   - "/healthz/*" matches all per-component health checks.
     * "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
     * */*/
     */
    @JvmName("udtrttguhbpvwryg")
    public suspend fun nonResourceURLs(values: List>) {
        this.nonResourceURLs = Output.all(values)
    }

    /**
     * @param value `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
     */
    @JvmName("xhedcicwbtgaitan")
    public suspend fun verbs(`value`: Output>) {
        this.verbs = value
    }

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

    /**
     * @param values `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
     */
    @JvmName("uhguvhihiutstclb")
    public suspend fun verbs(values: List>) {
        this.verbs = Output.all(values)
    }

    /**
     * @param value `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
     *   - "/healthz" is legal
     *   - "/hea*" is illegal
     *   - "/hea" is legal but matches nothing
     *   - "/hea/*" also matches nothing
     *   - "/healthz/*" matches all per-component health checks.
     * "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
     * */*/
     */
    @JvmName("huotnmrtisufflgl")
    public suspend fun nonResourceURLs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nonResourceURLs = mapped
    }

    /**
     * @param values `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
     *   - "/healthz" is legal
     *   - "/hea*" is illegal
     *   - "/hea" is legal but matches nothing
     *   - "/hea/*" also matches nothing
     *   - "/healthz/*" matches all per-component health checks.
     * "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
     * */*/
     */
    @JvmName("luqlorrikpbdqqci")
    public suspend fun nonResourceURLs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nonResourceURLs = mapped
    }

    /**
     * @param value `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
     */
    @JvmName("jwhjwrnxntwophjk")
    public suspend fun verbs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verbs = mapped
    }

    /**
     * @param values `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
     */
    @JvmName("ibbldnjmsdxbafro")
    public suspend fun verbs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.verbs = mapped
    }

    internal fun build(): NonResourcePolicyRulePatchArgs = NonResourcePolicyRulePatchArgs(
        nonResourceURLs = nonResourceURLs,
        verbs = verbs,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy