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

com.pulumi.azurenative.containerservice.kotlin.inputs.ManagedClusterPodIdentityExceptionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerservice.kotlin.inputs

import com.pulumi.azurenative.containerservice.inputs.ManagedClusterPodIdentityExceptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * See [disable AAD Pod Identity for a specific Pod/Application](https://azure.github.io/aad-pod-identity/docs/configure/application_exception/) for more details.
 * @property name The name of the pod identity exception.
 * @property namespace The namespace of the pod identity exception.
 * @property podLabels The pod labels to match.
 */
public data class ManagedClusterPodIdentityExceptionArgs(
    public val name: Output,
    public val namespace: Output,
    public val podLabels: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerservice.inputs.ManagedClusterPodIdentityExceptionArgs =
        com.pulumi.azurenative.containerservice.inputs.ManagedClusterPodIdentityExceptionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .namespace(namespace.applyValue({ args0 -> args0 }))
            .podLabels(
                podLabels.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ManagedClusterPodIdentityExceptionArgs].
 */
@PulumiTagMarker
public class ManagedClusterPodIdentityExceptionArgsBuilder internal constructor() {
    private var name: Output? = null

    private var namespace: Output? = null

    private var podLabels: Output>? = null

    /**
     * @param value The name of the pod identity exception.
     */
    @JvmName("wyaooxecryrlsnua")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The namespace of the pod identity exception.
     */
    @JvmName("hsjijjbvbqvqvbwj")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value The pod labels to match.
     */
    @JvmName("gbjgrwteyqetikag")
    public suspend fun podLabels(`value`: Output>) {
        this.podLabels = value
    }

    /**
     * @param value The name of the pod identity exception.
     */
    @JvmName("lruorjaxxueiqgbp")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The namespace of the pod identity exception.
     */
    @JvmName("fdncdqgfqfkbwkqj")
    public suspend fun namespace(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value The pod labels to match.
     */
    @JvmName("yoxkmxkdhnwvmryo")
    public suspend fun podLabels(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.podLabels = mapped
    }

    /**
     * @param values The pod labels to match.
     */
    @JvmName("cpgvjkymsdytannx")
    public fun podLabels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.podLabels = mapped
    }

    internal fun build(): ManagedClusterPodIdentityExceptionArgs =
        ManagedClusterPodIdentityExceptionArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            namespace = namespace ?: throw PulumiNullFieldException("namespace"),
            podLabels = podLabels ?: throw PulumiNullFieldException("podLabels"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy